lukem
2ffe6b72ba
Use _GETGR_R_SIZE_MAX from <limits.h> rather than defining a private version.
2004-11-10 06:10:03 +00:00
lukem
cdfecd6b76
whitespace cleanup
2004-11-10 04:57:17 +00:00
lukem
9c82800a69
Add: getgrgid_r(3) getgrnam_r(3) getpwnam_r(3) getpwuid_r(3)
2004-11-10 04:52:30 +00:00
lukem
364ede827b
need <limits.h> for _SC_GET{GR,PW}_SIZE_MAX
2004-11-10 04:46:01 +00:00
lukem
97dddd4f3a
Document _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX
2004-11-10 04:21:25 +00:00
lukem
663b3e58e0
Use _GETPW_R_SIZE_MAX from <limits.h> rather than defining a private version.
2004-11-10 04:11:34 +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
103626c6a0
default to "compat" not "files"
2004-11-01 08:21:34 +00:00
lukem
c49e808721
#include "reentrant.h" instead of <threadlib.h>
2004-10-29 06:32:08 +00:00
dsl
1793b7dd69
Use (unsigned char) cast to sanitise arguments to ctype functions.
2004-10-28 21:14:52 +00:00
dsl
d349cd6749
Fix a load of international alphabet problems with isxxx() and toupper()
...
Change isspace(*char_ptr) to isspace(*char_ptr & 0xff) so that the correct
piece of memory is looked at for the bit mask.
gcc optimises out the '& 0xff' (on i386 at least).
Fixes problems found by gcc when the splurious (int) cast is removed
from the #defines in ctype.h
2004-10-27 19:59:24 +00:00
lukem
feb92219d9
Protect access to all public functions via a mutex as some of the backends are
...
not reentrant (such as compat getgr*_r, because it uses the non reentrant
_{dns,nis}_getgrent() backends to implement `+group').
2004-10-24 14:52:46 +00:00
lukem
a48f586379
Protect access to all public functions via a mutex as some of the backends are
...
not reentrant (such as compat, because it uses the non reentrant getnetgrent(3)
to implement `+@netgrp' & `-@netgrp').
2004-10-24 14:46:23 +00:00
lukem
893983131b
minor KNF, making it easier to find where fork() is implemented
2004-10-21 06:46:36 +00:00
enami
461001f32f
Fix some typos.
2004-10-15 15:19:02 +00:00
enami
b07577d748
Don't break line at the space since it is not a word separator but
...
an example of space character.
2004-10-15 15:07:54 +00:00
daniel
84a34aedec
Add vm.bufcache, vm.bufmem, vm.bufmem_lowater, m.bufmem_hiwater (PR misc/27247, misc/27233).
2004-10-15 08:47:16 +00:00
lukem
b7fcf76aa6
Fix MKYP=no MKHESIOD=no build.
...
Rename an internal function to a more appropriate name.
2004-10-11 09:42:06 +00:00
lukem
dd9512e81e
Ensure that _nis_start(&state) has been called before using PASSWD_BYNAME()
...
or PASSWD_BYUID(), otherwise state.maptype won't be correct and the wrong
map may be selected (e.g., "passwd.by*" instead of "master.passwd.by*").
Set _PASSWORD_NOWARN in flags to __pw_scan(), so libc won't display parse
errors to stderr. (This was the behaviour before my recent rototill.)
Fixes PR 27168 from Markus W Kilbinger.
2004-10-07 06:11:24 +00:00
wiz
f74a3e4c4e
Add missing function types for getpwnam_r and getpwuid_r.
2004-10-05 13:52:09 +00:00
lukem
0a87664e7c
Use PASSWD_BYxxx(state) macros instead of "passwd.byxxx" to refer to
...
the NIS "passwd.by*" maps.
Fixes problem with "passwd_compat: nis" noted by Matthias Scheler.
2004-10-05 12:09:23 +00:00
lukem
45a7a69275
Overhaul the use of nsdispatch(3) by public APIs so that the back-end
...
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getpwent(3).
Per my proposal on tech-userlevel.
Implement getpwgid_r() and getpwnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getpwent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETPW_R_SIZE_MAX to sysconf(3).
Fix the compat `+' prototype override so getpwnam(3) and getpwuid(3) DTRT.
Improve the description of pw_class and pw_gecos.
2004-10-05 04:45:54 +00:00
lukem
a18b46b6e9
Correct order of description of getgr{nam,gid}{,_r}() functions.
2004-10-05 03:03:24 +00:00
lukem
c54f283e46
Overhaul the use of nsdispatch(3) by public APIs so that the back-end
...
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getgrent(3).
Per my proposal on tech-userlevel.
Implement getgrgid_r() and getgrnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getgrent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETGR_R_SIZE_MAX to sysconf(3).
2004-10-04 04:11:33 +00:00
wiz
b772ed97cf
Drop space at EOL and dot at end of SEE ALSO.
2004-09-28 13:59:48 +00:00
lukem
159aa790f6
Expand description of return value.
...
Remove bug about incorrect sizing calculation; it seems to DTRT for me.
Also reference group(5).
2004-09-28 10:49:22 +00:00
lukem
3608f5c3e9
'gid_t *groups' may be NULL if we're just sizing the list by calling
...
getgrouplist(3) with *grpcnt==0, so don't _DIAGASSERT(groups != NULL).
Tweak API used between getgrouplist(3) and the back-end nsswitch methods;
move the public return value to the start of the va_list and reserve the
'void *retval' for "internal use" (e.g, errno passing or some other need).
2004-09-28 10:46:19 +00:00
lukem
7184648d82
Try nsdispatch "getgrouplist" before iterating the getgrent() list.
...
Implement a dns (hesiod) backend which tries a grplist hesiod lookup.
Convert back to using getgrent() similar to rev 1.15, instead of
using the private _getgrent_user() from getgrent.c.
2004-09-25 12:27:35 +00:00
lukem
0b757c12fd
ANSI KNF
2004-09-25 02:55:25 +00:00
hubertf
2fa09966de
Change copyright to 2-clause BSD-copyright.
...
Changed with explicit permission of Thorsten Lockert (tholo sigmasoft com)
2004-09-15 19:45:17 +00:00
jrf
190b2e4c51
Replaced strncpy with strlcpy. Thanks to Peter Postma who
...
pointed them our in PR #25762 . Approved by christos@NetBSD.org .
2004-09-07 13:20:39 +00:00
jmmv
eb6866861c
s/password databases/group databases/
2004-09-02 11:43:18 +00:00
wiz
484705032c
Bump date for removal of net.key.random_int.
2004-08-27 14:35:11 +00:00
itojun
8ba8c58e74
remove net.key.random_int
2004-08-27 04:58:10 +00:00
enami
0520e17087
- Honor the HN_NOSPACE flag (i.e., don't put a space if specified,
...
and put space if not specified).
- There was a test which didn't count the suffixlen. Fix it.
- Make the code a bit easier to read.
2004-07-27 01:56:24 +00:00
wiz
5102b97303
Bump date for previous.
2004-07-14 20:10:14 +00:00
kleink
ea50e13fa9
Add a STANDARDS section; noted by Peter Bex in PR standards/25957.
2004-07-14 19:12:26 +00:00
seb
2f8bbc118e
Add wordexp(3). The wordexp function performs shell-style word expansions.
...
This implementation is wrapper around the undocumented wordexp sh(1)
built-in command.
From FreeBSD.
Provided in PR lib/26123.
Approved by kleink@.
2004-07-13 15:42:03 +00:00
enami
c991543af7
Print 10450000 as 10M instead of 10.0M (more greater value such as
...
10500000 is printed as 10M).
2004-07-12 09:21:20 +00:00
enami
1b94ae7df7
No need to set divisor twice.
2004-07-12 09:14:07 +00:00
cube
2e61c89539
KERN_CP_TIME returns an arry of uint64_ts, not longs, as noted by Adam
...
Sampson in PR 23190. Also, tell about ``kern.cp_time.#CPU''.
2004-07-05 11:45:12 +00:00
heas
2cc74cfa3e
UDP checksums are always checked (RFC1122 S4.1.3.4), it is not controllable
...
by net.inet.udp.checksum.
2004-07-02 18:17:45 +00:00
atatat
eaa9fc4cc3
Reverse arguments to fcntl(2).
2004-06-22 13:49:43 +00:00
jmc
b2f782612f
Completely rework how tools/compat is done. Purge all uses/references to
...
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
thorpej
a6ae8a84ac
Slight hack to get this building on OS X again: Undo the renaming before
...
including the host's <pwd.h> to avoid renaming the host's versions of
these functions (which causes a prototype conflict). After <pwd.h> has
been included, then re-apply the renaming.
2004-06-18 20:34:58 +00:00
lha
cc333b3dd7
Add list of async-signal-safe functions
...
Approved by wiz
2004-06-13 19:17:06 +00:00
kleink
d355352b08
Don't refer to errno as "global integer variable".
2004-06-01 16:12:51 +00:00
kleink
e78a58d8d7
Sync section number with reality.
2004-06-01 16:06:43 +00:00
wiz
ce20e7ac30
Use "In" instead of "Fd #include <...>".
2004-06-01 10:57:48 +00:00
itojun
347bbb94d3
oops, i've committed BSD auth stuff by mistake.
2004-05-31 06:51:59 +00:00
itojun
9e40b59093
EBADF is returned when fd < 0, so change text to tell the truth
2004-05-31 05:32:27 +00:00
itojun
34f8d0e9df
closefrom(3)
2004-05-31 05:25:40 +00:00
itojun
56c1b44159
implement closefrom(3).
2004-05-31 05:06:51 +00:00
sjg
5d1af908f6
Apply patch from OGAWA Takaya to fix FreeBSD hosted builds.
...
The trick is to force use of the NetBSD versions of user_from_{uid,gid}().
PR: 24843
2004-05-18 22:14:35 +00:00
kleink
f379d2c8ac
There are two instances of getsubopt.c, one in gen, which came by the
...
ways of 386BSD, and one in stdlib, which is from Lite-2. The former was
picked up by the build process and has seen a little more maintenance
while the latter's location is "right", so bring the latter up to par
with the former and dispose of the (now) latter.
Reported by David A. Holland in PR lib/25160, which is worded in a
far less mind-boggling fashion than the above.
2004-05-09 19:34:11 +00:00
kleink
6352cc4399
Need namespace.h for internal names of fseeko, strlcpy.
2004-05-09 11:25:52 +00:00
jdolecek
55c776851d
fix reference Nx 2.1 to Nx 3.0
2004-05-05 08:48:36 +00:00
atatat
f5a0e81454
That's "endutxent", not "entutxent". Hi, wiz!
2004-05-04 02:38:35 +00:00
christos
0b1d0cb383
Add -DSMALL so that this can be used in libhack.
2004-04-25 06:45:29 +00:00
atatat
990f278f7a
Remove dynamic sysctl node version 0 from the tree. It seemed okay at
...
first, but quickly showed its shortcomings. The version 1 node we're
now using should be good for a while.
2004-04-25 05:47:52 +00:00
wiz
af1b524517
Bump date for previous.
2004-04-23 14:52:42 +00:00
christos
b3a5c6932f
Adjust to constification of db_name vector.
2004-04-23 14:48:07 +00:00
christos
2bab61681c
Ansify and add change db_name vector from char ** to const char * const *
2004-04-23 14:47:52 +00:00
christos
75f2f1640d
adjust to constification.
2004-04-23 14:47:23 +00:00
simonb
9bc855a931
s/the the/the/ (only in sources that aren't regularly imported from
...
elsewhere).
2004-04-23 02:58:27 +00:00
christos
6bd1d6d4db
Replace the statfs() family of system calls with statvfs().
...
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
he
30f13a8751
Avoid using preprocessing conditionals in a macro argument list at least
...
as long as all ports have not yet been converted to using gcc 3.3.3.
Build bug discovered when building for vax.
2004-04-11 09:10:58 +00:00
atatat
8d5507a13f
Weak aliases for sysctlfoobar() functions.
2004-04-08 05:45:26 +00:00
atatat
11d2a71805
Descriptions for user.* sysctl nodes. Mostly copied from sysctl(3).
2004-04-08 04:10:44 +00:00
wiz
2569049f22
Add comma after "i.e.".
2004-04-04 23:41:23 +00:00
perry
9b863e179d
make this man page explain what the calls do somewhat better.
2004-04-04 17:10:48 +00:00
snj
0e9a95f62e
Simplify a clunky multi-line Fn, correct Nm usage, use Dq for quotes, add
...
some commas.
2004-03-31 01:25:46 +00:00
snj
c747b3ab1b
Bump date for last.
2004-03-31 00:14:30 +00:00
heas
d9287af8b5
Add bits about FTS_WHITEOUT & FTS_W.
2004-03-31 00:01:47 +00:00
wiz
029ff5c848
Some wording improvements and other minor fixes from OpenBSD.
2004-03-30 13:28:13 +00:00
he
9e1e88e1c4
Introduce sysc_init_field() and use it to make the code a little less ugly.
...
Also, fix another gcc2-unfriendly initialization.
2004-03-26 22:54:42 +00:00
he
2f47eb75f7
Modify this so that it actually compiles with gcc2.
2004-03-26 12:53:58 +00:00
wiz
073b7ea121
Bump date for previous; new sentence, new line;
...
remove duplicate word and fix a punctuation typo.
2004-03-25 20:02:04 +00:00
atatat
29e15c7932
Move sysctlbyname(), sysctlnametomib(), and sysctlgetmibinfo() from
...
sysctl(8) into libc, making the minor number jump. Add prototypes to
sys/sysctl.h, fix sets, modify man pages, etc. That oughta cover it.
2004-03-25 19:36:26 +00:00
atatat
44afe14cb6
Unwind the nested designators for fields within structs within structs
...
(or unions). This should really be put back once we're all using gcc3
for everything, since that makes it look a *lot* cleaner.
2004-03-25 18:36:49 +00:00
atatat
ce0d7254d4
Description framework for user-level sysctl nodes. Still haven't
...
written the descriptions.
2004-03-24 19:31:46 +00:00
snj
27d4257287
Bump date for last; avoid direct use of &, < and >; drop trailing space.
2004-03-24 19:10:46 +00:00
atatat
4723bb21ba
Bring sysctl man pages up to date (wrt new query interface, the
...
versioning, and descriptions).
2004-03-24 18:22:30 +00:00
atatat
c6abd47f96
New node version and layout. This should take care of the netbsd32
...
emulation problem, formalizes the versioning (should it ever be needed
again), and provides a slot for descriptions.
2004-03-24 17:21:02 +00:00
atatat
d42aae36c0
The new sysctl query interface returns the same information as the old
...
one, but you must pass in an empty node that indicates the version
you're using.
2004-03-24 16:34:34 +00:00
atatat
9b4aa5d493
Remove my private hack for watching how sysctl works. That's not
...
supposed to be there.
2004-03-24 16:29:10 +00:00
atatat
19af35fd0d
Tango on sysctl_createv() and flags. The flags have all been renamed,
...
and sysctl_createv() now uses more arguments.
2004-03-24 15:34:46 +00:00
wiz
06588a00dd
Sort SEE ALSO, drop trailing space.
2004-03-04 23:49:31 +00:00
wiz
61e64d47d4
Sort SEE ALSO.
2004-03-04 23:47:56 +00:00
kleink
8e54f10bf7
* Turn isinf(3) and isnan(3) into C99-style macros.
...
* Make it possible for ports to override these (i.e., VAX).
* Remove isnanl(), which was internal to libc only.
2004-03-04 23:42:38 +00:00
enami
5a257984e5
Fix indent and other whitespace usage.
2004-02-26 23:01:15 +00:00
wiz
3ce85dd47a
inifities are probably infinities.
2004-01-15 20:31:40 +00:00
wiz
51008fe87a
I guess ture means true.
2004-01-15 20:30:46 +00:00
kleink
d82e732345
Add C99 fpclassify(), isfinite(), isnormal(), and signbit() macros.
2004-01-15 19:43:44 +00:00
wiz
70cfe67d9f
There is no sysctl(9) (yet?), comment it out;
...
fix a typo.
2004-01-08 09:21:35 +00:00
atatat
76f7bb35fd
Add descriptions of flags.
2004-01-07 21:25:14 +00:00
wiz
a004e52a39
Uppercase CPU; mark up NULL; remove superfluous word; simplify macro usage.
2004-01-03 13:09:44 +00:00
atatat
9cfe841137
At long last, add descriptions of new "dynamic" operations.
2004-01-03 06:06:36 +00:00
jmmv
2fec59e8d0
Fix typo; from Aidan Kehoe in PR lib/23950.
2004-01-02 17:04:52 +00:00
martin
47923e6bf5
In case of underflow, return -0.0 or +0.0, depending on the sign of
...
the argument.
This makes sparc64 pass regress/lib/libc/ldexp.
2003-12-30 23:19:07 +00:00