OSDN Git Service

Fix signalfd for MIPS.
authorElliott Hughes <enh@google.com>
Wed, 16 Jan 2013 17:34:16 +0000 (09:34 -0800)
committerElliott Hughes <enh@google.com>
Wed, 16 Jan 2013 17:40:25 +0000 (09:40 -0800)
Also mark signalfd's sigset_t* argument as non-nullable.

Change-Id: I466e09cdf3fb92480744c496da92274a97f99dd1

libc/include/sys/signalfd.h

index af1f290..c03a0e9 100644 (file)
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
+
 #ifndef _SYS_SIGNALFD_H_
 #define _SYS_SIGNALFD_H_
 
-#include <linux/signalfd.h>
-#include <sys/cdefs.h>
 #include <signal.h>
+#include <linux/signalfd.h>
 
 __BEGIN_DECLS
 
-/* Compatibility with GLibc */
-extern int signalfd(int fd, const sigset_t *mask, int flags);
+extern int signalfd(int fd, const sigset_t* mask, int flags) __attribute__((__nonnull__(2)));
 
 __END_DECLS