diff options
Diffstat (limited to 'src/include/plibc.h')
-rw-r--r-- | src/include/plibc.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/src/include/plibc.h b/src/include/plibc.h index bb1a4c8..b00982a 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 | (C) 2005, 2006, 2007, 2008, 2009 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: 53 $ | 25 | * @version $Revision: 56 $ |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #ifndef _PLIBC_H_ | 28 | #ifndef _PLIBC_H_ |
@@ -73,8 +73,6 @@ extern "C" { | |||
73 | #define socklen_t int | 73 | #define socklen_t int |
74 | #define ssize_t int | 74 | #define ssize_t int |
75 | #define off_t int | 75 | #define off_t int |
76 | #define int64_t long long | ||
77 | #define int32_t long | ||
78 | 76 | ||
79 | struct stat64 | 77 | struct stat64 |
80 | { | 78 | { |
@@ -329,9 +327,9 @@ char *plibc_ChooseFile(char *pszTitle, unsigned long ulFlags); | |||
329 | long QueryRegistry(HKEY hMainKey, char *pszKey, char *pszSubKey, | 327 | long QueryRegistry(HKEY hMainKey, char *pszKey, char *pszSubKey, |
330 | char *pszBuffer, long *pdLength); | 328 | char *pszBuffer, long *pdLength); |
331 | 329 | ||
332 | BOOL __win_IsHandleMarkedAsBlocking(SOCKET hHandle); | 330 | BOOL __win_IsHandleMarkedAsBlocking(int hHandle); |
333 | void __win_SetHandleBlockingMode(SOCKET s, BOOL bBlocking); | 331 | void __win_SetHandleBlockingMode(int s, BOOL bBlocking); |
334 | void __win_DiscardHandleBlockingMode(SOCKET s); | 332 | void __win_DiscardHandleBlockingMode(int s); |
335 | int _win_isSocketValid(int s); | 333 | int _win_isSocketValid(int s); |
336 | int plibc_conv_to_win_path(const char *pszUnix, char *pszWindows); | 334 | int plibc_conv_to_win_path(const char *pszUnix, char *pszWindows); |
337 | unsigned plibc_get_handle_count(); | 335 | unsigned plibc_get_handle_count(); |
@@ -400,7 +398,7 @@ int _win_munmap(void *start, size_t length); | |||
400 | int _win_lstat(const char *path, struct stat *buf); | 398 | int _win_lstat(const char *path, struct stat *buf); |
401 | int _win_lstat64(const char *path, struct stat64 *buf); | 399 | int _win_lstat64(const char *path, struct stat64 *buf); |
402 | int _win_readlink(const char *path, char *buf, size_t bufsize); | 400 | int _win_readlink(const char *path, char *buf, size_t bufsize); |
403 | int _win_accept(SOCKET s, struct sockaddr *addr, int *addrlen); | 401 | int _win_accept(int s, struct sockaddr *addr, int *addrlen); |
404 | int _win_printf(const char *format,...); | 402 | int _win_printf(const char *format,...); |
405 | int _win_fprintf(FILE *f,const char *format,...); | 403 | int _win_fprintf(FILE *f,const char *format,...); |
406 | int _win_vprintf(const char *format, va_list ap); | 404 | int _win_vprintf(const char *format, va_list ap); |
@@ -416,27 +414,27 @@ int _win_vscanf(const char *format, va_list arg_ptr); | |||
416 | int _win_scanf(const char *format, ...); | 414 | int _win_scanf(const char *format, ...); |
417 | int _win_fscanf(FILE *stream, const char *format, ...); | 415 | int _win_fscanf(FILE *stream, const char *format, ...); |
418 | pid_t _win_waitpid(pid_t pid, int *stat_loc, int options); | 416 | pid_t _win_waitpid(pid_t pid, int *stat_loc, int options); |
419 | int _win_bind(SOCKET s, const struct sockaddr *name, int namelen); | 417 | int _win_bind(int s, const struct sockaddr *name, int namelen); |
420 | int _win_connect(SOCKET s,const struct sockaddr *name, int namelen); | 418 | int _win_connect(int s,const struct sockaddr *name, int namelen); |
421 | int _win_getpeername(SOCKET s, struct sockaddr *name, | 419 | int _win_getpeername(int s, struct sockaddr *name, |
422 | int *namelen); | 420 | int *namelen); |
423 | int _win_getsockname(SOCKET s, struct sockaddr *name, | 421 | int _win_getsockname(int s, struct sockaddr *name, |
424 | int *namelen); | 422 | int *namelen); |
425 | int _win_getsockopt(SOCKET s, int level, int optname, char *optval, | 423 | int _win_getsockopt(int s, int level, int optname, char *optval, |
426 | int *optlen); | 424 | int *optlen); |
427 | int _win_listen(SOCKET s, int backlog); | 425 | int _win_listen(int s, int backlog); |
428 | int _win_recv(SOCKET s, char *buf, int len, int flags); | 426 | int _win_recv(int s, char *buf, int len, int flags); |
429 | int _win_recvfrom(SOCKET s, void *buf, int len, int flags, | 427 | int _win_recvfrom(int s, void *buf, int len, int flags, |
430 | struct sockaddr *from, int *fromlen); | 428 | struct sockaddr *from, int *fromlen); |
431 | int _win_select(int max_fd, fd_set * rfds, fd_set * wfds, fd_set * efds, | 429 | int _win_select(int max_fd, fd_set * rfds, fd_set * wfds, fd_set * efds, |
432 | const struct timeval *tv); | 430 | const struct timeval *tv); |
433 | int _win_send(SOCKET s, const char *buf, int len, int flags); | 431 | int _win_send(int s, const char *buf, int len, int flags); |
434 | int _win_sendto(SOCKET s, const char *buf, int len, int flags, | 432 | int _win_sendto(int s, const char *buf, int len, int flags, |
435 | const struct sockaddr *to, int tolen); | 433 | const struct sockaddr *to, int tolen); |
436 | int _win_setsockopt(SOCKET s, int level, int optname, const void *optval, | 434 | int _win_setsockopt(int s, int level, int optname, const void *optval, |
437 | int optlen); | 435 | int optlen); |
438 | int _win_shutdown(SOCKET s, int how); | 436 | int _win_shutdown(int s, int how); |
439 | SOCKET _win_socket(int af, int type, int protocol); | 437 | int _win_socket(int af, int type, int protocol); |
440 | struct hostent *_win_gethostbyaddr(const char *addr, int len, int type); | 438 | struct hostent *_win_gethostbyaddr(const char *addr, int len, int type); |
441 | struct hostent *_win_gethostbyname(const char *name); | 439 | struct hostent *_win_gethostbyname(const char *name); |
442 | struct hostent *gethostbyname2(const char *name, int af); | 440 | struct hostent *gethostbyname2(const char *name, int af); |