Optimize andes_clear_page() and andes_copy_page() with prefetch
[linux-2.6/linux-mips.git] / include / asm-arm / posix_types.h
blob8ad590dd49c9e14204ab3b1915f927c17c77a985
1 /*
2 * linux/include/asm-arm/posix_types.h
4 * Copyright (c) 1996-1998 Russell King.
6 * Changelog:
7 * 27-06-1996 RMK Created
8 */
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;
43 #ifdef __GNUC__
44 typedef long long __kernel_loff_t;
45 #endif
47 typedef struct {
48 #if defined(__KERNEL__) || defined(__USE_ALL)
49 int val[2];
50 #else /* !defined(__KERNEL__) && !defined(__USE_ALL) */
51 int __val[2];
52 #endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */
53 } __kernel_fsid_t;
55 #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
57 #undef __FD_SET
58 #define __FD_SET(fd, fdsetp) \
59 (((fd_set *)fdsetp)->fds_bits[fd >> 5] |= (1<<(fd & 31)))
61 #undef __FD_CLR
62 #define __FD_CLR(fd, fdsetp) \
63 (((fd_set *)fdsetp)->fds_bits[fd >> 5] &= ~(1<<(fd & 31)))
65 #undef __FD_ISSET
66 #define __FD_ISSET(fd, fdsetp) \
67 ((((fd_set *)fdsetp)->fds_bits[fd >> 5] & (1<<(fd & 31))) != 0)
69 #undef __FD_ZERO
70 #define __FD_ZERO(fdsetp) \
71 (memset (fdsetp, 0, sizeof (*(fd_set *)fdsetp)))
73 #endif
75 #endif