00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00028 #ifndef _PLIBC_H_
00029 #define _PLIBC_H_
00030
00031 #ifndef SIGALRM
00032 #define SIGALRM 14
00033 #endif
00034
00035 #ifdef __cplusplus
00036 extern "C"
00037 {
00038 #endif
00039
00040 #ifdef Q_OS_WIN32
00041 #define WINDOWS 1
00042 #endif
00043
00044 #ifdef WINDOWS
00045
00046 #if ENABLE_NLS
00047 #include "langinfo.h"
00048 #endif
00049
00050 #include <windows.h>
00051 #include <Ws2tcpip.h>
00052 #include <time.h>
00053 #include <stdio.h>
00054 #include <sys/types.h>
00055 #include <sys/stat.h>
00056 #include <dirent.h>
00057 #include <errno.h>
00058 #include <stdarg.h>
00059
00060 #define __BYTE_ORDER BYTE_ORDER
00061 #define __BIG_ENDIAN BIG_ENDIAN
00062
00063
00064 #define __G_WIN32_H__
00065
00066
00067 #define Li2Double(x) ((double)((x).HighPart) * 4.294967296E9 + \
00068 (double)((x).LowPart))
00069
00070 #define socklen_t int
00071 #define ssize_t int
00072 #ifndef HAVE_FTRUNCATE
00073 #define ftruncate chsize
00074 #endif
00075 #define off_t int
00076 #define int64_t long long
00077 #define int32_t long
00078
00079 struct stat64
00080 {
00081 _dev_t st_dev;
00082 _ino_t st_ino;
00083 _mode_t st_mode;
00084 short st_nlink;
00085 short st_uid;
00086 short st_gid;
00087 _dev_t st_rdev;
00088 __int64 st_size;
00089 __time64_t st_atime;
00090 __time64_t st_mtime;
00091 __time64_t st_ctime;
00092 };
00093
00094 #ifndef pid_t
00095 #define pid_t int
00096 #endif
00097
00098 #ifndef WEXITSTATUS
00099 #define WEXITSTATUS(status) (((status) & 0xff00) >> 8)
00100 #endif
00101
00102
00103 #define ENOCSI 43
00104 #define EL2HLT 44
00105 #ifndef EDEADLK
00106 #define EDEADLK 45
00107 #endif
00108 #ifndef ENOLCK
00109 #define ENOLCK 46
00110 #endif
00111 #define EBADE 50
00112 #define EBADR 51
00113 #define EXFULL 52
00114 #define ENOANO 53
00115 #define EBADRQC 54
00116 #define EBADSLT 55
00117 #ifndef EDEADLOCK
00118 #define EDEADLOCK EDEADLK
00119 #endif
00120 #define EBFONT 57
00121 #define ENOSTR 60
00122 #define ENODATA 61
00123 #define ETIME 62
00124 #define ENOSR 63
00125 #define ENONET 64
00126 #define ENOPKG 65
00127 #define EREMOTE 66
00128 #define ENOLINK 67
00129 #define EADV 68
00130 #define ESRMNT 69
00131 #define ECOMM 70
00132 #define EPROTO 71
00133 #define EMULTIHOP 74
00134 #define ELBIN 75
00135 #define EDOTDOT 76
00136 #define EBADMSG 77
00137 #define ENOTUNIQ 80
00138 #define EBADFD 81
00139 #define EREMCHG 82
00140 #define ELIBACC 83
00141 #define ELIBBAD 84
00142 #define ELIBSCN 85
00143 #define ELIBMAX 86
00144 #define ELIBEXEC 87
00145 #ifndef ENOSYS
00146 #define ENOSYS 88
00147 #endif
00148 #define ENMFILE 89
00149 #ifndef ENOTEMPTY
00150 #define ENOTEMPTY 90
00151 #endif
00152 #ifndef ENAMETOOLONG
00153 #define ENAMETOOLONG 91
00154 #endif
00155 #define ELOOP 92
00156 #define EOPNOTSUPP 95
00157 #define EPFNOSUPPORT 96
00158 #define ECONNRESET 104
00159 #define ENOBUFS 105
00160 #define EAFNOSUPPORT 106
00161 #define EPROTOTYPE 107
00162 #define ENOTSOCK 108
00163 #define ENOPROTOOPT 109
00164 #define ESHUTDOWN 110
00165 #define ECONNREFUSED 111
00166 #define EADDRINUSE 112
00167 #define ECONNABORTED 113
00168 #define ENETUNREACH 114
00169 #define ENETDOWN 115
00170 #ifndef ETIMEDOUT
00171 #define ETIMEDOUT 116
00172 #endif
00173 #define EHOSTDOWN 117
00174 #define EHOSTUNREACH 118
00175 #define EINPROGRESS 119
00176 #define EALREADY 120
00177 #define EDESTADDRREQ 121
00178 #define EMSGSIZE 122
00179 #define EPROTONOSUPPORT 123
00180 #define ESOCKTNOSUPPORT 124
00181 #define EADDRNOTAVAIL 125
00182 #define ENETRESET 126
00183 #define EISCONN 127
00184 #define ENOTCONN 128
00185 #define ETOOMANYREFS 129
00186 #define EPROCLIM 130
00187 #define EUSERS 131
00188 #define EDQUOT 132
00189 #define ESTALE 133
00190 #ifndef ENOTSUP
00191 #define ENOTSUP 134
00192 #endif
00193 #define ENOMEDIUM 135
00194 #define ENOSHARE 136
00195 #define ECASECLASH 137
00196 #define EWOULDBLOCK EAGAIN
00197 #define EOVERFLOW 139
00198
00199 #undef HOST_NOT_FOUND
00200 #define HOST_NOT_FOUND 1
00201 #undef TRY_AGAIN
00202 #define TRY_AGAIN 2
00203 #undef NO_RECOVERY
00204 #define NO_RECOVERY 3
00205 #undef NO_ADDRESS
00206 #define NO_ADDRESS 4
00207
00208 #define PROT_READ 0x1
00209 #define PROT_WRITE 0x2
00210 #define MAP_SHARED 0x1
00211 #define MAP_PRIVATE 0x2
00212 #define MAP_FIXED 0x10
00213 #define MAP_FAILED ((void *)-1)
00214
00215 struct statfs
00216 {
00217 long f_type;
00218 long f_bsize;
00219 long f_blocks;
00220 long f_bfree;
00221 long f_bavail;
00222 long f_files;
00223 long f_ffree;
00224 long f_fsid;
00225 long f_namelen;
00226 long f_spare[6];
00227 };
00228
00229
00230
00231 enum SYSTEM_INFORMATION_CLASS
00232 {
00233 SystemBasicInformation = 0,
00234 Unknown1,
00235 SystemPerformanceInformation = 2,
00236 SystemTimeOfDayInformation = 3,
00237 Unknown4,
00238 SystemProcessInformation = 5,
00239 Unknown6,
00240 Unknown7,
00241 SystemProcessorPerformanceInformation = 8,
00242 Unknown9,
00243 Unknown10,
00244 SystemDriverInformation,
00245 Unknown12,
00246 Unknown13,
00247 Unknown14,
00248 Unknown15,
00249 SystemHandleList,
00250 Unknown17,
00251 Unknown18,
00252 Unknown19,
00253 Unknown20,
00254 SystemCacheInformation,
00255 Unknown22,
00256 SystemInterruptInformation = 23,
00257 SystemExceptionInformation = 33,
00258 SystemRegistryQuotaInformation = 37,
00259 SystemLookasideInformation = 45
00260 };
00261
00262 typedef struct
00263 {
00264 LARGE_INTEGER IdleTime;
00265 LARGE_INTEGER KernelTime;
00266 LARGE_INTEGER UserTime;
00267 LARGE_INTEGER Reserved1[2];
00268 ULONG Reserved2;
00269 } SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION;
00270
00271 #define sleep(secs) (Sleep(secs * 1000))
00272
00273
00274
00275 #define FAKED_BLOCK_SIZE 512
00276
00277
00278 #define MSDOS_SUPER_MAGIC 0x4d44
00279 #define NTFS_SUPER_MAGIC 0x5346544E
00280
00281
00282
00283 #define SHUT_RDWR SD_BOTH
00284
00285
00286 #define LOCK_SH 1
00287 #define LOCK_EX 2
00288 #define LOCK_NB 4
00289
00290 #define LOCK_UN 8
00291
00292
00293 #define S_IRGRP 0
00294 #define S_IWGRP 0
00295 #define S_IROTH 0
00296 #define S_IXGRP 0
00297 #define S_IWOTH 0
00298 #define S_IXOTH 0
00299 #define S_ISUID 0
00300 #define S_ISGID 0
00301 #define S_ISVTX 0
00302 #define S_IRWXG 0
00303 #define S_IRWXO 0
00304
00305 #define SHUT_WR SD_SEND
00306 #define SHUT_RD SD_RECEIVE
00307 #define SHUT_RDWR SD_BOTH
00308
00309 #define SetErrnoFromWinError(e) _SetErrnoFromWinError(e, __FILE__, __LINE__)
00310
00314 #define index(s, c) strchr(s, c)
00315
00316 BOOL _plibc_CreateShortcut (const char *pszSrc, const char *pszDest);
00317 BOOL _plibc_DereferenceShortcut (char *pszShortcut);
00318 char *plibc_ChooseDir (char *pszTitle, unsigned long ulFlags);
00319 char *plibc_ChooseFile (char *pszTitle, unsigned long ulFlags);
00320 long QueryRegistry (HKEY hMainKey, char *pszKey, char *pszSubKey,
00321 char *pszBuffer, long *pdLength);
00322
00323 BOOL __win_IsHandleMarkedAsBlocking (SOCKET hHandle);
00324 void __win_SetHandleBlockingMode (SOCKET s, BOOL bBlocking);
00325 void __win_DiscardHandleBlockingMode (SOCKET s);
00326 int _win_isSocketValid (int s);
00327 int plibc_conv_to_win_path (const char *pszUnix, char *pszWindows);
00328
00329 typedef void (*TPanicProc) (int, char *);
00330 void plibc_set_panic_proc (TPanicProc proc);
00331
00332 int flock (int fd, int operation);
00333 int fsync (int fildes);
00334 int inet_pton (int af, const char *src, void *dst);
00335 int inet_pton4 (const char *src, u_char * dst, int pton);
00336 #if USE_IPV6
00337 int inet_pton6 (const char *src, u_char * dst);
00338 #endif
00339 int truncate (const char *fname, int distance);
00340 int statfs (const char *path, struct statfs *buf);
00341 const char *hstrerror (int err);
00342 void gettimeofday (struct timeval *tp, void *tzp);
00343 int mkstemp (char *tmplate);
00344 char *strptime (const char *buf, const char *format, struct tm *tm);
00345 char *ctime (const time_t * clock);
00346 char *ctime_r (const time_t * clock, char *buf);
00347 const char *inet_ntop (int af, const void *src, char *dst, size_t size);
00348 int plibc_init (char *pszOrg, char *pszApp);
00349 void plibc_shutdown ();
00350 int plibc_initialized ();
00351 int plibc_conv_to_win_path_ex (const char *pszUnix, char *pszWindows,
00352 int derefLinks);
00353 void _SetErrnoFromWinError (long lWinError, char *pszCaller, int iLine);
00354 void SetErrnoFromWinsockError (long lWinError);
00355 void SetHErrnoFromWinError (long lWinError);
00356 void SetErrnoFromHRESULT (HRESULT hRes);
00357 FILE *_win_fopen (const char *filename, const char *mode);
00358 DIR *_win_opendir (const char *dirname);
00359 int _win_open (const char *filename, int oflag, ...);
00360 #ifdef ENABLE_NLS
00361 char *_win_bindtextdomain (const char *domainname, const char *dirname);
00362 #endif
00363 int _win_chdir (const char *path);
00364 int _win_close (int fd);
00365 int _win_creat (const char *path, mode_t mode);
00366 int _win_fstat (int handle, struct stat *buffer);
00367 int _win_pipe (int *phandles);
00368 int _win_rmdir (const char *path);
00369 int _win_access (const char *path, int mode);
00370 int _win_chmod (const char *filename, int pmode);
00371 char *realpath (const char *file_name, char *resolved_name);
00372 long _win_random (void);
00373 int _win_remove (const char *path);
00374 int _win_rename (const char *oldname, const char *newname);
00375 int _win_stat (const char *path, struct stat *buffer);
00376 int _win_stat64 (const char *path, struct stat64 *buffer);
00377 int _win_unlink (const char *filename);
00378 int _win_write (int fildes, const void *buf, size_t nbyte);
00379 int _win_read (int fildes, void *buf, size_t nbyte);
00380 size_t _win_fwrite (const void *buffer, size_t size, size_t count,
00381 FILE * stream);
00382 size_t _win_fread (void *buffer, size_t size, size_t count, FILE * stream);
00383 int _win_symlink (const char *path1, const char *path2);
00384 void *_win_mmap (void *start, size_t len, int access, int flags, int fd,
00385 unsigned long long offset);
00386 int _win_munmap (void *start, size_t length);
00387 int _win_lstat (const char *path, struct stat *buf);
00388 int _win_lstat64 (const char *path, struct stat64 *buf);
00389 int _win_readlink (const char *path, char *buf, size_t bufsize);
00390 int _win_accept (SOCKET s, struct sockaddr *addr, int *addrlen);
00391 int _win_printf (const char *format, ...);
00392 int _win_fprintf (FILE * f, const char *format, ...);
00393 int _win_vprintf (const char *format, va_list ap);
00394 int _win_vfprintf (FILE * stream, const char *format, va_list arg_ptr);
00395 int _win_vsprintf (char *dest, const char *format, va_list arg_ptr);
00396 int _win_vsnprintf (char *str, size_t size, const char *format,
00397 va_list arg_ptr);
00398 int _win_snprintf (char *str, size_t size, const char *format, ...);
00399 int _win_sprintf (char *dest, const char *format, ...);
00400 int _win_vsscanf (const char *str, const char *format, va_list arg_ptr);
00401 int _win_sscanf (const char *str, const char *format, ...);
00402 int _win_vfscanf (FILE * stream, const char *format, va_list arg_ptr);
00403 int _win_vscanf (const char *format, va_list arg_ptr);
00404 int _win_scanf (const char *format, ...);
00405 int _win_fscanf (FILE * stream, const char *format, ...);
00406 pid_t _win_waitpid (pid_t pid, int *stat_loc, int options);
00407 int _win_bind (SOCKET s, const struct sockaddr *name, int namelen);
00408 int _win_connect (SOCKET s, const struct sockaddr *name, int namelen);
00409 int _win_getpeername (SOCKET s, struct sockaddr *name, int *namelen);
00410 int _win_getsockname (SOCKET s, struct sockaddr *name, int *namelen);
00411 int _win_getsockopt (SOCKET s, int level, int optname, char *optval,
00412 int *optlen);
00413 int _win_listen (SOCKET s, int backlog);
00414 int _win_recv (SOCKET s, char *buf, int len, int flags);
00415 int _win_recvfrom (SOCKET s, void *buf, int len, int flags,
00416 struct sockaddr *from, int *fromlen);
00417 int _win_select (int max_fd, fd_set * rfds, fd_set * wfds, fd_set * efds,
00418 const struct timeval *tv);
00419 int _win_send (SOCKET s, const char *buf, int len, int flags);
00420 int _win_sendto (SOCKET s, const char *buf, int len, int flags,
00421 const struct sockaddr *to, int tolen);
00422 int _win_setsockopt (SOCKET s, int level, int optname, const void *optval,
00423 int optlen);
00424 int _win_shutdown (SOCKET s, int how);
00425 SOCKET _win_socket (int af, int type, int protocol);
00426 struct hostent *_win_gethostbyaddr (const char *addr, int len, int type);
00427 struct hostent *_win_gethostbyname (const char *name);
00428 char *_win_strerror (int errnum);
00429 int IsWinNT ();
00430
00431 #if !HAVE_STRNDUP
00432 char *strndup (const char *s, size_t n);
00433 #endif
00434 #if !HAVE_STRNLEN
00435 size_t strnlen (const char *str, size_t maxlen);
00436 #endif
00437
00438 #define strcasecmp(a, b) stricmp(a, b)
00439 #define strncasecmp(a, b, c) strnicmp(a, b, c)
00440
00441 #endif
00442
00443 #ifndef WINDOWS
00444 #define DIR_SEPARATOR '/'
00445 #define DIR_SEPARATOR_STR "/"
00446 #define PATH_SEPARATOR ';'
00447 #define PATH_SEPARATOR_STR ";"
00448 #define NEWLINE "\n"
00449
00450 #ifdef ENABLE_NLS
00451 #define BINDTEXTDOMAIN(d, n) bindtextdomain(d, n)
00452 #endif
00453 #define CREAT(p, m) creat(p, m)
00454 #undef FOPEN
00455 #define FOPEN(f, m) fopen(f, m)
00456 #define OPENDIR(d) opendir(d)
00457 #define OPEN(f) open(f)
00458 #define CHDIR(d) chdir(d)
00459 #define CLOSE(f) close(f)
00460 #define RMDIR(f) rmdir(f)
00461 #define ACCESS(p, m) access(p, m)
00462 #define CHMOD(f, p) chmod(f, p)
00463 #define FSTAT(h, b) fstat(h, b)
00464 #define PIPE(h) pipe(h)
00465 #define REMOVE(p) remove(p)
00466 #define RENAME(o, n) rename(o, n)
00467 #define STAT(p, b) stat(p, b)
00468 #define STAT64(p, b) stat64(p, b)
00469 #define UNLINK(f) unlink(f)
00470 #define WRITE(f, b, n) write(f, b, n)
00471 #define READ(f, b, n) read(f, b, n)
00472 #define GN_FREAD(b, s, c, f) fread(b, s, c, f)
00473 #define GN_FWRITE(b, s, c, f) fwrite(b, s, c, f)
00474 #define SYMLINK(a, b) symlink(a, b)
00475 #define MMAP(s, l, p, f, d, o) mmap(s, l, p, f, d, o)
00476 #define MUNMAP(s, l) munmap(s, l)
00477 #define STRERROR(i) strerror(i)
00478 #define RANDOM() random()
00479 #define READLINK(p, b, s) readlink(p, b, s)
00480 #define LSTAT(p, b) lstat(p, b)
00481 #define LSTAT64(p, b) lstat64(p, b)
00482 #define PRINTF printf
00483 #define FPRINTF fprintf
00484 #define VPRINTF(f, a) vprintf(f, a)
00485 #define VFPRINTF(s, f, a) vfprintf(s, f, a)
00486 #define VSPRINTF(d, f, a) vsprintf(d, f, a)
00487 #define VSNPRINTF(str, size, fmt, a) vsnprintf(str, size, fmt, a)
00488 #define _REAL_SNPRINTF snprintf
00489 #define SPRINTF sprintf
00490 #define VSSCANF(s, f, a) vsscanf(s, f, a)
00491 #define SSCANF sscanf
00492 #define VFSCANF(s, f, a) vfscanf(s, f, a)
00493 #define VSCANF(f, a) vscanf(f, a)
00494 #define SCANF scanf
00495 #define FSCANF fscanf
00496 #define WAITPID(p, s, o) waitpid(p, s, o)
00497 #define ACCEPT(s, a, l) accept(s, a, l)
00498 #define BIND(s, n, l) bind(s, n, l)
00499 #define CONNECT(s, n, l) connect(s, n, l)
00500 #define GETPEERNAME(s, n, l) getpeername(s, n, l)
00501 #define GETSOCKNAME(s, n, l) getsockname(s, n, l)
00502 #define GETSOCKOPT(s, l, o, v, p) getsockopt(s, l, o, v, p)
00503 #define LISTEN(s, b) listen(s, b)
00504 #define RECV(s, b, l, f) recv(s, b, l, f)
00505 #define RECVFROM(s, b, l, f, r, o) recvfrom(s, b, l, f, r, o)
00506 #define SELECT(n, r, w, e, t) select(n, r, w, e, t)
00507 #define SEND(s, b, l, f) send(s, b, l, f)
00508 #define SENDTO(s, b, l, f, o, n) sendto(s, b, l, f, o, n)
00509 #define SETSOCKOPT(s, l, o, v, n) setsockopt(s, l, o, v, n)
00510 #define SHUTDOWN(s, h) shutdown(s, h)
00511 #define SOCKET(a, t, p) socket(a, t, p)
00512 #define GETHOSTBYADDR(a, l, t) gethostbyname(a, l, t)
00513 #define GETHOSTBYNAME(n) gethostbyname(n)
00514 #else
00515 #define DIR_SEPARATOR '\\'
00516 #define DIR_SEPARATOR_STR "\\"
00517 #define PATH_SEPARATOR ':'
00518 #define PATH_SEPARATOR_STR ":"
00519 #define NEWLINE "\r\n"
00520
00521 #ifdef ENABLE_NLS
00522 #define BINDTEXTDOMAIN(d, n) _win_bindtextdomain(d, n)
00523 #endif
00524 #define CREAT(p, m) _win_creat(p, m)
00525 #define FOPEN(f, m) _win_fopen(f, m)
00526 #define OPENDIR(d) _win_opendir(d)
00527 #define OPEN(f) _win_open(f)
00528 #define CHDIR(d) _win_chdir(d)
00529 #define CLOSE(f) _win_close(f)
00530 #define FSTAT(h, b) _win_fstat(h, b)
00531 #define RMDIR(f) _win_rmdir(f)
00532 #define ACCESS(p, m) _win_access(p, m)
00533 #define CHMOD(f, p) _win_chmod(f, p)
00534 #define PIPE(h) _win_pipe(h)
00535 #define RANDOM() _win_random()
00536 #define REMOVE(p) _win_remove(p)
00537 #define RENAME(o, n) _win_rename(o, n)
00538 #define STAT(p, b) _win_stat(p, b)
00539 #define STAT64(p, b) _win_stat64(p, b)
00540 #define UNLINK(f) _win_unlink(f)
00541 #define WRITE(f, b, n) _win_write(f, b, n)
00542 #define READ(f, b, n) _win_read(f, b, n)
00543 #define GN_FREAD(b, s, c, f) _win_fread(b, s, c, f)
00544 #define GN_FWRITE(b, s, c, f) _win_fwrite(b, s, c, f)
00545 #define SYMLINK(a, b) _win_symlink(a, b)
00546 #define MMAP(s, l, p, f, d, o) _win_mmap(s, l, p, f, d, o)
00547 #define MUNMAP(s, l) _win_munmap(s, l)
00548 #define STRERROR(i) _win_strerror(i)
00549 #define READLINK(p, b, s) _win_readlink(p, b, s)
00550 #define LSTAT(p, b) _win_lstat(p, b)
00551 #define LSTAT64(p, b) _win_lstat64(p, b)
00552 #define PRINTF(f, ...) _win_printf(f , __VA_ARGS__)
00553 #define FPRINTF(fil, fmt, ...) _win_fprintf(fil, fmt, __VA_ARGS__)
00554 #define VPRINTF(f, a) _win_vprintf(f, a)
00555 #define VFPRINTF(s, f, a) _win_vfprintf(s, f, a)
00556 #define VSPRINTF(d, f, a) _win_vsprintf(d, f, a)
00557 #define VSNPRINTF(str, size, fmt, a) _win_vsnprintf(str, size, fmt, a)
00558 #define _REAL_SNPRINTF(str, size, fmt, ...) _win_snprintf(str, size, fmt, __VA_ARGS__)
00559 #define SPRINTF(d, f, ...) _win_sprintf(d, f, __VA_ARGS__)
00560 #define VSSCANF(s, f, a) _win_vsscanf(s, f, a)
00561 #define SSCANF(s, f, ...) _win_sscanf(s, f, __VA_ARGS__)
00562 #define VFSCANF(s, f, a) _win_vfscanf(s, f, a)
00563 #define VSCANF(f, a) _win_vscanf(f, a)
00564 #define SCANF(f, ...) _win_scanf(f, __VA_ARGS__)
00565 #define FSCANF(s, f, ...) _win_fscanf(s, f, __VA_ARGS__)
00566 #define WAITPID(p, s, o) _win_waitpid(p, s, o)
00567 #define ACCEPT(s, a, l) _win_accept(s, a, l)
00568 #define BIND(s, n, l) _win_bind(s, n, l)
00569 #define CONNECT(s, n, l) _win_connect(s, n, l)
00570 #define GETPEERNAME(s, n, l) _win_getpeername(s, n, l)
00571 #define GETSOCKNAME(s, n, l) _win_getsockname(s, n, l)
00572 #define GETSOCKOPT(s, l, o, v, p) _win_getsockopt(s, l, o, v, p)
00573 #define LISTEN(s, b) _win_listen(s, b)
00574 #define RECV(s, b, l, f) _win_recv(s, b, l, f)
00575 #define RECVFROM(s, b, l, f, r, o) _win_recvfrom(s, b, l, f, r, o)
00576 #define SELECT(n, r, w, e, t) _win_select(n, r, w, e, t)
00577 #define SEND(s, b, l, f) _win_send(s, b, l, f)
00578 #define SENDTO(s, b, l, f, o, n) _win_sendto(s, b, l, f, o, n)
00579 #define SETSOCKOPT(s, l, o, v, n) _win_setsockopt(s, l, o, v, n)
00580 #define SHUTDOWN(s, h) _win_shutdown(s, h)
00581 #define SOCKET(a, t, p) _win_socket(a, t, p)
00582 #define GETHOSTBYADDR(a, l, t) _win_gethostbyname(a, l, t)
00583 #define GETHOSTBYNAME(n) _win_gethostbyname(n)
00584 #endif
00585
00586
00587 #ifdef __cplusplus
00588 }
00589 #endif
00590
00591
00592 #endif //_PLIBC_H_
00593
00594