From: Nils Durner Date: Wed, 22 Sep 2010 15:51:59 +0000 (+0000) Subject: update X-Git-Tag: initial-import-from-subversion-38251~20268 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c8e91d6c231ea84d077a2ecb804f3303008244f4;p=oweals%2Fgnunet.git update --- diff --git a/src/include/plibc.h b/src/include/plibc.h index 60d5778b2..c348d5d04 100644 --- a/src/include/plibc.h +++ b/src/include/plibc.h @@ -22,7 +22,7 @@ * @brief PlibC header * @attention This file is usually not installed under Unix, * so ship it with your application - * @version $Revision: 58 $ + * @version $Revision: 65 $ */ #ifndef _PLIBC_H_ @@ -109,6 +109,12 @@ struct sockaddr_un { #define MSG_DONTWAIT 0 #endif +enum +{ + _SC_PAGESIZE = 30, + _SC_PAGE_SIZE = 30 +}; + /* Thanks to the Cygwin project */ #define ENOCSI 43 /* No CSI structure available */ #define EL2HLT 44 /* Level 2 halted */ @@ -390,6 +396,7 @@ int _win_remove(const char *path); int _win_rename(const char *oldname, const char *newname); int _win_stat(const char *path, struct stat *buffer); int _win_stat64(const char *path, struct stat64 *buffer); +long _win_sysconf(int name); int _win_unlink(const char *filename); int _win_write(int fildes, const void *buf, size_t nbyte); int _win_read(int fildes, void *buf, size_t nbyte); @@ -464,7 +471,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start); #define DIR_SEPARATOR '/' #define DIR_SEPARATOR_STR "/" #define PATH_SEPARATOR ';' - #define PATH_SEPARATOR_STR ";" + #define PATH_SEPARATOR_STR ":" #define NEWLINE "\n" #ifdef ENABLE_NLS @@ -491,6 +498,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start); #define RENAME(o, n) rename(o, n) #define STAT(p, b) stat(p, b) #define STAT64(p, b) stat64(p, b) + #define SYSCONF(n) sysconf(n) #define UNLINK(f) unlink(f) #define WRITE(f, b, n) write(f, b, n) #define READ(f, b, n) read(f, b, n) @@ -557,7 +565,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start); #define DIR_SEPARATOR '\\' #define DIR_SEPARATOR_STR "\\" #define PATH_SEPARATOR ':' - #define PATH_SEPARATOR_STR ":" + #define PATH_SEPARATOR_STR ";" #define NEWLINE "\r\n" #ifdef ENABLE_NLS @@ -585,6 +593,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start); #define RENAME(o, n) _win_rename(o, n) #define STAT(p, b) _win_stat(p, b) #define STAT64(p, b) _win_stat64(p, b) + #define SYSCONF(n) _win_sysconf(n) #define UNLINK(f) _win_unlink(f) #define WRITE(f, b, n) _win_write(f, b, n) #define READ(f, b, n) _win_read(f, b, n)