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

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

Fixed TCPCALL.

  • Property cvs2svn:cvs-rev set to 1.7
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[1506]1/* utils.h,v 1.6 2004/09/14 22:27:36 bird Exp */
2/** @file
3 * OS/2 TCPIP
4 */
5
[183]6#ifndef _UTILS_H_
7#define _UTILS_H_
8
[1506]9#include <sys/cdefs.h>
10
[183]11#ifdef TCPV40HDRS
12
[354]13unsigned long TCPCALL lswap(unsigned long);
14unsigned short TCPCALL bswap(unsigned short);
15int TCPCALL rexec(char **, int, char *, char *, char *, int *);
[183]16
17/* Definition for bswap */
18#ifndef htonl
19#include <machine/endian.h>
20#endif
21
22#define ovbcopy(x,y,z) bcopy((x),(y),(z))
23#define copyout(x,y,z) memcpy((y),(x),(z))
24#ifndef XP_OS2_VACPP /* mozilla */
[354]25/* We've got the real thing now. (aliased at least)
[183]26#define strcasecmp(x,y) strcmpi((x),(y))
27#define strncasecmp(x,y,z) strnicmp(x,y,z)
[354]28*/
[183]29#endif
[357]30
[1506]31__BEGIN_DECLS
[357]32
33#if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: emx */
34typedef __size_t size_t;
35#define _SIZE_T_DECLARED
36#define _SIZE_T /* bird: emx */
37#endif
38
[354]39int strcasecmp (__const__ char *, __const__ char *);
40int strncasecmp (__const__ char *, __const__ char *, size_t);
[183]41
[1506]42__END_DECLS
[357]43
[494]44/* MIN/MAX */
45#include <sys/param.h>
[183]46/* timercmp */
47#include <sys/time.h>
48
49#else
[354]50int TCPCALL rexec(char **, int, char *, char *, char *, int *);
[183]51#endif /*TCPV40HDRS*/
52
53#endif
Note: See TracBrowser for help on using the repository browser.