Home | History | Annotate | Download | only in getconf
History log of /src/usr.bin/getconf/getconf.c
RevisionDateAuthorComments
 1.38  22-Jul-2024  rillig getconf: clean up obsolete lint stuff

The warning about the "weird expression" was fixed in lint's tree.c
1.201 from 2021-01-31.
 1.37  27-Jan-2024  christos PR/57875: Jason Bacon: Try again without an _ for portability.
 1.36  25-Oct-2023  simonb Add _SC_AVPHYS_PAGES.
getconf(1) add this and SC_PHYS_PAGES.
libc: Use vm.uvmexp2 over vm.meter is it's twice as fast on my setup.
getconf.3: Tidy up wording for SC_PHYS_PAGES.
 1.35  19-Dec-2013  rmind branches: 1.35.18; 1.35.28; 1.35.36;
Add shm_open(3) and shm_unlink(3) to support POSIX shared memory objects.
They are implemented using tmpfs (mounted at /var/shm).

Discussed on tech-{kern,userlevel} (quite a while ago).
 1.34  27-Aug-2008  christos branches: 1.34.2; 1.34.24;
setup _POSIX2_C_BIND per SUSv3, from Andy Shevchenko
 1.33  28-Apr-2008  martin branches: 1.33.2;
Remove clause 3 and 4 from TNF licenses
 1.32  09-Apr-2008  njoly branches: 1.32.2;
s/_POSIX_MESSAGE_PASSING/_SC_MESSAGE_PASSING/ in value.
 1.31  15-Jan-2008  rmind Implementation of processor-sets, affinity and POSIX real-time extensions.
Add schedctl(8) - a program to control scheduling of processes and threads.

Notes:
- This is supported only by SCHED_M2;
- Migration of LWP mechanism will be revisited;

Proposed on: <tech-kern>. Reviewed by: <ad>.
 1.30  15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.29  15-Oct-2007  ad Add _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF for sysconf(). These
are extensions but are provided by many Unix systems.
 1.28  07-Sep-2007  rmind Implementation of POSIX message queues.

Reviewed by: <ad>, <tech-kern>
 1.27  01-May-2007  rmind branches: 1.27.4;
- Create sysctl nodes for AIO.
- Add POSIX defined system variables and constants of AIO_LISTIO_MAX and
AIO_MAX values. Both with _POSIX_ASYNCHRONOUS_IO, provide them in
sysconf(3) and getconf(1) interfaces.
- Clean up sysconf(3) for handling sysctl nodes dynamically.
 1.26  06-Dec-2006  mjf PR/35194: 0 is returned from confstr(3) in two cases:
- when an error occurred and errno is set appropriately
- when the variable is undefined.

Thanks to Guy Harris for pointing this out.
 1.25  06-Dec-2006  mjf PR/35194: confstr(3) returns 0 on failure, not -1.
 1.24  10-Nov-2006  christos PR/35027: Nicolas Joly: getconf argument parsing broken.
While there:
- don't print numbern, print number\n
- don't leak memory
- consistently return EXIT_FAILURE
- fix error checking
- pass lint
 1.23  07-Oct-2006  elad PR/31053: Roland Illig: Enhancement: getconf -a to list all applicable
variables

Thanks for the patch!
 1.22  10-Nov-2004  lukem Implement sysconf(3) _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX for
the 1003.1-2001 Thread Safe Functions (TSF) getgrnam_r(3) and getpwnam_r(3).

These are not implemented in sysctl(3) "user.*", since that adds a lot
of complexity in the implementation for no real benefit.
 1.21  10-Nov-2004  lukem fix an error message
 1.20  02-Feb-2003  kleink Add sysconf(3) knobs for recent additions.
 1.19  19-Dec-2002  kleink Add a sysconf(3) knob for {ATEXIT_MAX}.
 1.18  05-Aug-2002  tron Fix typo in last commit.
 1.17  05-Aug-2002  tron Fix acient cut and paste error which made "_POSIX_PATH_MAX" actually
