This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
MIPS bits/sigaction.h update
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Mon, 11 Jan 2010 13:30:09 +0000 (UTC)
- Subject: MIPS bits/sigaction.h update
I've applied this patch to update the MIPS bits/sigaction.h in line with
recent libc changes. Alpha and HPPA maintainers may wish to do likewise
with their versions.
diff --git a/ChangeLog.mips b/ChangeLog.mips
index 31de4a2..dfc15dc 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,8 @@
+2010-01-11 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Define
+ SA_RESTART, SA_NODEFER and SA_RESETHAND if __USE_XOPEN2K8.
+
2010-01-10 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define O_DIRECTORY,
diff --git a/sysdeps/unix/sysv/linux/mips/bits/sigaction.h b/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
index d04e25f..ecddaf6 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
@@ -1,5 +1,5 @@
/* The proper definitions for Linux/MIPS's sigaction.
- Copyright (C) 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2003
+ Copyright (C) 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2003, 2010
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -64,6 +64,8 @@ struct sigaction
three arguments instead of one. */
#if defined __USE_UNIX98 || defined __USE_MISC
# define SA_ONSTACK 0x08000000 /* Use signal stack by using `sa_restorer'. */
+#endif
+#if defined __USE_UNIX98 || defined __USE_MISC || defined __USE_XOPEN2K8
# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */
# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
--
Joseph S. Myers
joseph@codesourcery.com