Commit Graph

10154 Commits

Author SHA1 Message Date
christos
b4073cddaf Fix getgrnam -> getgrnam_r 2005-04-19 13:04:38 +00:00
christos
e640241b82 fix getgrnam -> getgrnam_r and add a forgotten getpwnam -> gepwnam_r
From john nemeth
2005-04-19 13:04:19 +00:00
wiz
d82b36f1ee Add a comma for readability. 2005-04-19 10:00:50 +00:00
lukem
9fcbc80387 When sequentially parsing a source looking for entries don't fail with
NS_UNAVAIL on an unparseable or too long line; instead try the next entry.
This is more consistent with the behaviour prior to the rework in rev 1.49.
2005-04-19 05:27:58 +00:00
lukem
2662d7cbb4 Clarify getgr*_r() return value when entry isn't found.
Improve markup of various constants.
2005-04-19 04:38:04 +00:00
lukem
77c203997c remove bogus punctuation 2005-04-19 04:32:58 +00:00
lukem
f948a874e7 Clarify getpw*_r() return value when entry isn't found.
Improve markup of various constants.
2005-04-19 04:26:16 +00:00
lukem
01cf9d0263 Safety boots: don't depend upon getpwnam_r() to set pwd to NULL on all
failures, especially if we're going to ignore the return result.
2005-04-19 03:40:16 +00:00
lukem
a767f5ec9c getpw*_r() may return 0 and set pwd==NULL 2005-04-19 03:38:08 +00:00
christos
b9b92f846c check for pwd != NULL, fix a missed getpwnam. 2005-04-19 03:29:18 +00:00
christos
eea147d9f9 check for pwd != NULL 2005-04-19 03:20:50 +00:00
christos
262b0ba97f check pwd != NULL 2005-04-19 03:19:46 +00:00
christos
2a62e4e1ad check for pwd != in getpw*_r functions. 2005-04-19 03:15:34 +00:00
lukem
d0388cff8b getgrent():
Return the correct result. (broken in rev 1.56 -- Hi Christos!)

getgr{ent,nam,uid}_r():
Return 0 "entry not found" and errno for other failures.
("entry not found" still sets *result to NULL).

Various backends:
don't set the retval to errno (or modify errno) for NS_NOTFOUND.

Per discussion with Klaus Klein.
2005-04-19 03:00:12 +00:00
lukem
443af068fa getpw{ent,nam,uid}_r():
Return 0 "entry not found" and errno for other failures.
("entry not found" still sets *result to NULL).

Various backends:
don't set the retval to errno (or modify errno) for NS_NOTFOUND.

Per discussion with Klaus Klein.
2005-04-19 02:49:00 +00:00
wiz
9899f59159 Grammar fix. 2005-04-19 00:15:50 +00:00
kleink
4e3cae58ff Move the (at this time private) get{proto,serv}ent_r() prototypes and
data structures into the libc sources until the interface gets redone.
Approved by christos.
2005-04-18 19:39:45 +00:00
wiz
7224809d57 Document index argument, and mention that long_options
needs to be terminated with a structure containing zeroes.
Slightly modified version of patch from PR 30002 by Kailash Sethuraman.
Bump date.
2005-04-18 10:56:33 +00:00
christos
0de6393bd4 PR/21165: Christian Biere: ctype function misuse 2005-04-17 17:27:11 +00:00
christos
476fac655a PR/21167: Christian Biere: ctype function misuse. 2005-04-17 17:22:36 +00:00
wiz
aad2c7a127 Remove superfluous .Pp, add some commas, improve grammar in a sentence,
and bump date for the many changes in the update to 1.0c.
2005-04-17 08:51:19 +00:00
wiz
46e16d08b7 Drop trailing whitespace. 2005-04-17 08:48:17 +00:00
provos
bdc32cfad7 update to libevent-1.0c. This includes support for event priorities,
multi-threaded applications and some bug fixes.  regression test
improved to test for new features.  bump major.
2005-04-17 07:20:00 +00:00
kleink
d6a0715a49 Due to their "inverse" treatment of the fraction's MSb, update NAN
conversion to construct a quiet NaN on hppa, mips, sh3, and sh5 as well.
Also, remove the portion constructing a ROP on vax; this is not required
by the standard, and in its consequences it is not an appropriate
substitute for a qNaN.
2005-04-15 22:46:21 +00:00
kleink
b2cb7fcd8a Push back the descriptions of NaN formats, and descriptions of the
distinction between signalling NaNs and quiet NaNs back into the
machine-dependent headers; treat the implementation of __nanf in the
same spirit.

