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

Last change on this file since 1506 was 1506, checked in by bird, 21 years ago

@unixroot. header reviews. ++

  • Property cvs2svn:cvs-rev set to 1.6
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.2 KB
Line 
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
17unsigned long TCPCALL lswap(unsigned long);
18unsigned short TCPCALL bswap(unsigned short);
19int 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 */
38typedef __size_t size_t;
39#define _SIZE_T_DECLARED
40#define _SIZE_T /* bird: emx */
41#endif
42
43int strcasecmp (__const__ char *, __const__ char *);
44int 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
54int TCPCALL rexec(char **, int, char *, char *, char *, int *);
55#endif /*TCPV40HDRS*/
56
57#endif
Note: See TracBrowser for help on using the repository browser.