[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1512 - gnunet-gtk/src/include
From: |
durner |
Subject: |
[GNUnet-SVN] r1512 - gnunet-gtk/src/include |
Date: |
Thu, 14 Jul 2005 04:13:31 -0700 (PDT) |
Author: durner
Date: 2005-07-14 04:13:29 -0700 (Thu, 14 Jul 2005)
New Revision: 1512
Modified:
gnunet-gtk/src/include/plibc.h
Log:
update
Modified: gnunet-gtk/src/include/plibc.h
===================================================================
--- gnunet-gtk/src/include/plibc.h 2005-07-14 11:13:12 UTC (rev 1511)
+++ gnunet-gtk/src/include/plibc.h 2005-07-14 11:13:29 UTC (rev 1512)
@@ -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.19 $
+ * @version $Revision: 1.24 $
*/
#ifndef _PLIBC_H_
@@ -43,6 +43,7 @@
#ifdef WINDOWS
#include <windows.h>
+#include <Ws2tcpip.h>
#include <time.h>
#include <stdio.h>
#include <sys/types.h>
@@ -62,11 +63,21 @@
#define socklen_t int
#define ssize_t int
+#ifndef HAVE_FTRUNCATE
#define ftruncate chsize
+#endif
#define off_t int
#define int64_t long long
#define int32_t long
+#ifndef pid_t
+ #define pid_t int
+#endif
+
+#ifndef WEXITSTATUS
+ #define WEXITSTATUS(status) (((status) & 0xff00) >> 8)
+#endif
+
/* Thanks to the Cygwin project */
#define ENOCSI 43 /* No CSI structure available */
#define EL2HLT 44 /* Level 2 halted */
@@ -327,6 +338,7 @@
int _win_access( const char *path, int mode );
int _win_chmod(const char *filename, int pmode);
char *realpath(const char *file_name, char *resolved_name);
+long _win_random(void);
int _win_remove(const char *path);
int _win_rename(const char *oldname, const char *newname);
int _win_stat(const char *path, struct stat *buffer);
@@ -356,6 +368,7 @@
int _win_vscanf(const char *format, va_list arg_ptr);
int _win_scanf(const char *format, ...);
int _win_fscanf(FILE *stream, const char *format, ...);
+pid_t _win_waitpid(pid_t pid, int *stat_loc, int options);
int _win_bind(SOCKET s, const struct sockaddr *name, int namelen);
int _win_connect(SOCKET s,const struct sockaddr *name, int namelen);
int _win_getpeername(SOCKET s, struct sockaddr *name,
@@ -423,6 +436,7 @@
#define MMAP(s, l, p, f, d, o) mmap(s, l, p, f, d, o)
#define MUNMAP(s, l) munmap(s, l)
#define STRERROR(i) strerror(i)
+ #define RANDOM() random()
#define READLINK(p, b, s) readlink(p, b, s)
#define LSTAT(p, b) lstat(p, b)
#define PRINTF(f, ...) printf(f , __VA_ARGS__)
@@ -439,6 +453,7 @@
#define VSCANF(f, a) vscanf(f, a)
#define SCANF(f, ...) scanf(f, __VA_ARGS__)
#define FSCANF(s, f, ...) fscanf(s, f, __VA_ARGS__)
+ #define WAITPID(p, s, o) waitpid(p, s, o)
#define ACCEPT(s, a, l) accept(s, a, l)
#define BIND(s, n, l) bind(s, n, l)
#define CONNECT(s, n, l) connect(s, n, l)
@@ -475,6 +490,7 @@
#define ACCESS(p, m) _win_access(p, m)
#define CHMOD(f, p) _win_chmod(f, p)
#define PIPE(h) _win_pipe(h)
+ #define RANDOM() _win_random()
#define REMOVE(p) _win_remove(p)
#define RENAME(o, n) _win_rename(o, n)
#define STAT(p, b) _win_stat(p, b)
@@ -503,6 +519,7 @@
#define VSCANF(f, a) _win_vscanf(f, a)
#define SCANF(f, ...) _win_scanf(f, __VA_ARGS__)
#define FSCANF(s, f, ...) _win_fscanf(s, f, __VA_ARGS__)
+ #define WAITPID(p, s, o) _win_waitpid(p, s, o)
#define ACCEPT(s, a, l) _win_accept(s, a, l)
#define BIND(s, n, l) _win_bind(s, n, l)
#define CONNECT(s, n, l) _win_connect(s, n, l)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1512 - gnunet-gtk/src/include,
durner <=