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_lstat(const gchar* filename, GStatBuf* buf)
{
#ifdef HAVE_LSTAT
    /* This can't be Win32, so don't do the widechar dance. */
    return lstat(filename, buf);
#elif defined(G_OS_WIN32)
    GWin32PrivateStat w32_buf;
    int retval = g_win32_lstat_utf8(filename, &w32_buf);

    buf->st_dev = w32_buf.st_dev;
    buf->st_ino = w32_buf.st_ino;
    buf->st_mode = w32_buf.st_mode;
    buf->st_nlink = w32_buf.st_nlink;
    buf->st_uid = w32_buf.st_uid;
    buf->st_gid = w32_buf.st_gid;
    buf->st_rdev = w32_buf.st_dev;
    buf->st_size = w32_buf.st_size;
    buf->st_atime = w32_buf.st_atime;
    buf->st_mtime = w32_buf.st_mtime;
    buf->st_ctime = w32_buf.st_ctime;

    return retval;
#else
    return g_stat(filename, buf);
#endif
}
/**
 * g_lstat:
 * @filename: (type filename): a pathname in the GLib file name encoding
 *     (UTF-8 on Windows)
 * @buf: a pointer to a stat struct, which will be filled with the file
 *     information
 *
 * A wrapper for the POSIX lstat() function. The lstat() function is
 * like stat() except that in the case of symbolic links, it returns
 * information about the symbolic link itself and not the file that it
 * refers to. If the system does not support symbolic links g_lstat()
 * is identical to g_stat().
 *
 * See your C library manual for more details about lstat().
 *
 * Returns: 0 if the information was successfully retrieved,
 *     -1 if an error occurred
 *
 * Since: 2.6
 */
@filename: (type filename): a pathname in the GLib file name encoding
(UTF-8 on Windows)
@buf: a pointer to a stat struct, which will be filled with the file
information

A wrapper for the POSIX lstat() function. The lstat() function is
like stat() except that in the case of symbolic links, it returns
information about the symbolic link itself and not the file that it
refers to. If the system does not support symbolic links g_lstat()
is identical to g_stat().

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

0 if the information was successfully retrieved,
-1 if an error occurred


@filename : ( type filename ) : a pathname in the GLib file name encoding ( UTF - 8 on Windows ) @buf : a pointer to a stat struct which will be filled with the file information A wrapper for the POSIX lstat () function . The lstat () function is like stat () except that in the case of symbolic links it returns information about the symbolic link itself and not the file that it refers to . If the system does not support symbolic links g_lstat () is identical to g_stat () . See your C library manual for more details about lstat () . 0 if the information was successfully retrieved - 1 if an error occurred
int g_lstat(const gchar* filename, GStatBuf* buf)
{
#ifdef HAVE_LSTAT
    return lstat(filename, buf);
#elif defined(G_OS_WIN32)
    GWin32PrivateStat w32_buf;
    int retval = g_win32_lstat_utf8(filename, &w32_buf);
    buf->st_dev = w32_buf.st_dev;
    buf->st_ino = w32_buf.st_ino;
    buf->st_mode = w32_buf.st_mode;
    buf->st_nlink = w32_buf.st_nlink;
    buf->st_uid = w32_buf.st_uid;
    buf->st_gid = w32_buf.st_gid;
    buf->st_rdev = w32_buf.st_dev;
    buf->st_size = w32_buf.st_size;
    buf->st_atime = w32_buf.st_atime;
    buf->st_mtime = w32_buf.st_mtime;
    buf->st_ctime = w32_buf.st_ctime;
    return retval;
#else
    return g_stat(filename, buf);
#endif
}
int g_lstat ( const gchar * filename , GStatBuf * buf ) { #ifdef HAVE_LSTAT return lstat ( filename , buf ) ; #elif defined ( G_OS_WIN32 ) GWin32PrivateStat w32_buf ; int retval = g_win32_lstat_utf8 ( filename , & w32_buf ) ; buf -> st_dev = w32_buf . st_dev ; buf -> st_ino = w32_buf . st_ino ; buf -> st_mode = w32_buf . st_mode ; buf -> st_nlink = w32_buf . st_nlink ; buf -> st_uid = w32_buf . st_uid ; buf -> st_gid = w32_buf . st_gid ; buf -> st_rdev = w32_buf . st_dev ; buf -> st_size = w32_buf . st_size ; buf -> st_atime = w32_buf . st_atime ; buf -> st_mtime = w32_buf . st_mtime ; buf -> st_ctime = w32_buf . st_ctime ; return retval ; #else return g_stat ( filename , buf ) ; #endif }
g_lstat:
 @filename: (type filename): a pathname in the GLib file name encoding
     (UTF-8 on Windows)
 @buf: a pointer to a stat struct, which will be filled with the file
     information
g_lstat : @filename : ( type filename ) : a pathname in the GLib file name encoding ( UTF - 8 on Windows ) @buf : a pointer to a stat struct which will be filled with the file information
/* This can't be Win32, so don't do the widechar dance. */