aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-01-12 05:36:12 +0000
committerChristopher Faylor <me@cgf.cx>2001-01-12 05:36:12 +0000
commite45ab89012ee7415606dcd7c664cd5c4c14e5baf (patch)
tree2dff2cd3877d9dfc3817403be5fd41a3c72969d8
parent1376245a1f4ed8a435543e7f055e4b1f2cee9da4 (diff)
downloadnewlib-e45ab89012ee7415606dcd7c664cd5c4c14e5baf.zip
newlib-e45ab89012ee7415606dcd7c664cd5c4c14e5baf.tar.gz
newlib-e45ab89012ee7415606dcd7c664cd5c4c14e5baf.tar.bz2
* libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/sys/signal.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 50e1160..b1a3f15 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jan 12 00:34:31 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
+
Thu Jan 11 20:42:06 2001 Earnie Boyd <earnie_boyd@yahoo.com>
* libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
index 58d84de..496fc58 100644
--- a/newlib/libc/include/sys/signal.h
+++ b/newlib/libc/include/sys/signal.h
@@ -113,6 +113,13 @@ struct sigaction
#define SA_NOCLDSTOP 1 /* only value supported now for sa_flags */
+#ifdef __CYGWIN__
+# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */
+# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
+ its handler is being executed. */
+# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
+#endif
+
#endif /* defined(__rtems__) */
#define SIG_SETMASK 0 /* set mask with sigprocmask() */