diff options
author | Nils Durner <durner@gnunet.org> | 2010-09-22 15:51:59 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2010-09-22 15:51:59 +0000 |
commit | c8e91d6c231ea84d077a2ecb804f3303008244f4 (patch) | |
tree | 4b60c9f1507d2581013ff35720ac4118c9573b7f /src | |
parent | 09f4e2ed03d6861b78033328670256b430bafbbd (diff) | |
download | gnunet-c8e91d6c231ea84d077a2ecb804f3303008244f4.tar.gz gnunet-c8e91d6c231ea84d077a2ecb804f3303008244f4.zip |
update
Diffstat (limited to 'src')
-rw-r--r-- | src/include/plibc.h | 15 |
1 files changed, 12 insertions, 3 deletions
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 @@ | |||
22 | * @brief PlibC header | 22 | * @brief PlibC header |
23 | * @attention This file is usually not installed under Unix, | 23 | * @attention This file is usually not installed under Unix, |
24 | * so ship it with your application | 24 | * so ship it with your application |
25 | * @version $Revision: 58 $ | 25 | * @version $Revision: 65 $ |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #ifndef _PLIBC_H_ | 28 | #ifndef _PLIBC_H_ |
@@ -109,6 +109,12 @@ struct sockaddr_un { | |||
109 | #define MSG_DONTWAIT 0 | 109 | #define MSG_DONTWAIT 0 |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | enum | ||
113 | { | ||
114 | _SC_PAGESIZE = 30, | ||
115 | _SC_PAGE_SIZE = 30 | ||
116 | }; | ||
117 | |||
112 | /* Thanks to the Cygwin project */ | 118 | /* Thanks to the Cygwin project */ |
113 | #define ENOCSI 43 /* No CSI structure available */ | 119 | #define ENOCSI 43 /* No CSI structure available */ |
114 | #define EL2HLT 44 /* Level 2 halted */ | 120 | #define EL2HLT 44 /* Level 2 halted */ |
@@ -390,6 +396,7 @@ int _win_remove(const char *path); | |||
390 | int _win_rename(const char *oldname, const char *newname); | 396 | int _win_rename(const char *oldname, const char *newname); |
391 | int _win_stat(const char *path, struct stat *buffer); | 397 | int _win_stat(const char *path, struct stat *buffer); |
392 | int _win_stat64(const char *path, struct stat64 *buffer); | 398 | int _win_stat64(const char *path, struct stat64 *buffer); |
399 | long _win_sysconf(int name); | ||
393 | int _win_unlink(const char *filename); | 400 | int _win_unlink(const char *filename); |
394 | int _win_write(int fildes, const void *buf, size_t nbyte); | 401 | int _win_write(int fildes, const void *buf, size_t nbyte); |
395 | int _win_read(int fildes, void *buf, size_t nbyte); | 402 | int _win_read(int fildes, void *buf, size_t nbyte); |
@@ -464,7 +471,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start); | |||
464 | #define DIR_SEPARATOR '/' | 471 | #define DIR_SEPARATOR '/' |
465 | #define DIR_SEPARATOR_STR "/" | 472 | #define DIR_SEPARATOR_STR "/" |
466 | #define PATH_SEPARATOR ';' | 473 | #define PATH_SEPARATOR ';' |
467 | #define PATH_SEPARATOR_STR ";" | 474 | #define PATH_SEPARATOR_STR ":" |
468 | #define NEWLINE "\n" | 475 | #define NEWLINE "\n" |
469 | 476 | ||
470 | #ifdef ENABLE_NLS | 477 | #ifdef ENABLE_NLS |
@@ -491,6 +498,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start); | |||
491 | #define RENAME(o, n) rename(o, n) | 498 | #define RENAME(o, n) rename(o, n) |
492 | #define STAT(p, b) stat(p, b) | 499 | #define STAT(p, b) stat(p, b) |
493 | #define STAT64(p, b) stat64(p, b) | 500 | #define STAT64(p, b) stat64(p, b) |
501 | #define SYSCONF(n) sysconf(n) | ||
494 | #define UNLINK(f) unlink(f) | 502 | #define UNLINK(f) unlink(f) |
495 | #define WRITE(f, b, n) write(f, b, n) | 503 | #define WRITE(f, b, n) write(f, b, n) |
496 | #define READ(f, b, n) read(f, b, n) | 504 | #define READ(f, b, n) read(f, b, n) |
@@ -557,7 +565,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start); | |||
557 | #define DIR_SEPARATOR '\\' | 565 | #define DIR_SEPARATOR '\\' |
558 | #define DIR_SEPARATOR_STR "\\" | 566 | #define DIR_SEPARATOR_STR "\\" |
559 | #define PATH_SEPARATOR ':' | 567 | #define PATH_SEPARATOR ':' |
560 | #define PATH_SEPARATOR_STR ":" | 568 | #define PATH_SEPARATOR_STR ";" |
561 | #define NEWLINE "\r\n" | 569 | #define NEWLINE "\r\n" |
562 | 570 | ||
563 | #ifdef ENABLE_NLS | 571 | #ifdef ENABLE_NLS |
@@ -585,6 +593,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start); | |||
585 | #define RENAME(o, n) _win_rename(o, n) | 593 | #define RENAME(o, n) _win_rename(o, n) |
586 | #define STAT(p, b) _win_stat(p, b) | 594 | #define STAT(p, b) _win_stat(p, b) |
587 | #define STAT64(p, b) _win_stat64(p, b) | 595 | #define STAT64(p, b) _win_stat64(p, b) |
596 | #define SYSCONF(n) _win_sysconf(n) | ||
588 | #define UNLINK(f) _win_unlink(f) | 597 | #define UNLINK(f) _win_unlink(f) |
589 | #define WRITE(f, b, n) _win_write(f, b, n) | 598 | #define WRITE(f, b, n) _win_write(f, b, n) |
590 | #define READ(f, b, n) _win_read(f, b, n) | 599 | #define READ(f, b, n) _win_read(f, b, n) |