Commit Graph

33 Commits

Author SHA1 Message Date
rmind 0994dd0691 - 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.
2007-05-01 01:01:25 +00:00
mjf 686f9932fe 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.
2006-12-06 12:02:02 +00:00
mjf c74271d8ea PR/35194: confstr(3) returns 0 on failure, not -1. 2006-12-06 11:05:32 +00:00
christos 5a595b5295 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
2006-11-10 15:36:04 +00:00
elad e3f885bca5 PR/31053: Roland Illig: Enhancement: getconf -a to list all applicable
variables

Thanks for the patch!
2006-10-07 15:20:44 +00:00
wiz 0ff196cd8a pathconf(2), not (3). 2004-11-10 13:43:39 +00:00
lukem 8a5e21e9cf Document where the system_var and path_var variable names are determined from. 2004-11-10 04:29:56 +00:00
lukem 246f6fd919 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.
2004-11-10 04:02:52 +00:00
lukem d7ef73e561 fix an error message 2004-11-10 00:29:07 +00:00
kleink 71d7654509 Add sysconf(3) knobs for recent additions. 2003-02-02 20:33:05 +00:00
kleink ac7290d7c2 Add a sysconf(3) knob for {ATEXIT_MAX}. 2002-12-19 23:31:54 +00:00
tron c0474337df Fix typo in last commit. 2002-08-05 06:35:44 +00:00
tron 80346e7772 Fix acient cut and paste error which made "_POSIX_PATH_MAX" actually
return "_POSIX_PIPE_BUF".
2002-08-05 06:24:23 +00:00
soren b377ecd704 Back out previous - I was confused. 2002-08-04 18:06:54 +00:00
tron 039ac89c24 Remove obsolete fields "_POSIX_LINK_MAX", "_POSIX_NAME_MAX" and
_POSIX_PATH_MAX".
2002-08-04 12:59:13 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
kleink 935d56d508 Add {POSIX_MONOTONIC_CLOCK} variables. 2002-01-31 00:32:47 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
kleink 4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
matt fcd0fb118f 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
2000-07-03 02:51:12 +00:00
simonb 818b86118e We have _SC_2_C_BIND now, enable POSIX2_C_BIND. 2000-04-20 00:41:20 +00:00
kleink c13a492388 1003.1c: add {LOGIN_NAME_MAX}. 1999-09-27 16:24:39 +00:00
kleink 7b67bca335 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.
1999-06-24 14:18:10 +00:00
kleink cd59cd8d38 Support {FILESIZEBITS}. 1999-03-22 19:18:10 +00:00
kleink 5057faa688 Add support to query _POSIX_SYNCHRONIZED_IO, _POSIX_SYNC_IO and IOV_MAX;
rearrange the table a bit.
1998-08-03 14:48:40 +00:00
kleink 3759ec18f5 Add support to query PAGESIZE, PAGE_SIZE, _POSIX_FSYNC and _XOPEN_SHM via
sysconf().
1998-05-24 20:12:25 +00:00
lukem 8c012c7268 WARNSify, fix .Nm usage 1997-10-19 02:13:39 +00:00
jtc 3bc5599f8b Fix tipo inherited from old version of TNF copyright template. 1997-10-08 22:19:18 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
jtc 9faba78d91 Update copyright notices, this has been assigned to the NetBSD Foundation.
Fix bug where err() was called instead of errx().
1996-04-20 01:15:12 +00:00
jtc 953f2f0cc7 Added getconf(1) man page. 1994-06-25 06:41:11 +00:00
jtc db975c8c0a We now have sysconf() & pathconf 1994-05-10 00:04:11 +00:00
jtc c1a0df95a9 Added POSIX.2 getconf utility; although It won't be really useful until
we get sysconf() & pathconf().
Manpage coming soon.
1994-04-27 19:50:51 +00:00