IEEE 754 leaves the distinction between signalling NaNs and quiet NANs
to the implementation, and unlike our headers used to suggest they're
not identical in the interpretation of the fraction's MSb; in due
course, make those of hppa, mips, sh3, and sh5 reflect reality.
2005-04-15 22:39:10 +00:00
wiz
0bb532e823 Bump date for previous; add commas to make
sentences more readable.
2005-04-13 23:08:03 +00:00
drochner
1a771b22ec Allow for a login.conf file without an explicite "default" class
definition.
The login.conf(5) manpage states that the "default" class is used
*if it exists*.
2005-04-13 20:32:42 +00:00
christos
a76abbed58 PR/29958: Peter Bex: add rl_variable_bind and rl_attempted_completion_over 2005-04-12 22:01:40 +00:00
drochner
179747d76c getmntinfo() if a compatibility function, so there is no point in hiding
references to the compatibility getfsstat()
The real problem behind PR lib/29919 was a stale weak_alias, so back out
the workaround.
2005-04-12 21:36:46 +00:00
drochner
ec387481a6 the real reason behind PR lib/29919 was that there was a __weak_alias,
obviously copied from getmntinfo.c, referencing the compatibility
getmntinfo()
2005-04-12 20:49:19 +00:00
wiz
37172421f7 Adapt .Dt argument for man page renaming, and use more macros. 2005-04-12 17:04:46 +00:00
drochner
a00e491cf3 Both libcurses and libc installed a getcap(3) manpage, and both used it
as target for a bunch of MLINKS. This had the effect that whatever came
last in install overwrote everything from the other camp.
Solve this by renaming the libc page -- this makes sense because no
function is really named "getcap" here.
2005-04-12 16:27:42 +00:00
drochner
4ba6a2ab76 this should refer to "cgetset", not "cgetseq" 2005-04-12 16:11:33 +00:00
wiz
f5d4b0a380 Remove duplicate word, from Wojciech A. Koszek in PR 29938. 2005-04-11 12:19:16 +00:00
manu
5a6c417352 Resurrect TCP-MD5 support. This fixes bin/29915 2005-04-10 21:20:55 +00:00
christos
c4402ab05e Use getpwnam_r; from John Nemeth 2005-04-10 08:05:40 +00:00
christos
382db3eda9 Use getpwnam_r. From john nemeth. 2005-04-09 22:43:51 +00:00
matt
38b7b2fcde Merge updates to algorithms from i386 switch code. 2005-04-09 20:53:19 +00:00
matt
7fa678813d Add STACKSPACE 2005-04-09 20:50:27 +00:00
matt
e722e50c79 Rework and cleanup. Don't use REI, fake a call frame instead. 2005-04-09 20:49:02 +00:00
matt
17a5fd3419 Start the args after the argc. Return to resumecontext after the entry mask. 2005-04-09 20:46:56 +00:00
dsl
8386db0625 Change some integral types, long => clock_t.
IIRC this stops some warnings on 64bit systems
2005-04-09 12:52:54 +00:00
dsl
6d9a96dfb2 KNF 2005-04-09 12:48:58 +00:00
atatat
a9321bb19a Add the 'A' and 'P' format specifiers which use getaddrinfo(3) to turn
numbers into names (if possible).  Also add the '?' format modifier
that elides the "N/A" if that's what you would normally get.
2005-04-09 02:05:47 +00:00
atatat
7f2367785b Mention that the number after CTL_NET is "usually the protocol", but
may not be (see net.bpf).
2005-04-09 02:03:36 +00:00
christos
fad5d2cf7a statvfs is both a function name and a struct tag. Defining it to _statvfs
causes lint to complain because it sees both struct statvfs and struct
_statvfs. Fix by changing the macro to have arguments.
XXX[1]: Probably this should be done for the rest of the functions that have
        the same names as struct tags.
