X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Futime.c;h=7f4cbb6488d29dc344424dee2e41c8259df9f15d;hb=30cddad5fb4c3d290906a6e6c33ecd8b07d8b48c;hp=4e40c687e988ad67fd1b2385b640c1d512500251;hpb=234225d112c4b018b8d1796f4c06a15812137500;p=mono.git diff --git a/support/utime.c b/support/utime.c index 4e40c687e98..7f4cbb6488d 100644 --- a/support/utime.c +++ b/support/utime.c @@ -4,28 +4,25 @@ * Authors: * Jonathan Pryor (jonpryor@vt.edu) * - * Copyright (C) 2004 Jonathan Pryor + * Copyright (C) 2004-2006 Jonathan Pryor */ #include #include +#include "map.h" #include "mph.h" G_BEGIN_DECLS -struct Mono_Posix_Utimbuf { - /* time_t */ mph_time_t actime; /* access time */ - /* time_t */ mph_time_t modtime; /* modification time */ -}; - gint32 -Mono_Posix_Syscall_utime (const char *filename, struct Mono_Posix_Utimbuf *buf) +Mono_Posix_Syscall_utime (const char *filename, struct Mono_Posix_Utimbuf *buf, + int use_buf) { struct utimbuf _buf; struct utimbuf *pbuf = NULL; - if (buf) { + if (buf && use_buf) { _buf.actime = buf->actime; _buf.modtime = buf->modtime; pbuf = &_buf;