summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a crash when iterating over a hash and removing its elements.millert2008-05-112-11/+22
| | | | From Patrick Keshishian. OK pvalchev@
* garbage collect the portability bits for the removed select() support.brad2008-05-111-11/+1
| | | | ok djm@ deraadt@
* kill trailing whitespace;jmc2008-05-091-2/+2
|
* add SO_BINDANY with pf example; help from jmc, ok beck@markus2008-05-091-2/+20
|
* routed is no more so use dhcpd in these examples instead. OK norby@claudio2008-05-071-3/+3
|
* Use the standard syslog levels on CARP logging messages instead ofmcbride2008-05-061-5/+7
| | | | | | | | | | | simple on/off, allowing more control over how verbose the logging is. This also allows you to do a further level of filtering in syslog.conf if you need to. Also add logging of state changes, inspired by diff provided by Brian A. Seklecki in PR 5513. These messages are logged by default. ok henning mpf deraadt
* add missing header for getpagesizechl2008-05-051-1/+2
| | | | ok espie@
* add missing header for closechl2008-05-031-1/+2
| | | | ok otto@ espie@ millert@
* Make the SO_TIMESTAMP sockopt work. When set, this allows the user tockuethe2008-05-021-2/+20
| | | | | | | | | get a timestamp of when the datagram was accepted (by udp(4), for example) rather than having to take a timestamp with gettimeofday(2) when recv(2) returns - possibly several hundreds of microseconds later. May be of use to those interested in precision network timing schemes or QoS for media applications. Tested on alpha, amd64, i386 and sparc64. manpage suggestions from jmc, ok deraadt
* Be carefull not to read away the target entry when encounteringotto2008-05-012-8/+14
| | | | | deleted files after a seekdir(); testcase produced by mbalmer@; fix with and ok mbalmer; ok millert@
* - correct brk(2) prototype and man page to match implementation and POSIX.kurt2008-04-243-8/+8
| | | | | brk(2) returns an int value not a void *. brk(2) returns 0 upon success not a pointer to the new end of memory. okay millert@, kettenis@, deraadt@
* _file is only a short, so prevent truncation if we happen to hitotto2008-04-213-3/+28
| | | | | upon a fd > SHRT_MAX. From freebsd via Jan Schaumann; ok deraadt@ millert@ espie@
* convert select() => poll(), saves a runtime malloc+free per retrydjm2008-04-181-23/+16
| | | | feedback deraadt@ drahn@; ok deraadt@
* permit _ in the middle of a DNS name componentderaadt2008-04-161-2/+3
|
* Improve the libc DNS resolver ID generation algorithm to be moredjm2008-04-131-43/+79
| | | | | | | resistant to prediction atacks by wrapping the existing LCG in a random permutation generator based on a Luby-Rackoff block cipher. lots of discussion and final ok deraadt@
* Use arc4random_buf() when requesting more than a single word of outputdjm2008-04-131-2/+2
| | | | | | | Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
* document EINVAL; from Dasnjmc2008-04-051-2/+8
| | | | ok millert
* alter internal _readdir_unlocked() api to be less confusing, so thatokan2008-04-042-18/+21
| | | | | | | | | callers may respond accordingly and correctly. this fixes an issue where readdir_r() could not decipher the difference between an error or no more entires. feedback and ok kurt@, ok millert@
* - do not call pthread_atfork(3) handlers when a multithreaded programkurt2008-04-043-6/+19
| | | | | | calls vfork(2). "untested, but looks OK" marc@ - document vfork(2), popen(3) and system(3) don't call atfork handlers in multithreaded programs. okay jmc@
* Zero out the password/response argument in the simplified BSD authmillert2008-04-043-7/+34
| | | | | interafces. Otherwise, we end up with an extra copy in memory when auth_call() forks that is not possible to clear.
* Zero state buffers on return. OK deraadt@millert2008-04-021-1/+5
|
* Update to tzcode 2008a from elsie.nci.nih.govmillert2008-03-312-14/+21
|
* HISTORY tweak; ok ottojmc2008-03-261-3/+5
|
* be more explicit about the unit used for the f_b* fields; prompted byotto2008-03-251-1/+6
| | | | and ok djm@
* section 3, Darrin Chandlerotto2008-03-251-3/+3
|
* msg_controllen has to be CMSG_SPACE so that the kernel can account forderaadt2008-03-241-2/+2
| | | | | | | each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
* flag constant values should be UL, spotted by deraadt@otto2008-03-221-3/+3
|
* move statvfs.c to gen, since it is not a syscall; ok deraadt@otto2008-03-223-10/+11
|
* overdue statvfs man pageotto2008-03-221-0/+151
|
* bcmp(3) tries to return length, which is a size_t, as an int.ray2008-03-191-4/+4
| | | | | | | | Instead, just return 1 if there is a difference. Found by lint. OK millert.
* - add NAME entries for arc4random_buf and arc4random_uniformjmc2008-03-161-2/+4
| | | | - simplify a macro call (Do/Dc -> Dq)
* Add missing MLINKSderaadt2008-03-161-1/+2
|
* sync with sys/statfs.h; ok jmc@otto2008-03-161-20/+25
|
* bumpotto2008-03-161-1/+1
|
* Add the semi-standard _SC_PHYS_PAGES and _SC_AVPHYS_PAGES, sysconf(3) variable.kettenis2008-03-162-3/+33
| | | | ok espie@
* diff from djm@ committed at his request:otto2008-03-162-3/+84
| | | | | | | | | | | | | | introduce two new APIs for requesting strong random numbers: arc4random_buf() - fill an arbitrary memory range with random numbers arc4random_uniform() - return a uniformly distributed random number below a specified upper bound, avoiding the bias that comes from a naive "arc4random() % upper_bound" construction. these mirror similarly-named functions in the kernel; lots of discussion deraadt@ mcbride@
* indentderaadt2008-03-161-2/+3
|
* statvfs supportotto2008-03-162-2/+70
|
* - len is size_t, but n uses len and is an int. Matching those typesray2008-03-151-6/+12
| | | | | | | | | | | | | | | should be good, plus it prevents weird things from happening if len > INT_MAX. - Since n is now size_t, compare it against 0 instead of >= 0. - temp is used to store individual bytes, so use char instead (matches fp and tp). - millert noted that the comma operator may not guarantee order of execution, so replace with semicolons. Found by lint, OK millert.
* Convert c to unsigned char, like it says in the manual. Also addray2008-03-151-4/+3
| | | | | | cast to make it explicit. Found by lint, OK millert.
* Repair the simple cases for msg_controllen where it should just bederaadt2008-03-151-2/+2
| | | | | CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
* Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toderaadt2008-03-131-4/+7
| | | | an extensive discussion with otto, kettenis, millert, and hshoexer
* Have cfmakeraw() also reset VMIN and VTIME to their default values;deraadt2008-02-251-2/+3
| | | | ok kettenis miod
* if the first call to allocset() fails, the second might deref a NULLotto2008-02-231-1/+4
| | | | | pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin. ok chl@ millert@
* use pgfree pool like other code does to reserve free list slots.otto2008-02-201-6/+6
| | | | | prevents a few "cannot free mem because i need mem to free mem" scenarios (one found by weingart@). ok weingart@ millert@ miod@
* The digest in the example seems to have been generatedart2008-02-131-3/+3
| | | | | | by code that does not do zero padding. The example code does. Fix. millert@ ok
* bump Mdocdate for pages committed in "febuary", necessary becausejmc2008-02-111-2/+2
| | | | of a typo in rcs.c;
* Mention new HW_PHYSMEM64 and HW_USERMEM64 variables. Mark HW_PHYSMEM andkettenis2008-02-091-2/+14
| | | | HW_USERMEM as deprecated and point people towards HW_PHYSMEM64/HW_USERMEM64.
* Move carp load balancing (ARP/IP) to a simpler configuration scheme.mpf2008-02-051-12/+2
| | | | | | | | | | | | | | Instead of using the same IP on multiple interfaces, carp has to be configured with the new "carpnodes" and "balancing" options. # ifconfig carp0 carpnodes 1:0,2:100,3:100 balancing ip carpdev sis0 192.168.5.50 Please note, that this is a flag day for anyone using carp balancing. You'll need to adjust your configuration accordingly. Addititionally this diff adds IPv6 NDP balancing support. Tested and OK mcbride@, reyk@. Manpage help by jmc@.
* Use TCSAFLUSH instead of TCSANOW when turning echo back on so thatmillert2008-01-171-2/+2
| | | | | there is no chance of output that was written but still pending to be displayed. This is what the original getpass(3) did.