From 14b9008cca69dc6aaa2dec9954d8687437a25fbb Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 11 Oct 2011 21:53:57 +0000 Subject: [PATCH] * utils.sgml (getconf): Expand documentation. --- winsup/utils/ChangeLog | 4 ++++ winsup/utils/utils.sgml | 24 ++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index ff7017866..9341396df 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +2011-10-11 Yaakov Selkowitz + + * utils.sgml (getconf): Expand documentation. + 2011-10-10 Corinna Vinschen * ldd.cc (VERSION): Remove. diff --git a/winsup/utils/utils.sgml b/winsup/utils/utils.sgml index 0411cb93a..a5752e841 100644 --- a/winsup/utils/utils.sgml +++ b/winsup/utils/utils.sgml @@ -484,15 +484,31 @@ Other options: The getconf utility prints the value of the configuration variable specified by variable_name. -If pathname is given, getconf prints -the value of the configuration variable for the specified pathname. +If no pathname is given, getconf +serves as a wrapper for the confstr and +sysconf functions, supporting the symbolic constants +defined in the limits.h and unistd.h +headers, without their respective _CS_ or +_SC_ prefixes. + + +If pathname is given, getconf +prints the value of the configuration variable for the specified pathname. +In this form, getconf serves as a wrapper for the +pathconf function, supporting the symbolic constants defined +in the unistd.h header, without the _PC_ +prefix. If you specify the -v option, the parameter denotes a specification for which the value of the configuration variable -should be printed. +should be printed. Note that the only specifications supported by Cygwin +are POSIX_V7_ILP32_OFFBIG and the legacy +POSIX_V6_ILP32_OFFBIG and +XBS5_ILP32_OFFBIG equivalents. Use the -a option to print a list of all available -configuration variables. +configuration variables for the system, or given pathname, +and their values.