Blame include/uapi/linux/posix_types.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Packit Service 3880ab
#ifndef _LINUX_POSIX_TYPES_H
Packit Service 3880ab
#define _LINUX_POSIX_TYPES_H
Packit Service 3880ab
Packit Service 3880ab
#include <linux/stddef.h>
Packit Service 3880ab
Packit Service 3880ab
/*
Packit Service 3880ab
 * This allows for 1024 file descriptors: if NR_OPEN is ever grown
Packit Service 3880ab
 * beyond that you'll have to change this too. But 1024 fd's seem to be
Packit Service 3880ab
 * enough even for such "real" unices like OSF/1, so hopefully this is
Packit Service 3880ab
 * one limit that doesn't have to be changed [again].
Packit Service 3880ab
 *
Packit Service 3880ab
 * Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in
Packit Service 3880ab
 * <sys/time.h> (and thus <linux/time.h>) - but this is a more logical
Packit Service 3880ab
 * place for them. Solved by having dummy defines in <sys/time.h>.
Packit Service 3880ab
 */
Packit Service 3880ab
Packit Service 3880ab
/*
Packit Service 3880ab
 * This macro may have been defined in <gnu/types.h>. But we always
Packit Service 3880ab
 * use the one here.
Packit Service 3880ab
 */
Packit Service 3880ab
#undef __FD_SETSIZE
Packit Service 3880ab
#define __FD_SETSIZE	1024
Packit Service 3880ab
Packit Service 3880ab
typedef struct {
Packit Service 3880ab
	unsigned long fds_bits[__FD_SETSIZE / (8 * sizeof(long))];
Packit Service 3880ab
} __kernel_fd_set;
Packit Service 3880ab
Packit Service 3880ab
/* Type of a signal handler.  */
Packit Service 3880ab
typedef void (*__kernel_sighandler_t)(int);
Packit Service 3880ab
Packit Service 3880ab
/* Type of a SYSV IPC key.  */
Packit Service 3880ab
typedef int __kernel_key_t;
Packit Service 3880ab
typedef int __kernel_mqd_t;
Packit Service 3880ab
Packit Service 3880ab
#include <asm/posix_types.h>
Packit Service 3880ab
Packit Service 3880ab
#endif /* _LINUX_POSIX_TYPES_H */