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 functions

#define getuid()   1000
#define geteuid()   1000
#define usleep(s)   Sleep(s)
struct 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)
#define inet_aton(a, b)   inet_aton_w32(a,b)
Mingw32 missing types
#define uid_t   int
#define gid_t   int

Functions

int win_snprintf (const char *c,...)
int win_vsnprintf (const char *format, va_list ap)
int inet_aton_w32 (const char *cp, struct in_addr *inp)


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 inet_aton ( a,
 )     inet_aton_w32(a,b)

Definition at line 95 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  )  [read]

char* index ( const char *  s,
int  i 
)

int inet_aton_w32 ( const char *  cp,
struct in_addr *  inp 
)

int win_snprintf ( const char *  c,
  ... 
)

int win_vsnprintf ( const char *  format,
va_list  ap 
)


Generated on Sat Nov 1 15:55:53 2008 for FreePOPs by  doxygen 1.5.6