ReactOS  0.4.15-dev-5461-g062a8f2
utime.c File Reference
#include <precomp.h>
#include <tchar.h>
#include <sys/utime.h>
#include "bitsfixup.h"
Include dependency graph for utime.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define RC_INVOKED   1


int _tutime (const _TCHAR *path, struct _utimbuf *t)

Macro Definition Documentation


#define RC_INVOKED   1

Definition at line 39 of file utime.c.

Function Documentation

◆ _tutime()

int _tutime ( const _TCHAR path,
struct _utimbuf t 

Definition at line 44 of file utime.c.

45 {
46  int fd = _topen(path, _O_WRONLY | _O_BINARY);
48  if (fd > 0)
49  {
50  int retVal = _futime(fd, t);
51  _close(fd);
52  return retVal;
53  }
54  return -1;
55 }
GLdouble GLdouble t
Definition: gl.h:2047
static int fd
Definition: io.c:51
#define _topen
Definition: tchar.h:722
_Check_return_opt_ _CRTIMP int __cdecl _close(_In_ int _FileHandle)
#define _O_BINARY
Definition: cabinet.h:51
#define _O_WRONLY
Definition: cabinet.h:38
_CRTIMP int __cdecl _futime(_In_ int _FileDes, _In_opt_ struct _utimbuf *_Time)