delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/03/28/01:17:05

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Missing proto for sigaction() in <sys/signal.h>
28 Mar 1997 01:17:05 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <9703280452.AA04656.cygnus.gnu-win32@modi.xraylith.wisc.edu>
Original-To: Jim Balter <jqb AT netcom DOT com>
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: Your message of "Tue, 25 Mar 1997 22:33:24 PST."
<3338C334 DOT A19 AT netcom DOT com>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Jim Balter <jqb AT netcom DOT com> writes:
> 
> [<signal.h> actually; POSIX doesn't mandate <sys/sygnal.h>]
> 
> Aside from sigaction, the following symbols mandated by POSIX are
> missing from signal.h:
> 
> SIGCONT

Hmmm ... there in my copy. My CVS repo is trashed, so hard to tell if
I added it or not.

> kill
> sigdelset
> sigfillset
> sigismember

Here's the trivial patch:

*** newlib/libc/include/sys/signal.h.~1 Tue Mar 25 22:32:25 1997
--- newlib/libc/include/sys/signal.h    Thu Mar 27 22:57:41 1997
*************** struct sigaction 
*** 25,29 ****
  #define sigemptyset(what)   (*(what) = 0)
  
! int sigprocmask (int how, const sigset_t *a, sigset_t *b);
  #endif /* _STRICT_ANSI */
  
--- 25,39 ----
  #define sigemptyset(what)   (*(what) = 0)
  
! /* From winsup/winsup.h */
! int _EXFUN(sigdelset, (sigset_t *set, const int sig));
! int _EXFUN(sigfillset, (sigset_t * set));
! int _EXFUN(sigismember, (const sigset_t *set, int sig));
! 
! int _EXFUN(sigaction, (int signum,
!              const struct sigaction *newaction,
!              struct sigaction *oldaction));
! int _EXFUN (sigprocmask, (int how, const sigset_t *a, sigset_t *b));
! 
! int _EXFUN(kill, (pid_t pid, int sig));
  #endif /* _STRICT_ANSI */
  

> sigpending
> sigsuspend

Anybody out there with a robust implementation of sigpending and
sigsuspend for gnu-win32 out there?

Regards,
Mumit -- khan AT xraylith DOT wisc DOT edu
http://www.xraylith.wisc.edu/~khan/
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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