Commit 20e56bbc authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

Add g_lstat().

2004-10-31  Tor Lillqvist  <tml@iki.fi>

	* glib/gstdio.[ch]: Add g_lstat().
parent eb0b4db5
2004-10-31 Tor Lillqvist <tml@iki.fi>
* glib/gstdio.[ch]: Add g_lstat().
2004-10-29 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c: Doc additions.
......
2004-10-31 Tor Lillqvist <tml@iki.fi>
* glib/gstdio.[ch]: Add g_lstat().
2004-10-29 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c: Doc additions.
......
2004-10-31 Tor Lillqvist <tml@iki.fi>
* glib/gstdio.[ch]: Add g_lstat().
2004-10-29 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c: Doc additions.
......
2004-10-31 Tor Lillqvist <tml@iki.fi>
* glib/gstdio.[ch]: Add g_lstat().
2004-10-29 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c: Doc additions.
......
2004-10-31 Tor Lillqvist <tml@iki.fi>
* glib/gstdio.[ch]: Add g_lstat().
2004-10-29 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c: Doc additions.
......
......@@ -206,7 +206,7 @@ g_mkdir (const gchar *filename,
*
* See the C library manual for more details about stat().
*
* Returns: 0 if the directory was successfully created, -1 if an error
* Returns: 0 if the information was successfully retrieved, -1 if an error
* occurred
*
* Since: 2.6
......@@ -243,6 +243,36 @@ g_stat (const gchar *filename,
#endif
}
/**
* g_lstat:
* @filename: a pathname in the GLib file name encoding
* @buf: a pointer to a <structname>stat</structname> 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. On Windows where there are no symbolic links g_lstat()
* is identical to g_stat().
*
* See the C library manual for more details about lstat().
*
* Returns: 0 if the information was successfully retrieved, -1 if an error
* occurred
*
* Since: 2.6
*/
int
g_lstat (const gchar *filename,
struct stat *buf)
{
#ifdef G_OS_WIN32
return g_stat (filename, buf);
#else
return lstat (filename, buf);
#endif
}
/**
* g_unlink:
* @filename: a pathname in the GLib file name encoding
......
......@@ -47,6 +47,9 @@ int g_mkdir (const gchar *filename,
int g_stat (const gchar *filename,
struct stat *buf);
int g_lstat (const gchar *filename,
struct stat *buf);
int g_unlink (const gchar *filename);
int g_remove (const gchar *filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment