2 * linux/include/asm-arm/posix_types.h
4 * Copyright (c) 1996-1998 Russell King.
7 * 27-06-1996 RMK Created
9 #ifndef __ARCH_ARM_POSIX_TYPES_H
10 #define __ARCH_ARM_POSIX_TYPES_H
13 * This file is generally used by user-level software, so you need to
14 * be a little careful about namespace pollution etc. Also, we cannot
15 * assume GCC is being used.
18 typedef unsigned short __kernel_dev_t
;
19 typedef unsigned long __kernel_ino_t
;
20 typedef unsigned short __kernel_mode_t
;
21 typedef unsigned short __kernel_nlink_t
;
22 typedef long __kernel_off_t
;
23 typedef int __kernel_pid_t
;
24 typedef unsigned short __kernel_ipc_pid_t
;
25 typedef unsigned short __kernel_uid_t
;
26 typedef unsigned short __kernel_gid_t
;
27 typedef unsigned int __kernel_size_t
;
28 typedef int __kernel_ssize_t
;
29 typedef int __kernel_ptrdiff_t
;
30 typedef long __kernel_time_t
;
31 typedef long __kernel_suseconds_t
;
32 typedef long __kernel_clock_t
;
33 typedef int __kernel_daddr_t
;
34 typedef char * __kernel_caddr_t
;
35 typedef unsigned short __kernel_uid16_t
;
36 typedef unsigned short __kernel_gid16_t
;
37 typedef unsigned int __kernel_uid32_t
;
38 typedef unsigned int __kernel_gid32_t
;
40 typedef unsigned short __kernel_old_uid_t
;
41 typedef unsigned short __kernel_old_gid_t
;
44 typedef long long __kernel_loff_t
;
48 #if defined(__KERNEL__) || defined(__USE_ALL)
50 #else /* !defined(__KERNEL__) && !defined(__USE_ALL) */
52 #endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */
55 #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
58 #define __FD_SET(fd, fdsetp) \
59 (((fd_set *)fdsetp)->fds_bits[fd >> 5] |= (1<<(fd & 31)))
62 #define __FD_CLR(fd, fdsetp) \
63 (((fd_set *)fdsetp)->fds_bits[fd >> 5] &= ~(1<<(fd & 31)))
66 #define __FD_ISSET(fd, fdsetp) \
67 ((((fd_set *)fdsetp)->fds_bits[fd >> 5] & (1<<(fd & 31))) != 0)
70 #define __FD_ZERO(fdsetp) \
71 (memset (fdsetp, 0, sizeof (*(fd_set *)fdsetp)))