This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Don't define several function in grp.h under Cygwin


Hi,

I've checked in the below patch which adds the daemon function for Cygwin.

Corinna

	* libc/include/sys/unistd.h: Declare function daemon for Cygwin.

Index: libc/include/sys/unistd.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.44
diff -u -p -r1.44 unistd.h
--- libc/include/sys/unistd.h   10 Jul 2003 15:31:30 -0000      1.44
+++ libc/include/sys/unistd.h   10 Sep 2003 15:52:31 -0000
@@ -29,6 +29,9 @@ int     _EXFUN(chroot, (const char *__pa
 int     _EXFUN(close, (int __fildes ));
 char    _EXFUN(*ctermid, (char *__s ));
 char    _EXFUN(*cuserid, (char *__s ));
+#if defined(__CYGWIN__)
+int    _EXFUN(daemon, (int nochdir, int noclose));
+#endif
 int     _EXFUN(dup, (int __fildes ));
 int     _EXFUN(dup2, (int __fildes, int __fildes2 ));
 #if defined(__CYGWIN__)

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.


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