Mail Archives: djgpp-workers/2009/03/29/04:26:45
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f
|
X-Recipient: | djgpp-workers AT delorie DOT com
|
Date: | Sun, 29 Mar 2009 11:25:55 +0200
|
From: | "Juan Manuel Guerrero" <juan DOT guerrero AT gmx DOT de>
|
Message-ID: | <20090329092555.234670@gmx.net>
|
MIME-Version: | 1.0
|
Subject: | SA_* macros
|
To: | djgpp-workers AT delorie DOT com
|
X-Authenticated: | #27081556
|
X-Flags: | 0001
|
X-Mailer: | WWW-Mail 6100 (Global Message Exchange)
|
X-Priority: | 3
|
X-Provags-ID: | V01U2FsdGVkX18iwlp2HiUiHpS5w6/XALTLb/7DkDPFvj8xMAq4Nx
|
| kpbAkB7aCIU8K68VakFE7f4kHoKKwd2XLE2w==
|
X-GMX-UID: | kUT6IcAxZDIrIToI52c2i/h5emhmY8Hg
|
X-FuHaFi: | 0.53
|
Reply-To: | djgpp-workers AT delorie DOT com
|
Any objections if this patch is applied.
Regards,
Juan M. Guerrer
2009-02-01 Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
Diffs against djgpp CVS head of 2009-03-29.
* include/signal.h: SA_ONESHOT, SA_NOMASK, SA_RESTART and SA_NODEFER
added.
* src/docs/kb/wc204.txi: Info about SA_ONESHOT, SA_NOMASK, SA_RESTART
and SA_NODEFER added.
diff -aprNU3 djgpp.orig/include/signal.h djgpp/include/signal.h
--- djgpp.orig/include/signal.h 2003-02-04 20:24:16 +0000
+++ djgpp/include/signal.h 2009-02-01 12:23:38 +0000
@@ -43,7 +43,12 @@ void (*signal(int _sig, void (*_func)(in
#ifndef __STRICT_ANSI__
-#define SA_NOCLDSTOP 1
+#define SA_NOCLDSTOP 1 /* Do not generate SIGCHLD when children stop */
+#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_ONESHOT SA_RESETHAND /* Historical linux name */
+#define SA_NOMASK SA_NODEFER /* Historical linux name */
#define SIGALRM 293
#define SIGHUP 294
diff -aprNU3 djgpp.orig/src/docs/kb/wc204.txi djgpp/src/docs/kb/wc204.txi
--- djgpp.orig/src/docs/kb/wc204.txi 2009-02-01 11:22:26 +0000
+++ djgpp/src/docs/kb/wc204.txi 2009-02-01 12:23:28 +0000
@@ -1176,3 +1176,10 @@ stored in the member @code{name} of the
and used by @code{readdir}, @code{rewinddir} and @code{__set_need_fake_dot_dotdot}.
Now it only contains the canonicalized path to the directory without a terminating slash.
Those functions that require the trailing search pattern @code{/*.*} will append it.
+
+@findex SA_RESTART AT r{, new flag accepted by @code{sa_mask}}
+@findex SA_NODEFER AT r{, new flag accepted by @code{sa_mask}}
+@findex SA_ONESHOT AT r{, new flag accepted by @code{sa_mask}}
+@findex SA_NOMASK AT r{, new flag accepted by @code{sa_mask}}
+@code{sigaction} now honors the flags @code{SA_RESTART}, @code{SA_NODEFER},
+@code{SA_ONESHOT} and @code{SA_NOMASK}. They are all defined in @code{signal.h}.
--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
- Raw text -