aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2015-04-09 17:24:45 +0000
committerLRN <lrn1986@gmail.com>2015-04-09 17:24:45 +0000
commitb21d33635d68f9aa8ade7324551e0cc718b9b7ba (patch)
tree0a39a8db6f919b5e38c49c4f510fe2821b75fb39 /src/include
parentfaa8954427b1ff75de00711c127afb8072bad709 (diff)
downloadgnunet-b21d33635d68f9aa8ade7324551e0cc718b9b7ba.tar.gz
gnunet-b21d33635d68f9aa8ade7324551e0cc718b9b7ba.zip
Update bundled plibc header (don't redef S_I* constants), fix mkfifo prototype
Diffstat (limited to 'src/include')
-rw-r--r--src/include/plibc.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/include/plibc.h b/src/include/plibc.h
index 244b3c80a..6ca0bee2f 100644
--- a/src/include/plibc.h
+++ b/src/include/plibc.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of PlibC. 2 This file is part of PlibC.
3 Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Nils Durner (and other contributing authors) 3 (C) 2005, 2006, 2007, 2008, 2009, 2010 Nils Durner (and other contributing authors)
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
@@ -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$ 25 * @version $Revision: 156 $
26 */ 26 */
27 27
28#ifndef _PLIBC_H_ 28#ifndef _PLIBC_H_
@@ -425,17 +425,39 @@ struct statfs
425#define LOCK_UN 8 /* remove lock */ 425#define LOCK_UN 8 /* remove lock */
426 426
427/* Not supported under MinGW */ 427/* Not supported under MinGW */
428#ifndef S_IRGRP
428#define S_IRGRP 0 429#define S_IRGRP 0
430#endif
431#ifndef S_IWGRP
429#define S_IWGRP 0 432#define S_IWGRP 0
433#endif
434#ifndef S_IROTH
430#define S_IROTH 0 435#define S_IROTH 0
436#endif
437#ifndef S_IXGRP
431#define S_IXGRP 0 438#define S_IXGRP 0
439#endif
440#ifndef S_IWOTH
432#define S_IWOTH 0 441#define S_IWOTH 0
442#endif
443#ifndef S_IXOTH
433#define S_IXOTH 0 444#define S_IXOTH 0
445#endif
446#ifndef S_ISUID
434#define S_ISUID 0 447#define S_ISUID 0
448#endif
449#ifndef S_ISGID
435#define S_ISGID 0 450#define S_ISGID 0
451#endif
452#ifndef S_ISVTX
436#define S_ISVTX 0 453#define S_ISVTX 0
454#endif
455#ifndef S_IRWXG
437#define S_IRWXG 0 456#define S_IRWXG 0
457#endif
458#ifndef S_IRWXO
438#define S_IRWXO 0 459#define S_IRWXO 0
460#endif
439 461
440#define SHUT_WR SD_SEND 462#define SHUT_WR SD_SEND
441#define SHUT_RD SD_RECEIVE 463#define SHUT_RD SD_RECEIVE
@@ -522,7 +544,7 @@ int _win_ftruncate(int fildes, off_t length);
522int _win_truncate(const char *fname, int distance); 544int _win_truncate(const char *fname, int distance);
523int _win_kill(pid_t pid, int sig); 545int _win_kill(pid_t pid, int sig);
524int _win_pipe(int *phandles); 546int _win_pipe(int *phandles);
525intptr_t _win_mkfifo(const char *path, mode_t mode); 547int _win_mkfifo(const char *path, mode_t mode);
526int _win_rmdir(const char *path); 548int _win_rmdir(const char *path);
527int _win_access( const char *path, int mode ); 549int _win_access( const char *path, int mode );
528int _win_chmod(const char *filename, int pmode); 550int _win_chmod(const char *filename, int pmode);