mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* process.c: add W* macro if not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88eef2d7fe
commit
d633fc6b5b
2 changed files with 23 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Feb 20 23:45:35 2001 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* process.c: add W* macro if not available.
|
||||
|
||||
Tue Feb 20 16:37:58 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* configure.in: add check for negative time_t for gmtime(3).
|
||||
|
|
19
process.c
19
process.c
|
@ -57,6 +57,25 @@ struct timeval rb_time_interval _((VALUE));
|
|||
static VALUE S_Tms;
|
||||
#endif
|
||||
|
||||
#ifndef WIFEXITED
|
||||
#define WIFEXITED(w) (((w) & 0xff) == 0)
|
||||
#endif
|
||||
#ifndef WIFSIGNALED
|
||||
#define WIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
|
||||
#endif
|
||||
#ifndef WIFSTOPPED
|
||||
#define WIFSTOPPED(w) (((w) & 0xff) == 0x7f)
|
||||
#endif
|
||||
#ifndef WEXITSTATUS
|
||||
#define WEXITSTATUS(w) (((w) >> 8) & 0xff)
|
||||
#endif
|
||||
#ifndef WTERMSIG
|
||||
#define WTERMSIG(w) ((w) & 0x7f)
|
||||
#endif
|
||||
#ifndef WSTOPSIG
|
||||
#define WSTOPSIG WEXITSTATUS
|
||||
#endif
|
||||
|
||||
static VALUE
|
||||
get_pid()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue