Formerly unix/sysv/sysv4/siginfo.h.~3~
authorRoland McGrath <roland@gnu.org>
Thu, 27 Jan 1994 01:08:59 +0000 (01:08 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 27 Jan 1994 01:08:59 +0000 (01:08 +0000)
sysdeps/unix/sysv/sysv4/siginfo.h

index 16b1bac..7284b55 100644 (file)
@@ -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;