OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / bionic / libc / kernel / common / linux / posix_types.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _LINUX_POSIX_TYPES_H
13 #define _LINUX_POSIX_TYPES_H
14
15 #include <linux/stddef.h>
16
17 #undef __NFDBITS
18 #define __NFDBITS (8 * sizeof(unsigned long))
19
20 #undef __FD_SETSIZE
21 #define __FD_SETSIZE 1024
22
23 #undef __FDSET_LONGS
24 #define __FDSET_LONGS (__FD_SETSIZE/__NFDBITS)
25
26 #undef __FDELT
27 #define __FDELT(d) ((d) / __NFDBITS)
28
29 #undef __FDMASK
30 #define __FDMASK(d) (1UL << ((d) % __NFDBITS))
31
32 typedef struct {
33  unsigned long fds_bits [__FDSET_LONGS];
34 } __kernel_fd_set;
35
36 typedef void (*__kernel_sighandler_t)(int);
37
38 typedef int __kernel_key_t;
39 typedef int __kernel_mqd_t;
40
41 #include <asm/posix_types.h>
42
43 #endif