gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r866 - Extractor/src/include


From: durner
Subject: [GNUnet-SVN] r866 - Extractor/src/include
Date: Sat, 4 Jun 2005 06:35:05 -0700 (PDT)

Author: durner
Date: 2005-06-04 06:35:02 -0700 (Sat, 04 Jun 2005)
New Revision: 866

Modified:
   Extractor/src/include/plibc.h
Log:
- new plibc.h

Modified: Extractor/src/include/plibc.h
===================================================================
--- Extractor/src/include/plibc.h       2005-06-04 13:33:24 UTC (rev 865)
+++ Extractor/src/include/plibc.h       2005-06-04 13:35:02 UTC (rev 866)
@@ -22,7 +22,7 @@
  * @brief PlibC header
  * @attention This file is usually not installed under Unix,
  *            so ship it with your application
- * @version $Revision: 1.16 $
+ * @version $Revision: 1.17 $
  */
 
 #ifndef _PLIBC_H_
@@ -48,6 +48,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <dirent.h>
+#include <errno.h>
 
 #define __BYTE_ORDER BYTE_ORDER
 #define __BIG_ENDIAN BIG_ENDIAN
@@ -111,18 +112,21 @@
 #define EUNATCH 42     /* Protocol driver not attached */
 #define ENOCSI 43      /* No CSI structure available */
 #define EL2HLT 44      /* Level 2 halted */
-#undef  EDEADLK
-#define EDEADLK 45     /* Deadlock condition */
-#undef  ENOLCK
-#define ENOLCK 46      /* No record locks available */
+#ifndef  EDEADLK
+       #define EDEADLK 45      /* Deadlock condition */
+#endif
+#ifndef  ENOLCK
+       #define ENOLCK 46       /* No record locks available */
+#endif
 #define EBADE 50       /* Invalid exchange */
 #define EBADR 51       /* Invalid request descriptor */
 #define EXFULL 52      /* Exchange full */
 #define ENOANO 53      /* No anode */
 #define EBADRQC 54     /* Invalid request code */
 #define EBADSLT 55     /* Invalid slot */
-#undef  EDEADLOCK
-#define EDEADLOCK 56   /* File locking deadlock error */
+#ifndef  EDEADLOCK
+       #define EDEADLOCK 56    /* File locking deadlock error */
+#endif
 #define EBFONT 57      /* Bad font file fmt */
 #define ENOSTR 60      /* Device not a stream */
 #define ENODATA 61     /* No data (for no delay io) */
@@ -148,13 +152,16 @@
 #define ELIBSCN 85     /* .lib section in a.out corrupted */
 #define ELIBMAX 86     /* Attempting to link in too many libs */
 #define ELIBEXEC 87    /* Attempting to exec a shared library */
-#undef  ENOSYS
-#define ENOSYS 88      /* Function not implemented */
+#ifndef  ENOSYS
+       #define ENOSYS 88       /* Function not implemented */
+#endif
 #define ENMFILE 89      /* No more files */
-#undef  ENOTEMPTY
-#define ENOTEMPTY 90   /* Directory not empty */
-#undef  ENAMETOOLONG
-#define ENAMETOOLONG 91        /* File or path name too long */
+#ifndef  ENOTEMPTY
+       #define ENOTEMPTY 90    /* Directory not empty */
+#endif
+#ifndef  ENAMETOOLONG
+       #define ENAMETOOLONG 91 /* File or path name too long */
+#endif
 #define ELOOP 92       /* Too many symbolic links */
 #define EOPNOTSUPP 95  /* Operation not supported on transport endpoint */
 #define EPFNOSUPPORT 96 /* Protocol family not supported */
@@ -170,8 +177,9 @@
 #define ECONNABORTED 113       /* Connection aborted */
 #define ENETUNREACH 114                /* Network is unreachable */
 #define ENETDOWN 115           /* Network interface is not configured */
-#undef  ETIMEDOUT
-#define ETIMEDOUT 116          /* Connection timed out */
+#ifndef  ETIMEDOUT
+       #define ETIMEDOUT 116           /* Connection timed out */
+#endif
 #define EHOSTDOWN 117          /* Host is down */
 #define EHOSTUNREACH 118       /* Host is unreachable */
 #define EINPROGRESS 119                /* Connection already in progress */
@@ -189,8 +197,9 @@
 #define EUSERS 131                     /* Too many users */
 #define EDQUOT 132                     /* Disk quota exceeded */
 #define ESTALE 133          /* Unknown error */
-#undef  ENOTSUP
-#define ENOTSUP 134                /* Not supported */
+#ifndef  ENOTSUP
+       #define ENOTSUP 134                 /* Not supported */
+#endif
 #define ENOMEDIUM 135       /* No medium (in tape drive) */
 #define ENOSHARE 136        /* No such host or network path */
 #define ECASECLASH 137      /* Filename exists with different case */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]