allow for 32/64 bit builds
[tridge/junkcode.git] / ftime.c
1 #include <sys/types.h>
2 #include <utime.h>
3 #include <sys/stat.h>
4 #include <fcntl.h>
5 #include <sys/time.h>
6
7 main()
8 {
9   struct utimbuf times;
10   int fd = open("xx",O_RDWR|O_CREAT|O_TRUNC,0666);
11
12   write(fd,"hello",6);
13
14   bzero(&times,sizeof(times));
15
16   times.actime = 3600;
17   times.modtime = 7200;
18
19   utime("xx",&times);
20
21   close(fd);
22 }