git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
support little-endian bitmaps
[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(×,sizeof(times));
15
16
times.actime = 3600;
17
times.modtime = 7200;
18
19
utime("xx",×);
20
21
close(fd);
22
}