Lines Matching refs:code
51 @code{sysconf} to find out the limit that applies at a particular time
62 @var{environ} arguments that can be passed to the @code{exec} functions.
70 controlled by the @code{RLIMIT_NPROC} resource limit; @pxref{Limits on
79 by the @code{RLIMIT_NOFILE} resource limit; @pxref{Limits on Resources}.
105 @code{sysconf} to see whether a particular machine will let you have
111 The largest value that can fit in an object of type @code{ssize_t}.
127 @code{sysconf} to see whether a particular machine will let you have
128 more (@pxref{Sysconf}). And even the value that @code{sysconf} tells
147 this section, together with the function @code{sysconf}. The macros are
152 supported; use @code{sysconf} to find out. @xref{Sysconf}.
177 @code{-1} means no, and any other value means yes. If the macro is not
178 defined, then the option may or may not be supported; use @code{sysconf}
184 C compiler command, @code{c89}. @Theglibc{} always defines this
185 as @code{1}, on the assumption that you would not have installed it if
192 Fortran compiler command, @code{fort77}. @Theglibc{} never
199 @code{asa} command to interpret Fortran carriage control. @Theglibc{}
206 @code{localedef} command. @Theglibc{} never defines this, because
213 commands @code{ar}, @code{make}, and @code{strip}. @Theglibc{}
214 always defines this as @code{1}, on the assumption that you had to have
215 @code{ar} and @code{make} to install the library, and it's unlikely that
216 @code{strip} would be absent when those are present.
226 1995 POSIX.1 standard, the value is the integer @code{199506L}.
228 @code{_POSIX_VERSION} is always defined (in @file{unistd.h}) in any
233 @code{_POSIX_VERSION} is defined. On a non-POSIX system, this will
251 @file{unistd.h}, so include that file and then test @code{defined
256 @section Using @code{sysconf}
259 @code{sysconf} function to find out the value that applies to any
264 * Sysconf Definition:: Detailed specifications of @code{sysconf}.
265 * Constants for Sysconf:: The list of parameters @code{sysconf} can read.
266 * Examples of Sysconf:: How to use @code{sysconf} and the parameter
271 @subsection Definition of @code{sysconf}
286 The normal return value from @code{sysconf} is the value you requested.
287 A value of @code{-1} is returned both if the implementation does not
290 The following @code{errno} error conditions are defined for this function:
292 @table @code
299 @subsection Constants for @code{sysconf} Parameters
302 to @code{sysconf}. The values are all integer constants (more
305 @vtable @code
308 Inquire about the parameter corresponding to @code{ARG_MAX}.
312 Inquire about the parameter corresponding to @code{CHILD_MAX}.
316 Inquire about the parameter corresponding to @code{OPEN_MAX}.
320 Inquire about the parameter corresponding to @code{STREAM_MAX}.
324 Inquire about the parameter corresponding to @code{TZNAME_MAX}.
328 Inquire about the parameter corresponding to @code{NGROUPS_MAX}.
332 Inquire about the parameter corresponding to @code{_POSIX_JOB_CONTROL}.
336 Inquire about the parameter corresponding to @code{_POSIX_SAVED_IDS}.
340 Inquire about the parameter corresponding to @code{_POSIX_VERSION}.
345 The corresponding parameter @code{CLK_TCK} is obsolete.
356 Inquire about the parameter corresponding to @code{_POSIX_REALTIME_SIGNALS}.
360 Inquire about the parameter corresponding to @code{_POSIX_PRIORITY_SCHEDULING}.
364 Inquire about the parameter corresponding to @code{_POSIX_TIMERS}.
368 Inquire about the parameter corresponding to @code{_POSIX_ASYNCHRONOUS_IO}.
372 Inquire about the parameter corresponding to @code{_POSIX_PRIORITIZED_IO}.
376 Inquire about the parameter corresponding to @code{_POSIX_SYNCHRONIZED_IO}.
380 Inquire about the parameter corresponding to @code{_POSIX_FSYNC}.
384 Inquire about the parameter corresponding to @code{_POSIX_MAPPED_FILES}.
388 Inquire about the parameter corresponding to @code{_POSIX_MEMLOCK}.
392 Inquire about the parameter corresponding to @code{_POSIX_MEMLOCK_RANGE}.
396 Inquire about the parameter corresponding to @code{_POSIX_MEMORY_PROTECTION}.
400 Inquire about the parameter corresponding to @code{_POSIX_MESSAGE_PASSING}.
404 Inquire about the parameter corresponding to @code{_POSIX_SEMAPHORES}.
409 @code{_POSIX_SHARED_MEMORY_OBJECTS}.
413 Inquire about the parameter corresponding to @code{_POSIX_AIO_LISTIO_MAX}.
417 Inquire about the parameter corresponding to @code{_POSIX_AIO_MAX}.
423 run-time invariant value @code{AIO_PRIO_DELTA_MAX}.
427 Inquire about the parameter corresponding to @code{_POSIX_DELAYTIMER_MAX}.
431 Inquire about the parameter corresponding to @code{_POSIX_MQ_OPEN_MAX}.
435 Inquire about the parameter corresponding to @code{_POSIX_MQ_PRIO_MAX}.
439 Inquire about the parameter corresponding to @code{_POSIX_RTSIG_MAX}.
443 Inquire about the parameter corresponding to @code{_POSIX_SEM_NSEMS_MAX}.
447 Inquire about the parameter corresponding to @code{_POSIX_SEM_VALUE_MAX}.
451 Inquire about the parameter corresponding to @code{_POSIX_SIGQUEUE_MAX}.
455 Inquire about the parameter corresponding to @code{_POSIX_TIMER_MAX}.
459 Inquire about the parameter corresponding to @code{_POSIX_PII}.
463 Inquire about the parameter corresponding to @code{_POSIX_PII_XTI}.
467 Inquire about the parameter corresponding to @code{_POSIX_PII_SOCKET}.
471 Inquire about the parameter corresponding to @code{_POSIX_PII_INTERNET}.
475 Inquire about the parameter corresponding to @code{_POSIX_PII_OSI}.
479 Inquire about the parameter corresponding to @code{_POSIX_SELECT}.
483 Inquire about the parameter corresponding to @code{_POSIX_UIO_MAXIOV}.
487 Inquire about the parameter corresponding to @code{_POSIX_PII_INTERNET_STREAM}.
491 Inquire about the parameter corresponding to @code{_POSIX_PII_INTERNET_DGRAM}.
495 Inquire about the parameter corresponding to @code{_POSIX_PII_OSI_COTS}.
499 Inquire about the parameter corresponding to @code{_POSIX_PII_OSI_CLTS}.
503 Inquire about the parameter corresponding to @code{_POSIX_PII_OSI_M}.
507 Inquire about the value associated with the @code{T_IOV_MAX}
512 Inquire about the parameter corresponding to @code{_POSIX_THREADS}.
517 @code{_POSIX_THREAD_SAFE_FUNCTIONS}.
521 Inquire about the parameter corresponding to @code{_POSIX_GETGR_R_SIZE_MAX}.
525 Inquire about the parameter corresponding to @code{_POSIX_GETPW_R_SIZE_MAX}.
529 Inquire about the parameter corresponding to @code{_POSIX_LOGIN_NAME_MAX}.
533 Inquire about the parameter corresponding to @code{_POSIX_TTY_NAME_MAX}.
538 @code{_POSIX_THREAD_DESTRUCTOR_ITERATIONS}.
542 Inquire about the parameter corresponding to @code{_POSIX_THREAD_KEYS_MAX}.
546 Inquire about the parameter corresponding to @code{_POSIX_THREAD_STACK_MIN}.
550 Inquire about the parameter corresponding to @code{_POSIX_THREAD_THREADS_MAX}.
555 @code{_POSIX_THREAD_ATTR_STACKADDR}.
560 @code{_POSIX_THREAD_ATTR_STACKSIZE}.
565 @code{_POSIX_THREAD_PRIORITY_SCHEDULING}.
569 Inquire about the parameter corresponding to @code{_POSIX_THREAD_PRIO_INHERIT}.
573 Inquire about the parameter corresponding to @code{_POSIX_THREAD_PRIO_PROTECT}.
578 @code{_POSIX_THREAD_PROCESS_SHARED}.
583 @code{c89}.
588 command, @code{fort77}.
592 Inquire about whether the system has the POSIX.2 @code{asa} command to
597 Inquire about whether the system has the POSIX.2 @code{localedef}
602 Inquire about whether the system has the POSIX.2 commands @code{ar},
603 @code{make}, and @code{strip}.
607 Inquire about the maximum value of @code{obase} in the @code{bc}
612 Inquire about the maximum size of an array in the @code{bc}
617 Inquire about the maximum value of @code{scale} in the @code{bc}
623 @code{bc} utility.
633 parentheses when using the @code{expr} utility.
643 entry of the @code{LC_COLLATE} category @samp{order} keyword in a locale
660 @code{getpagesize} returns the same value (@pxref{Query Memory Parameters}).
681 functions for @code{atexit}; @pxref{Cleanups on Exit}.
758 Inquire about the parameter corresponding to @code{_XOPEN_VERSION}.
762 Inquire about the parameter corresponding to @code{_XOPEN_XCU_VERSION}.
766 Inquire about the parameter corresponding to @code{_XOPEN_UNIX}.
770 Inquire about the parameter corresponding to @code{_XOPEN_REALTIME}.
774 Inquire about the parameter corresponding to @code{_XOPEN_REALTIME_THREADS}.
778 Inquire about the parameter corresponding to @code{_XOPEN_LEGACY}.
782 Inquire about the parameter corresponding to @code{_XOPEN_CRYPT}.
783 @Theglibc no longer implements the @code{_XOPEN_CRYPT} extensions,
784 so @samp{sysconf (_SC_XOPEN_CRYPT)} always returns @code{-1}.
788 Inquire about the parameter corresponding to @code{_XOPEN_ENH_I18N}.
792 Inquire about the parameter corresponding to @code{_XOPEN_SHM}.
796 Inquire about the parameter corresponding to @code{_XOPEN_XPG2}.
800 Inquire about the parameter corresponding to @code{_XOPEN_XPG3}.
804 Inquire about the parameter corresponding to @code{_XOPEN_XPG4}.
808 Inquire about the number of bits in a variable of type @code{char}.
813 @code{char}.
818 @code{char}.
823 @code{int}.
828 @code{int}.
832 Inquire about the number of bits in a variable of type @code{long int}.
851 @code{ssize_t}.
856 @code{signed char}.
861 @code{signed char}.
866 @code{short int}.
871 @code{short int}.
876 @code{unsigned char}.
881 @code{unsigned int}.
886 @code{unsigned long int}.
891 @code{unsigned short int}.
895 Inquire about the parameter corresponding to @code{NL_ARGMAX}.
899 Inquire about the parameter corresponding to @code{NL_LANGMAX}.
903 Inquire about the parameter corresponding to @code{NL_MSGMAX}.
907 Inquire about the parameter corresponding to @code{NL_NMAX}.
911 Inquire about the parameter corresponding to @code{NL_SETMAX}.
915 Inquire about the parameter corresponding to @code{NL_TEXTMAX}.
935 from the legacy @code{SIGSTKSZ} constant. Programs requiring stronger
940 @subsection Examples of @code{sysconf}
943 parameter you are interested in, and call @code{sysconf} only if the
991 @vtable @code
996 this constant is @code{2}; thus you can add up to two new entries
1003 @code{1}. So you cannot expect that you can issue more than one
1011 arguments that can be passed to the @code{exec} functions.
1012 Its value is @code{4096}.
1018 value is @code{6}.
1024 value is @code{0}.
1030 simultaneously. Its value is @code{16}.
1036 @code{ssize_t}. Its value is @code{32767}.
1042 simultaneously. Its value is @code{8}.
1047 for the maximum length of a time zone name. Its value is @code{3}.
1053 in a regular expression. Its value is @code{255}.
1071 then the macro is undefined; use @code{pathconf} or @code{fpathconf} to
1105 @code{NAME_MAX}, but does not actually enforce this limit.
1111 is, the argument given to system calls such as @code{open}), including the
1115 even if @code{PATH_MAX} is defined.
1131 This is the BSD name for @code{NAME_MAX}. It is defined in
1141 Unlike @code{PATH_MAX}, this macro is defined even if there is no actual
1145 @strong{Usage Note:} Don't use @code{FILENAME_MAX} as the size of an
1164 corresponding feature is supported. (A value of @code{-1} indicates no;
1170 support the @code{_POSIX_CHOWN_RESTRICTED} and @code{_POSIX_NO_TRUNC}
1175 If this option is in effect, the @code{chown} function is restricted so
1184 @code{NAME_MAX} generate an @code{ENAMETOOLONG} error. Otherwise, file
1198 particular file, call @code{pathconf} or @code{fpathconf}.
1211 @vtable @code
1215 file's link count. The value of this constant is @code{8}; thus, you
1223 this constant is @code{255}.
1229 @xref{Input Modes}. The value of this constant is @code{255}.
1235 @code{14}.
1240 bytes in a file name. The value of this constant is @code{256}.
1246 constant is @code{512}.
1255 @code{POSIX_REC_MIN_XFER_SIZE} and @code{POSIX_REC_MAX_XFER_SIZE}
1272 @section Using @code{pathconf}
1294 The normal return value from @code{pathconf} is the value you requested.
1295 A value of @code{-1} is returned both if the implementation does not
1297 @code{errno} is not set, while in the latter case, @code{errno} is set
1299 function robustly is to store @code{0} into @code{errno} just before
1305 @table @code
1316 This is just like @code{pathconf} except that an open file descriptor
1320 The following @code{errno} error conditions are defined for this function:
1322 @table @code
1333 argument to @code{pathconf} and @code{fpathconf}. The values are all
1336 @vtable @code
1339 Inquire about the value of @code{LINK_MAX}.
1343 Inquire about the value of @code{MAX_CANON}.
1347 Inquire about the value of @code{MAX_INPUT}.
1351 Inquire about the value of @code{NAME_MAX}.
1355 Inquire about the value of @code{PATH_MAX}.
1359 Inquire about the value of @code{PIPE_BUF}.
1363 Inquire about the value of @code{_POSIX_CHOWN_RESTRICTED}.
1367 Inquire about the value of @code{_POSIX_NO_TRUNC}.
1371 Inquire about the value of @code{_POSIX_VDISABLE}.
1375 Inquire about the value of @code{_POSIX_SYNC_IO}.
1379 Inquire about the value of @code{_POSIX_ASYNC_IO}.
1383 Inquire about the value of @code{_POSIX_PRIO_IO}.
1391 Inquire about the value of @code{POSIX_REC_INCR_XFER_SIZE}.
1395 Inquire about the value of @code{POSIX_REC_MAX_XFER_SIZE}.
1399 Inquire about the value of @code{POSIX_REC_MIN_XFER_SIZE}.
1403 Inquire about the value of @code{POSIX_REC_XFER_ALIGN}.
1407 enforce @code{_PC_NAME_MAX} or @code{_PC_PATH_MAX} limits.
1413 through @code{sysconf} that apply to utility behavior rather than the
1416 @Theglibc{} defines macros for these limits, and @code{sysconf}
1423 The largest value of @code{obase} that the @code{bc} utility is
1429 The largest number of elements in one array that the @code{bc} utility
1435 The largest value of @code{scale} that the @code{bc} utility is
1442 @code{bc} utility is guaranteed to support.
1454 by the @code{expr} utility.
1468 @code{LC_COLLATE} category @samp{order} keyword in a locale definition.
1475 @vtable @code
1479 @code{obase} in the @code{bc} utility. Its value is @code{99}.
1484 an array in the @code{bc} utility. Its value is @code{2048}.
1489 @code{scale} in the @code{bc} utility. Its value is @code{99}.
1494 a string constant in the @code{bc} utility. Its value is @code{1000}.
1500 sequence for a locale. Its value is @code{2}.
1505 of expressions nested within parenthesis when using the @code{expr} utility.
1506 Its value is @code{32}.
1512 @code{2048}.
1517 of weights that can be assigned to an entry of the @code{LC_COLLATE}
1519 @code{2}. @Theglibc{} does not presently support locale
1527 system with the function @code{confstr}:
1537 The normal return value from @code{confstr} is the length of the string
1539 then @code{confstr} does not try to store the string; it just returns
1540 its length. A value of @code{0} indicates an error.
1543 than @code{@var{len} - 1}), then @code{confstr} stores just that much
1545 this has happened because @code{confstr} returns a value greater than or
1548 The following @code{errno} error conditions are defined for this function:
1550 @table @code
1556 Currently there is just one parameter you can read with @code{confstr}:
1558 @vtable @code
1569 @code{_LARGEFILE_SOURCE} feature select macro; @pxref{Feature Test Macros}.
1575 @code{_LARGEFILE_SOURCE} feature select macro; @pxref{Feature Test Macros}.
1581 @code{_LARGEFILE_SOURCE} feature select macro; @pxref{Feature Test Macros}.
1587 @code{_LARGEFILE_SOURCE} feature select macro; @pxref{Feature Test Macros}.
1593 @code{_LARGEFILE64_SOURCE} feature select macro; @pxref{Feature Test Macros}.
1599 @code{_LARGEFILE64_SOURCE} feature select macro; @pxref{Feature Test Macros}.
1605 @code{_LARGEFILE64_SOURCE} feature select macro; @pxref{Feature Test Macros}.
1611 @code{_LARGEFILE64_SOURCE} feature select macro; @pxref{Feature Test Macros}.
1614 The way to use @code{confstr} without any arbitrary limit on string size
1616 buffer accordingly, and then call @code{confstr} again to fill the