ReactOS 0.4.16-dev-334-g4d9f67c
fake.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  timezone
 

Macros

#define bcopy(s, d, l)   memcpy((d),(s),(l))
 
#define bzero(cp, l)   memset((cp),0,(l))
 
#define rindex   strrchr
 
#define index   strchr
 
#define getwd   getcwd
 
#define strcasecmp   _stricmp
 
#define strncasecmp   _strnicmp
 

Functions

int __cdecl gettimeofday (struct timeval *p, struct timezone *z)
 

Macro Definition Documentation

◆ bcopy

#define bcopy (   s,
  d,
  l 
)    memcpy((d),(s),(l))

Definition at line 1 of file fake.h.

◆ bzero

#define bzero (   cp,
  l 
)    memset((cp),0,(l))

Definition at line 2 of file fake.h.

◆ getwd

#define getwd   getcwd

Definition at line 7 of file fake.h.

◆ index

typedef GLuint index   strchr

Definition at line 5 of file fake.h.

◆ rindex

#define rindex   strrchr

Definition at line 4 of file fake.h.

◆ strcasecmp

#define strcasecmp   _stricmp

Definition at line 9 of file fake.h.

◆ strncasecmp

#define strncasecmp   _strnicmp

Definition at line 10 of file fake.h.

Function Documentation

◆ gettimeofday()

int __cdecl gettimeofday ( struct timeval p,
struct timezone z 
)

Definition at line 308 of file fake.c.

309{
310 FILETIME ft;
312 __int64 t;
313 static int tzflag;
314
315 if (tv)
316 {
320 t = li.QuadPart; /* In 100-nanosecond intervals */
321 t -= EPOCHFILETIME; /* Offset to the Epoch time */
322 t /= 10; /* In microseconds */
323 tv->tv_sec = (long)(t / 1000000);
324 tv->tv_usec = (long)(t % 1000000);
325 }
326
327 if (tz)
328 {
329 if (!tzflag)
330 {
331 _tzset();
332 tzflag++;
333 }
334 tz->tz_minuteswest = _timezone / 60;
335 tz->tz_dsttime = _daylight;
336 }
337
338 return 0;
339}
#define __int64
Definition: basetyps.h:16
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
Definition: time.c:128
#define EPOCHFILETIME
Definition: fake.c:303
LARGE_INTEGER li
Definition: fxtimerapi.cpp:235
GLdouble GLdouble t
Definition: gl.h:2047
GLbyte GLbyte tz
Definition: glext.h:8756
#define long
Definition: qsort.c:33
_CRTIMP void __cdecl _tzset(void)
Definition: timezone.c:92
int _daylight
Definition: timezone.c:30
long _timezone
Definition: timezone.c:46
DWORD dwHighDateTime
Definition: mapidefs.h:66
DWORD dwLowDateTime
Definition: mapidefs.h:65
LONGLONG QuadPart
Definition: typedefs.h:114
ULONG LowPart
Definition: typedefs.h:106