aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/qnx4.h
blob: d60555f10471c767361dab38f5cb5253b36d05e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#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 */
#include <termios.h>			/* for unix.h */
#include <unix.h>
#include <sys/select.h>			/* for select */
#if !defined(__GNUC__)
#include <semaphore.h>			/* for sem_t */
#endif

#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
#define HAVE_STRING_H

#undef HAVE_GETRUSAGE

#define strncasecmp strnicmp

#ifndef					NAN
#ifndef					__nan_bytes
#define __nan_bytes								{ 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
#endif	 /* __nan_bytes */
extern unsigned char __nan[8];

#define							   NAN	   (*(const double *) __nan)
#endif	 /* NAN */

typedef u_short ushort;

#if defined(__GNUC__)
typedef unsigned char slock_t;

#else
typedef sem_t slock_t;

#endif

extern int	isnan(double dsrc);

extern double rint(double x);

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

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