ReactOS  0.4.12-dev-14-gd0c8636
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.

Referenced by FTPGetLocalCWD().

◆ 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

◆ strncasecmp

Function Documentation

◆ gettimeofday()

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

Definition at line 308 of file fake.c.

309 {
310  FILETIME ft;
311  LARGE_INTEGER li;
312  __int64 t;
313  static int tzflag;
314 
315  if (tv)
316  {
318  li.LowPart = ft.dwLowDateTime;
319  li.HighPart = ft.dwHighDateTime;
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 }
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
Definition: time.c:128
_CRTIMP void __cdecl _tzset(void)
Definition: timezone.c:92
GLdouble GLdouble t
Definition: gl.h:2047
DWORD dwHighDateTime
Definition: mapidefs.h:66
unsigned long
Definition: typeof.h:99
int _daylight
Definition: timezone.c:30
ULONG LowPart
Definition: typedefs.h:104
long _timezone
Definition: timezone.c:46
GLbyte GLbyte tz
Definition: glext.h:8756
#define EPOCHFILETIME
Definition: fake.c:303
DWORD dwLowDateTime
Definition: mapidefs.h:65
#define __int64
Definition: basetyps.h:16
LONGLONG QuadPart
Definition: typedefs.h:112