From 84e961871cabd94e1ad3c4e46324fb7d18a06a3f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 27 Jan 1994 01:08:59 +0000 Subject: [PATCH] Formerly unix/sysv/sysv4/siginfo.h.~3~ --- sysdeps/unix/sysv/sysv4/siginfo.h | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) 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; -- 2.7.4