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_unlink(const gchar* filename)
{
#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 = _wunlink(wfilename);
    save_errno = errno;

    g_free(wfilename);

    errno = save_errno;
    return retval;
#else
    return unlink(filename);
#endif
}
/**
 * g_unlink:
 * @filename: (type filename): a pathname in the GLib file name encoding
 *     (UTF-8 on Windows)
 *
 * A wrapper for the POSIX unlink() function. The unlink() function
 * deletes a name from the filesystem. If this was the last link to the
 * file and no processes have it opened, the diskspace occupied by the
 * file is freed.
 *
 * See your C library manual for more details about unlink(). Note
 * that on Windows, it is in general not possible to delete files that
 * are open to some process, or mapped into memory.
 *
 * Returns: 0 if the name was successfully deleted, -1 if an error
 *    occurred
 *
 * Since: 2.6
 */
@filename: (type filename): a pathname in the GLib file name encoding
(UTF-8 on Windows)

A wrapper for the POSIX unlink() function. The unlink() function
deletes a name from the filesystem. If this was the last link to the
file and no processes have it opened, the diskspace occupied by the
file is freed.

See your C library manual for more details about unlink(). Note
that on Windows, it is in general not possible to delete files that
are open to some process, or mapped into memory.

0 if the name was successfully deleted, -1 if an error
occurred


@filename : ( type filename ) : a pathname in the GLib file name encoding ( UTF - 8 on Windows ) A wrapper for the POSIX unlink () function . The unlink () function deletes a name from the filesystem . If this was the last link to the file and no processes have it opened the diskspace occupied by the file is freed . See your C library manual for more details about unlink () . Note that on Windows it is in general not possible to delete files that are open to some process or mapped into memory . 0 if the name was successfully deleted - 1 if an error occurred
int g_unlink(const gchar* filename)
{
#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 = _wunlink(wfilename);
    save_errno = errno;
    g_free(wfilename);
    errno = save_errno;
    return retval;
#else
    return unlink(filename);
#endif
}
int g_unlink ( const gchar * filename ) { #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 = _wunlink ( wfilename ) ; save_errno = errno ; g_free ( wfilename ) ; errno = save_errno ; return retval ; #else return unlink ( filename ) ; #endif }
g_unlink:
 @filename: (type filename): a pathname in the GLib file name encoding
     (UTF-8 on Windows)
g_unlink : @filename : ( type filename ) : a pathname in the GLib file name encoding ( UTF - 8 on Windows )