XXX[2]: Is there a better way?
2005-04-07 16:26:35 +00:00
christos
67d11513a6 PR/29919: Evaldo Gardenali: getmntinfo() calling deprecated function getfsstat()
Fixed by defining an _getfsstat() internal function and calling that instead.
2005-04-07 16:24:18 +00:00
kleink
fb4f51453b Add some pedantry to exceptions from being equivalent to strftime. 2005-04-06 21:39:17 +00:00
christos
b4eda329f4 Don't print an error if we are doing authentication. 2005-04-05 18:24:17 +00:00
kleink
fb03db1761 Fix typo in previous. 2005-04-05 15:46:18 +00:00
christos
23f760bbb6 mlinks for get{gr,pw}ent_r.3 2005-04-04 20:35:31 +00:00
wiz
aed63b5317 Use Dq macro; end sentence with a dot; break line
differently so that abbreviation dot is not interpreted as line-ending dot.
2005-04-04 18:26:19 +00:00
wiz
e9c5ce35a3 Remove superfluous comma. 2005-04-04 18:24:21 +00:00
christos
f6d9547d6f Describe get{pw,gr}ent_r. XXX: Are they in any standards? 2005-04-04 14:19:55 +00:00
wiz
c2fd74dc8e Remove duplicate words; grammar fix. 2005-04-04 08:19:00 +00:00
wiz
11f7061e02 Drop trailing whitespace. 2005-04-04 08:14:49 +00:00
christos
ada3b096d0 Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantage
of the getpwent_r bump.
2005-04-03 20:09:29 +00:00
christos
bf7832efc6 use getpwent_r 2005-04-02 06:28:10 +00:00
christos
184974e05a PR/29849, PR/29850: Add getpwent_r and getgrent_r 2005-04-02 04:53:53 +00:00
christos
fffc26d436 Use getpwuid_r, KNF. From John Nemeth, many thanks. 2005-04-01 12:51:07 +00:00
lukem
7f46de1e4e tweak comment reminding us about lack of reentrancy 2005-03-31 23:58:28 +00:00
christos
096c521c10 Remove the bugs section. It has been fixed. 2005-03-31 15:45:53 +00:00
thorpej
59cbc9e205 Use getpwnam_r(). 2005-03-31 15:11:54 +00:00
christos
99ab3bdfc8 Fix compilation both with and without SSL. The buffer argument is different
type, not just the length.
2005-03-31 14:29:32 +00:00
wiz
0ef0d9cbc7 Drop trailing whitespace. 2005-03-31 11:44:26 +00:00
christos
a075f0f32c Document the return values of the _r functions. 2005-03-31 04:17:05 +00:00
christos
ae82b1bd49 detect when this is used as a tool and don't use the _r getpw functions. 2005-03-31 00:05:02 +00:00
christos
1880024ade mention that SIG_IGN on SIGCHLD does not produce zombies. 2005-03-30 17:09:28 +00:00
christos
5d3d04b484 use re-entrant versions of getpw*(). In libc only pwcache remains and this
cannot be changed easily because it involves an API change.
2005-03-30 16:12:58 +00:00
yamt
73a5d8f913 s of sack is selective, not selection. pointed by Michael Eriksson. 2005-03-30 11:09:16 +00:00
wiz
215d79769a Add man page for wcsftime from FreeBSD. 2005-03-30 10:15:12 +00:00
christos
eb808713b7 PR/29826: J. T. Conklin: Add wcsftime(3) (from FreeBSD) 2005-03-30 03:47:11 +00:00
christos
c4e3c4d493 Don't refuse to create a hash database on 0 length files. Treat
them as new files the same way that the btree code does.  Note that
we do the fstat() after the open() instead of re-using the previous
result of the stat() to avoid races (we open with O_EXLOCK when we care).
2005-03-29 23:37:15 +00:00
tnozaki
a3b248100e add csmapper:CNS11643-1,2 and esdb:ISO-2022-CN,
integrate esdb:EUC-TW, locale:zh_TW.eucTW.
2005-03-27 22:30:05 +00:00
christos
bc0c808b3b Don't sign extend characters when they get converted to wide characters in
mbtowc. Otherwise you are not going to be able to wctomb them. Added
regression test. From kim, many thanks.
2005-03-27 18:51:19 +00:00
christos
049130f10b change some ints to size_t 2005-03-26 04:38:21 +00:00
christos
b97f63a242 Regen for OpenSSL 0.9.7f 2005-03-26 03:26:46 +00:00
christos
039caef355 bump minor. 2005-03-26 02:22:01 +00:00
christos
1adff5028c enable FIPS. 2005-03-26 02:21:34 +00:00
christos
4d2554560d Add fips include files, needed for compilation only. FIPS is not enabled
right now, but we will enable it later (adding -DOPENSSL_FIPS).
2005-03-25 20:14:40 +00:00
kleink
a6636f0f7b Avoid lint warning after previous. 2005-03-23 08:16:53 +00:00
kleink
b9a719ae1e Add restrict qualifiers to remaining <signal.h> function arguments. 2005-03-22 20:25:31 +00:00
kleink
98061f1fca * Add restrict qualifiers to tdelete() function arguments.
* Const-poison tfind()'s rootp argument, per SVID Issue 1 and later.
2005-03-22 20:13:42 +00:00
wiz
1c3ab7213e Wording improvements, from yamt@ 2005-03-22 01:43:31 +00:00
kleink
4adfe32052 Add restrict qualifiers to function arguments (already in <semaphore.h>). 2005-03-21 21:55:08 +00:00
kleink
9cf9c2316b Add restrict qualifiers to <pthread.h> function arguments. 2005-03-21 17:55:07 +00:00
kleink
172675479e Only name <netdb.h> in the synopsis, like the old manual page used to. 2005-03-21 13:35:04 +00:00
kleink
53b42c4e52 Add restrict qualifiers to getaddrinfo() and getnameinfo() arguments. 2005-03-21 13:30:50 +00:00
kleink
34579587e1 Include <sys/select.h> explicitly rather than relying on other headers
to do it.
2005-03-21 09:00:49 +00:00
yamt
38083a97f4 update tcp.sack. noted by Hubert Feyrer. 2005-03-21 08:51:40 +00:00
christos
611fb1aa58 Make S/Key prompt compliant with RFC 2289. Patch supplied by Dave Huang
in PR bin/23167.
2005-03-20 16:48:47 +00:00
christos
35d638917d PR/29738: Rui Paulo: Incorrect tok_line and tok_str declarations. 2005-03-19 17:36:02 +00:00
kleink
363c26d4ba Interpose cancellation points in pollts() and pselect(), bringing us
to libc.so.12.127 and libpthread.so.0.6.
2005-03-18 11:23:44 +00:00
kleink
54e5574ccd We have pselect(2) now; the local wrapper is no longer necessary. 2005-03-17 20:48:50 +00:00
jwise
f579845294 Lint warning police -- don't use `//' for comments in C code. 2005-03-17 17:23:21 +00:00
kleink
e9705ca517 Rename select argument to selectfn to avoid a shadowing warning. 2005-03-17 10:18:22 +00:00
christos
dbf71d82fb remove debugging printf's 2005-03-17 01:14:40 +00:00
christos
99186ebfc8 Clear the authorization token at the entry of each loop, so that
we get a chance to re-enter.
2005-03-17 01:13:59 +00:00
manu
ec81f7eda5 update ipsec-tools version 2005-03-16 23:52:56 +00:00
he
733ba3e3bd GCC 2.95.3 doesn't like macros to be called with no argument when
the definition has an argument.  Cheesily add a 0 argument to the
srandomdev() invocation (which gets defined as null on NetBSD).
Restores our vax port to a buildable state.
2005-03-16 10:34:25 +00:00