release
[hcoop/zz_old/debian/djbdns.git] / utime.c
1 #include <sys/types.h>
2 #include <sys/time.h>
3 #include "scan.h"
4 #include "exit.h"
5
6 char *fn;
7
8 char *ustr;
9 unsigned long u;
10 time_t ut[2];
11
12 int main(int argc,char **argv)
13 {
14 fn = argv[1];
15 if (!fn) _exit(100);
16
17 ustr = argv[2];
18 if (!ustr) _exit(100);
19 scan_ulong(ustr,&u);
20
21 ut[0] = ut[1] = u;
22 if (utime(fn,ut) == -1) _exit(111);
23 _exit(0);
24 }