| 1 | /* utils.h,v 1.6 2004/09/14 22:27:36 bird Exp */
|
|---|
| 2 | /** @file
|
|---|
| 3 | * OS/2 TCPIP
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | #ifndef _UTILS_H_
|
|---|
| 7 | #define _UTILS_H_
|
|---|
| 8 |
|
|---|
| 9 | #include <sys/cdefs.h>
|
|---|
| 10 |
|
|---|
| 11 | #ifndef TCPCALL
|
|---|
| 12 | #define TCPCALL _System
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | #ifdef TCPV40HDRS
|
|---|
| 16 |
|
|---|
| 17 | unsigned long TCPCALL lswap(unsigned long);
|
|---|
| 18 | unsigned short TCPCALL bswap(unsigned short);
|
|---|
| 19 | int TCPCALL rexec(char **, int, char *, char *, char *, int *);
|
|---|
| 20 |
|
|---|
| 21 | /* Definition for bswap */
|
|---|
| 22 | #ifndef htonl
|
|---|
| 23 | #include <machine/endian.h>
|
|---|
| 24 | #endif
|
|---|
| 25 |
|
|---|
| 26 | #define ovbcopy(x,y,z) bcopy((x),(y),(z))
|
|---|
| 27 | #define copyout(x,y,z) memcpy((y),(x),(z))
|
|---|
| 28 | #ifndef XP_OS2_VACPP /* mozilla */
|
|---|
| 29 | /* We've got the real thing now. (aliased at least)
|
|---|
| 30 | #define strcasecmp(x,y) strcmpi((x),(y))
|
|---|
| 31 | #define strncasecmp(x,y,z) strnicmp(x,y,z)
|
|---|
| 32 | */
|
|---|
| 33 | #endif
|
|---|
| 34 |
|
|---|
| 35 | __BEGIN_DECLS
|
|---|
| 36 |
|
|---|
| 37 | #if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: emx */
|
|---|
| 38 | typedef __size_t size_t;
|
|---|
| 39 | #define _SIZE_T_DECLARED
|
|---|
| 40 | #define _SIZE_T /* bird: emx */
|
|---|
| 41 | #endif
|
|---|
| 42 |
|
|---|
| 43 | int strcasecmp (__const__ char *, __const__ char *);
|
|---|
| 44 | int strncasecmp (__const__ char *, __const__ char *, size_t);
|
|---|
| 45 |
|
|---|
| 46 | __END_DECLS
|
|---|
| 47 |
|
|---|
| 48 | /* MIN/MAX */
|
|---|
| 49 | #include <sys/param.h>
|
|---|
| 50 | /* timercmp */
|
|---|
| 51 | #include <sys/time.h>
|
|---|
| 52 |
|
|---|
| 53 | #else
|
|---|
| 54 | int TCPCALL rexec(char **, int, char *, char *, char *, int *);
|
|---|
| 55 | #endif /*TCPV40HDRS*/
|
|---|
| 56 |
|
|---|
| 57 | #endif
|
|---|