]> git.ipfire.org Git - thirdparty/glibc.git/blame - xopen_lim.h
Update.
[thirdparty/glibc.git] / xopen_lim.h
CommitLineData
2c6fe0bd
UD
1/* Copyright (C) 1996 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/* Additional definitions from X/Open Portability Guide, Issue 4, Version 2
20 System Interfaces and Headers, 4.16 <limits.h>
21
22 Please note only the values which are not greater than the minimum
23 stated in the standard document are listed. The `sysconf' functions
24 should be used to obtain the actual value. */
25
26#ifndef _XOPEN_LIM_H
27
28#define _XOPEN_LIM_H 1
29
30/* We do not provide fixed values for
31
32 ARG_MAX Maximum length of argument to the `exec' function
33 including environment data.
34
35 ATEXIT_MAX Maximum number of functions that may be registered
36 with `atexit'.
37
38 CHILD_MAX Maximum number of simultaneous processes per real
39 user ID.
40
41 OPEN_MAX Maximum number of files that one process can have open
42 at anyone time.
43
44 PAGESIZE
45 PAGE_SIZE Size of bytes of a page.
46
47 PASS_MAX Maximum number of significant bytes in a password.
48*/
49
50
51/* Maximum number of `iovec' structures that one process has available
52 for use with `readv' or writev'. */
53#define IOV_MAX _XOPEN_IOV_MAX
54
55/* The number of streams that one process can have open at one time. */
56#define STREAM_MAX _POSIX_STREAM_MAX
57
58/* Maximum number of bytes supported for the name of a time zone. */
59#define TZNAME_MAX _POSIX_TZNAME_MAX
60
61
62/* Maximum number of `iovec' structures that one process has available
63 for use with `readv' or writev'. */
64#define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV
65
66
67/* Maximum value of `digit' in calls to the `printf' and `scanf'
68 functions. We have no limit, so return a reasonable value. */
69#define NL_ARGMAX _POSIX_ARG_MAX
70
71/* Maximum number of bytes in a `LANG' name. We have no limit. */
72#define NL_LANGMAX _POSIX2_LINE_MAX
73
74/* Maximum message number. We have no limit. */
75#define NL_MSGMAX INT_MAX
76
77/* Maximum number of bytes in N-to-1 collation mapping. We have no
78 limit. */
79#define NL_NMAX INT_MAX
80
81/* Maximum set number. We have no limit. */
82#define NL_SETMAX INT_MAX
83
84/* Maximum number of bytes in a message. We have no limit. */
85#define NL_TEXTMAX INT_MAX
86
87/* Default process priority. */
88#define NZERO 20
89
90#endif /* xopen_lim.h */