delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/03/27/03:28:56

From: cheekai AT gen DOT co DOT jp (Chin Chee-Kai)
Subject: POSIX signal fn & setitimer
27 Mar 1997 03:28:56 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.3.07.9703270939.A5411-b100000.cygnus.gnu-win32@sumimasen.gen.co.jp>
Mime-Version: 1.0
X-Authentication-Warning: gatekeeper.gen.co.jp: smap set sender to <cheekai AT gen DOT co DOT jp> using -f
Original-To: Mumit Khan <khan AT xraylith DOT wisc DOT edu>
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <9703260559.AA01382@brahma.xraylith.wisc.edu>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Eh, gonna ask a "sensitive" question innocently...

Point (1):
I've ploughed through the header files in search for some of the
more elaborate signal handling functions such as sigset(), sighold(),
sigpause(), .. etc, but couldn't find any of such.  Are these
somewhere in the libraries?  Or when will they become available
(any hints from Cygnus people please?)?

Point (2):
In <sys/signal.h>, I can see some of those conditional #if's for
different platforms.  In particular, I'm confused by line 107
(of <sys/signal.h>)
	#if defined(__svr4__)

See, I thought files in <sys/> directory should describe the
environment in which programs are compiled, and should be very
specific to the system.  So in this case, 
	(a) is gnu-win32 gcc assuming that the environment
	    may be compiled in SVR4?
	(b) is gnu-win32 gcc assuming Win95/NT are SVR4?  Or could be?
	    If there's this assumption, then when does gnu-win32
	    expect the macro to be defined?
	(c) I wanted my programs to recognise POSIX signals
	    (as I also run them on SGI).  So I now have to
	    rather dangerously put a "#define __svr4__"
	    before "#include <signal.h>" (which includes <sys/signal.h>
	    But this approach is really queer since I'm telling the
	    compiler midway that the environment has suddenly become
	    SVR4.  Has anyone else dealt with this in a better way?

Finally, I can't find the lovely  "setitimer()" function.
"nm lib*.a" in /usr/lib returns nothing and I can't run a timer
test.  Has someone already found a way around it?

Thanks.


Chin Chee-Kai (Last, First)
Internet Email-ID:	cheekai AT gen DOT co DOT jp

-
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