git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
crtdll
/
io
/
utime.c
1
#include <crtdll/stdio.h>
2
#include <crtdll/io.h>
3
#include <crtdll/errno.h>
4
#include <crtdll/sys/utime.h>
5
#include <crtdll/internal/file.h>
6
7
int _utime(const char* filename, struct _utimbuf* buf)
8
{
9
int fn;
10
int ret;
11
12
fn = _open(filename, _O_RDWR);
13
if ( fn == -1 ) {
14
__set_errno(EBADF);
15
return -1;
16
}
17
ret = _futime(fn,buf);
18
if ( _close(fn) < 0 )
19
return -1;
20
return ret;
21
22
}