qnx4.h 926 Bytes
Newer Older
1 2 3 4
#include <sys/types.h>			/* for namser.h */
#include <arpa/nameser.h>		/* for BYTE_ORDER */
#include <process.h>			/* for execv */
#include <ioctl.h>				/* for unix.h */
5
#include <unix.h>
6
#include <sys/select.h>			/* for select */
7
#if !defined(__GNUC__)
8
#include <semaphore.h>			/* for sem_t */
9 10 11 12 13 14 15 16 17
#endif

#define HAS_TEST_AND_SET
#define HAVE_STRING_H

#undef HAVE_GETRUSAGE

#define strncasecmp strnicmp

18 19 20 21
#ifndef					NAN
#ifndef					__nan_bytes
#define __nan_bytes								{ 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
#endif	 /* __nan_bytes */
22
extern unsigned char __nan[8];
23 24 25

#define							   NAN	   (*(const double *) __nan)
#endif	 /* NAN */
26 27 28 29 30

typedef u_short ushort;

#if defined(__GNUC__)
typedef unsigned char slock_t;
31

32 33
#else
typedef sem_t slock_t;
34

35 36
#endif

37
extern int	isnan(double dsrc);
38 39 40 41 42 43 44

extern double rint(double x);

extern char *crypt(const char *, const char *);

extern long random(void);
extern void srandom(unsigned int seed);