Fix #151193, Stepan Kasal:

2004-08-27  Matthias Clasen  <mclasen@redhat.com>

	Fix #151193, Stepan Kasal:

	* glib/gfileutils.c (g_file_error_from_errno):
	* glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.
This commit is contained in:
Matthias Clasen
2004-08-27 14:57:34 +00:00
committed by Matthias Clasen
parent c8dfe75d22
commit 981fe434ee
9 changed files with 49 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2004-08-27 Matthias Clasen <mclasen@redhat.com>
Fix #151193, Stepan Kasal:
* glib/gfileutils.c (g_file_error_from_errno):
* glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.
Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de> Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c (g_option_context_parse): Set the program name * glib/goption.c (g_option_context_parse): Set the program name

View File

@@ -1,3 +1,10 @@
2004-08-27 Matthias Clasen <mclasen@redhat.com>
Fix #151193, Stepan Kasal:
* glib/gfileutils.c (g_file_error_from_errno):
* glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.
Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de> Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c (g_option_context_parse): Set the program name * glib/goption.c (g_option_context_parse): Set the program name

View File

@@ -1,3 +1,10 @@
2004-08-27 Matthias Clasen <mclasen@redhat.com>
Fix #151193, Stepan Kasal:
* glib/gfileutils.c (g_file_error_from_errno):
* glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.
Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de> Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c (g_option_context_parse): Set the program name * glib/goption.c (g_option_context_parse): Set the program name

View File

@@ -1,3 +1,10 @@
2004-08-27 Matthias Clasen <mclasen@redhat.com>
Fix #151193, Stepan Kasal:
* glib/gfileutils.c (g_file_error_from_errno):
* glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.
Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de> Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c (g_option_context_parse): Set the program name * glib/goption.c (g_option_context_parse): Set the program name

View File

@@ -1,3 +1,10 @@
2004-08-27 Matthias Clasen <mclasen@redhat.com>
Fix #151193, Stepan Kasal:
* glib/gfileutils.c (g_file_error_from_errno):
* glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.
Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de> Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c (g_option_context_parse): Set the program name * glib/goption.c (g_option_context_parse): Set the program name

View File

@@ -1,3 +1,7 @@
2004-08-27 Matthias Clasen <mclasen@redhat.com>
* glib/tmpl/fileutils.sgml: Add G_FILE_ERROR_NOSYS.
2004-08-25 Matthias Clasen <mclasen@redhat.com> 2004-08-25 Matthias Clasen <mclasen@redhat.com>
* === Released 2.5.2 === * === Released 2.5.2 ===

View File

@@ -93,6 +93,8 @@ differences in when a system will report a given error, etc.
@G_FILE_ERROR_PERM: Operation not permitted; only the owner of the @G_FILE_ERROR_PERM: Operation not permitted; only the owner of the
file (or other resource) or processes with special privileges can file (or other resource) or processes with special privileges can
perform the operation. perform the operation.
@G_FILE_ERROR_NOSYS: Function not implemented; this indicates that the
system is missing some functionality.
@G_FILE_ERROR_FAILED: Does not correspond to a UNIX error code; this @G_FILE_ERROR_FAILED: Does not correspond to a UNIX error code; this
is the standard "failed for unspecified reason" error code present in is the standard "failed for unspecified reason" error code present in
all #GError error code enumerations. Returned if no specific all #GError error code enumerations. Returned if no specific

View File

@@ -348,7 +348,13 @@ g_file_error_from_errno (gint err_no)
return G_FILE_ERROR_PERM; return G_FILE_ERROR_PERM;
break; break;
#endif #endif
#ifdef ENOSYS
case ENOSYS:
return G_FILE_ERROR_NOSYS;
break;
#endif
default: default:
return G_FILE_ERROR_FAILED; return G_FILE_ERROR_FAILED;
break; break;

View File

@@ -52,6 +52,7 @@ typedef enum
G_FILE_ERROR_INTR, G_FILE_ERROR_INTR,
G_FILE_ERROR_IO, G_FILE_ERROR_IO,
G_FILE_ERROR_PERM, G_FILE_ERROR_PERM,
G_FILE_ERROR_NOSYS,
G_FILE_ERROR_FAILED G_FILE_ERROR_FAILED
} GFileError; } GFileError;