Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/* Copyright (C) 1991, 1992, 1993, 1996, 1998 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 Library General Public License as
6
   published by the Free Software Foundation; either version 2 of the
7
   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
   Library General Public License for more details.
13
 
14
   You should have received a copy of the GNU Library General Public
15
   License along with the GNU C Library; see the file COPYING.LIB.  If not,
16
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
   Boston, MA 02111-1307, USA.  */
18
 
19
/*
20
 *      POSIX Standard: 2.9.2 Minimum Values    Added to <limits.h>
21
 *
22
 *      Never include this file directly; use <limits.h> instead.
23
 */
24
 
25
#ifndef _BITS_POSIX1_LIM_H
26
#define _BITS_POSIX1_LIM_H      1
27
 
28
 
29
/* These are the standard-mandated minimum values.  */
30
 
31
/* Minimum number of operations in one list I/O call.  */
32
#define _POSIX_AIO_LISTIO_MAX   2
33
 
34
/* Minimal number of outstanding asynchronous I/O operations.  */
35
#define _POSIX_AIO_MAX          1
36
 
37
/* Maximum length of arguments to `execve', including environment.  */
38
#define _POSIX_ARG_MAX          4096
39
 
40
/* Maximum simultaneous processes per real user ID.  */
41
#define _POSIX_CHILD_MAX        6
42
 
43
/* Minimal number of timer expiration overruns.  */
44
#define _POSIX_DELAYTIMER_MAX   32
45
 
46
/* Maximum link count of a file.  */
47
#define _POSIX_LINK_MAX         8
48
 
49
/* Number of bytes in a terminal canonical input queue.  */
50
#define _POSIX_MAX_CANON        255
51
 
52
/* Number of bytes for which space will be
53
   available in a terminal input queue.  */
54
#define _POSIX_MAX_INPUT        255
55
 
56
/* Maximum number of message queues open for a process.  */
57
#define _POSIX_MQ_OPEN_MAX      8
58
 
59
/* Maximum number of supported message priorities.  */
60
#define _POSIX_MQ_PRIO_MAX      32
61
 
62
/* Number of simultaneous supplementary group IDs per process.  */
63
#define _POSIX_NGROUPS_MAX      0
64
 
65
/* Number of files one process can have open at once.  */
66
#define _POSIX_OPEN_MAX         16
67
 
68
/* Number of descriptors that a process may examine with `pselect' or
69
   `select'.  */
70
#define _POSIX_FD_SETSIZE       _POSIX_OPEN_MAX
71
 
72
/* Number of bytes in a filename.  */
73
#define _POSIX_NAME_MAX         14
74
 
75
/* Number of bytes in a pathname.  */
76
#define _POSIX_PATH_MAX         255
77
 
78
/* Number of bytes than can be written atomically to a pipe.  */
79
#define _POSIX_PIPE_BUF         512
80
 
81
/* Minimal number of realtime signals reserved for the application.  */
82
#define _POSIX_RTSIG_MAX        8
83
 
84
/* Number of semaphores a process can have.  */
85
#define _POSIX_SEM_NSEMS_MAX    256
86
 
87
/* Maximal value of a semaphore.  */
88
#define _POSIX_SEM_VALUE_MAX    32767
89
 
90
/* Number of pending realtime signals.  */
91
#define _POSIX_SIGQUEUE_MAX     32
92
 
93
/* Largest value of a `ssize_t'.  */
94
#define _POSIX_SSIZE_MAX        32767
95
 
96
/* Number of streams a process can have open at once.  */
97
#define _POSIX_STREAM_MAX       8
98
 
99
/* Maximum length of a timezone name (element of `tzname').  */
100
#define _POSIX_TZNAME_MAX       3
101
 
102
/* Maximum number of connections that can be queued on a socket.  */
103
#define _POSIX_QLIMIT           1
104
 
105
/* Maximum number of bytes that can be buffered on a socket for send
106
   or receive.  */
107
#define _POSIX_HIWAT            _POSIX_PIPE_BUF
108
 
109
/* Maximum number of elements in an `iovec' array.  */
110
#define _POSIX_UIO_MAXIOV       16
111
 
112
/* Maximum number of characters in a tty name.  */
113
#define _POSIX_TTY_NAME_MAX     9
114
 
115
/* Number of timer for a process.  */
116
#define _POSIX_TIMER_MAX        32
117
 
118
/* Maximum length of login name.  */
119
#define _POSIX_LOGIN_NAME_MAX   9
120
 
121
/* Maximum clock resolution in nanoseconds.  */
122
#define _POSIX_CLOCKRES_MIN     20000000
123
 
124
 
125
/* Get the implementation-specific values for the above.  */
126
#include <bits/local_lim.h>
127
 
128
 
129
#ifndef SSIZE_MAX
130
# define SSIZE_MAX      INT_MAX
131
#endif
132
 
133
 
134
/* This value is a guaranteed minimum maximum.
135
   The current maximum can be got from `sysconf'.  */
136
 
137
#ifndef NGROUPS_MAX
138
# define NGROUPS_MAX    _POSIX_NGROUPS_MAX
139
#endif
140
 
141
#endif  /* bits/posix1_lim.h  */