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