summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2008-05-13Don't forget to va_end() the va_list we get from va_copy(). From FreeBSD.Todd C. Miller
2008-05-11Fix a crash when iterating over a hash and removing its elements.Todd C. Miller
From Patrick Keshishian. OK pvalchev@
2008-05-11garbage collect the portability bits for the removed select() support.Brad Smith
ok djm@ deraadt@
2008-05-09kill trailing whitespace;Jason McIntyre
2008-05-09add SO_BINDANY with pf example; help from jmc, ok beck@Markus Friedl
2008-05-07routed is no more so use dhcpd in these examples instead. OK norby@Claudio Jeker
2008-05-07remove duplicates; remove des_random_key; remove unused; sort MLINKS; ok jmc@Markus Friedl
2008-05-06Use the standard syslog levels on CARP logging messages instead ofRyan Thomas McBride
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
2008-05-05add missing header for getpagesizeCharles Longeau
ok espie@
2008-05-03add missing header for closeCharles Longeau
ok otto@ espie@ millert@
2008-05-02- Use a const pointer for bufferevent_write.Brad Smith
- Make event_init return struct event_base *. From the libevent SVN repo. ok millert@
2008-05-02- Increment MAX_ADDRS in evdns so as to be quite large.Brad Smith
- Accept as well-formed DNS replies with questions but no answers. - Fix for crash in evdns_resolve_reverse_ipv6(). - Move end of "extern C {" block to the end of evdns.h. From the libevent SVN repo. ok millert@
2008-05-02Makefile: sort MLINKS and add event_base_once.3Jason McIntyre
event.3: fix NAME and remove spurious blank line
2008-05-02Make the SO_TIMESTAMP sockopt work. When set, this allows the user toChris Kuethe
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
2008-05-02Update to libevent 1.3e while retaining our local changes.Brad Smith
"No objection" millert@ "the diff looks and works fine" reyk@
2008-05-01Be carefull not to read away the target entry when encounteringOtto Moerbeek
deleted files after a seekdir(); testcase produced by mbalmer@; fix with and ok mbalmer; ok millert@
2008-04-24- correct brk(2) prototype and man page to match implementation and POSIX.Kurt Miller
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@
2008-04-24Return the proper values upon failure per POSIX for pthread_sigmask(3) andKurt Miller
sigprocmask(2) in threaded programs. From Philip Guenther <guenther at sendmail.com> via PR library/5795. okay marc@
2008-04-24Return the proper values upon failure per POSIX for pthread_sigmask(3) andKurt Miller
sigprocmask(2) in threaded programs. From Philip Guenther <guenther at sendmail.com> via PR library/5795. okay marc@
2008-04-21_file is only a short, so prevent truncation if we happen to hitOtto Moerbeek
upon a fd > SHRT_MAX. From freebsd via Jan Schaumann; ok deraadt@ millert@ espie@
2008-04-18convert select() => poll(), saves a runtime malloc+free per retryDamien Miller
feedback deraadt@ drahn@; ok deraadt@
2008-04-16permit _ in the middle of a DNS name componentTheo de Raadt
2008-04-13Improve the libc DNS resolver ID generation algorithm to be moreDamien Miller
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@
2008-04-13Use arc4random_buf() when requesting more than a single word of outputDamien Miller
Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
2008-04-05document EINVAL; from DasnJason McIntyre
ok millert
2008-04-04alter internal _readdir_unlocked() api to be less confusing, so thatOkan Demirmen
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@
2008-04-04- do not call pthread_atfork(3) handlers when a multithreaded programKurt Miller
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@
2008-04-04Zero out the password/response argument in the simplified BSD authTodd C. Miller
interafces. Otherwise, we end up with an extra copy in memory when auth_call() forks that is not possible to clear.
2008-04-04simplify SNDCTL_DSP_SETTRIGGERJacob Meuser
- don't mess with the operational mode. that was primarily to be able to set record|play mode for full-duplex, which isn't needed any more. - don't set pause=1. this ioctl isn't supposed to be used for stopping streams. suggestions, ok ratchov
2008-04-02Zero state buffers on return. OK deraadt@Todd C. Miller
2008-03-31Update to tzcode 2008a from elsie.nci.nih.govTodd C. Miller
2008-03-30Unbreak build.Mark Kettenis
2008-03-26HISTORY tweak; ok ottoJason McIntyre
2008-03-25be more explicit about the unit used for the f_b* fields; prompted byOtto Moerbeek
and ok djm@
2008-03-25section 3, Darrin ChandlerOtto Moerbeek
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
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
2008-03-23Use fileno() instead of peeking into FILE *; Paul StoeberTheo de Raadt
2008-03-22flag constant values should be UL, spotted by deraadt@Otto Moerbeek
2008-03-22move statvfs.c to gen, since it is not a syscall; ok deraadt@Otto Moerbeek
2008-03-22overdue statvfs man pageOtto Moerbeek
2008-03-19bcmp(3) tries to return length, which is a size_t, as an int.Ray Lai
Instead, just return 1 if there is a difference. Found by lint. OK millert.
2008-03-16- add NAME entries for arc4random_buf and arc4random_uniformJason McIntyre
- simplify a macro call (Do/Dc -> Dq)
2008-03-16Add missing MLINKSTheo de Raadt
2008-03-16sync with sys/statfs.h; ok jmc@Otto Moerbeek
2008-03-16bumpOtto Moerbeek
2008-03-16Add the semi-standard _SC_PHYS_PAGES and _SC_AVPHYS_PAGES, sysconf(3) variable.Mark Kettenis
ok espie@
2008-03-16diff from djm@ committed at his request:Otto Moerbeek
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@
2008-03-16indentTheo de Raadt
2008-03-16statvfs supportOtto Moerbeek
2008-03-15- len is size_t, but n uses len and is an int. Matching those typesRay Lai
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.