1 | /*
|
---|
2 | * DIM Include file for changing the number of open connections
|
---|
3 | * Date: 06-12-2007
|
---|
4 | * Author: C. Gaspar
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifdef WIN32
|
---|
8 | #define FD_SETSIZE 8192
|
---|
9 | #else
|
---|
10 | #ifdef linux
|
---|
11 | #ifndef NOMORECONNS
|
---|
12 | /* CG: Copied here bits/typesizes.h */
|
---|
13 | #ifndef _BITS_TYPESIZES_H
|
---|
14 | #define _BITS_TYPESIZES_H 1
|
---|
15 |
|
---|
16 | /* See <bits/types.h> for the meaning of these macros. This file exists so
|
---|
17 | that <bits/types.h> need not vary across different GNU platforms. */
|
---|
18 |
|
---|
19 | #define __DEV_T_TYPE __UQUAD_TYPE
|
---|
20 | #define __UID_T_TYPE __U32_TYPE
|
---|
21 | #define __GID_T_TYPE __U32_TYPE
|
---|
22 | #define __INO_T_TYPE __ULONGWORD_TYPE
|
---|
23 | #define __INO64_T_TYPE __UQUAD_TYPE
|
---|
24 | #define __MODE_T_TYPE __U32_TYPE
|
---|
25 | #define __NLINK_T_TYPE __UWORD_TYPE
|
---|
26 | #define __OFF_T_TYPE __SLONGWORD_TYPE
|
---|
27 | #define __OFF64_T_TYPE __SQUAD_TYPE
|
---|
28 | #define __PID_T_TYPE __S32_TYPE
|
---|
29 | #define __RLIM_T_TYPE __ULONGWORD_TYPE
|
---|
30 | #define __RLIM64_T_TYPE __UQUAD_TYPE
|
---|
31 | #define __BLKCNT_T_TYPE __SLONGWORD_TYPE
|
---|
32 | #define __BLKCNT64_T_TYPE __SQUAD_TYPE
|
---|
33 | #define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
|
---|
34 | #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
|
---|
35 | #define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
|
---|
36 | #define __FSFILCNT64_T_TYPE __UQUAD_TYPE
|
---|
37 | #define __ID_T_TYPE __U32_TYPE
|
---|
38 | #define __CLOCK_T_TYPE __SLONGWORD_TYPE
|
---|
39 | #define __TIME_T_TYPE __SLONGWORD_TYPE
|
---|
40 | #define __USECONDS_T_TYPE __U32_TYPE
|
---|
41 | #define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
|
---|
42 | #define __DADDR_T_TYPE __S32_TYPE
|
---|
43 | #define __SWBLK_T_TYPE __SLONGWORD_TYPE
|
---|
44 | #define __KEY_T_TYPE __S32_TYPE
|
---|
45 | #define __CLOCKID_T_TYPE __S32_TYPE
|
---|
46 | #define __TIMER_T_TYPE __S32_TYPE
|
---|
47 | #define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
|
---|
48 | #define __FSID_T_TYPE struct { int __val[2]; }
|
---|
49 | #define __SSIZE_T_TYPE __SWORD_TYPE
|
---|
50 |
|
---|
51 | /* Number of descriptors that can fit in an `fd_set'. */
|
---|
52 | #define __FD_SETSIZE 8192
|
---|
53 |
|
---|
54 | #endif /* bits/typesizes.h */
|
---|
55 |
|
---|
56 | /* CG: Copied here linux/posix_types.h */
|
---|
57 | #ifndef _LINUX_POSIX_TYPES_H
|
---|
58 | #define _LINUX_POSIX_TYPES_H
|
---|
59 |
|
---|
60 | #include <linux/stddef.h>
|
---|
61 |
|
---|
62 | #undef __NFDBITS
|
---|
63 | #define __NFDBITS (8 * sizeof(unsigned long))
|
---|
64 |
|
---|
65 | #undef __FD_SETSIZE
|
---|
66 | #define __FD_SETSIZE 8192
|
---|
67 |
|
---|
68 | #undef __FDSET_LONGS
|
---|
69 | #define __FDSET_LONGS (__FD_SETSIZE/__NFDBITS)
|
---|
70 |
|
---|
71 | #undef __FDELT
|
---|
72 | #define __FDELT(d) ((d) / __NFDBITS)
|
---|
73 |
|
---|
74 | #undef __FDMASK
|
---|
75 | #define __FDMASK(d) (1UL << ((d) % __NFDBITS))
|
---|
76 |
|
---|
77 | typedef struct {
|
---|
78 | unsigned long fds_bits [__FDSET_LONGS];
|
---|
79 | } __kernel_fd_set;
|
---|
80 |
|
---|
81 | /* Type of a signal handler. */
|
---|
82 | typedef void (*__kernel_sighandler_t)(int);
|
---|
83 |
|
---|
84 | /* Type of a SYSV IPC key. */
|
---|
85 | typedef int __kernel_key_t;
|
---|
86 |
|
---|
87 | #include <asm/posix_types.h>
|
---|
88 |
|
---|
89 | #endif /* _LINUX_POSIX_TYPES_H */
|
---|
90 |
|
---|
91 | #endif /* NOMORECONNS */
|
---|
92 | #endif /* linux */
|
---|
93 |
|
---|
94 | #endif
|
---|