2005-02-08 Corinna Vinschen <corinna@vinschen.de>
+ * times.cc (timeval_to_filetime): Define first parameter const.
+ (utimes): Define second parameter to const according to SUSv3.
+ (utime): Ditto.
+ * include/sys/utime.h (utime) : Change declaration accordingly.
+
+2005-02-08 Corinna Vinschen <corinna@vinschen.de>
+
* cygthread.cc (cygthread::detach): Just test thread handle after
signal arrived, don't wait infinitely for it.
time_t modtime;
};
-int _EXFUN(utime, (const char *__path, struct utimbuf *__buf));
+int _EXFUN(utime, (const char *__path, const struct utimbuf *__buf));
#ifdef __cplusplus
};
#define FACTOR (0x19db1ded53e8000LL)
#define NSPERSEC 10000000LL
-static void __stdcall timeval_to_filetime (timeval *time, FILETIME *out);
+static void __stdcall timeval_to_filetime (const struct timeval *time, FILETIME *out);
/* Cygwin internal */
static unsigned long long __stdcall
/* Cygwin internal */
static void __stdcall
-timeval_to_filetime (timeval *time_in, FILETIME *out)
+timeval_to_filetime (const struct timeval *time_in, FILETIME *out)
{
long long x = time_in->tv_sec * NSPERSEC +
time_in->tv_usec * (NSPERSEC/1000000) + FACTOR;
/* utimes: standards? */
extern "C" int
-utimes (const char *path, struct timeval *tvp)
+utimes (const char *path, const struct timeval *tvp)
{
int res = 0;
struct timeval tmp[2];
/* utime: POSIX 5.6.6.1 */
extern "C" int
-utime (const char *path, struct utimbuf *buf)
+utime (const char *path, const struct utimbuf *buf)
{
struct timeval tmp[2];