git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libc - Fixed buggy strtoi code
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libposix.so_src
/
include_exp
/
sys
/
wait.h
diff --git
a/Usermode/Libraries/libposix.so_src/include_exp/sys/wait.h
b/Usermode/Libraries/libposix.so_src/include_exp/sys/wait.h
index
d37f5e5
..
ae29ec6
100644
(file)
--- a/
Usermode/Libraries/libposix.so_src/include_exp/sys/wait.h
+++ b/
Usermode/Libraries/libposix.so_src/include_exp/sys/wait.h
@@
-8,12
+8,20
@@
#ifndef _LIBPOSIX__SYS__WAIT_H_
#define _LIBPOSIX__SYS__WAIT_H_
#ifndef _LIBPOSIX__SYS__WAIT_H_
#define _LIBPOSIX__SYS__WAIT_H_
+#include <sys/types.h>
+
// POSIX, waitpid()
#define WNOHANG 0x01
#define WUNTRACED 0x02
// POSIX, status values
// POSIX, waitpid()
#define WNOHANG 0x01
#define WUNTRACED 0x02
// POSIX, status values
-#define WEXITSTATUS(v) v
+#define WIFEXITED(v) (((v)>>16)==0)
+#define WEXITSTATUS(v) (v&0xFF)
+#define WIFSIGNALED(v) (((v)>>16)==1)
+#define WTERMSIG(v) (v&0xFFF)
+#define WCOREDUMP(v) (!!(v>>12))
+#define WIFSTOPPED(v) 0
+#define WSTOPSIG(v) 0
#define WIFCONTINUED(v) 0
// POSIX/XSI, waitid(options)
#define WIFCONTINUED(v) 0
// POSIX/XSI, waitid(options)
@@
-31,11
+39,11
@@
typedef enum
} idtype_t;
// POSIX
} idtype_t;
// POSIX
-extern pid_t wait(int *);
+extern pid_t wait(int *
status
);
// POSIX/XSI
//extern int waitid(idtype_t, id_t, siginfo_t *, int);
// POSIX
// POSIX/XSI
//extern int waitid(idtype_t, id_t, siginfo_t *, int);
// POSIX
-extern pid_t waitpid(pid_t
, int *, int
);
+extern pid_t waitpid(pid_t
pid, int *status, int options
);
#endif
#endif
UCC
git Repository :: git.ucc.asn.au