This is the mail archive of the newlib@sourceware.org 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]

Declare futimes and lutimes for Cygwin


Hi,

FYI, I've applied the below patch to newlib.  It adds declarations
of the BSD functions futimes and lutimes just for Cygwin.


Corinna

	* libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.

Index: libc/include/sys/time.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/time.h,v
retrieving revision 1.5
diff -u -p -r1.5 time.h
--- libc/include/sys/time.h     8 Feb 2005 20:55:18 -0000       1.5
+++ libc/include/sys/time.h     20 Oct 2005 14:35:34 -0000
@@ -73,6 +73,10 @@ struct  itimerval {
 int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));
 int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
 int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp));
+#ifdef __CYGWIN__
+int _EXFUN(futimes, (int __fd, const struct timeval *__tvp));
+int _EXFUN(lutimes, (const char *__path, const struct timeval *__tvp));
+#endif
 int _EXFUN(getitimer, (int __which, struct itimerval *__value));
 int _EXFUN(setitimer, (int __which, const struct itimerval *__value,
                                        struct itimerval *__ovalue));

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.


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