From: Roland McGrath Date: Thu, 27 Jan 1994 01:08:59 +0000 (+0000) Subject: Formerly unix/sysv/sysv4/siginfo.h.~3~ X-Git-Tag: upstream/2.30~10627^2~4179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84e961871cabd94e1ad3c4e46324fb7d18a06a3f;p=external%2Fglibc.git Formerly unix/sysv/sysv4/siginfo.h.~3~ --- diff --git a/sysdeps/unix/sysv/sysv4/siginfo.h b/sysdeps/unix/sysv/sysv4/siginfo.h index 16b1bac..7284b55 100644 --- a/sysdeps/unix/sysv/sysv4/siginfo.h +++ b/sysdeps/unix/sysv/sysv4/siginfo.h @@ -24,19 +24,34 @@ Cambridge, MA 02139, USA. */ /* SVR4 puts a ton of other stuff in this structure. For now, we'll just define the two things we really need out of it, and hope for the best. */ +/* These define the different states a child can have on exit. Need these +to build the correct status return for things like waitpid */ + +#define EXITED 1 +#define KILLED 2 +#define CORED 3 +#define TRAPPED 4 +#define STOPPED 5 +#define CONTINUED 6 + typedef struct __siginfo { - int filler1[3]; + int filler1; - /* The PID of the child. */ - __pid_t __pid; + /* Code indicating child's status */ + int __code; int filler2; + /* The PID of the child. */ + long __pid; + + int filler3; + /* The child's status. */ int __status; - int filler3[26]; + int filler4[26]; } __siginfo_t;