2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
29 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
30 #include <sys/types1.h>
34 # include <machine/types.h>
36 # ifndef _POSIX_SOURCE
37 # define physadr physadr_t
40 typedef unsigned char u_char;
41 typedef unsigned short u_short;
42 typedef unsigned int u_int;
43 typedef unsigned long u_long;
44 typedef unsigned short ushort; /* System V compatibility */
45 typedef unsigned int uint; /* System V compatibility */
46 # endif /*!_POSIX_SOURCE */
48 #ifndef __time_t_defined
49 typedef _TIME_T_ time_t;
50 #define __time_t_defined
54 typedef char * caddr_t;
57 typedef unsigned long ino_t;
60 typedef unsigned long ino_t;
62 typedef unsigned short ino_t;
70 typedef unsigned short uid_t;
71 typedef unsigned short gid_t;
76 typedef unsigned int nlink_t;
78 # ifndef _POSIX_SOURCE
79 # define NBBY 8 /* number of bits in a byte */
81 Select uses bit masks of file descriptors in longs.
82 These macros manipulate such bit fields (the filesystem macros use chars).
83 FD_SETSIZE may be defined by the user, but the default here
84 should be >= NOFILE (param.h).
87 # define FD_SETSIZE 60
91 # define NFDBITS (sizeof (fd_mask) * NBBY) /* bits per mask */
94 # define howmany(x,y) (((x)+((y)-1))/(y))
97 typedef struct fd_set {
98 fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)];
101 # endif /* _POSIX_SOURCE */
102 #undef __go32_types__
103 #endif /* _SYS_TYPES_H */