2004-12-27 Ben Maurer <bmaurer@ximian.com>
[mono-project.git] / support / utime.c
blob4e40c687e988ad67fd1b2385b640c1d512500251
1 /*
2 * <stdio.h> wrapper functions.
4 * Authors:
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2004 Jonathan Pryor
8 */
10 #include <sys/types.h>
11 #include <utime.h>
13 #include "mph.h"
15 G_BEGIN_DECLS
17 struct Mono_Posix_Utimbuf {
18 /* time_t */ mph_time_t actime; /* access time */
19 /* time_t */ mph_time_t modtime; /* modification time */
22 gint32
23 Mono_Posix_Syscall_utime (const char *filename, struct Mono_Posix_Utimbuf *buf)
25 struct utimbuf _buf;
26 struct utimbuf *pbuf = NULL;
28 if (buf) {
29 _buf.actime = buf->actime;
30 _buf.modtime = buf->modtime;
31 pbuf = &_buf;
34 return utime (filename, pbuf);
37 G_END_DECLS
40 * vim: noexpandtab