summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update Copyright notice; ok otto@ beck@ deraadt@.schwarze2014-04-031-2/+4
| | | | | This is merely a by-product of figuring out the amount of phk@ code contained herein; i'm not planning to hack on this file.
* I have discussed these licenses with Poul-Henning Kamp and he has agreed tobeck2014-04-033-23/+52
| | | | this license change. We will remember that we all still like beer.
* Use setresuid() and setresgid(). OK guenther@ deraadt@millert2014-04-011-7/+8
|
* revert "Retire kernel support for SO_DONTROUTE" diff, which does bad thingssthen2014-03-282-8/+13
| | | | for localhost connections. discussed with deraadt@
* Retire kernel support for SO_DONTROUTE, since the plan is to alwaysmpi2014-03-272-13/+8
| | | | | | | | use the routing table there's no future for an option that wants to bypass it. This option has never been implemented for IPv6 anyway, so let's just remove the IPv4 bits that you weren't aware of. Tested by florian@, man pages inputs from jmc@, ok benno@
* Make the asr API public. Install asr.h to /usr/include.h and manpages.eric2014-03-2622-158/+93
| | | | | | Include tweaks suggested by mpi@ ok deraadt@
* update manpageeric2014-03-261-137/+81
|
* Cleanup and simplify the API to be exposed. Use better names foreric2014-03-2518-254/+251
| | | | | | structures, functions and defines. discussed with and ok deraadt@ guenther@
* Poul-Henning Kamp informed me he is allright with this licensing change.beck2014-03-251-11/+4
|
* no getstedu2014-03-251-3/+2
|
* Update to match headerguenther2014-03-241-4/+3
|
* oops, merge errortedu2014-03-241-2/+2
|
* clear stack variables, suggested by djmtedu2014-03-231-1/+4
|
* Remove the MD4 functions.naddy2014-03-236-340/+76
| | | | | | | "A collision attack published in 2007 can find collisions for full MD4 in less than two hash operations." ok deraadt@, man pages ok jmc@
* some improvements suggested by djm.tedu2014-03-231-4/+6
| | | | | | use better constant for salt size. always copy ":" to gerror, in case somebody is dumb enough to overwrite it timingsafe_bcmp before somebody whines about strcmp
* two functions don't need to be exportedtedu2014-03-231-3/+3
|
* minimal change to implementation of bcrypt to not require static globals.tedu2014-03-231-39/+88
| | | | | | add some friendlier functions. move the classic static data api into wrapper functions. a few more changes to come...
* remove the never used bm string functionstedu2014-03-233-329/+3
|
* c11 compliance: remove gets()tedu2014-03-233-117/+12
|
* major++ in preparation for coming changestedu2014-03-231-2/+2
|
* switch to shorter ISC license. this was ok with Niels Provos.tedu2014-03-221-27/+12
|
* It's still safe to assumed 'signed' existsguenther2014-03-194-12/+12
|
* 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.