modernc.org/cc@v1.0.1/v2/headers/linux_386/usr/include/i386-linux-gnu/bits/posix1_lim.h (about)

     1  /* Copyright (C) 1991-2018 Free Software Foundation, Inc.
     2     This file is part of the GNU C Library.
     3  
     4     The GNU C Library is free software; you can redistribute it and/or
     5     modify it under the terms of the GNU Lesser General Public
     6     License as published by the Free Software Foundation; either
     7     version 2.1 of the License, or (at your option) any later version.
     8  
     9     The GNU C Library is distributed in the hope that it will be useful,
    10     but WITHOUT ANY WARRANTY; without even the implied warranty of
    11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    12     Lesser General Public License for more details.
    13  
    14     You should have received a copy of the GNU Lesser General Public
    15     License along with the GNU C Library; if not, see
    16     <http://www.gnu.org/licenses/>.  */
    17  
    18  /*
    19   *	POSIX Standard: 2.9.2 Minimum Values	Added to <limits.h>
    20   *
    21   *	Never include this file directly; use <limits.h> instead.
    22   */
    23  
    24  #ifndef	_BITS_POSIX1_LIM_H
    25  #define	_BITS_POSIX1_LIM_H	1
    26  
    27  /* These are the standard-mandated minimum values.  */
    28  
    29  /* Minimum number of operations in one list I/O call.  */
    30  #define _POSIX_AIO_LISTIO_MAX	2
    31  
    32  /* Minimal number of outstanding asynchronous I/O operations.  */
    33  #define _POSIX_AIO_MAX		1
    34  
    35  /* Maximum length of arguments to `execve', including environment.  */
    36  #define	_POSIX_ARG_MAX		4096
    37  
    38  /* Maximum simultaneous processes per real user ID.  */
    39  #ifdef __USE_XOPEN2K
    40  # define _POSIX_CHILD_MAX	25
    41  #else
    42  # define _POSIX_CHILD_MAX	6
    43  #endif
    44  
    45  /* Minimal number of timer expiration overruns.  */
    46  #define _POSIX_DELAYTIMER_MAX	32
    47  
    48  /* Maximum length of a host name (not including the terminating null)
    49     as returned from the GETHOSTNAME function.  */
    50  #define _POSIX_HOST_NAME_MAX	255
    51  
    52  /* Maximum link count of a file.  */
    53  #define	_POSIX_LINK_MAX		8
    54  
    55  /* Maximum length of login name.  */
    56  #define	_POSIX_LOGIN_NAME_MAX	9
    57  
    58  /* Number of bytes in a terminal canonical input queue.  */
    59  #define	_POSIX_MAX_CANON	255
    60  
    61  /* Number of bytes for which space will be
    62     available in a terminal input queue.  */
    63  #define	_POSIX_MAX_INPUT	255
    64  
    65  /* Maximum number of message queues open for a process.  */
    66  #define _POSIX_MQ_OPEN_MAX	8
    67  
    68  /* Maximum number of supported message priorities.  */
    69  #define _POSIX_MQ_PRIO_MAX	32
    70  
    71  /* Number of bytes in a filename.  */
    72  #define	_POSIX_NAME_MAX		14
    73  
    74  /* Number of simultaneous supplementary group IDs per process.  */
    75  #ifdef __USE_XOPEN2K
    76  # define _POSIX_NGROUPS_MAX	8
    77  #else
    78  # define _POSIX_NGROUPS_MAX	0
    79  #endif
    80  
    81  /* Number of files one process can have open at once.  */
    82  #ifdef __USE_XOPEN2K
    83  # define _POSIX_OPEN_MAX	20
    84  #else
    85  # define _POSIX_OPEN_MAX	16
    86  #endif
    87  
    88  #if !defined __USE_XOPEN2K || defined __USE_GNU
    89  /* Number of descriptors that a process may examine with `pselect' or
    90     `select'.  */
    91  # define _POSIX_FD_SETSIZE	_POSIX_OPEN_MAX
    92  #endif
    93  
    94  /* Number of bytes in a pathname.  */
    95  #define	_POSIX_PATH_MAX		256
    96  
    97  /* Number of bytes than can be written atomically to a pipe.  */
    98  #define	_POSIX_PIPE_BUF		512
    99  
   100  /* The number of repeated occurrences of a BRE permitted by the
   101     REGEXEC and REGCOMP functions when using the interval notation.  */
   102  #define _POSIX_RE_DUP_MAX	255
   103  
   104  /* Minimal number of realtime signals reserved for the application.  */
   105  #define _POSIX_RTSIG_MAX	8
   106  
   107  /* Number of semaphores a process can have.  */
   108  #define _POSIX_SEM_NSEMS_MAX	256
   109  
   110  /* Maximal value of a semaphore.  */
   111  #define _POSIX_SEM_VALUE_MAX	32767
   112  
   113  /* Number of pending realtime signals.  */
   114  #define _POSIX_SIGQUEUE_MAX	32
   115  
   116  /* Largest value of a `ssize_t'.  */
   117  #define	_POSIX_SSIZE_MAX	32767
   118  
   119  /* Number of streams a process can have open at once.  */
   120  #define	_POSIX_STREAM_MAX	8
   121  
   122  /* The number of bytes in a symbolic link.  */
   123  #define _POSIX_SYMLINK_MAX	255
   124  
   125  /* The number of symbolic links that can be traversed in the
   126     resolution of a pathname in the absence of a loop.  */
   127  #define _POSIX_SYMLOOP_MAX	8
   128  
   129  /* Number of timer for a process.  */
   130  #define _POSIX_TIMER_MAX	32
   131  
   132  /* Maximum number of characters in a tty name.  */
   133  #define	_POSIX_TTY_NAME_MAX	9
   134  
   135  /* Maximum length of a timezone name (element of `tzname').  */
   136  #ifdef __USE_XOPEN2K
   137  # define _POSIX_TZNAME_MAX	6
   138  #else
   139  # define _POSIX_TZNAME_MAX	3
   140  #endif
   141  
   142  #if !defined __USE_XOPEN2K || defined __USE_GNU
   143  /* Maximum number of connections that can be queued on a socket.  */
   144  # define _POSIX_QLIMIT		1
   145  
   146  /* Maximum number of bytes that can be buffered on a socket for send
   147     or receive.  */
   148  # define _POSIX_HIWAT		_POSIX_PIPE_BUF
   149  
   150  /* Maximum number of elements in an `iovec' array.  */
   151  # define _POSIX_UIO_MAXIOV	16
   152  #endif
   153  
   154  /* Maximum clock resolution in nanoseconds.  */
   155  #define _POSIX_CLOCKRES_MIN	20000000
   156  
   157  /* Get the implementation-specific values for the above.  */
   158  #include <bits/local_lim.h>
   159  
   160  #ifndef	SSIZE_MAX
   161  # define SSIZE_MAX	LONG_MAX
   162  #endif
   163  
   164  /* This value is a guaranteed minimum maximum.
   165     The current maximum can be got from `sysconf'.  */
   166  
   167  #ifndef	NGROUPS_MAX
   168  # define NGROUPS_MAX	8
   169  #endif
   170  
   171  #endif				/* bits/posix1_lim.h  */