[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r715 - GNUnet/src/include
From: |
durner |
Subject: |
[GNUnet-SVN] r715 - GNUnet/src/include |
Date: |
Sun, 1 May 2005 06:29:49 -0700 (PDT) |
Author: durner
Date: 2005-05-01 06:29:42 -0700 (Sun, 01 May 2005)
New Revision: 715
Modified:
GNUnet/src/include/plibc.h
Log:
Update PlibC
Modified: GNUnet/src/include/plibc.h
===================================================================
--- GNUnet/src/include/plibc.h 2005-05-01 13:28:48 UTC (rev 714)
+++ GNUnet/src/include/plibc.h 2005-05-01 13:29:42 UTC (rev 715)
@@ -22,6 +22,7 @@
* @brief PlibC header
* @attention This file is usually not installed under Unix,
* so ship it with your application
+ * @version $Revision: 1.12 $
*/
#ifndef _PLIBC_H_
@@ -62,6 +63,8 @@
#define ssize_t int
#define ftruncate chsize
#define off_t int
+#define int64_t long long
+#define int32_t long
/* Thanks to the Cygwin project */
#define EPERM 1 /* Not super-user */
@@ -205,6 +208,7 @@
#define PROT_READ 0x1
#define PROT_WRITE 0x2
#define MAP_SHARED 0x1
+#define MAP_PRIVATE 0x2 /* unsupported */
#define MAP_FIXED 0x10
struct statfs
@@ -326,6 +330,8 @@
void gettimeofday(struct timeval *tp, void *tzp);
int mkstemp(char *tmplate);
char *strptime (const char *buf, const char *format, struct tm *tm);
+char *ctime(const time_t *clock);
+char *ctime_r(const time_t *clock, char *buf);
int plibc_init(char *pszOrg, char *pszApp);
void plibc_shutdown();
int plibc_conv_to_win_path_ex(const char *pszUnix, char *pszWindows, int
derefLinks);
@@ -399,6 +405,13 @@
char *_win_strerror(int errnum);
int IsWinNT();
+#if !HAVE_STRNDUP
+char *strndup (const char *s, size_t n);
+#endif
+#if !HAVE_STRNLEN
+size_t strnlen (const char *str, size_t maxlen);
+#endif
+
#endif /* WINDOWS */
#ifndef WINDOWS
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r715 - GNUnet/src/include,
durner <=