logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

posix_types.h (1098B)


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