posix1_lim.h 5.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. * All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. *
  8. * 1. Redistributions of source code must retain the above copyright notice, this
  9. * list of conditions and the following disclaimer.
  10. *
  11. * 2. Redistributions in binary form must reproduce the above copyright notice,
  12. * this list of conditions and the following disclaimer in the documentation
  13. * and/or other materials provided with the distribution.
  14. *
  15. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  16. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  19. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  20. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  21. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  22. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  23. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  24. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. */
  26. #pragma once
  27. #define _POSIX_AIO_LISTIO_MAX 2 /* The number of I/O operations that can be specified in a list I/O call. */
  28. #define _POSIX_AIO_MAX 1 /* The number of outstanding asynchronous I/O operations. */
  29. #define _POSIX_ARG_MAX 4096 /* Maximum length of argument to the exec functions including environment data. */
  30. #define _POSIX_CHILD_MAX 25 /* Maximum number of simultaneous processes per real user ID. */
  31. #define _POSIX_DELAYTIMER_MAX 32 /* The number of timer expiration overruns. */
  32. #define _POSIX_HOST_NAME_MAX 255 /* Maximum length of a host name (not including the terminating null) as returned from the gethostname() function. */
  33. #define _POSIX_LINK_MAX 8 /* Maximum number of links to a single file. */
  34. #define _POSIX_LOGIN_NAME_MAX 9 /* The size of the storage required for a login name, in bytes, including the terminating null. */
  35. #define _POSIX_MAX_CANON 255 /* Maximum number of bytes in a terminal canonical input queue. */
  36. #define _POSIX_MAX_INPUT 255 /* Maximum number of bytes allowed in a terminal input queue. */
  37. #define _POSIX_MQ_OPEN_MAX 8 /* The number of message queues that can be open for a single process.) */
  38. #define _POSIX_MQ_PRIO_MAX 32 /* The maximum number of message priorities supported by the implementation. */
  39. #define _POSIX_NAME_MAX 14 /* Maximum number of bytes in a filename (not including terminating null). */
  40. #define _POSIX_NGROUPS_MAX 8 /* Maximum number of simultaneous supplementary group IDs per process. */
  41. #define _POSIX_OPEN_MAX 20 /* Maximum number of files that one process can have open at any one time. */
  42. #define _POSIX_PATH_MAX 256 /* Maximum number of bytes in a pathname. */
  43. #define _POSIX_PIPE_BUF 512 /* Maximum number of bytes that is guaranteed to be atomic when writing to a pipe. */
  44. #define _POSIX_RE_DUP_MAX 255 /* The number of repeated occurrences of a BRE permitted by the regexec() and regcomp() functions when using the interval notation #define \(m,n\}; see BREs Matching Multiple Characters. */
  45. #define _POSIX_RTSIG_MAX 8 /* The number of realtime signal numbers reserved for application use. */
  46. #define _POSIX_SEM_NSEMS_MAX 256 /* The number of semaphores that a process may have. */
  47. #define _POSIX_SEM_VALUE_MAX 32767 /* The maximum value a semaphore may have. */
  48. #define _POSIX_SIGQUEUE_MAX 32 /* The number of queued signals that a process may send and have pending at the receiver(s) at any time. */
  49. #define _POSIX_SSIZE_MAX 32767 /* The value that can be stored in an object of type ssize_t. */
  50. #define _POSIX_SS_REPL_MAX 4 /* The number of replenishment operations that may be simultaneously pending for a particular sporadic server scheduler. */
  51. #define _POSIX_STREAM_MAX 8 /* The number of streams that one process can have open at one time. */
  52. #define _POSIX_SYMLINK_MAX 255 /* The number of bytes in a symbolic link. */
  53. #define _POSIX_SYMLOOP_MAX 8 /* The number of symbolic links that can be traversed in the resolution of a pathname in the absence of a loop. */
  54. #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 /* The number of attempts made to destroy a thread's thread-specific data values on thread exit. */
  55. #define _POSIX_THREAD_KEYS_MAX 128 /* The number of data keys per process. */
  56. #define _POSIX_THREAD_THREADS_MAX 64 /* The number of threads per process. */
  57. #define _POSIX_TIMER_MAX 32 /* The per-process number of timers. */
  58. #define _POSIX_TRACE_EVENT_NAME_MAX 30 /* The length in bytes of a trace event name. */
  59. #define _POSIX_TRACE_NAME_MAX 8 /* The length in bytes of a trace generation version string or a trace stream name. */
  60. #define _POSIX_TRACE_SYS_MAX 8 /* The number of trace streams that may simultaneously exist in the system. */
  61. #define _POSIX_TRACE_USER_EVENT_MAX 32 /* The number of user trace event type identifiers that may simultaneously exist in a traced process, including the predefined user trace event POSIX_TRACE_UNNAMED_USER_EVENT. */
  62. #define _POSIX_TTY_NAME_MAX 9 /* The size of the storage required for a terminal device name, in bytes, including the terminating null. */
  63. #define _POSIX_TZNAME_MAX 6 /* Maximum number of bytes supported for the name of a timezone (not of the TZ variable). */