mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58:54 +02:00
docs
2001-04-16 Havoc Pennington <hp@redhat.com> * gqsort.c: docs * gfileutils.c: docs * gwin32.c: docs fixes * gconvert.c: docs * guniprop.c: docs * gutf8.c: docs
This commit is contained in:
committed by
Havoc Pennington
parent
cc3956413d
commit
4eab875811
19
gfileutils.c
19
gfileutils.c
@@ -117,10 +117,25 @@ g_file_error_quark (void)
|
||||
return q;
|
||||
}
|
||||
|
||||
/**
|
||||
* g_file_error_from_errno:
|
||||
* @err_no: an "errno" value
|
||||
*
|
||||
* Gets a #GFileError constant based on the passed-in errno.
|
||||
* For example, if you pass in EEXIST this function returns
|
||||
* #G_FILE_ERROR_EXIST. Unlike errno values, you can portably
|
||||
* assume that all #GFileError values will exist.
|
||||
*
|
||||
* Normally a #GFileError value goes into a #GError returned
|
||||
* from a function that manipulates files. So you would use
|
||||
* g_file_error_from_errno() when constructing a #GError.
|
||||
*
|
||||
* Return value: #GFileError corresponding to the given errno
|
||||
**/
|
||||
GFileError
|
||||
g_file_error_from_errno (gint en)
|
||||
g_file_error_from_errno (gint err_no)
|
||||
{
|
||||
switch (en)
|
||||
switch (err_no)
|
||||
{
|
||||
#ifdef EEXIST
|
||||
case EEXIST:
|
||||
|
Reference in New Issue
Block a user