openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glib-2.0/1_2.60.3-r0/glib-2.60.3/glib/gstdio.c
int g_mkdir(const gchar* filename, int mode)
{
#ifdef G_OS_WIN32
    wchar_t* wfilename = g_utf8_to_utf16(filename, -1, NULL, NULL, NULL);
    int retval;
    int save_errno;

    if (wfilename == NULL)
    {
        errno = EINVAL;
        return -1;
    }

    retval = _wmkdir(wfilename);
    save_errno = errno;

    g_free(wfilename);

    errno = save_errno;
    return retval;
#else
    return mkdir(filename, mode);
#endif
}
/**
 * g_mkdir:
 * @filename: (type filename): a pathname in the GLib file name encoding
 *     (UTF-8 on Windows)
 * @mode: permissions to use for the newly created directory
 *
 * A wrapper for the POSIX mkdir() function. The mkdir() function
 * attempts to create a directory with the given name and permissions.
 * The mode argument is ignored on Windows.
 *
 * See your C library manual for more details about mkdir().
 *
 * Returns: 0 if the directory was successfully created, -1 if an error
 *    occurred
 *
 * Since: 2.6
 */
@filename: (type filename): a pathname in the GLib file name encoding
(UTF-8 on Windows)
@mode: permissions to use for the newly created directory

A wrapper for the POSIX mkdir() function. The mkdir() function
attempts to create a directory with the given name and permissions.
The mode argument is ignored on Windows.

See your C library manual for more details about mkdir().

0 if the directory was successfully created, -1 if an error
occurred


@filename : ( type filename ) : a pathname in the GLib file name encoding ( UTF - 8 on Windows ) @mode : permissions to use for the newly created directory A wrapper for the POSIX mkdir () function . The mkdir () function attempts to create a directory with the given name and permissions . The mode argument is ignored on Windows . See your C library manual for more details about mkdir () . 0 if the directory was successfully created - 1 if an error occurred
int g_mkdir(const gchar* filename, int mode)
{
#ifdef G_OS_WIN32
    wchar_t* wfilename = g_utf8_to_utf16(filename, -1, NULL, NULL, NULL);
    int retval;
    int save_errno;
    if (wfilename == NULL)
    {
        errno = EINVAL;
        return -1;
    }
    retval = _wmkdir(wfilename);
    save_errno = errno;
    g_free(wfilename);
    errno = save_errno;
    return retval;
#else
    return mkdir(filename, mode);
#endif
}
int g_mkdir ( const gchar * filename , int mode ) { #ifdef G_OS_WIN32 wchar_t * wfilename = g_utf8_to_utf16 ( filename , -1 , NULL , NULL , NULL ) ; int retval ; int save_errno ; if ( wfilename == NULL ) { errno = EINVAL ; return -1 ; } retval = _wmkdir ( wfilename ) ; save_errno = errno ; g_free ( wfilename ) ; errno = save_errno ; return retval ; #else return mkdir ( filename , mode ) ; #endif }
g_mkdir:
 @filename: (type filename): a pathname in the GLib file name encoding
     (UTF-8 on Windows)
 @mode: permissions to use for the newly created directory
g_mkdir : @filename : ( type filename ) : a pathname in the GLib file name encoding ( UTF - 8 on Windows ) @mode : permissions to use for the newly created directory