return "_POSIX_PIPE_BUF".
 1.16  04-Aug-2002  soren Back out previous - I was confused.
 1.15  04-Aug-2002  tron Remove obsolete fields "_POSIX_LINK_MAX", "_POSIX_NAME_MAX" and
_POSIX_PATH_MAX".
 1.14  31-Jan-2002  kleink branches: 1.14.2;
Add {POSIX_MONOTONIC_CLOCK} variables.
 1.13  03-Jul-2000  matt Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
 1.12  20-Apr-2000  simonb branches: 1.12.4;
We have _SC_2_C_BIND now, enable POSIX2_C_BIND.
 1.11  27-Sep-1999  kleink 1003.1c: add {LOGIN_NAME_MAX}.
 1.10  24-Jun-1999  kleink branches: 1.10.2;
Add compile-time and run-time feature test knobs for the 1003.1 Mapped Files,
Process Memory Locking, Range Memory Locking and Memory Protection options.
 1.9  22-Mar-1999  kleink Support {FILESIZEBITS}.
 1.8  03-Aug-1998  kleink Add support to query _POSIX_SYNCHRONIZED_IO, _POSIX_SYNC_IO and IOV_MAX;
rearrange the table a bit.
 1.7  24-May-1998  kleink Add support to query PAGESIZE, PAGE_SIZE, _POSIX_FSYNC and _XOPEN_SHM via
sysconf().
 1.6  19-Oct-1997  lukem WARNSify, fix .Nm usage
 1.5  08-Oct-1997  jtc Fix tipo inherited from old version of TNF copyright template.
 1.4  09-Jan-1997  tls RCS ID police
 1.3  20-Apr-1996  jtc Update copyright notices, this has been assigned to the NetBSD Foundation.
Fix bug where err() was called instead of errx().
 1.2  10-May-1994  jtc We now have sysconf() & pathconf
 1.1  27-Apr-1994  jtc Added POSIX.2 getconf utility; although It won't be really useful until
we get sysconf() & pathconf().
Manpage coming soon.
 1.10.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.12.4.1  04-Sep-2002  itojun pullup 1.17-1.18 (tron)
Fix acient cut and paste error which made "_POSIX_PATH_MAX" actually
return "_POSIX_PIPE_BUF".
 1.14.2.2  05-Aug-2002  lukem Pull up revision 1.18 (requested by tron in ticket #622):
Fix typo in last commit.
 1.14.2.1  05-Aug-2002  lukem Pull up revision 1.17 (requested by tron in ticket #622):
Fix acient cut and paste error which made "_POSIX_PATH_MAX" actually
return "_POSIX_PIPE_BUF".
 1.27.4.3  23-Mar-2008  matt sync with HEAD
 1.27.4.2  09-Jan-2008  matt sync with HEAD
 1.27.4.1  06-Nov-2007  matt sync with HEAD
 1.32.2.1  18-May-2008  yamt sync with head.
 1.33.2.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.34.24.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.34.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.35.36.1  10-Mar-2024  martin Pull up following revision(s) (requested by riastradh in ticket #617):

usr.bin/getconf/getconf.c: revision 1.37
usr.bin/getconf/getconf.1: revision 1.14

PR/57875: Jason Bacon: Try again without an _ for portability.
getconf.1: Note that leading underscores in configuration
variable names are ignored by getconf(1).

While here, add a section with examples, and make the synopsis
more concise.

PR bin/57875
 1.35.28.1  10-Mar-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1811):

usr.bin/getconf/getconf.c: revision 1.37
usr.bin/getconf/getconf.1: revision 1.14

PR/57875: Jason Bacon: Try again without an _ for portability.
getconf.1: Note that leading underscores in configuration
variable names are ignored by getconf(1).

While here, add a section with examples, and make the synopsis
more concise.

PR bin/57875
 1.35.18.1  10-Mar-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1943):

usr.bin/getconf/getconf.c: revision 1.37
usr.bin/getconf/getconf.1: revision 1.14

PR/57875: Jason Bacon: Try again without an _ for portability.
getconf.1: Note that leading underscores in configuration
variable names are ignored by getconf(1).

While here, add a section with examples, and make the synopsis
more concise.

PR bin/57875

RSS XML Feed