Welcome to the world of tomorrow! It's been almost a decade since this was
made obsolete in 2005. Nothing uses this function any longer. Additionally
it is completely broken as utimes takes a pointer to an array with two
timevals, but the code passes only a pointer to a single timeval.
This change is released under the MIT/X11 license.
return r;
}
-/* Remove this at some point in the future */
-gint32
-Mono_Posix_Syscall_utimes_bad (const char *filename,
- struct Mono_Posix_Timeval *tv);
-
-gint32
-Mono_Posix_Syscall_utimes_bad (const char *filename,
- struct Mono_Posix_Timeval *tv)
-{
- struct timeval _tv;
- struct timeval *ptv = NULL;
-
- if (tv) {
- _tv.tv_sec = tv->tv_sec;
- _tv.tv_usec = tv->tv_usec;
- ptv = &_tv;
- }
-
- return utimes (filename, ptv);
-}
-
static inline struct timeval*
copy_utimes (struct timeval* to, struct Mono_Posix_Timeval *from)
{