Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

win32_compatibility.h File Reference

simple implementation of some functions not implemented in win32 origilly taken from www.mattdm.org/icebreaker/ More...

Go to the source code of this file.

Data Structures

struct  passwd
 the structure that contains user infos More...

struct  addrinfo
 missing winsock inet structure More...


Mingw32 missing types

#define uid_t   int
#define gid_t   int

Mingw32 missing functions

#define getuid()   1000
#define geteuid()   1000
#define usleep(s)   Sleep(s)
passwdgetpwuid (int id)
void bzero (char *s, int l)
char * index (const char *s, int i)

Defines

#define EINPROGRESS   WSAEWOULDBLOCK
#define snprintf(a, b, c...)
#define vsnprintf(a, b, c, d)

Functions

int win_snprintf (const char *c,...)
int win_vsnprintf (const char *format, va_list ap)


Detailed Description

simple implementation of some functions not implemented in win32 origilly taken from www.mattdm.org/icebreaker/

Author:
Enrico Tassi   <sorry guy>

Matthew Miller

Definition in file win32_compatibility.h.


Define Documentation

#define EINPROGRESS   WSAEWOULDBLOCK
 

Definition at line 61 of file win32_compatibility.h.

 
#define geteuid  )     1000
 

Definition at line 47 of file win32_compatibility.h.

 
#define getuid  )     1000
 

Definition at line 46 of file win32_compatibility.h.

#define gid_t   int
 

Definition at line 30 of file win32_compatibility.h.

#define snprintf a,
b,
c...   ) 
 

Value:

(__extension__                  \
                        ({                                      \
                        int __result;                           \
                        if ( a == NULL && b == 0)               \
                                __result = c99_snprintf(c);     \
                        else                                    \
                                __result = snprintf(a,b,c);     \
                        __result; }))

Definition at line 77 of file win32_compatibility.h.

#define uid_t   int
 

Definition at line 29 of file win32_compatibility.h.

#define usleep  )     Sleep(s)
 

Definition at line 58 of file win32_compatibility.h.

#define vsnprintf a,
b,
c,
 ) 
 

Value:

(__extension__                  \
                        ({                                      \
                        int __result;                           \
                        if ( a == NULL && b == 0)               \
                                __result = c99_vsnprintf(c,d);\
                        else                                    \
                                __result = vsnprintf(a,b,c,d);  \
                        __result; }))

Definition at line 86 of file win32_compatibility.h.


Function Documentation

void bzero char *  s,
int  l
 

struct passwd* getpwuid int  id  ) 
 

char* index const char *  s,
int  i
 

int win_snprintf const char *  c,
  ...
 

int win_vsnprintf const char *  format,
va_list  ap
 


Generated on Wed May 5 15:48:04 2004 for LiberoPOPs by doxygen 1.3.6-20040222