utime.c 568 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * <stdio.h> wrapper functions.
  3. *
  4. * Authors:
  5. * Jonathan Pryor ([email protected])
  6. *
  7. * Copyright (C) 2004-2006 Jonathan Pryor
  8. */
  9. #include <sys/types.h>
  10. #include <utime.h>
  11. #include "map.h"
  12. #include "mph.h"
  13. G_BEGIN_DECLS
  14. gint32
  15. Mono_Posix_Syscall_utime (const char *filename, struct Mono_Posix_Utimbuf *buf,
  16. int use_buf)
  17. {
  18. struct utimbuf _buf;
  19. struct utimbuf *pbuf = NULL;
  20. if (buf && use_buf) {
  21. _buf.actime = buf->actime;
  22. _buf.modtime = buf->modtime;
  23. pbuf = &_buf;
  24. }
  25. return utime (filename, pbuf);
  26. }
  27. G_END_DECLS
  28. /*
  29. * vim: noexpandtab
  30. */