unistd.c   unistd.c 
skipping to change at line 184 skipping to change at line 184
char* getlogin() char* getlogin()
{ {
/*! @todo make this reentrant!*/ /*! @todo make this reentrant!*/
size_t size = sizeof(getlogin_buf); size_t size = sizeof(getlogin_buf);
*getlogin_buf = 0; *getlogin_buf = 0;
if (!GetUserNameA(getlogin_buf, (LPDWORD)&size)) if (!GetUserNameA(getlogin_buf, (LPDWORD)&size))
return 0; return 0;
return getlogin_buf; return getlogin_buf;
} }
/*
//BM: Both of these functions cause a previous declaration error
//when building on Windows/MinGW.
void usleep(unsigned int usec) void usleep(unsigned int usec)
{ {
Sleep(usec/1000); Sleep(usec/1000);
} }
void sleep(unsigned int sec) void sleep(unsigned int sec)
{ {
Sleep(sec*1000); Sleep(sec*1000);
} }
*/
int setreuid(uid_t ruid, uid_t euid) int setreuid(uid_t ruid, uid_t euid)
{ {
/*! @todo */ /*! @todo */
return 0; return 0;
} }
/* this is based on code taken from the GNU libc, distributed under the LGP L license */ /* this is based on code taken from the GNU libc, distributed under the LGP L license */
/* Generate a unique temporary file name from TEMPLATE. /* Generate a unique temporary file name from TEMPLATE.
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/