. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git] / lib / posix / _utime.c
blobf28f640f2b57c03a12ea5fd1b7e9858cd080cd99
1 /* utime(2) for POSIX Authors: Terrence W. Holm & Edwin L. Froese */
3 #include <lib.h>
4 #define utime _utime
5 #include <string.h>
6 #include <utime.h>
8 PUBLIC int utime(name, timp)
9 _CONST char *name;
10 _CONST struct utimbuf *timp;
12 message m;
14 if (timp == NULL) {
15 m.m2_i1 = 0; /* name size 0 means NULL `timp' */
16 m.m2_i2 = strlen(name) + 1; /* actual size here */
17 } else {
18 m.m2_l1 = timp->actime;
19 m.m2_l2 = timp->modtime;
20 m.m2_i1 = strlen(name) + 1;
22 m.m2_p1 = (char *) name;
23 return(_syscall(FS, UTIME, &m));