add some comments about the mips ksigaction structure weirdness
authorRich Felker <dalias@aerifal.cx>
Sat, 29 Jun 2013 16:24:06 +0000 (12:24 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 29 Jun 2013 16:24:06 +0000 (12:24 -0400)
arch/mips/ksigaction.h
src/internal/ksigaction.h

index 648ce06..6d73164 100644 (file)
@@ -2,5 +2,8 @@ struct k_sigaction {
        unsigned flags;
        void (*handler)(int);
        unsigned long mask[4];
        unsigned flags;
        void (*handler)(int);
        unsigned long mask[4];
+       /* The following field is past the end of the structure the
+        * kernel will read or write, and exists only to avoid having
+        * mips-specific preprocessor conditionals in sigaction.c. */
        void (*restorer)();
 };
        void (*restorer)();
 };
index 9a70f93..2eacabf 100644 (file)
@@ -1,3 +1,6 @@
+/* This is the structure used for the rt_sigaction syscall on most archs,
+ * but it can be overridden by a file with the same name in the top-level
+ * arch dir for a given arch, if necessary. */
 struct k_sigaction {
        void (*handler)(int);
        unsigned long flags;
 struct k_sigaction {
        void (*handler)(int);
        unsigned long flags;