summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* consolidate the base64 code in one place, and remove inadequate test codetedu2014-03-191-86/+56
|
* right or wrong, bcrypt() is declared in pwd.h, not unistd.htedu2014-03-191-2/+3
|
* Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingmiod2014-03-18103-4146/+9
| | | | | | | this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
* Sync with the way struct ether_addr is actually defined inlteo2014-03-181-3/+3
| | | | netinet/if_ether.h
* lint is dead (long live the lint!), so stop using it as a cpp conditionalguenther2014-03-165-23/+8
| | | | | | (namespace pollution!) or talking about its opinion on code. ok krw@
* prefix structure names to avoid ambiguity and possible collisions wheneric2014-03-148-94/+94
| | | | | | the API gets public. ok deraadt@
* Unhook httpd(8) from build; man page bitsflorian2014-03-131-4/+3
| | | | | | | tweaks jmc@ OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@ "The time is right." and much help getting the show on the road deraadt@
* since we are documenting that setpwfile() is no longer available, maybejmc2014-03-121-2/+2
| | | | | don;t cross reference (Xr) its also no longer available man page: use Fn instead;
* Add ERRORS and STANDARDS, thanks to brad@ for the reminder.schwarze2014-03-123-20/+162
| | | | | | Fix the description of the RETURN VALUES of get*_r(). Minor polishing while here. Feedback and ok jmc@, ok millert@ jca@.
* Make sure that setgrent(), endgrent(), and endpwent() do not clobberschwarze2014-03-122-4/+16
| | | | | | | | | | errno; they might do so on open() and close() failures, but by POSIX, they are not supposed to fail. Note that ignoring failures inside setgrent() does not matter, the following getgrent() is bound to fail the same way again, anyway. If you insist on detecting open() failure, use setgroupent(), even though that is less portable. While here, remove two pointless (void) casts. ok millert@ jca@
* The functions getpw{nam,uid}_r() no longer set errno, not even if anschwarze2014-03-121-7/+15
| | | | | | | error occurs, but of course they do return the error. This matches what getgr{nam,gid}_r() have already been doing. Original idea by kettenis@, and deraadt@ called that idea "the only sane approach". ok kettenis@ millert@
* Optimization, no functional change:schwarze2014-03-104-9/+17
| | | | | | | | | | | | | | Save a cookie pointing to the very first entry in the DIR.dd_buf cache buffer and use that to speed up seekdir(3) when rewinding to that first entry. No libc bump because DIR is an opaque struct. When the optimization applies, which in particular it always does for rewinddir(3) after reading less than about 500 entries, seekdir(3) execution time drops from 100 to 0.05 milliseconds on my i386 notebook. Other cases are not slowed down. Based on an idea from and ok by guenther@.
* Fix getpw{nam,uid}{,_r}() errno handling for the non-YP case.schwarze2014-03-081-6/+15
| | | | | | Prevent close(2) and syslog(3) from stomping on errno; from guenther@. Set ERANGE if the buf is too small, required by POSIX; from jca@. ok millert@
* If RPP_STDIN is set the prompt is not displayed.millert2014-03-061-4/+4
| | | | Use explicit_bzero in the example code.
* sort SEE ALSO;jmc2014-03-061-3/+3
|
* Fix unsigned comparision.gerhard2014-03-061-3/+3
| | | | ok mpi@
* Fix the return values of getpwnam_r(), getpwuid_r(), getgrnam_r(),schwarze2014-03-052-4/+22
| | | | | | | | and getgrgid_r() to agree with POSIX. Not touching errno handling yet, which will also need fixing. Problem originally reported by william at 25thandClement dot com on bugs@. OK sthen@, and kettenis@ agrees it's "a step in the right direction".
* fix support for HOSTALIASES.eric2014-03-031-14/+12
| | | | | reported by tedu@ ok tedu@ deraadt@
* Try to document SO_RTABLE better. With input from deraadt@claudio2014-02-261-5/+12
|
* No need to Xr the same man page twice.claudio2014-02-261-3/+2
|
* need more #include files for resolv.h, for the non-YP case, which happensderaadt2014-02-261-1/+3
| | | | | on the install media... ok eric
* Do not restrict chars in dname during label expansion, but validate resultingeric2014-02-264-17/+16
| | | | | | hostnames before returning them to the caller. ok deraadt@
* make res_search() report NO_DATA instead of HOST_NOT_FOUND in some cases.eric2014-02-241-2/+2
| | | | | | issue reported by matthieu@ ok matthieu@ deraadt@
* solar's testsuite revealed insufficient validation of invalid input hashes.tedu2014-02-241-8/+10
| | | | add a more complete check for the rounds parameter. ok deraadt
* in HISTORY, say where this actually came from;schwarze2014-02-231-5/+7
| | | | ok deraadt@ bentley@
* remove section 2/3 pointers from section 1,schwarze2014-02-211-4/+3
| | | | | | and do not point programmers at the obsolete usleep(3); based on a diff from Jan Klemkow <j dot klemkow at wemelug dot de>, but removing more as suggested by jmc@ and deraadt@
* replace spaces with tabs for indentationstsp2014-02-171-2/+2
|
* Better search strategy for getaddrinfo. The address family loop musteric2014-02-171-14/+161
| | | | be done "inside" the search domain loop, not the other way round.
* report extra PTR records as aliaseseric2014-02-171-3/+2
|
* remove redundant testtedu2014-02-171-3/+2
|
* sticking strlen into a char leads to wraparound at 256. fix this andtedu2014-02-171-5/+18
| | | | | | introduce a new 'b' hash minor. still generate 'a' minors for now. reported by solar designer. diff by some combination of solar and jca. ok deraadt
* Fix logic bug; we can only infer tm_yday if both tm_mday and tm_monmillert2014-02-131-2/+2
| | | | are set. Adapted from a diff from David Higgs. OK krw@
* Don't use use .Tn with AND/OR/NOTguenther2014-02-1314-94/+55
| | | | | | | | Phrase any "The _flags_ argument is the ..." line consistently, eliminating unnecessary use of 'inclusive' and saying "zero or more" or "one or more" as appropriate ok millert@ jmc@ schwarze@
* use .At to refer to System V.1; from Jan Stary <hans at stare dot cz>schwarze2014-02-124-12/+16
|
* avoid pointless TAB outside literal context;schwarze2014-02-111-3/+3
| | | | from Jan Stary <hans at stare dot cz>
* Fix inet6_opt_init() to only check extlen when extbuff is not NULLmpi2014-02-071-5/+2
| | | | | | as per RFC 3542, from DragonFlyBSD via Eitan Adler. ok bluhm@
* Remove unnecessary stdio.h include.stsp2014-02-051-2/+1
| | | | Patch by Jean-Philippe Ouellet ; ok krw@
* Always set errno when returning NULL. OK kettenis@ henning@millert2014-02-051-7/+17
|
* e.g. not i.e.jmc2014-01-291-3/+3
| | | | From: Ross L Richardson
* appeared in 5.2. from Donovan Watteautedu2014-01-261-3/+3
|
* Update C standard reference to C99 and document HISTORY and AUTHORS;schwarze2014-01-241-5/+24
| | | | using input from millert@, reminded by and ok jmc@
* also document that ctime* and asctime* can return NULL; ok deraadt@, millert@otto2014-01-231-2/+6
|
* Use consistent phrasing for bitmask flags.guenther2014-01-223-15/+18
| | | | tweaking and ok millert@ jmc@
* add explicit_bzero to NAME;jmc2014-01-221-2/+3
|
* minor++tedu2014-01-221-1/+1
|
* add explicit_bzero to libc. implementation subject to change, but starttedu2014-01-223-4/+37
| | | | the ball rolling. ok deraadt.
* fix a leak in getgrouplist()jsg2014-01-221-1/+2
| | | | | problem reproduced and fix verified by schwarze who wrote the code ok krw@ deraadt@ schwarze@
* Ouch... recommend arc4random, not random.deraadt2014-01-211-3/+3
| | | | spotted by tedu
* document return values; ok deraadt@, jmc@otto2014-01-211-1/+12
|
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-2173-302/+301
|