49#ifndef _FSBLKCNT_T_DECLARED
51typedef uint32_t fsblkcnt_t;
52typedef uint32_t fsfilcnt_t;
53#define _FSBLKCNT_T_DECLARED
60#ifndef __INTTYPES_DEFINED__
61#define __INTTYPES_DEFINED__
63#include <machine/_types.h>
65#if defined(__rtems__) || defined(__XMK__)
74typedef __uint8_t u_int8_t;
77typedef __uint16_t u_int16_t;
80typedef __uint32_t u_int32_t;
84typedef __uint64_t u_int64_t;
87typedef __uint64_t u_quad_t;
88typedef __int64_t quad_t;
89typedef quad_t * qaddr_t;
96#ifndef __need_inttypes
99#include <sys/_types.h>
102#if defined (GO32) || defined (__MSDOS__)
108# include <machine/types.h>
118#define _ST_INT32 __attribute__ ((__mode__ (__SI__)))
123# ifndef _POSIX_SOURCE
125# define physadr physadr_t
128#ifndef _BSDTYPES_DEFINED
130#ifndef __u_char_defined
131typedef unsigned char u_char;
132#define __u_char_defined
134#ifndef __u_short_defined
135typedef unsigned short u_short;
136#define __u_short_defined
138#ifndef __u_int_defined
139typedef unsigned int u_int;
140#define __u_int_defined
142#ifndef __u_long_defined
143typedef unsigned long u_long;
144#define __u_long_defined
146#define _BSDTYPES_DEFINED
149typedef unsigned short ushort;
150typedef unsigned int uint;
151typedef unsigned long ulong;
154#ifndef __clock_t_defined
155typedef _CLOCK_T_ clock_t;
156#define __clock_t_defined
159#ifndef __time_t_defined
160typedef _TIME_T_ time_t;
161#define __time_t_defined
164#ifndef __timespec_defined
165#define __timespec_defined
175 struct timespec it_interval;
176 struct timespec it_value;
179#ifndef __daddr_t_defined
181#define __daddr_t_defined
183#ifndef __caddr_t_defined
184typedef char * caddr_t;
185#define __caddr_t_defined
189#if defined(__MS_types__) || defined(__rtems__) || \
190 defined(__sparc__) || defined(__SPU__)
191typedef unsigned long ino_t;
193typedef unsigned short ino_t;
198typedef unsigned long vm_offset_t;
199typedef unsigned long vm_size_t;
201#define __BIT_TYPES_DEFINED__
203typedef signed char int8_t;
204typedef unsigned char u_int8_t;
205typedef short int16_t;
206typedef unsigned short u_int16_t;
208typedef unsigned int u_int32_t;
209typedef long long int64_t;
210typedef unsigned long long u_int64_t;
211typedef int32_t register_t;
223typedef __dev_t dev_t;
224typedef __uid_t uid_t;
225typedef __gid_t gid_t;
229typedef signed char pid_t;
234#if defined(__rtems__)
235typedef _mode_t mode_t;
241typedef _ssize_t ssize_t;
243#if !defined(__CYGWIN__) && !defined(__rtems__)
245typedef char * addr_t;
248#if defined (__sparc__) && !defined (__sparc_v9__)
250typedef unsigned long mode_t;
252typedef unsigned short mode_t;
255typedef unsigned int mode_t _ST_INT32;
260typedef unsigned short nlink_t;
269# if !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || defined (__USE_W32_SOCKETS))
270# define _SYS_TYPES_FD_SET
279# define FD_SETSIZE 64
283# define NFDBITS (sizeof (fd_mask) * NBBY)
285# define howmany(x,y) (((x)+((y)-1))/(y))
290typedef struct _types_fd_set {
291 fd_mask fds_bits[howmany(
FD_SETSIZE, NFDBITS)];
294#define fd_set _types_fd_set
296# define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1L << ((n) % NFDBITS)))
297# define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1L << ((n) % NFDBITS)))
298# define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1L << ((n) % NFDBITS)))
299# define FD_ZERO(p) (__extension__ (void)({ \
301 char *__tmp = (char *)p; \
302 for (__i = 0; __i < sizeof (*(p)); ++__i) \
311#ifndef __clockid_t_defined
312typedef _CLOCKID_T_ clockid_t;
313#define __clockid_t_defined
316#ifndef __timer_t_defined
317typedef _TIMER_T_ timer_t;
318#define __timer_t_defined
321typedef unsigned long useconds_t;
322typedef long suseconds_t;
326#undef __need_inttypes
#define FD_SETSIZE
Maximum number of file descriptors in an fd_set structure.