![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 0002 #ifndef _LINUX_POSIX_TYPES_H 0003 #define _LINUX_POSIX_TYPES_H 0004 0005 #include <linux/stddef.h> 0006 0007 /* 0008 * This allows for 1024 file descriptors: if NR_OPEN is ever grown 0009 * beyond that you'll have to change this too. But 1024 fd's seem to be 0010 * enough even for such "real" unices like OSF/1, so hopefully this is 0011 * one limit that doesn't have to be changed [again]. 0012 * 0013 * Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in 0014 * <sys/time.h> (and thus <linux/time.h>) - but this is a more logical 0015 * place for them. Solved by having dummy defines in <sys/time.h>. 0016 */ 0017 0018 /* 0019 * This macro may have been defined in <gnu/types.h>. But we always 0020 * use the one here. 0021 */ 0022 #undef __FD_SETSIZE 0023 #define __FD_SETSIZE 1024 0024 0025 typedef struct { 0026 unsigned long fds_bits[__FD_SETSIZE / (8 * sizeof(long))]; 0027 } __kernel_fd_set; 0028 0029 /* Type of a signal handler. */ 0030 typedef void (*__kernel_sighandler_t)(int); 0031 0032 /* Type of a SYSV IPC key. */ 0033 typedef int __kernel_key_t; 0034 typedef int __kernel_mqd_t; 0035 0036 #include <asm/posix_types.h> 0037 0038 #endif /* _LINUX_POSIX_TYPES_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |