Age | Commit message (Collapse) | Author |
|
|
|
From Patrick Keshishian. OK pvalchev@
|
|
ok djm@ deraadt@
|
|
|
|
|
|
|
|
|
|
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
|
|
ok espie@
|
|
ok otto@ espie@ millert@
|
|
- Make event_init return struct event_base *.
From the libevent SVN repo.
ok millert@
|
|
- 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@
|
|
event.3: fix NAME and remove spurious blank line
|
|
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
|
|
"No objection" millert@
"the diff looks and works fine" reyk@
|
|
deleted files after a seekdir(); testcase produced by mbalmer@; fix
with and ok mbalmer; ok millert@
|
|
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@
|
|
sigprocmask(2) in threaded programs.
From Philip Guenther <guenther at sendmail.com> via PR library/5795.
okay marc@
|
|
sigprocmask(2) in threaded programs.
From Philip Guenther <guenther at sendmail.com> via PR library/5795.
okay marc@
|
|
upon a fd > SHRT_MAX. From freebsd via Jan Schaumann; ok deraadt@
millert@ espie@
|
|
feedback deraadt@ drahn@; ok deraadt@
|
|
|
|
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_uniform() when the desired random number upper bound
is not a power of two
ok deraadt@ millert@
|
|
ok millert
|
|
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@
|
|
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@
|
|
interafces. Otherwise, we end up with an extra copy in memory when
auth_call() forks that is not possible to clear.
|
|
- 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
|
|
|
|
|
|
|
|
|
|
and ok djm@
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
Instead, just return 1 if there is a difference.
Found by lint.
OK millert.
|
|
- simplify a macro call (Do/Dc -> Dq)
|
|
|
|
|
|
|
|
ok espie@
|
|
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@
|
|
|
|
|
|
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.
|