release
[hcoop/zz_old/debian/djbdns.git] / utime.c
CommitLineData
dc0d77d7
CE
1#include <sys/types.h>
2#include <sys/time.h>
3#include "scan.h"
4#include "exit.h"
5
6char *fn;
7
8char *ustr;
9unsigned long u;
10time_t ut[2];
11
12int 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}