Fix #151193, Stepan Kasal:
authorMatthias Clasen <mclasen@redhat.com>
Fri, 27 Aug 2004 14:57:34 +0000 (14:57 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 27 Aug 2004 14:57:34 +0000 (14:57 +0000)
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.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/ChangeLog
docs/reference/glib/tmpl/fileutils.sgml
glib/gfileutils.c
glib/gfileutils.h

index 70558801d1ff81e197f54aaff6cbb5ec7df31694..c4fe5544894f4126db124bfa99d86d3b5c443112 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * glib/goption.c (g_option_context_parse): Set the program name
index 70558801d1ff81e197f54aaff6cbb5ec7df31694..c4fe5544894f4126db124bfa99d86d3b5c443112 100644 (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>
 
        * glib/goption.c (g_option_context_parse): Set the program name
index 70558801d1ff81e197f54aaff6cbb5ec7df31694..c4fe5544894f4126db124bfa99d86d3b5c443112 100644 (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>
 
        * glib/goption.c (g_option_context_parse): Set the program name
index 70558801d1ff81e197f54aaff6cbb5ec7df31694..c4fe5544894f4126db124bfa99d86d3b5c443112 100644 (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>
 
        * glib/goption.c (g_option_context_parse): Set the program name
index 70558801d1ff81e197f54aaff6cbb5ec7df31694..c4fe5544894f4126db124bfa99d86d3b5c443112 100644 (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>
 
        * glib/goption.c (g_option_context_parse): Set the program name
index c77c05a6f7232f14383744770ebc76b16cdf849f..3e77f7efca68664fb81ff18e56fbddf61b198ec7 100644 (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>
 
        * === Released 2.5.2 ===
index d303782506bf01aca0848129f20aef5cb2264337..d0780e7ac6c6deb91b4785f637f64aaff3a4c16b 100644 (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
      file (or other resource) or processes with special privileges can
      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
   is the standard "failed for unspecified reason" error code present in 
   all #GError error code enumerations. Returned if no specific
index 05e4f3624d0e51dc16361177d6302613c83da0a9..061b3214e49af94dca60630a71b9cae6a15319e4 100644 (file)
@@ -348,7 +348,13 @@ g_file_error_from_errno (gint err_no)
       return G_FILE_ERROR_PERM;
       break;
 #endif
-      
+
+#ifdef ENOSYS
+    case ENOSYS:
+      return G_FILE_ERROR_NOSYS;
+      break;
+#endif
+
     default:
       return G_FILE_ERROR_FAILED;
       break;
index e6d12f27651b56a8fcde0aca77afcb2d4cddd78b..939d5459f3747c9b8bc8cb434f25b68588babc28 100644 (file)
@@ -52,6 +52,7 @@ typedef enum
   G_FILE_ERROR_INTR,
   G_FILE_ERROR_IO,
   G_FILE_ERROR_PERM,
+  G_FILE_ERROR_NOSYS,
   G_FILE_ERROR_FAILED
 } GFileError;