Name
Windows Compatability Functions --
Details
pipe()
#define pipe(phandles) _pipe (phandles, 4096, _O_BINARY) |
ftruncate()
# define ftruncate(fd, size) g_win32_ftruncate (fd, size) |
opendir
# define opendir g_win32_opendir |
readdir
# define readdir g_win32_readdir |
rewinddir
# define rewinddir g_win32_rewinddir |
closedir
# define closedir g_win32_closedir |
g_win32_error_message ()
Translate a Win32 error code (as returned by GetLastError()) into
the corresponding message. The message is either language neutral,
or in the thread's language, or the user's language, the system's
langauge, or US English (see docs for FormatMessage). The returned
string should be deallocated with g_free().
g_win32_getlocale ()
gchar* g_win32_getlocale (void); |
The setlocale in the Microsoft C library uses locale names of the
form "English_United States.1252" etc. We want the Unixish standard
form "en", "zh_TW" etc. This function gets the current thread
locale from Windows and returns it as a string of the above form
for use in forming file names etc. The returned string should be
deallocated with g_free().