[PATCH] add getconf(1)

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Tue Jul 19 02:20:00 GMT 2011


This patch adds getconf(1) as required by POSIX:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/getconf.html

This version supports all the POSIX-required variables and them some,
the POSIX-required -v flag as well as Linux's -a flag.

The source started from NetBSD (which is one file and supports -a) with
some help from FreeBSD's version (which would require a directory for
itself, supports -v, but not -a) to add a more complete list of
variables, but with my own modifications to better match Linux
behaviour, it probably doesn't resemble either.

This does require my patch currently pending on newlib@.

Patches for winsup/utils and winsup/doc, and new source file, attached.


Yaakov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: getconf.c
Type: text/x-csrc
Size: 24342 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110719/685e6350/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winsup-utils-getconf.patch
Type: text/x-patch
Size: 913 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110719/685e6350/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winsup-doc-getconf.patch
Type: text/x-patch
Size: 832 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110719/685e6350/attachment-0002.bin>


More information about the Cygwin-patches mailing list