source: trunk/src/emx/include/utils.h@ 183

Last change on this file since 183 was 183, checked in by bird, 22 years ago

#434: Initial tcpip header merges.

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 858 bytes
Line 
1/* emx/gcc */
2#ifndef _UTILS_H_
3#define _UTILS_H_
4
5#ifdef TCPV40HDRS
6
7unsigned long _System lswap(unsigned long);
8unsigned short _System bswap(unsigned short);
9int _System rexec(char **, int, char *, char *, char *, int *);
10
11/* Definition for bswap */
12#ifndef htonl
13#include <machine/endian.h>
14#endif
15
16#define ovbcopy(x,y,z) bcopy((x),(y),(z))
17#define copyout(x,y,z) memcpy((y),(x),(z))
18#ifndef XP_OS2_VACPP /* mozilla */
19#define strcasecmp(x,y) strcmpi((x),(y))
20#define strncasecmp(x,y,z) strnicmp(x,y,z)
21#endif
22
23#ifndef MIN
24#define MIN(a,b) (((a)<(b))?(a):(b))
25#define imin(x,y) MIN((x),(y))
26#define MAX(a,b) (((a)>(b))?(a):(b))
27#endif
28#ifndef min
29#define min(a,b) (((a)<(b))?(a):(b))
30#endif
31/* timercmp */
32#include <sys/time.h>
33
34#else
35int _System rexec(char **, int, char *, char *, char *, int *);
36#endif /*TCPV40HDRS*/
37
38#endif
Note: See TracBrowser for help on using the repository browser.