Skip to content

Commit

Permalink
Remove Mono_Posix_Syscall_utimes_bad
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sortie authored and kumpera committed Jun 26, 2014
1 parent 8305af7 commit 325982b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions support/sys-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,6 @@ Mono_Posix_Syscall_settimeofday (
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)
{
Expand Down

0 comments on commit 325982b

Please sign in to comment.