From: Rich Felker Date: Sat, 29 Jun 2013 16:24:06 +0000 (-0400) Subject: add some comments about the mips ksigaction structure weirdness X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=2b0af609ef3d90fe6433270f2e2f62fc77ec7441 add some comments about the mips ksigaction structure weirdness --- diff --git a/arch/mips/ksigaction.h b/arch/mips/ksigaction.h index 648ce068..6d731646 100644 --- a/arch/mips/ksigaction.h +++ b/arch/mips/ksigaction.h @@ -2,5 +2,8 @@ struct k_sigaction { 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)(); }; diff --git a/src/internal/ksigaction.h b/src/internal/ksigaction.h index 9a70f937..2eacabf1 100644 --- a/src/internal/ksigaction.h +++ b/src/internal/ksigaction.h @@ -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;