Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[wrt350n-kernel.git] / include / asm-v850 / posix_types.h
blob7f403b765390d179e8e939835e9e5052d67677d0
1 /*
2 * include/asm-v850/posix_types.h -- Kernel versions of standard types
4 * Copyright (C) 2001,02,03 NEC Electronics Corporation
5 * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
7 * This file is subject to the terms and conditions of the GNU General
8 * Public License. See the file COPYING in the main directory of this
9 * archive for more details.
11 * Written by Miles Bader <miles@gnu.org>
14 #ifndef __V850_POSIX_TYPES_H__
15 #define __V850_POSIX_TYPES_H__
17 typedef unsigned long __kernel_ino_t;
18 typedef unsigned long long __kernel_ino64_t;
19 typedef unsigned int __kernel_mode_t;
20 typedef unsigned int __kernel_nlink_t;
21 typedef long __kernel_off_t;
22 typedef long long __kernel_loff_t;
23 typedef int __kernel_pid_t;
24 typedef unsigned short __kernel_ipc_pid_t;
25 typedef unsigned int __kernel_uid_t;
26 typedef unsigned int __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_timer_t;
34 typedef int __kernel_clockid_t;
35 typedef int __kernel_daddr_t;
36 typedef char * __kernel_caddr_t;
37 typedef unsigned short __kernel_uid16_t;
38 typedef unsigned short __kernel_gid16_t;
39 typedef unsigned int __kernel_uid32_t;
40 typedef unsigned int __kernel_gid32_t;
42 /* Some bogus code depends on this; we don't care. */
43 typedef __kernel_uid_t __kernel_old_uid_t;
44 typedef unsigned int __kernel_old_dev_t;
46 typedef struct {
47 int val[2];
48 } __kernel_fsid_t;
51 #if defined(__KERNEL__)
53 /* We used to include <asm/bitops.h> here, which seems the right thing, but
54 it caused nasty include-file definition order problems. Removing the
55 include seems to work, so fingers crossed... */
57 #undef __FD_SET
58 #define __FD_SET(fd, fd_set) \
59 __set_bit (fd, (void *)&((__kernel_fd_set *)fd_set)->fds_bits)
60 #undef __FD_CLR
61 #define __FD_CLR(fd, fd_set) \
62 __clear_bit (fd, (void *)&((__kernel_fd_set *)fd_set)->fds_bits)
63 #undef __FD_ISSET
64 #define __FD_ISSET(fd, fd_set) \
65 __test_bit (fd, (void *)&((__kernel_fd_set *)fd_set)->fds_bits)
66 #undef __FD_ZERO
67 #define __FD_ZERO(fd_set) \
68 memset (fd_set, 0, sizeof (*(fd_set *)fd_set))
70 #endif /* defined(__KERNEL__) */
72 #endif /* __V850_POSIX_TYPES_H__ */