8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / man / man3head / limits.h.3head
blob0e9e9fd470873a05e5079b94b6fc14077ab2c068
1 '\" te
2 .\" Copyright 1989 AT&T. Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LIMITS.H 3HEAD "Apr 8, 2004"
7 .SH NAME
8 limits.h, limits \- implementation-defined constants
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB#include <limits.h>\fR
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The <\fBlimits.h\fR> header defines various symbolic names. Different
19 categories of names are described below.
20 .sp
21 .LP
22 The names represent various limits on resources that the implementation imposes
23 on applications. Symbolic constant names beginning with _POSIX can be found in
24 \fBunistd.h\fR(3HEAD).
25 .sp
26 .LP
27 Applications should not assume any particular value for a limit. An application
28 wishing to avail itself of the full amount of a resource available on an
29 implementation can make use of the value given in limits.h on that particular
30 implementation by using the symbolic names listed below. Many of the listed
31 limits are not invariant, and at runtime, the value of the limit might differ
32 from those given in this header, for the following reasons:
33 .RS +4
34 .TP
35 .ie t \(bu
36 .el o
37 The limit is pathname-dependent.
38 .RE
39 .RS +4
40 .TP
41 .ie t \(bu
42 .el o
43 The limit differs between the compile and runtime machines.
44 .RE
45 .sp
46 .LP
47 For these reasons, an application can use the \fBfpathconf\fR(2),
48 \fBpathconf\fR(2), and \fBsysconf\fR(3C) functions to determine the actual
49 value of a limit at runtime.
50 .SS "Runtime Invariant Values (Possibly Indeterminate)"
51 .sp
52 .ne 2
53 .na
54 \fB\fBAIO_LISTIO_MAX\fR\fR
55 .ad
56 .sp .6
57 .RS 4n
58 Maximum number of I/O operations in a single list I/O call supported by the
59 implementation.
60 .RE
62 .sp
63 .ne 2
64 .na
65 \fB\fBAIO_MAX\fR\fR
66 .ad
67 .sp .6
68 .RS 4n
69 Maximum number of outstanding asynchronous I/O operations supported by the
70 implementation.
71 .RE
73 .sp
74 .ne 2
75 .na
76 \fB\fBAIO_PRIO_DELTA_MAX\fR\fR
77 .ad
78 .sp .6
79 .RS 4n
80 The maximum amount by which a process can decrease its asynchronous I/O
81 priority level from its own scheduling priority.
82 .RE
84 .sp
85 .ne 2
86 .na
87 \fB\fBARG_MAX\fR\fR
88 .ad
89 .sp .6
90 .RS 4n
91 Maximum length of argument to the \fBexec\fR(2) functions including environment
92 data.
93 .RE
95 .sp
96 .ne 2
97 .na
98 \fB\fBATEXIT_MAX\fR\fR
99 .ad
100 .sp .6
101 .RS 4n
102 Maximum number of functions that can be registered with \fBatexit\fR(3C).
106 .ne 2
108 \fB\fBCHILD_MAX\fR\fR
110 .sp .6
111 .RS 4n
112 Maximum number of simultaneous processes per real user ID.
116 .ne 2
118 \fB\fBCLK_TCK\fR\fR
120 .sp .6
121 .RS 4n
122 Number of clock ticks per second returned by the \fBtimes\fR(2) function.
126 .ne 2
128 \fB\fBDELAYTIMER_MAX\fR\fR
130 .sp .6
131 .RS 4n
132 Maximum number of timer expiration overruns.
136 .ne 2
138 \fB\fBHOST_NAME_MAX\fR\fR
140 .sp .6
141 .RS 4n
142 Maximum length of a host name (not including the terminating null) as returned
143 from the \fBgethostname\fR(3C) function.
147 .ne 2
149 \fB\fBIOV_MAX\fR\fR
151 .sp .6
152 .RS 4n
153 Maximum number of \fBiovec\fR structures that one process has available for use
154 with \fBread\fR(2) or \fBwrite\fR(2).
158 .ne 2
160 \fB\fBLOGIN_NAME_MAX\fR\fR
162 .sp .6
163 .RS 4n
164 Maximum length of a login name.
168 .ne 2
170 \fB\fBMQ_OPEN_MAX\fR\fR
172 .sp .6
173 .RS 4n
174 The maximum number of open message queue descriptors a process is allowed to
175 hold.
179 .ne 2
181 \fB\fBLOGIN_NAME_MAX\fR\fR
183 .sp .6
184 .RS 4n
185 Maximum length of a login name.
189 .ne 2
191 \fB\fBMQ_OPEN_MAX\fR\fR
193 .sp .6
194 .RS 4n
195 The maximum number of open message queue descriptors a process is allowed to
196 hold.
200 .ne 2
202 \fB\fBMQ_PRIO_MAX\fR\fR
204 .sp .6
205 .RS 4n
206 The maximum number of message priorities supported by the implementation.
210 .ne 2
212 \fB\fBOPEN_MAX\fR\fR
214 .sp .6
215 .RS 4n
216 Maximum number of files that one process can have open at any one time.
220 .ne 2
222 \fB\fBPAGESIZE\fR\fR
224 .sp .6
225 .RS 4n
226 Size in bytes of a page.
230 .ne 2
232 \fB\fBPAGE_SIZE\fR\fR
234 .sp .6
235 .RS 4n
236 Equivalent to \fBPAGESIZE\fR. If either \fBPAGESIZE\fR or \fBPAGE_SIZE\fR is
237 defined, the other is defined with the same value.
241 .ne 2
243 \fB\fBPASS_MAX\fR\fR
245 .sp .6
246 .RS 4n
247 The maximum number of significant bytes in a password, not including the
248 terminating null.
252 .ne 2
254 \fB\fBPTHREAD_DESTRUCTOR_ITERATIONS\fR\fR
256 .sp .6
257 .RS 4n
258 Maximum number of attempts made to destroy a thread's thread-specific data
259 values on thread exit.
263 .ne 2
265 \fB\fBPTHREAD_KEYS_MAX\fR\fR
267 .sp .6
268 .RS 4n
269 Maximum number of data keys that can be created by a process.
273 .ne 2
275 \fB\fBPTHREAD_STACK_MIN\fR\fR
277 .sp .6
278 .RS 4n
279 Minimum size in bytes of thread stack storage.
283 .ne 2
285 \fB\fBPTHREAD_THREADS_MAX\fR\fR
287 .sp .6
288 .RS 4n
289 Maximum number of threads that can be created per process.
293 .ne 2
295 \fB\fBRE_DUP_MAX\fR\fR
297 .sp .6
298 .RS 4n
299 The number of repeated occurrences of a BRE permitted by the \fBregexec\fR(3C)
300 and \fBregcomp\fR(3C) functions when using the interval notation
301 {\e(\fIm\fR,\fIn\fR\e}.
305 .ne 2
307 \fB\fBRTSIG_MAX\fR\fR
309 .sp .6
310 .RS 4n
311 Maximum number of realtime signals reserved for application use in this
312 implementation.
316 .ne 2
318 \fB\fBSEM_NSEMS_MAX\fR\fR
320 .sp .6
321 .RS 4n
322 Maximum number of semaphores that a process can have.
326 .ne 2
328 \fB\fBSEM_VALUE_MAX\fR\fR
330 .sp .6
331 .RS 4n
332 The maximum value a semaphore can have.
336 .ne 2
338 \fB\fBSIGQUEUE_MAX\fR\fR
340 .sp .6
341 .RS 4n
342 Maximum number of queued signals that a process can send and have pending at
343 the receiver(s) at any time.
347 .ne 2
349 \fB\fBSS_REPL_MAX\fR\fR
351 .sp .6
352 .RS 4n
353 The maximum number of replenishment operations that may be simultaneously
354 pending for a particular sporadic server scheduler.
358 .ne 2
360 \fB\fBSTREAM_MAX\fR\fR
362 .sp .6
363 .RS 4n
364 The number of streams that one process can have open at one time. If defined,
365 it has the same value as \fBFOPEN_MAX\fR.
369 .ne 2
371 \fB\fBSYMLOOP_MAX\fR\fR
373 .sp .6
374 .RS 4n
375 Maximum number of symbolic links that can be reliably traversed in the
376 resolution of a pathname in the absence of a loop.
380 .ne 2
382 \fB\fBTIMER_MAX\fR\fR
384 .sp .6
385 .RS 4n
386 Maximum number of timers per process supported by the implementation.
390 .ne 2
392 \fB\fBTRACE_EVENT_NAME_MAX\fR\fR
394 .sp .6
395 .RS 4n
396 Maximum length of the trace event name.
400 .ne 2
402 \fB\fBTRACE_NAME_MAX\fR\fR
404 .sp .6
405 .RS 4n
406 Maximum length of the trace generation version string or of the trace stream
407 name.
411 .ne 2
413 \fB\fBTRACE_SYS_MAX\fR\fR
415 .sp .6
416 .RS 4n
417 Maximum number of trace streams that may simultaneously exist in the system.
421 .ne 2
423 \fB\fBTRACE_USER_EVENT_MAX\fR\fR
425 .sp .6
426 .RS 4n
427 Maximum number of user trace event type identifiers that may simultaneously
428 exist in a traced process, including the predefined user trace event
429 \fBPOSIX_TRACE_UNNAMED_USER_EVENT\fR.
433 .ne 2
435 \fB\fBTTY_NAME_MAX\fR\fR
437 .sp .6
438 .RS 4n
439 Maximum length of terminal device name.
443 .ne 2
445 \fB\fBTZNAME_MAX\fR\fR
447 .sp .6
448 .RS 4n
449 Maximum number of bytes supported for the name of a timezone (not of the TZ
450 variable).
453 .SS "Pathname Variable Values"
456 The values in the following list can be constants within an implementation or
457 can vary from one pathname to another. For example, file systems or directories
458 can have different characteristics. The value supported for a specific pathname
459 is provided by the \fBpathconf\fR(2) function.
461 .ne 2
463 \fB\fBFILESIZEBITS\fR\fR
465 .RS 28n
466 Minimum number of bits needed to represent, as a signed integer value, the
467 maximum size of a regular file allowed in the specified directory.
471 .ne 2
473 \fB\fBLINK_MAX\fR\fR
475 .RS 28n
476 Maximum number of links to a single file.
480 .ne 2
482 \fB\fBMAX_CANON\fR\fR
484 .RS 28n
485 Maximum number of bytes in a terminal canonical input line.
489 .ne 2
491 \fB\fBMAX_INPUT\fR\fR
493 .RS 28n
494 Minimum number of bytes for which space is available in a terminal input queue;
495 therefore, the maximum number of bytes a conforming application may require to
496 be typed as input before reading them.
500 .ne 2
502 \fB\fBNAME_MAX\fR\fR
504 .RS 28n
505 Maximum number of bytes in a filename (not including terminating null).
509 .ne 2
511 \fB\fBPATH_MAX\fR\fR
513 .RS 28n
514 Maximum number of bytes in a pathname, including the terminating null
515 character.
519 .ne 2
521 \fB\fBPIPE_BUF\fR\fR
523 .RS 28n
524 Maximum number of bytes that is guaranteed to be atomic when writing to a pipe.
528 .ne 2
530 \fB\fBPOSIX_ALLOC_SIZE_MIN\fR\fR
532 .RS 28n
533 Minimum number of bytes of storage actually allocated for any portion of a
534 file.
538 .ne 2
540 \fB\fBPOSIX_REC_INCR_XFER_SIZE\fR\fR
542 .RS 28n
543 Recommended increment for file transfer sizes between the
544 \fBPOSIX_REC_MIN_XFER_SIZE\fR and \fBPOSIX_REC_MAX_XFER_SIZE\fR values.
548 .ne 2
550 \fB\fBPOSIX_REC_MAX_XFER_SIZE\fR\fR
552 .RS 28n
553 Maximum recommended file transfer size.
557 .ne 2
559 \fB\fBPOSIX_REC_MIN_XFER_SIZE\fR\fR
561 .RS 28n
562 Minimum recommended file transfer size.
566 .ne 2
568 \fB\fBPOSIX_REC_XFER_ALIGN\fR\fR
570 .RS 28n
571 Recommended file transfer buffer alignment.
575 .ne 2
577 \fB\fBSYMLINK_MAX\fR\fR
579 .RS 28n
580 Maximum number of bytes in a symbolic link.
583 .SS "Runtime Increasable Values"
586 The magnitude limitations in the following list are fixed by specific
587 implementations. An application should assume that the value supplied by
588 <\fBlimits.h\fR> in a specific implementation is the minimum that pertains
589 whenever the application is run under that implementation. A specific instance
590 of a specific implementation can increase the value relative to that supplied
591 by <\fBlimits.h\fR> for that implementation. The actual value supported by a
592 specific instance is provided by the \fBsysconf\fR(3C) function.
594 .ne 2
596 \fB\fBBC_BASE_MAX\fR\fR
598 .RS 22n
599 Maximum obase values allowed by the \fBbc\fR(1) utility.
603 .ne 2
605 \fB\fBBC_DIM_MAX\fR\fR
607 .RS 22n
608 Maximum number of elements permitted in an array by the \fBbc\fR utility.
612 .ne 2
614 \fB\fBBC_SCALE_MAX\fR\fR
616 .RS 22n
617 Maximum scale value allowed by the \fBbc\fR utility.
621 .ne 2
623 \fB\fBBC_STRING_MAX\fR\fR
625 .RS 22n
626 Maximum length of a string constant accepted by the \fBbc\fR utility.
630 .ne 2
632 \fB\fBCHARCLASS_NAME_MAX\fR\fR
634 .RS 22n
635 Maximum number of bytes in a character class name.
639 .ne 2
641 \fB\fBCOLL_WEIGHTS_MAX\fR\fR
643 .RS 22n
644 Maximum number of weights that can be assigned to an entry of the
645 \fBLC_COLLATE\fR order keyword in the locale definition file.
649 .ne 2
651 \fB\fBEXPR_NEST_MAX\fR\fR
653 .RS 22n
654 Maximum number of expressions that can be nested within parentheses by the
655 \fBexpr\fR(1) utility.
659 .ne 2
661 \fB\fBEXPR_NEST_MAX\fR\fR
663 .RS 22n
664 Maximum number of expressions that can be nested within parentheses by the
665 \fBexpr\fR utility.
669 .ne 2
671 \fB\fBLINE_MAX\fR\fR
673 .RS 22n
674 Unless otherwise noted, the maximum length, in bytes, of a utility's input line
675 (either standard input or another file), when the utility is described as
676 processing text files. The length includes room for the trailing <newline>.
680 .ne 2
682 \fB\fBNGROUPS_MAX\fR\fR
684 .RS 22n
685 Maximum number of simultaneous supplementary group IDs per process.
689 .ne 2
691 \fB\fBRE_DUP_MAX\fR\fR
693 .RS 22n
694 Maximum number of repeated occurrences of a regular expression permitted when
695 using the interval notation \e{\fIm\fR,\fIn\fR\e}.
698 .SS "Maximum Values"
701 The symbolic constants in the following list are symbolic names for the most
702 restrictive value for certain features on an implementation supporting the
703 POSIX Timers option.
705 .ne 2
707 \fB\fB_POSIX_CLOCKRES_MIN\fR\fR
709 .RS 23n
710 The resolution of the \fBCLOCK_REALTIME\fR clock, in nanoseconds.
713 .SS "Minimum Values"
716 The symbolic constants in the following list are symbolic names for the most
717 restrictive value for certain features on an implementation conforming to
718 various POSIX and Single Unix Specification requirements. See
719 \fBstandards\fR(5).
721 .ne 2
723 \fB\fB_POSIX_AIO_LISTIO_MAX\fR\fR
725 .sp .6
726 .RS 4n
727 The number of I/O operations that can be specified in a list I/O call.
731 .ne 2
733 \fB\fB_POSIX_AIO_MAX\fR\fR
735 .sp .6
736 .RS 4n
737 The number of outstanding asynchronous I/O operations.
741 .ne 2
743 \fB\fB_POSIX_ARG_MAX\fR\fR
745 .sp .6
746 .RS 4n
747 Maximum length of argument to the \fBexec\fR(2) functions including environment
748 data.
752 .ne 2
754 \fB\fB_POSIX_CHILD_MAX\fR\fR
756 .sp .6
757 .RS 4n
758 Maximum number of simultaneous processes per real user ID.
762 .ne 2
764 \fB\fB_POSIX_DELAYTIMER_MAX\fR\fR
766 .sp .6
767 .RS 4n
768 The number of timer expiration overruns.
772 .ne 2
774 \fB\fB_POSIX_HOST_NAME_MAX\fR\fR
776 .sp .6
777 .RS 4n
778 Maximum length of a host name (not including the terminating null) as returned
779 from the \fBgethostname\fR(3C) function.
783 .ne 2
785 \fB\fB_POSIX_LINK_MAX\fR\fR
787 .sp .6
788 .RS 4n
789 Maximum number of links to a single file.
793 .ne 2
795 \fB\fB_POSIX_LOGIN_NAME_MAX\fR\fR
797 .sp .6
798 .RS 4n
799 The size of the storage required for a login name, in bytes, including the
800 terminating null.
804 .ne 2
806 \fB\fB_POSIX_MAX_CANON\fR\fR
808 .sp .6
809 .RS 4n
810 Maximum number of bytes in a terminal canonical input queue.
814 .ne 2
816 \fB\fB_POSIX_MAX_INPUT\fR\fR
818 .sp .6
819 .RS 4n
820 Maximum number of bytes allowed in a terminal input queue.
824 .ne 2
826 \fB\fB_POSIX_MQ_OPEN_MAX\fR\fR
828 .sp .6
829 .RS 4n
830 The number of message queues that can be open for a single process.
834 .ne 2
836 \fB\fB_POSIX_MQ_PRIO_MAX\fR\fR
838 .sp .6
839 .RS 4n
840 The maximum number of message priorities supported by the implementation.
844 .ne 2
846 \fB\fB_POSIX_NAME_MAX\fR\fR
848 .sp .6
849 .RS 4n
850 Maximum number of bytes in a filename (not including terminating null).
854 .ne 2
856 \fB\fB_POSIX_NGROUPS_MAX\fR\fR
858 .sp .6
859 .RS 4n
860 Maximum number of simultaneous supplementary group IDs per process.
864 .ne 2
866 \fB\fB_POSIX_OPEN_MAX\fR\fR
868 .sp .6
869 .RS 4n
870 Maximum number of files that one process can have open at any one time.
874 .ne 2
876 \fB\fB_POSIX_PATH_MAX\fR\fR
878 .sp .6
879 .RS 4n
880 Maximum number of bytes in a pathname.
884 .ne 2
886 \fB\fB_POSIX_PIPE_BUF\fR\fR
888 .sp .6
889 .RS 4n
890 Maximum number of bytes that is guaranteed to be atomic when writing to a pipe.
894 .ne 2
896 \fB\fB_POSIX_RE_DUP_MAX\fR\fR
898 .sp .6
899 .RS 4n
900 The number of repeated occurrences of a BRE permitted by the \fBregexec()\fR
901 and \fBregcomp()\fR functions when using the interval notation
902 {\e(\fIm\fR,\fIn\fR\e}
906 .ne 2
908 \fB\fB_POSIX_RTSIG_MAX\fR\fR
910 .sp .6
911 .RS 4n
912 The number of realtime signal numbers reserved for application use.
916 .ne 2
918 \fB\fB_POSIX_SEM_NSEMS_MAX\fR\fR
920 .sp .6
921 .RS 4n
922 The number of semaphores that a process can have.
926 .ne 2
928 \fB\fB_POSIX_SEM_VALUE_MAX\fR\fR
930 .sp .6
931 .RS 4n
932 The maximum value a semaphore can have.
936 .ne 2
938 \fB\fB_POSIX_SIGQUEUE_MAX\fR\fR
940 .sp .6
941 .RS 4n
942 The number of queued signals that a process can send and have pending at the
943 receiver(s) at any time.
947 .ne 2
949 \fB\fB_POSIX_SSIZE_MAX\fR\fR
951 .sp .6
952 .RS 4n
953 The value that can be stored in an object of type \fBssize_t\fR.
957 .ne 2
959 \fB\fB_POSIX_STREAM_MAX\fR\fR
961 .sp .6
962 .RS 4n
963 The number of streams that one process can have open at one time.
967 .ne 2
969 \fB\fB_POSIX_SS_REPL_MAX\fR\fR
971 .sp .6
972 .RS 4n
973 The number of replenishment operations that can be simultaneously pending for a
974 particular sporadic server scheduler.
978 .ne 2
980 \fB\fB_POSIX_SYMLINK_MAX\fR\fR
982 .sp .6
983 .RS 4n
984 The number of bytes in a symbolic link.
988 .ne 2
990 \fB\fB_POSIX_SYMLOOP_MAX\fR\fR
992 .sp .6
993 .RS 4n
994 The number of symbolic links that can be traversed in the resolution of a
995 pathname in the absence of a loop.
999 .ne 2
1001 \fB\fB_POSIX_THREAD_DESTRUCTOR_ITERATIONS\fR\fR
1003 .sp .6
1004 .RS 4n
1005 The number of attempts made to destroy a thread's thread-specific data values
1006 on thread exit.
1010 .ne 2
1012 \fB\fB_POSIX_THREAD_KEYS_MAX\fR\fR
1014 .sp .6
1015 .RS 4n
1016 The number of data keys per process.
1020 .ne 2
1022 \fB\fB_POSIX_THREAD_THREADS_MAX\fR\fR
1024 .sp .6
1025 .RS 4n
1026 The number of threads per process.
1030 .ne 2
1032 \fB\fB_POSIX_TIMER_MAX\fR\fR
1034 .sp .6
1035 .RS 4n
1036 The per-process number of timers.
1040 .ne 2
1042 \fB\fB_POSIX_TRACE_EVENT_NAME_MAX\fR\fR
1044 .sp .6
1045 .RS 4n
1046 The length in bytes of a trace event name.
1050 .ne 2
1052 \fB\fB_POSIX_TRACE_NAME_MAX\fR\fR
1054 .sp .6
1055 .RS 4n
1056 The length in bytes of a trace generation version string or a trace stream
1057 name.
1061 .ne 2
1063 \fB\fB_POSIX_TRACE_SYS_MAX\fR\fR
1065 .sp .6
1066 .RS 4n
1067 The number of trace streams that can simultaneously exist in the system.
1071 .ne 2
1073 \fB\fB_POSIX_TRACE_USER_EVENT_MAX\fR\fR
1075 .sp .6
1076 .RS 4n
1077 The number of user trace event type identifiers that may simultaneously exist
1078 in a traced process, including the predefined user trace event
1079 \fBPOSIX_TRACE_UNNAMED_USER_EVENT\fR.
1083 .ne 2
1085 \fB\fB_POSIX_TTY_NAME_MAX\fR\fR
1087 .sp .6
1088 .RS 4n
1089 The size of the storage required for a terminal device name, in bytes,
1090 including the terminating null.
1094 .ne 2
1096 \fB\fB_POSIX_TZNAME_MAX\fR\fR
1098 .sp .6
1099 .RS 4n
1100 Maximum number of bytes supported for the name of a timezone (not of the TZ
1101 variable).
1105 .ne 2
1107 \fB\fB_POSIX2_BC_BASE_MAX\fR\fR
1109 .sp .6
1110 .RS 4n
1111 Maximum obase values allowed by the \fBbc\fR utility.
1115 .ne 2
1117 \fB\fB_POSIX2_BC_DIM_MAX\fR\fR
1119 .sp .6
1120 .RS 4n
1121 Maximum number of elements permitted in an array by the \fBbc\fR utility.
1125 .ne 2
1127 \fB\fB_POSIX2_BC_SCALE_MAX\fR\fR
1129 .sp .6
1130 .RS 4n
1131 Maximum scale value allowed by the \fBbc\fR utility.
1135 .ne 2
1137 \fB\fB_POSIX2_BC_STRING_MAX\fR\fR
1139 .sp .6
1140 .RS 4n
1141 Maximum length of a string constant accepted by the \fBbc\fR utility.
1145 .ne 2
1147 \fB\fB_POSIX2_CHARCLASS_NAME_MAX\fR\fR
1149 .sp .6
1150 .RS 4n
1151 Maximum number of bytes in a character class name.
1155 .ne 2
1157 \fB\fB_POSIX2_COLL_WEIGHTS_MAX\fR\fR
1159 .sp .6
1160 .RS 4n
1161 Maximum number of weights that can be assigned to an entry of the
1162 \fBLC_COLLATE\fR order keyword in the locale definition file.
1166 .ne 2
1168 \fB\fB_POSIX2_EXPR_NEST_MAX\fR\fR
1170 .sp .6
1171 .RS 4n
1172 Maximum number of expressions that can be nested within parentheses by the
1173 \fBexpr\fR utility.
1177 .ne 2
1179 \fB\fB_POSIX2_LINE_MAX\fR\fR
1181 .sp .6
1182 .RS 4n
1183 Unless otherwise noted, the maximum length, in bytes, of a utility's input line
1184 (either standard input or another file), when the utility is described as
1185 processing text files. The length includes room for the trailing <newline>.
1189 .ne 2
1191 \fB\fB_POSIX2_RE_DUP_MAX\fR\fR
1193 .sp .6
1194 .RS 4n
1195 Maximum number of repeated occurrences of a regular expression permitted when
1196 using the interval notation \e{\fIm\fR,\fIn\fR\e}.
1200 .ne 2
1202 \fB\fB_XOPEN_IOV_MAX\fR\fR
1204 .sp .6
1205 .RS 4n
1206 Maximum number of \fBiovec\fR structures that one process has available for use
1207 with \fBread\fR(2) or \fBwrite\fR(2).
1211 .ne 2
1213 \fB\fB_XOPEN_NAME_MAX\fR\fR
1215 .sp .6
1216 .RS 4n
1217 Maximum number of bytes in a filename (not including the terminating null).
1221 .ne 2
1223 \fB\fB_XOPEN_PATH_MAX\fR\fR
1225 .sp .6
1226 .RS 4n
1227 Maximum number of bytes in a pathname.
1230 .SS "Numerical Limits"
1233 The values in the following lists shall be defined in <\fBlimits.h\fR> and are
1234 constant expressions suitable for use in \fB#if\fR preprocessing directives.
1235 Moreover, except for \fBCHAR_BIT\fR, \fBDBL_DIG\fR, \fBDBL_MAX\fR,
1236 \fBFLT_DIG\fR, \fBFLT_MAX\fR, \fBLONG_BIT\fR, \fBWORD_BIT\fR, and
1237 \fBMB_LEN_MAX\fR, the symbolic names are defined as expressions of the correct
1238 type.
1241 If the value of an object of type \fBchar\fR is treated as a signed integer
1242 when used in an expression, the value of \fBCHAR_MIN\fR is the same as that of
1243 \fBSCHAR_MIN\fR and the value of \fBCHAR_MAX\fR is the same as that of
1244 \fBSCHAR_MAX\fR. Otherwise, the value of \fBCHAR_MIN\fR is 0 and the value of
1245 \fBCHAR_MAX\fR is the same as that of \fBUCHAR_MAX\fR.
1247 .ne 2
1249 \fB\fBCHAR_BIT\fR\fR
1251 .RS 14n
1252 Number of bits in a type \fBchar\fR.
1256 .ne 2
1258 \fB\fBCHAR_MAX\fR\fR
1260 .RS 14n
1261 Maximum value of type \fBchar\fR.
1265 .ne 2
1267 \fB\fBCHAR_MIN\fR\fR
1269 .RS 14n
1270 Minimum value of type \fBchar\fR.
1274 .ne 2
1276 \fB\fBDBL_DIG\fR\fR
1278 .RS 14n
1279 Digits of precision of type \fBdouble\fR.
1283 .ne 2
1285 \fB\fBDBL_MAX\fR\fR
1287 .RS 14n
1288 Maximum decimal value of a \fBdouble\fR.
1292 .ne 2
1294 \fB\fBDBL_MIN\fR\fR
1296 .RS 14n
1297 Minimum decimal value of a \fBdouble\fR.
1301 .ne 2
1303 \fB\fBFLT_DIG\fR\fR
1305 .RS 14n
1306 Digits of precision of type \fBfloat\fR.
1310 .ne 2
1312 \fB\fBFLT_MAX\fR\fR
1314 .RS 14n
1315 Maximum decimal value of a \fBfloat\fR.
1319 .ne 2
1321 \fB\fBFLT_MIN\fR\fR
1323 .RS 14n
1324 Minimum decimal value of a \fBfloat\fR.
1328 .ne 2
1330 \fB\fBINT_MIN\fR\fR
1332 .RS 14n
1333 Minimum value of type \fBint\fR.
1337 .ne 2
1339 \fB\fBINT_MAX\fR\fR
1341 .RS 14n
1342 Maximum value of an \fBint\fR.
1346 .ne 2
1348 \fB\fBLLONG_MIN\fR\fR
1350 .RS 14n
1351 Minimum value of type \fBlong long\fR.
1355 .ne 2
1357 \fB\fBLLONG_MAX\fR\fR
1359 .RS 14n
1360 Maximum value of type \fBlong long\fR.
1364 .ne 2
1366 \fB\fBLONG_BIT\fR\fR
1368 .RS 14n
1369 Number of bits in a \fBlong\fR.
1373 .ne 2
1375 \fB\fBLONG_MIN\fR\fR
1377 .RS 14n
1378 Minimum value of type \fBlong\fR.
1382 .ne 2
1384 \fB\fBLONG_MAX\fR\fR
1386 .RS 14n
1387 Maximum value of a \fBlong\fR.
1391 .ne 2
1393 \fB\fBMB_LEN_MAX\fR\fR
1395 .RS 14n
1396 Maximum number of bytes in a character, for any supported locale.
1400 .ne 2
1402 \fB\fBSCHAR_MIN\fR\fR
1404 .RS 14n
1405 Minimum value of type \fBsigned char\fR.
1409 .ne 2
1411 \fB\fBSCHAR_MAX\fR\fR
1413 .RS 14n
1414 Maximum value of type \fBsigned char\fR.
1418 .ne 2
1420 \fB\fBSHRT_MIN\fR\fR
1422 .RS 14n
1423 Minimum value of type \fBshort\fR.
1427 .ne 2
1429 \fB\fBSHRT_MAX\fR\fR
1431 .RS 14n
1432 Maximum value of type \fBshort\fR.
1436 .ne 2
1438 \fB\fBSSIZE_MAX\fR\fR
1440 .RS 14n
1441 Maximum value of an object of type \fBssize_t\fR.
1445 .ne 2
1447 \fB\fBTMP_MAX\fR\fR
1449 .RS 14n
1450 Minimum number of unique filename generated by \fBtmpnam\fR(3C). Maximum number
1451 of times an application can call \fBtmpnam()\fR reliably.
1455 .ne 2
1457 \fB\fBUCHAR_MAX\fR\fR
1459 .RS 14n
1460 Maximum value of type \fBunsigned char\fR.
1464 .ne 2
1466 \fB\fBUINT_MAX\fR\fR
1468 .RS 14n
1469 Maximum value of type \fBunsigned\fR.
1473 .ne 2
1475 \fB\fBULLONG_MAX\fR\fR
1477 .RS 14n
1478 Maximum value of type unsigned \fBlong long\fR.
1482 .ne 2
1484 \fB\fBULONG_MAX\fR\fR
1486 .RS 14n
1487 Maximum value of type \fBunsigned long\fR.
1491 .ne 2
1493 \fB\fBUSHRT_MAX\fR\fR
1495 .RS 14n
1496 Maximum value for a type \fBunsigned short\fR.
1500 .ne 2
1502 \fB\fBWORD_BIT\fR\fR
1504 .RS 14n
1505 Number of bits in a word or type \fBint\fR.
1508 .SS "Other Invariant Values"
1511 The following constants are defined in <\fBlimits.h\fR>.
1513 .ne 2
1515 \fB\fBCHARCLASS_NAME_MAX\fR\fR
1517 .RS 22n
1518 Maximum number of bytes in a character class name.
1522 .ne 2
1524 \fB\fBLOGNAME_MAX\fR\fR
1526 .RS 22n
1527 The maximum number of bytes supported in a user's login name.
1531 .ne 2
1533 \fB\fBNL_ARGMAX\fR\fR
1535 .RS 22n
1536 Maximum value of digit in calls to the \fBprintf\fR(3C) and \fBscanf\fR(3C)
1537 functions.
1541 .ne 2
1543 \fB\fBNL_LANGMAX\fR\fR
1545 .RS 22n
1546 Maximum number of bytes in a \fBLANG\fR name.
1550 .ne 2
1552 \fB\fBNL_MSGMAX\fR\fR
1554 .RS 22n
1555 Maximum message number.
1559 .ne 2
1561 \fB\fBNL_NMAX\fR\fR
1563 .RS 22n
1564 Maximum number of bytes in an N-to-1 collation mapping.
1568 .ne 2
1570 \fB\fBNL_SETMAX\fR\fR
1572 .RS 22n
1573 Maximum set number.
1577 .ne 2
1579 \fB\fBNL_TEXTMAX\fR\fR
1581 .RS 22n
1582 Maximum number of bytes in a message string.
1586 .ne 2
1588 \fB\fBNZERO\fR\fR
1590 .RS 22n
1591 Default process priority.
1594 .SH SEE ALSO
1597 \fBfpathconf\fR(2), \fBpathconf\fR(2), \fBsysconf\fR(3C), \fBstandards\fR(5)