www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2009/01/28/07:05:04

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Date: Wed, 28 Jan 2009 13:04:31 +0100
From: "Juan Manuel Guerrero" <juan DOT guerrero AT gmx DOT de>
Message-ID: <20090128120431.41330@gmx.net>
MIME-Version: 1.0
Subject: SA_* family of flags in signal.h
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: V01U2FsdGVkX1//emNzOlv/Xml/In679C7t8runkWGM4VJ03fDSXw
aa5M2j9C6DbHYa3xC3tJ2ZeKIQLuYKTZg7IA==
X-GMX-UID: +XyycRIjPjl+CmEPqzQ2mok7MTE2NQmp
X-FuHaFi: 0.66
Reply-To: djgpp-workers AT delorie DOT com

Is there any reason why the SA_* family of flags for sigset_t sa_mask in
struct sigaction are not defined in signal.h
Is there any objection if the following is added to signal.h

#define SA_NOCLDSTOP 1   		/* Do not generate SIGCHLD when children
					   stop */
#define SA_SIGINFO   2   		/* Invoke the signal catching function
					   with three arguments instead of one
					 */
#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 */
#define SA_ONESHOT   SA_RESETHAND	/* Historical linux name */
#define SA_NOMASK    SA_NODEFER		/* Historical linux name */

This has been taken from cygwin.  Of course, what values are asigned and if only
a subset is implemented will be ok with me.
I am trying to port m4-1.4.12 and the compilation fails because
SA_NODEFER is not defined.  To be more explicitly, it is fatal-signal.[ch] from gnulib that fails because it is assumed that SA_NODEFER is almways
provided by the
used libc.

Regards,
Juan M. Guerrero


-- 
NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019