This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Using POSIX functions in Cygwin?


On Fri, 3 Aug 2001 17:43:14 -0400, Christopher Faylor wrote:

> sigaction is part of the cygwin DLL and there are certainly 
> some SA_ macros defined in ~msinclude/sys/signal.h:

OK, I'm having the same problem with release 1.3.2 - can't find a
prototype for sigaction_t. These ARE supposed to appear by just
#include'ing signal.h, yes?

> AFAICT, these are invoked by gcc.  If they weren't we wouldn't 
> be able to actually build Cygwin which uses these.

Please find attached the output of gcc -v for the test program I'm
using. -D__CYGWIN__ is there on the list. 

Any thoughts on what I'm doing wrong?

Thanks,

Jon.
$ gcc -v -o test4 -I/usr/include/ncurses test4.c -lncurses
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cpp0.exe -lang-c -v -I/usr/include/ncurses -D__GNUC__=2 -D__GNUC_MINOR__=95 -D_X86_=1 -D_X86_=1 -Asystem(winnt) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -isystem /usr/local/include -idirafter /usr/include -idirafter /usr/include/w32api test4.c /cygdrive/s/TEMP/ccVgnG0c.i
GNU CPP version 2.95.3-5 (cygwin special) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/ncurses
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/include
 /usr/include
 /usr/include/w32api
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cc1.exe /cygdrive/s/TEMP/ccVgnG0c.i -quiet -dumpbase test4.c -version -o /cygdrive/s/TEMP/ccD95OiH.s
GNU C version 2.95.3-5 (cygwin special) (i686-pc-cygwin) compiled by GNU C version 2.95.3-5 (cygwin special).
test4.c: In function `main':
test4.c:14: `sigaction_t' undeclared (first use in this function)
test4.c:14: (Each undeclared identifier is reported only once
test4.c:14: for each function it appears in.)
test4.c:14: parse error before `act'
test4.c:25: `act' undeclared (first use in this function)
test4.c:29: `oldact' undeclared (first use in this function)
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]