2006-12-03 Miguel de Icaza <miguel@novell.com>
[mono-project.git] / support / utime.c
blob7f4cbb6488d29dc344424dee2e41c8259df9f15d
1 /*
2 * <stdio.h> wrapper functions.
4 * Authors:
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2004-2006 Jonathan Pryor
8 */
10 #include <sys/types.h>
11 #include <utime.h>
13 #include "map.h"
14 #include "mph.h"
16 G_BEGIN_DECLS
18 gint32
19 Mono_Posix_Syscall_utime (const char *filename, struct Mono_Posix_Utimbuf *buf,
20 int use_buf)
22 struct utimbuf _buf;
23 struct utimbuf *pbuf = NULL;
25 if (buf && use_buf) {
26 _buf.actime = buf->actime;
27 _buf.modtime = buf->modtime;
28 pbuf = &_buf;
31 return utime (filename, pbuf);
34 G_END_DECLS
37 * vim: noexpandtab