OpenBSD src changes summary for 2016-08-21 to 2016-08-28 inclusive
==================================================================

bin/dd                                  bin/ksh
bin/md5                                 bin/pax
distrib/miniroot                        distrib/sets
etc/examples/pkg.conf                   games/atc
games/battlestar                        games/boggle
games/fortune                           games/hunt
games/phantasia                         games/pom
games/robots                            games/tetris
include/rpc/svc.h                       lib/libarch
lib/libc                                lib/libfuse
lib/libssl                              lib/libtls
lib/libutil                             libexec/ftpd
libexec/ld.so                           libexec/makewhatis
libexec/rpc.rstatd                      libexec/talkd
regress/lib                             regress/libexec
regress/sbin                            regress/sys
regress/usr.bin                         regress/usr.sbin
sbin/dhclient                           sbin/init
sbin/isakmpd                            sbin/mount
sbin/pfctl                              sbin/reboot
sbin/route                              sbin/sysctl
share/man                               sys/arch/amd64/conf
sys/arch/arm/arm                        sys/arch/arm/cortex
sys/arch/arm/include                    sys/arch/armv7/armv7
sys/arch/armv7/conf                     sys/arch/armv7/dev
sys/arch/armv7/exynos                   sys/arch/armv7/imx
sys/arch/armv7/sunxi                    sys/arch/armv7/vexpress
sys/arch/loongson/loongson              sys/arch/sparc64/dev
sys/arch/sparc64/sparc64                sys/dev/acpi
sys/dev/cardbus                         sys/dev/ic
sys/dev/ofw                             sys/dev/pci
sys/isofs/udf                           sys/kern
sys/lib/libsa                           sys/miscfs/fuse
sys/net                                 sys/netinet
sys/netinet6                            sys/netmpls
sys/sys                                 sys/tmpfs
usr.bin/du                              usr.bin/file
usr.bin/ftp                             usr.bin/grep
usr.bin/hexdump                         usr.bin/kdump
usr.bin/less                            usr.bin/login
usr.bin/mandoc                          usr.bin/netstat
usr.bin/nfsstat                         usr.bin/openssl
usr.bin/rcs                             usr.bin/ssh
usr.bin/systat                          usr.bin/tmux
usr.bin/top                             usr.bin/vi
usr.sbin/arp                            usr.sbin/bgpd
usr.sbin/dhcpd                          usr.sbin/dhcrelay
usr.sbin/httpd                          usr.sbin/ifstated
usr.sbin/inetd                          usr.sbin/kgmon
usr.sbin/ldapd                          usr.sbin/ldomd
usr.sbin/ntpd                           usr.sbin/pcidump
usr.sbin/pkg_add                        usr.sbin/radiusd
usr.sbin/rarpd                          usr.sbin/rbootd
usr.sbin/rebound                        usr.sbin/rtadvd
usr.sbin/sasyncd                        usr.sbin/sensorsd
usr.sbin/smtpd                          usr.sbin/snmpd
usr.sbin/switchd                        usr.sbin/trpt

== bin =============================================================== 01/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/bin

dd

  ~ misc.c                                

  > remove lint comments (tedu@)

ksh

  ~ history.c                             

  > Avoid recursively calling c_fc().  Fixes a core dump from "r r" and
  > other edge cases found by gsoares@.  OK tb@ gsoares@ (millert@)

  ~ history.c                             

  > Use writev(2) to write history records using a single syscall.
  > OK deraadt@ (millert@)

md5

  ~ md5.c                                 

  > Pull in <sys/time.h> for gettimeofday() (guenther@)

pax

  ~ file_subs.c                           

  > Only try to set the times on a directory once, at the end, to avoid
  > duplication of warning messages
  > ok krw@ (guenther@)

  ~ Makefile                              ~ ar_io.c
  ~ extern.h                              ~ file_subs.c
  ~ options.c                             ~ pax.c

  > Instead of doing strcmp(argv0), track the invocation mode (pax/tar/cpio)
  > in a separate variable
  > ok deraadt@ (guenther@)

  ~ options.c                             

  > Treat cpio's -t option as a modifier to -i, so they're ordering independent
  > ok millert@ (guenther@)

  ~ options.c                             

  > Make list-like output go to stderr when appending to an archive on stdout.
  > Simplify the recognition of -f- and TAPE=- as meaning stdin/stdout.
  > ok millert@ (guenther@)

  ~ ar_subs.c                             ~ cache.c
  ~ cache.h                               ~ extern.h
  ~ gen_subs.c                            ~ options.c
  ~ tar.c                                 

  > Replace name_{uid,gid}() with the libc routines user_from_uid() and
  > group_from_gid().  Eliminate some superfluous strncpy() calls.
  > ok millert@ (guenther@)

  - cache.h                               ~ cache.c

  > cache.h is only used by cache.c; merge it into the .c file
  > <unistd.h> and <sys/time.h> are unneeded here
  > ok by general acclaim (guenther@)

  ~ buf_subs.c                            ~ cpio.c
  ~ file_subs.c                           ~ gen_subs.c
  ~ pax.c                                 ~ tar.c

  > Don't need <sys/time.h> or "options.h" here (guenther@)

  - ftree.h                               ~ ftree.c

  > ftree.h is only used by ftree.c; merge it into the .c file
  > <sys/time.h> is unnecessary; sort #includes (guenther@)

  - pat_rep.h                             ~ pat_rep.c

  > pat_rep.h is only used by pat_rep.c; merge it into the .c file
  > <sys/time.h>, <errno.h> and <unistd.h> are unnecessary; sort #includes
  > (guenther@)

  - sel_subs.h                            ~ sel_subs.c

  > sel_subs.h is only used by sel_subs.c; merge it into the .c file
  > <sys/time.h> and <unistd.h> are unnecessary, but <time.h> is; sort
  > #includes (guenther@)

  ~ tty_subs.c                            

  > <sys/time.h>, <errno.h>, and <stdlib.h> are unnecessary; sort #includes
  > (guenther@)

  - tables.h                              ~ tables.c

  > tables.h is only used by tables.c; merge it into the .c file
  > <sys/time.h> is unnecessary; sort the #includes (guenther@)

  ~ ar_io.c                               ~ ar_subs.c

  > reduce and sort #includes (guenther@)

  - options.h                             ~ options.c

  > options.h is only used by options.c; merge it into the .c file
  > reduce and sort #includes (guenther@)

  ~ options.c                             ~ pax.1

  > -E NONE has *never* worked; it was always -E none.  It's a dubious option
  > value that merits a warning in the manpage and using 2 billion will get
  > you practically the same effect, so delete the -E none support (guenther@)

  ~ gen_subs.c                            ~ ar_subs.c

  > Need <time.h> for time() and others.  Pulled in by coincidence previously
  > noted by tb@ (guenther@)

== distrib =========================================================== 02/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/distrib

miniroot

  ~ install.sub                           

  > tweak previous
  > OK halex, krw (rpe@)

  ~ install.sub                           

  > Make lease_value() unescape quoted strings. To be fully compliant, we
  > should unvis() it too, but I think this is enough, at least for now.
  > ok krw@ (halex@)

  ~ install.sub                           

  > Type. 'if' != 'lf'. Fixes error message and setting hostname from dhcp
  > lease
  > during install.
  > Spotted & diff from Patrik Lundin. Thanks! (krw@)

sets

  ~ lists/base/md.alpha                   ~ lists/base/md.amd64
  ~ lists/base/md.armv7                   ~ lists/base/md.hppa
  ~ lists/base/md.i386                    ~ lists/base/md.landisk
  ~ lists/base/md.loongson                ~ lists/base/md.luna88k
  ~ lists/base/md.macppc                  ~ lists/base/md.octeon
  ~ lists/base/md.sgi                     ~ lists/base/md.socppc
  ~ lists/base/md.sparc                   ~ lists/base/md.sparc64
  ~ lists/base/md.zaurus                  ~ lists/comp/mi

  > sync (deraadt@)

  ~ lists/base/mi                         

  > sync (deraadt@)

  ~ lists/man/mi                          

  > sync (deraadt@)

== etc =============================================================== 03/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/etc

examples/pkg.conf

  ~ examples/pkg.conf                     

  > sync (okan@)

== games ============================================================= 04/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/games

atc

  ~ graphics.c                            

  > Pull in <sys/time.h> for struct timespec, gettimeofday(), clock_gettime(),
  > and setitimer()
  > ok deraadt@ (guenther@)

battlestar

  ~ globals.c                             ~ words.c

  > Pull in <stdio.h> for NULL
  > ok deraadt@ (guenther@)

boggle

  ~ boggle/bog.c                          

  > Pull in <time.h> for time() and perhaps other functions
  > ok deraadt@ (guenther@)

  ~ boggle/timer.c                        

  > Pull in <sys/select.h> for fd_set
  > Pull in <time.h> for time()
  > ok deraadt@ (guenther@)

fortune

  ~ datfiles/fortunes2                    

  > the quotes in "unkempt thoughts" were authored by stanislaw lec,
  > not stanislaw lem (an easy blunder, i'd say); i've also inserted the "J."
  > into one of these credits (Stanislaw J. Lec) since all the others have
  > them;
  > credit to antoni grzymala; diff pockled from netbsd (jmc@)

hunt

  ~ hunt/list.c                           ~ hunt/playit.c
  ~ huntd/answer.c                        ~ huntd/conf.c
  ~ huntd/draw.c                          ~ huntd/execute.c
  ~ huntd/expl.c                          ~ huntd/extern.c
  ~ huntd/makemaze.c                      ~ huntd/shots.c
  ~ huntd/terminal.c                      

  > Pull in <sys/select.h> for fd_set
  > ok deraadt@ (guenther@)

phantasia

  ~ gamesupport.c                         ~ main.c

  > Pull in <time.h> for time() and perhaps other functions
  > ok deraadt@ (guenther@)

pom

  ~ pom.c                                 

  > Pull in <sys/time.h> for struct timespec, gettimeofday(), clock_gettime(),
  > and setitimer()
  > ok deraadt@ (guenther@)

robots

  ~ extern.c                              ~ move.c

  > Pull in <sys/time.h> for struct timespec, gettimeofday(), clock_gettime(),
  > and setitimer()
  > ok deraadt@ (guenther@)

tetris

  ~ scores.c                              

  > Pull in <time.h> for time() and perhaps other functions
  > ok deraadt@ (guenther@)

  ~ input.c                               

  > Pull in <sys/time.h> for struct timespec, gettimeofday(), clock_gettime(),
  > and setitimer()
  > ok deraadt@ (guenther@)

== include =========================================================== 05/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/include

rpc/svc.h

  ~ rpc/svc.h                             

  > Pull in <sys/select.h> for fd_set
  > ok deraadt@ (guenther@)

== lib =============================================================== 06/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib

libarch

  ~ arm/arm_drain_writebuf.c              

  > Pull in <stdio.h> for NULL
  > ok deraadt@ (guenther@)

libc

  ~ sys/__thrsigdivert.2                  

  > fix obvious typo in the .Dt section number (schwarze@)

  ~ stdio/fgetwln.c                       

  > bugfix: when fgetwc(3) fails, fgetwln(3) must fail as well;
  > OK jca@ martijn@ millert@ (schwarze@)

  ~ stdio/fgetwln.c                       

  > set the error indicator on malloc(3) failure;
  > from Andrey Chernov <ache at freebsd dot org>;
  > OK millert@ (schwarze@)

  ~ stdio/fgetln.c                        

  > After read errors, fgetln(3) sometimes succeeded (returning non-NULL)
  > and failed (setting errno and ferror(3)) both at the same time.
  > That's a bad idea in general, and here in particular since
  > returning partial lines was neither reliable (sometimes, you
  > got NULL anyway) nor predictable (almost always, the line would
  > be truncated long before the actual read error).
  > Instead, on read failure, fail properly and always return NULL.
  > Issue found in a discussion with Andrey Chernov <ache at freebsd dot org>
  > who finally agreed to move FreeBSD into the same direction.
  > The fix is joint work with and OK by millert@. (schwarze@)

  ~ crypt/bcrypt.c                        

  > Pull in <time.h> for clock_gettime()
  > ok deraadt@ (guenther@)

  ~ gen/uname.c                           

  > Pull in <stdio.h> for NULL
  > ok deraadt@ (guenther@)

  ~ stdio/fgetwln.c                       

  > improve revision 1.2: in unusual cases, fgetwc(3) can succeed
  > even though ferror(3) is already set;
  > also from Andrey Chernov <ache at freebsd dot org>;
  > OK millert@ (schwarze@)

  ~ stdio/vfprintf.c                      

  > When a precision is specified for a string format use strnlen()
  > to determine the length instead of doing it manually.  OK schwarze@
  > (millert@)

  ~ stdio/fgets.3                         

  > Stop recommending the non-standard and slightly dangerous fgetln(3).
  > Recommend POSIX getline(3) instead. (schwarze@)

  ~ stdlib/realpath.c                     

  > Don't call lstat() before readlink() just to see if it's a symlink,
  > as readlink() will tell you that more cheaply.
  > ok millert@ (guenther@)

libfuse

  ~ fuse_private.h                        

  > Pull in <sys/time.h> for struct timespec
  > ok deraadt@ (guenther@)

libssl

  ~ src/ssl/t1_lib.c                      

  > Be more strict when parsing TLS extensions.
  > Based on a diff from Kinichiro Inoguchi.
  > ok beck@ (jsing@)

libtls

  ~ tls.c                                 ~ tls_internal.h
  ~ tls_server.c                          

  > Create contexts for server side SNI - these include the additional SSL_CTX
  > that is required for certificate switching with libssl and the certificate
  > itself so that we can match against the subject and SANs. Hook up the
  > servername callback and switch to the appropriate SSL_CTX if we find a
  > matching certificate.
  > ok beck@ (jsing@)

  ~ tls.h                                 ~ tls_config.c
  ~ tls_conninfo.c                        ~ tls_init.3
  ~ tls_internal.h                        

  > Provide an API that enables server side SNI support - add the ability to
  > provide additional keypairs (via tls_config_add_keypair_{file,mem}()) and
  > allow the server to determine what servername the client requested (via
  > tls_conn_servername()).
  > ok beck@ (jsing@)

  ~ shlib_version                         

  > Bump libtls minor due to the addition of symbols. (jsing@)

  ~ tls.h                                 

  > Bump TLS_API due to the addition of server side SNI functions. (jsing@)

  ~ tls_peer.c                            

  > Stick with the usual 'if NULL return NULL' idiom.
  > ok beck@ (jsing@)

  ~ tls.c                                 ~ tls_conninfo.c
  ~ tls_internal.h                        

  > Various clean up and reorganisation of the connection info handling code.
  > In particular, rename tls_free_conninfo() to tls_conninfo_free() and make
  > it a real free function. Rename tls_get_conninfo() to
  > tls_conninfo_populate() and have it allocate the struct tls_conninfo (after
  > freeing any existing one).
  > ok beck@ (jsing@)

libutil

  ~ getmaxpartitions.c                    ~ getrawpartition.c

  > Pull in <stdio.h> for NULL
  > ok deraadt@ (guenther@)

== libexec =========================================================== 07/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/libexec

ftpd

  ~ ftpcmd.y                              ~ ftpd.c

  > trim down some NBBY references. 8 bits ought to be enough for anyone.
  > (tedu@)

ld.so

  ~ loader.c                              ~ resolve.c
  ~ resolve.h                             

  > Implement support for DT_INIT_ARRAY, DT_FINI_ARRAY and DT_PREINIT_ARRAY.
  > Don't skip DT_INIT and DT_FINI for the main executable.  This matches what
  > Linux and Solaris do.
  > ok guenther@ (kettenis@)

  ~ util.h                                

  > Pull in <stddef.h> for NULL
  > (not stdio, because ld.so has a reduced library behind it) (guenther@)

  ~ hppa/rtld_machine.c                   

  > Delete debugging from when lazy binding was being implemented
  > ok deraadt@ (guenther@)

  ~ dl_realpath.c                         

  > Don't call lstat() before readlink() just to see if it's a symlink,
  > as readlink() will tell you that more cheaply.
  > ok millert@ (guenther@)

  ~ loader.c                              

  > fix a comment (guenther@)

  ~ alpha/ldasm.S                         ~ alpha/syscall.h
  ~ amd64/ldasm.S                         ~ amd64/syscall.h
  ~ arm/ldasm.S                           ~ arm/syscall.h
  ~ hppa/ldasm.S                          ~ hppa/syscall.h
  ~ i386/ldasm.S                          ~ i386/syscall.h
  ~ m88k/ldasm.S                          ~ m88k/syscall.h
  ~ mips64/ldasm.S                        ~ mips64/syscall.h
  ~ powerpc/ldasm.S                       ~ powerpc/syscall.h
  ~ sh/ldasm.S                            ~ sh/syscall.h
  ~ sparc/ldasm.S                         ~ sparc/syscall.h
  ~ sparc64/ldasm.S                       ~ sparc64/syscall.h

  > ld.so doesn't need gettimeofday or lstat stubs any more
  > ok deraadt@ (guenther@)

makewhatis

  - Makefile                              - makewhatis
  - makewhatis.8                          - OpenBSD/Makewhatis.pm
  - OpenBSD/Makewhatis/Check.pm           - OpenBSD/Makewhatis/Find.pm
  - OpenBSD/Makewhatis/Formated.pm        - OpenBSD/Makewhatis/Subject.pm
  - OpenBSD/Makewhatis/Unformated.pm      - OpenBSD/Makewhatis/Whatis.pm

  > This code served us well for many years,
  > but we are unlikely to reactivate it; espie@ agrees.
  > The new code is in /usr/src/usr.bin/mandoc/mandocdb.c. (schwarze@)

rpc.rstatd

  ~ rstat_proc.c                          

  > Pull in <sys/time.h> for struct timespec
  > ok deraadt@ (guenther@)

talkd

  ~ table.c                               

  > Pull in <sys/time.h> for gettimeofday()
  > ok deraadt@ (guenther@)

== regress =========================================================== 08/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/regress

lib

  ~ libc/ifnameindex/ifnitest.c           

  > Pull in <stdio.h> for NULL
  > ok deraadt@ (guenther@)

  ~ libssl/unit/Makefile                  

  > Enable ALPN regress now that it passes. (jsing@)

libexec

  ~ ld.so/link-order/prog/prog.c          

  > ALL HAIL ELF!
  > Since <sys/param.h> isn't needed for __ELF__, pull in <stdio.h> for NULL
  > ok deraadt@ (guenther@)

sbin

  ~ route/rttest12.ok                     

  > Sync refcount with recent change. (mpi@)

  ~ route/rttest1.ok                      ~ route/rttest10.ok
  ~ route/rttest11.ok                     ~ route/rttest12.ok
  ~ route/rttest14.ok                     ~ route/rttest15.ok
  ~ route/rttest16.ok                     ~ route/rttest17.ok
  ~ route/rttest18.ok                     ~ route/rttest19.ok
  ~ route/rttest2.ok                      ~ route/rttest21.ok
  ~ route/rttest3.ok                      ~ route/rttest4.ok
  ~ route/rttest5.ok                      ~ route/rttest6.ok
  ~ route/rttest7.ok                      ~ route/rttest8.ok
  ~ route/rttest9.ok                      

  > Sync counters now that ifa_ifwithroute() no longer uses ifa_ifwithnet().
  > (mpi@)

  ~ route/Makefile                        

  > Use a reachable next hop for test 13, which make it fail as it should.
  > (mpi@)

  ~ newfs/Makefile                        

  > Make regress Makefile consistent with other tests, use bsd.regress.mk.
  > OK otto@ (bluhm@)

sys

  - net/pf_print_test.c                   ~ net/Makefile
  + net/pf_print/Makefile                 + net/pf_print/pf_print_test.c

  > Move the pf address printing test into its own subdirectory.  This
  > makes it consistent with the regress tree structure. (bluhm@)

  ~ uvm/mmap_fixed/mmap_fixed.c           

  > do not request RWX mappings, RW will do (deraadt@)

  ~ kern/sosplice/error/args-idle-EINVAL.pl
  ~ kern/sosplice/error/args-max-EINVAL.pl

  > Fix sosplice tests on 32 bit systems by putting the correct number
  > of bytes into the time_t Perl pack template.  Also fix error messages.
  > (bluhm@)

  ~ dev/audio/autest.c                    

  > Pull in <sys/time.h> for gettimeofday()
  > Sort #includes
  > ok deraadt@ (guenther@)

  ~ kern/ptmget/ptmget.c                  

  > Pull in <sys/time.h> for struct timeval
  > <sys/*.h> includes go before <*.h> includes
  > ok deraadt@ (guenther@)

  ~ uvm/misc/misc.c                       ~ uvm/mmap0/mmap0.c
  ~ uvm/mmap_fixed/mmap_fixed.c           

  > Pull in <stdio.h> for NULL
  > ok deraadt@ (guenther@)

usr.bin

  ~ ssh/test-exec.sh                      

  > remove Protocol directive from client/server configs that causes
  > spammy deprecation warnings
  > hardcode SSH_PROTOCOLS=2, since that's all we support on the server
  > now (the client still may support both, so it could get confused) (djm@)

  ~ ssh/unittests/match/tests.c           

  > add tests for addr_match_list() (djm@)

  ~ doas/t-fail-quotes.err                ~ doas/t-fail-quotes.expected.err
  ~ doas/t-okay.conf                      ~ doas/t-run-keepenv-path.conf

  > some updates for recent changes.
  > not all tests passing yet since i don't really understand what's going on.
  > (tedu@)

  + column/Makefile                       + column/column.sh

  > I don't dare to provide an OK for a rewrite of this program
  > without having at least some systematic testing in place. (schwarze@)

  ~ column/column.sh                      

  > typo (schwarze@)

usr.sbin

  ~ syslogd/Makefile                      ~ syslogd/args-client-tls4.pl
  ~ syslogd/args-client-tls6.pl           ~ syslogd/args-tls-cert-empty.pl
  ~ syslogd/args-tls-cert-noexist.pl      ~ syslogd/args-tls-key-empty.pl
  ~ syslogd/args-tls-key-noexist.pl       

  > Some syslogd tests failed to report errors.  Make these tests more
  > strict and adapt the check patterns. (bluhm@)

  ~ relayd/Proc.pm                        ~ relayd/Server.pm
  ~ relayd/args-http-slow-consumer.pl     ~ relayd/relayd.pl
  ~ relayd/remote.pl                      

  > Make relayd test slow-consumer more reliable.  Set SO_SNDTIMEO
  > sockopt correctly with Perl pack on i386.  Make it possible to grep
  > in each others client and server logfile.  Client does not simply
  > sleep but waits for short write at server. (bluhm@)

  ~ relayd/args-http-slow-consumer.pl     

  > Set relayd socket buffer size to reasonable value to make test pass
  > in different environments. (bluhm@)

== sbin ============================================================== 09/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin

dhclient

  ~ bpf.c                                 ~ clparse.c
  ~ dhclient.c                            ~ dhcpd.h
  ~ dispatch.c                            ~ kroute.c
  ~ options.c                             ~ packet.c
  ~ privsep.c                             ~ privsep.h

  > Make the 'ifi' global local to dhclient.c and pass it as an argument to
  > functions needing it.
  > This is the first step to support multiple interfaces in one dhclient(8)
  > instance.
  > ok krw@ (mpi@)

init

  ~ init.c                                

  > Pull in <sys/time.h> for struct timespec
  > ok deraadt@ (guenther@)

isakmpd

  ~ transport.h                           

  > Pull in <sys/select.h> for fd_set
  > ok deraadt@ (guenther@)

mount

  ~ mount.8                               

  > for completeness, document (no)rw and ro options. (tedu@)

  ~ mount.8                               

  > further tweak previous: use the same text for norw as ro; ok tedu (jmc@)

pfctl

  ~ parse.y                               ~ pfctl_parser.c

  > Add <time.h> for time(); sort <*.h> includes
  > ok deraadt@ (guenther@)

reboot

  ~ reboot.c                              

  > Pull in <sys/time.h> for struct timespec
  > <sys/fcntl.h> shouldn't be used by userspace; this already uses <fcntl.h>
  > ok deraadt@ (guenther@)

route

  ~ route.c                               

  > Add <time.h> for time() and ctime(); sort <net*/*.h>
  > ok deraadt@ (guenther@)

sysctl

  ~ sysctl.c                              

  > Pull in <sys/time.h> for struct timespec
  > ok deraadt@ (guenther@)

== share ============================================================= 10/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/share

man

  ~ man4/umb.4                            

  > fix typos (tedu@)

  ~ man4/Makefile                         + man4/acpicbkbd.4

  > add a man page for acpicbkbd (jcs@)

  ~ man4/acpi.4                           

  > include acpicbkbd (jcs@)

  ~ man9/style.9                          

  > Since the removal of rwhod and friends a couple of years ago, there
  > isn't any file in the base system including <protocols/rwhod.h>. So,
  > stop suggesting the inclusion of this header in this man page.
  > ok tedu@ deraadt@ mpi@ (renato@)

  ~ man4/pfsync.4                         

  > Fix pfsync(4)'s carp examples: as of ip_carp.c r1.245, carpdev must be
  > specified.  From Bryan Stenson. (sthen@)

  ~ man5/port-modules.5                   

  > Amend after clean-up of fortran.port.mk (dcoppa@)

  ~ man4/gre.4                            

  > Remove obsolete gre(4) ioctls GRESADDRS, GRESADDRD, GREGADDRS,
  > GREGADDRD, GRESPROTO, and GREGPROTO.  They have been replaced by
  > generic ioctls some time ago (eg. the "ifconfig gre0 tunnel") and
  > there is no need to keep the old ones around.  They are neither used
  > in base nor in ports.
  > OK sthen@ (reyk@)

== sys =============================================================== 11/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys

arch/amd64/conf

  ~ GENERIC                               

  > re-enable acpicbkbd by default now that acpiec won't try burst mode
  > on the chrome ec (jcs@)

arch/arm/arm

  ~ bus_dma.c                             ~ cpufunc.c

  > Before pmap7.c rev 1.35 and pmap.h rev 1.44 DMA'able memory with the
  > BUS_DMA_COHERENT flag was mapped as device memory which does not use the
  > store buffer.  It is now mapped as normal inner and outer non-cacheable
  > which does.
  > While we drain the cpu store buffer for this case, on cortex a9 systems we
  > also need to explicitly drain the PL310 L2's store buffer.  With PL310
  > revisions r3p2 and later this is done automatically after being present in
  > the store buffer for 256 cycles.  On i.MX6 PL310 is rev r3p1 which does
  > not have this behaviour.  This issue is i.MX6 errata ERR055199 and PL310
  > errata 769419.
  > This change restores io performance with a usb flash drive attached to
  > my cubox.  Raw reads go from 3 MB/s to 19 MB/s for example.
  > Based on code written by patrick@ some time ago.
  > ok kettenis@ patrick@ (jsg@)

  ~ fault.c                               ~ pmap7.c

  > Replace pmap_fault_fixup() with an access flag fault handler on armv7.
  > ok tom@ (kettenis@)

  ~ cpufunc.c                             

  > Enable the UWXN bit in the SCTRL register when available.  This should
  > prevent the kernel from accidentally executing userland pages that are
  > writable.
  > ok jsg@, patrick@ (kettenis@)

  ~ cpuswitch7.S                          ~ pmap7.c

  > Remove the code that switches around MMU domains on armv7.  MMU domains are
  > basically a relic from the past.  Using them doesn't make a lot of sense
  > the way our pmaps work.  Support for MMU domains isn't present in
  > long-descriptor translation table format, so it is clearly on its way out.
  > Based on a diff from Artituri Alm.
  > ok patrick@ (kettenis@)

  ~ pmap7.c                               

  > Remove cpu_cpwait() calls; they are no-ops on armv7.
  > ok tom@ (kettenis@)

  ~ bus_dma.c                             

  > Since the caller already checks and handles COHERENT we don't need
  > to explicitly check for the flag.
  > ok kettenis@ (patrick@)

  ~ bus_dma.c                             

  > Implement bus dma support for loading raw mappings so that we can use
  > xhci(4) on ARM.  The only way the load raw operation can get to know
  > about the coherent flag is via the segments.  Store it there when the
  > memory is initially mapped.  Also store the virtual address which we
  > need to know when we have to flush the caches on a non-coherent mapping.
  > ok kettenis@ (patrick@)

  ~ pmap7.c                               

  > Add support for the PXN bit in level 1 translation table descriptors and
  > enable it on CPUs that support it.  When enabled, this prevents the kernel
  > from executing userland code.
  > ok jsg@, tom@ (kettenis@)

arch/arm/cortex

  ~ ampintc.c                             

  > Remove the remains of a workaround to get GIC ranges for exynos.
  > Exynos differed from everything else by not having GIC at fixed offsets
  > from PERIPHBASE.  Now that ampintc/GIC attaches using FDT we get the ranges
  > out of the FDT instead of using offsets from PERIPHBASE. (jsg@)

  ~ arml2cc.c                             

  > Before pmap7.c rev 1.35 and pmap.h rev 1.44 DMA'able memory with the
  > BUS_DMA_COHERENT flag was mapped as device memory which does not use the
  > store buffer.  It is now mapped as normal inner and outer non-cacheable
  > which does.
  > While we drain the cpu store buffer for this case, on cortex a9 systems we
  > also need to explicitly drain the PL310 L2's store buffer.  With PL310
  > revisions r3p2 and later this is done automatically after being present in
  > the store buffer for 256 cycles.  On i.MX6 PL310 is rev r3p1 which does
  > not have this behaviour.  This issue is i.MX6 errata ERR055199 and PL310
  > errata 769419.
  > This change restores io performance with a usb flash drive attached to
  > my cubox.  Raw reads go from 3 MB/s to 19 MB/s for example.
  > Based on code written by patrick@ some time ago.
  > ok kettenis@ patrick@ (jsg@)

arch/arm/include

  ~ cpufunc.h                             

  > Before pmap7.c rev 1.35 and pmap.h rev 1.44 DMA'able memory with the
  > BUS_DMA_COHERENT flag was mapped as device memory which does not use the
  > store buffer.  It is now mapped as normal inner and outer non-cacheable
  > which does.
  > While we drain the cpu store buffer for this case, on cortex a9 systems we
  > also need to explicitly drain the PL310 L2's store buffer.  With PL310
  > revisions r3p2 and later this is done automatically after being present in
  > the store buffer for 256 cycles.  On i.MX6 PL310 is rev r3p1 which does
  > not have this behaviour.  This issue is i.MX6 errata ERR055199 and PL310
  > errata 769419.
  > This change restores io performance with a usb flash drive attached to
  > my cubox.  Raw reads go from 3 MB/s to 19 MB/s for example.
  > Based on code written by patrick@ some time ago.
  > ok kettenis@ patrick@ (jsg@)

  ~ armreg.h                              

  > Replace pmap_fault_fixup() with an access flag fault handler on armv7.
  > ok tom@ (kettenis@)

  ~ armreg.h                              

  > Enable the UWXN bit in the SCTRL register when available.  This should
  > prevent the kernel from accidentally executing userland pages that are
  > writable.
  > ok jsg@, patrick@ (kettenis@)

  ~ pmap.h                                

  > Remove the code that switches around MMU domains on armv7.  MMU domains are
  > basically a relic from the past.  Using them doesn't make a lot of sense
  > the way our pmaps work.  Support for MMU domains isn't present in
  > long-descriptor translation table format, so it is clearly on its way out.
  > Based on a diff from Artituri Alm.
  > ok patrick@ (kettenis@)

  ~ bus.h                                 

  > Implement bus dma support for loading raw mappings so that we can use
  > xhci(4) on ARM.  The only way the load raw operation can get to know
  > about the coherent flag is via the segments.  Store it there when the
  > memory is initially mapped.  Also store the virtual address which we
  > need to know when we have to flush the caches on a non-coherent mapping.
  > ok kettenis@ (patrick@)

  ~ pte.h                                 

  > Add support for the PXN bit in level 1 translation table descriptors and
  > enable it on CPUs that support it.  When enabled, this prevents the kernel
  > from executing userland code.
  > ok jsg@, tom@ (kettenis@)

arch/armv7/armv7

  ~ armv7_machdep.c                       ~ armv7_start.S

  > Remove the code that switches around MMU domains on armv7.  MMU domains are
  > basically a relic from the past.  Using them doesn't make a lot of sense
  > the way our pmaps work.  Support for MMU domains isn't present in
  > long-descriptor translation table format, so it is clearly on its way out.
  > Based on a diff from Artituri Alm.
  > ok patrick@ (kettenis@)

arch/armv7/conf

  ~ GENERIC                               ~ RAMDISK

  > Dynamically attach exuart using the FDT. (jsg@)

  ~ files.armv7                           

  > Add a minimal clock "framework".  Build it on armv7.
  > ok patrick@ (kettenis@)

arch/armv7/dev

  ~ com_fdt.c                             

  > Use the new clock API to get the clock frequency from the device tree and
  > the
  > actual hardware that controls the clock.  This gets rid of all the
  > hardcoded
  > clock frequencies for specific hardware.
  > Tested by jsg@ on the BBB, mglocker@ on the C.H.I.P. and myself on the
  > Banana Pi and Raspberry Pi 3.
  > ok jsg@ (kettenis@)

arch/armv7/exynos

  ~ exuart.c                              ~ exynos.c
  ~ files.exynos                          

  > Dynamically attach exuart using the FDT. (jsg@)

  ~ exynos4.c                             ~ exynos5.c

  > Remove the remains of a workaround to get GIC ranges for exynos.
  > Exynos differed from everything else by not having GIC at fixed offsets
  > from PERIPHBASE.  Now that ampintc/GIC attaches using FDT we get the ranges
  > out of the FDT instead of using offsets from PERIPHBASE. (jsg@)

arch/armv7/imx

  ~ imxesdhc.c                            

  > Initialize vdd to 0 in imxesdhc_bus_power() to avoiud using it
  > uninitialized. (kettenis@)

arch/armv7/sunxi

  ~ sxiccmu.c                             

  > Implement some fundamental clocks using the new clock framework.
  > ok patrick@ (kettenis@)

  ~ sxiccmu.c                             

  > Add support for all the ahb, apb0 and apb1 clock gating devices on sun4i,
  > sun5i and sun7i. (kettenis@)

  ~ sximmc.c                              

  > Use generic clock API to enable the module clock. (kettenis@)

  ~ sxiccmu.c                             

  > Add code to enable the pll6 clock. (kettenis@)

  ~ sxiahci.c                             

  > Use the new clock API. (kettenis@)

  ~ sxiccmu.c                             

  > Add support for the usb clock.  Also implements reset signal support.
  > (kettenis@)

  ~ sxiehci.c                             

  > Move all the platform-specific code into a new function
  > sxiehci_attach_phy()
  > making use of pinctrl, clock and reset APIs where appropriate. (kettenis@)

  ~ sxiccmu.c                             

  > Add support for the gmac clock. (kettenis@)

  ~ if_dwge_fdt.c                         

  > Use new clock API to manipulate clocks. (kettenis@)

  ~ sxie.c                                

  > Use new clock API. (kettenis@)

  ~ sxiccmu.c                             ~ sxiccmuvar.h

  > Remove unused code and definitions. (kettenis@)

  ~ sxipio.c                              

  > The device trees for sun8i and sun9i no longer include an address in the
  > name of the /soc node.  Leave it off, as the device path will still match
  > on nodes that include it. (kettenis@)

  ~ sxiccmu.c                             

  > Add support for the usb clock on sun5i-a13 as well. (kettenis@)

  ~ sxiehci.c                             

  > Deassert all reset signals for the controller.  Add support for more recent
  > SoCs that have a separate clock for each PHY. (kettenis@)

  ~ sxiccmu.c                             

  > Remove unused prototype for sxiccmu_enablemodule().
  > ok kettenis (mglocker@)

  ~ sxipio.c                              ~ sxipio_pins.h

  > Add support for the Allwinner H3 (sun8i-h3). (kettenis@)

  ~ sunxi.c                               ~ sxiccmu.c
  + sxiccmu_clocks.h                      

  > Add support for sun8i-h3, the Allwinner H3.  For this SoC, the device tree
  > contains a single clock control unit node that handles most clocks.  The
  > driver handles this through tables that describe the gating, reset signals
  > and the clock hierarchy.  This description is (deliberately) incomplete. 
  > We
  > will add clocks on an as-needed basis.  You will need a recent device tree,
  > that includes a "allwinner,sun8i-h3-ccu" compatible node for things to
  > work.
  > ok patrick@ (kettenis@)

  ~ sximmc.c                              

  > Handle the quirky that the FIFO register sits at a different location on
  > the A31 and later SoCs. (kettenis@)

  ~ sxidog.c                              

  > Add support for the watchdog timer found on A31 and later SoCs, which has a
  > slightly different register layout.  Also fix the watchdog such that it
  > actually disables itself when you set the period to 0 and actually gives
  > you
  > a period that is close to what you asked for. (kettenis@)

  ~ sxiehci.c                             

  > Match on "allwinner,sun8i-h3-ehci". (kettenis@)

  - sxiccmuvar.h                          ~ sxiccmu.c
  ~ sxiccmu_clocks.h                      ~ sximmc.c

  > Add support for the SD/MMC clock to the geberic clock code and use it in
  > sximmc(4). (kettenis@)

  ~ sximmc.c                              

  > Deassert reset signals if there is a "resets" property.  Implement mmc
  > power
  > sequencing like we have for imxesdhc(4).  Unfortunately that doesn't seem
  > to
  > be enough to be able to see the onboard sdio wireless on my Banana Pi 2+.
  > (kettenis@)

  ~ sximmc.c                              

  > Reset the host controller after a failed command request to make sure it
  > operates again.
  > ok kettenis (mglocker@)

  ~ sxipio.c                              

  > Fix the macros that determine the register offsets based on port and pin.
  > These were didn't work as I expected, and returned the wrong offsets.  As a
  > result, pinctrl and gpio code was twiddling the wrong bits. (kettenis@)

  ~ sxiccmu.c                             ~ sxiccmu_clocks.h

  > Add a few missing sunxi-h3 clocks and resets. (kettenis@)

  ~ sxipio.c                              

  > Get rid of sxipio_ioh and sxipio_iot; they're not used (anymore).
  > (kettenis@)

arch/armv7/vexpress

  ~ pl011.c                               

  > When detecting the console on attach test fa_node and stdout_node not
  > fa_reg
  > and pl011consaddr as the pl011consaddr addresss may have been translated.
  > Set cn_dev at this point as well as in com(4) and imxuart(4) to handle
  > cases
  > where stdout is not serial0. (jsg@)

arch/loongson/loongson

  ~ machdep.c                             

  > The TLB refill and XTLB refill exceptions use distinct exception vectors
  > on Loongson 3A. Consequently, the kernel has to set up both vectors to
  > prevent panics with virtual address references.
  > On Loongson 2F, it is enough to set up the TLB refill vector because
  > the XTLB refill exception uses the same vector address.
  > ok miod@ (visa@)

arch/sparc64/dev

  ~ pyro.c                                ~ ebus.c
  ~ ebus_mainbus.c                        ~ psycho.c
  ~ schizo.c                              

  > Convert %q to %ll in format strings
  > ok natano@ krw@ (guenther@)

arch/sparc64/sparc64

  ~ db_interface.c                        

  > Convert %q to %ll in format strings
  > ok natano@ krw@ (guenther@)

dev/acpi

  ~ acpiec.c                              

  > don't enter burst mode for single-byte reads and writes.
  > avoids problems on hardware with broken or unimplemented burst mode
  > and isn't really necessary for such small transactions anyway.
  > matches what linux and freebsd have done for a long time.
  > tested in snaps
  > ok deraadt kettenis (jcs@)

dev/cardbus

  ~ cardslot.c                            

  > pool_setipl for cardbus and drm pools.
  > ok kettenis@ (dlg@)

dev/ic

  ~ ncr53c9x.c                            

  > Convert %q to %ll in format strings
  > ok natano@ krw@ (guenther@)

dev/ofw

  ~ ofw_pinctrl.h                         ~ ofw_regulator.h

  > Fix a pasto in a comment. (kettenis@)

  + ofw_clock.c                           + ofw_clock.h

  > Add a minimal clock "framework".  Build it on armv7.
  > ok patrick@ (kettenis@)

  ~ ofw_clock.c                           ~ ofw_clock.h

  > Implement interfaces to disable clocks and add interfaces that enable or
  > disable all clocks for a device.  The latter interfaces are useful for
  > devices that have multiple clocks that don't have specific names/purposes
  > such as sxiahci(4). (kettenis@)

  ~ ofw_clock.c                           ~ ofw_clock.h

  > Add a reset signal API alongside the clock API. (kettenis@)

  ~ ofw_clock.c                           ~ ofw_clock.h

  > Add an API to set the clock frequency. (kettenis@)

  ~ ofw_clock.c                           

  > Fix two small bugs in the new reset API code. (kettenis@)

  ~ fdt.c                                 

  > Actually make fdt_find_node() return NULL if the node couldn't be found.
  > ok tom@ (kettenis@)

  ~ ofw_clock.c                           ~ ofw_clock.h

  > Add functions to assert/deassert all reset signals for a device.
  > (kettenis@)

  ~ ofw_clock.c                           

  > Return -1 if we try to set the frequency of a clock but couldn't find it.
  > (kettenis@)

dev/pci

  ~ if_em_hw.c                            

  > remove duplicated test for em_82574 (jsg@)

  ~ drm/drm_drv.c                         

  > pool_setipl for cardbus and drm pools.
  > ok kettenis@ (dlg@)

  ~ if_oce.c                              

  > pool_setipl for oce(4)
  > ok mikeb@ (dlg@)

  ~ vmwpvs.c                              

  > correct INTR_MSG_MASK to include INTR_MSG_1
  > ok dlg@ (jsg@)

isofs/udf

  ~ udf_vfsops.c                          

  > pool_setipl for udf
  > ok phessler@ krw@ (dlg@)

kern

  ~ uipc_socket.c                         

  > Refactor the uio to mbuf code out of sosend and start to make use of
  > MCLGETI and large mbuf clusters. This should speed up local connections
  > a fair bit. OK dlg@ and bluhm@ (after reverting the M_WAIT change on the
  > cluster allocation) (claudio@)

  ~ kern_descrip.c                        ~ kern_sysctl.c

  > rename nfiles to numfiles to avoid shadowing and stretch out the name.
  > ok deraadt (tedu@)

  ~ kern_descrip.c                        ~ kern_event.c
  ~ kern_proc.c                           ~ kern_resource.c
  ~ kern_sig.c                            

  > pool_setipl
  > ok kettenis@ (dlg@)

  ~ vfs_cache.c                           ~ vfs_init.c
  ~ vfs_lockf.c                           ~ vfs_subr.c

  > pool_setipl
  > ok kettenis@ (dlg@)

  ~ uipc_socket.c                         

  > Completely revert the M_WAIT change on the cluster allocation and
  > bring back the behaviour of rev 1.72.  Although allocating small
  > mbufs when allocating an mbuf cluster fails seems suboptimal, this
  > should not be changed as a side effect when introducing m_getuio().
  > OK claudio@ (bluhm@)

  ~ uipc_socket.c                         

  > Spliced TCP sockets become faster when the output part is running
  > as its own task thread.  This is inspired by userland copy where a
  > process also has to go through the scheduler.  This gives the socket
  > buffer a chance to be filled up and tcp_output() is called less
  > often and with bigger chunks.
  > When two kernel tasks share all the workload, the current scheduler
  > implementation will hang userland processes on single cpu machines.
  > As a workaround put a yield() into the splicing thread after each
  > task execution.  This reduces the number of calls of tcp_output()
  > even more.
  > OK tedu@ mpi@ (bluhm@)

  ~ clock_subr.c                          

  > Pull in <sys/time.h> for clock_ymdhms bits
  > ok deraadt@ (guenther@)

  ~ uipc_usrreq.c                         

  > The *_HEAD_INITIALIZER() macros are documented as taking the struct,
  > not a pointer to it (guenther@)

lib/libsa

  ~ stand.h                               

  > Declare lseek() instead of assuming it'll be provided elsewhere
  > ok deraadt@ (guenther@)

miscfs/fuse

  ~ fuse_lookup.c                         ~ fuse_vnops.c
  ~ fusefs.h                              

  > There are three callers of update_vattr(). Two of them don't use the
  > updated struct vattr afterwards, so the call can be removed. Remove both
  > calls and the function itself, inlining the last remaining call.
  > ok millert (natano@)

net

  ~ bpf.c                                 ~ bpfdesc.h

  > Call csignal() and selwakeup() from a KERNEL_LOCK'd task.
  > This will allow us make bpf_tap() KERNEL_LOCK() free.
  > Discussed with dlg@ and input from guenther@ (mpi@)

  ~ route.c                               ~ route.h
  ~ rtsock.c                              

  > Make the ``rt_gwroute'' pointer of RTF_GATEWAY entries immutable.
  > This means that no protection is needed to guarantee that the next hop
  > route wont be modified by CPU1 while CPU0 is dereferencing it in a L2
  > resolution functions.
  > While here also fix an ``ifa'' leak resulting in RTF_GATEWAY being always
  > invalid.
  > dlg@ likes it, inputs and ok bluhm@ (mpi@)

  ~ route.c                               

  > Use rtalloc(9) instead of ifa_ifwithnet() to find an interface
  > when adding a route to gateway to ensure a most specific match.
  > This makes "# route add"  coherent to "# route get" even with
  > p2p interfaces.  Fix a problem reported by Mart Tõnso.
  > This also fix rttest20 after the introduction of RTF_CACHED.
  > ok vgross@ (mpi@)

  ~ if_pppx.c                             

  > pool_setipl (dlg@)

  ~ if_pfsync.c                           

  > pool_setipl (dlg@)

  ~ rtsock.c                              

  > Update the L2 content of a RTF_CACHED entry instead of going though
  > a create/delete/insert cycle as such entry cannot be deleted when
  > referenced.
  > Regression reported by and ok bluhm@ (mpi@)

  ~ pf_norm.c                             

  > Kill ip6_forward_rt reducing differences between v4 and v6.
  > A single forwarding cache is not the answer.  The answer is 42... err PF!
  > ok bluhm@ (mpi@)

  ~ if_gre.c                              

  > Remove obsolete gre(4) ioctls GRESADDRS, GRESADDRD, GREGADDRS,
  > GREGADDRD, GRESPROTO, and GREGPROTO.  They have been replaced by
  > generic ioctls some time ago (eg. the "ifconfig gre0 tunnel") and
  > there is no need to keep the old ones around.  They are neither used
  > in base nor in ports.
  > OK sthen@ (reyk@)

netinet

  ~ ip_icmp.c                             

  > Do not dereference ``rt->rt_ifa'' after calling rtfree(9).
  > This could result in a use after free if the route entry was holding
  > the last reference of the address descriptor.
  > ok jca@, bluhm@, claudio@ (mpi@)

  ~ if_ether.c                            

  > Make the ``rt_gwroute'' pointer of RTF_GATEWAY entries immutable.
  > This means that no protection is needed to guarantee that the next hop
  > route wont be modified by CPU1 while CPU0 is dereferencing it in a L2
  > resolution functions.
  > While here also fix an ``ifa'' leak resulting in RTF_GATEWAY being always
  > invalid.
  > dlg@ likes it, inputs and ok bluhm@ (mpi@)

netinet6

  ~ frag6.c                               ~ in6.c
  ~ ip6_output.c                          ~ nd6.c
  ~ nd6_nbr.c                             ~ nd6_rtr.c
  ~ raw_ip6.c                             

  > Sizes for free(9) from David Hill. (mpi@)

  ~ nd6.c                                 

  > Make the ``rt_gwroute'' pointer of RTF_GATEWAY entries immutable.
  > This means that no protection is needed to guarantee that the next hop
  > route wont be modified by CPU1 while CPU0 is dereferencing it in a L2
  > resolution functions.
  > While here also fix an ``ifa'' leak resulting in RTF_GATEWAY being always
  > invalid.
  > dlg@ likes it, inputs and ok bluhm@ (mpi@)

  ~ ip6_mroute.c                          

  > Do not use a single global struct route_in6 to cache route lookups.
  > This is a little step towards deprecating 'struct route{,_in6}'.
  > ok jca@, claudio@ (mpi@)

  ~ nd6_nbr.c                             

  > Use rtalloc(9) directly instead of in6_selectsr() in NS/NA output
  > routines.
  > This is another little step towards deprecating 'struct route{,_in6}'.
  > ok bluhm@ (mpi@)

  ~ icmp6.c                               

  > Use rtalloc(9) directly instead of in6_selectsr() in icmp6_reflect().
  > This is another little step towards deprecating 'struct route{,_in6}'.
  > ok bluhm@ (mpi@)

  ~ frag6.c                               ~ ip6_forward.c
  ~ ip6_input.c                           ~ ip6_var.h

  > Kill ip6_forward_rt reducing differences between v4 and v6.
  > A single forwarding cache is not the answer.  The answer is 42... err PF!
  > ok bluhm@ (mpi@)

  ~ ip6_output.c                          

  > Simplify ip6_getpmtu() to use a 'struct rtentry *' instead of two
  > 'struct route_in6 *'.
  > This is another little step towards deprecating 'struct route{,_in6}'
  > Inputs from and ok bluhm@ (mpi@)

  ~ nd6_rtr.c                             

  > Remove a check to expire received prefix.
  > This check does not make sense since November 2000 when IPv6 autoconf
  > address deletion has been made independent from prefix lifetimes.
  > Fix a case when a route was added to the table but the corresponding
  > address was not, leaving v6 unusable.
  > Found the hardway by and ok sthen@ (mpi@)

netmpls

  ~ mpls_input.c                          

  > Do not dereference ``rt->rt_ifa'' after calling rtfree(9).
  > This could result in a use after free if the route entry was holding
  > the last reference of the address descriptor.
  > ok jca@, bluhm@, claudio@ (mpi@)

sys

  ~ exec_elf.h                            

  > Implement support for DT_INIT_ARRAY, DT_FINI_ARRAY and DT_PREINIT_ARRAY.
  > Don't skip DT_INIT and DT_FINI for the main executable.  This matches what
  > Linux and Solaris do.
  > ok guenther@ (kettenis@)

  ~ file.h                                

  > rename nfiles to numfiles to avoid shadowing and stretch out the name.
  > ok deraadt (tedu@)

  ~ socketvar.h                           

  > Spliced TCP sockets become faster when the output part is running
  > as its own task thread.  This is inspired by userland copy where a
  > process also has to go through the scheduler.  This gives the socket
  > buffer a chance to be filled up and tcp_output() is called less
  > often and with bigger chunks.
  > When two kernel tasks share all the workload, the current scheduler
  > implementation will hang userland processes on single cpu machines.
  > As a workaround put a yield() into the splicing thread after each
  > task execution.  This reduces the number of calls of tcp_output()
  > even more.
  > OK tedu@ mpi@ (bluhm@)

  ~ types.h                               

  > qaddr_t is (now) dead
  > ok deraadt@ (guenther@)

  ~ sockio.h                              

  > Remove obsolete gre(4) ioctls GRESADDRS, GRESADDRD, GREGADDRS,
  > GREGADDRD, GRESPROTO, and GREGPROTO.  They have been replaced by
  > generic ioctls some time ago (eg. the "ifconfig gre0 tunnel") and
  > there is no need to keep the old ones around.  They are neither used
  > in base nor in ports.
  > OK sthen@ (reyk@)

tmpfs

  ~ tmpfs_vfsops.c                        

  > pool_setipl for tmpfs. (dlg@)

== usr.bin =========================================================== 12/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin

du

  ~ du.c                                  

  > Convert quad_t to int64_t and %q to %ll
  > Convert bzero() to memset() and bcopy() to memcpy()
  > ok natano@ millert@ (guenther@)

file

  ~ magic-test.c                          

  > Pull in <time.h> for ctime_r, gmtime, etc
  > ok deraadt@ (guenther@)

ftp

  ~ ftp.c                                 

  > Replace "union sockunion" with "union sockaddr_union" which is also
  > used in the kernel.  This makes it possible to remove the casts to
  > "struct sockaddr *" when calling networking syscalls.
  > OK jsing@ jca@ (millert@)

grep

  ~ util.c                                

  > when using -o, we may restart a match in the middle of the line.
  > set NOTBOL so that anchored patterns don't match.
  > from a patch by Daniël de Kok in freebsd bug 201650
  > ok martijn (tedu@)

hexdump

  ~ display.c                             ~ parse.c

  > Convert quad_t to int64_t and %q to %ll
  > Convert bzero() to memset() and bcopy() to memcpy()
  > ok natano@ millert@ (guenther@)

kdump

  ~ ktrstruct.c                           

  > Pull in <sys/select.h> for fd_set
  > ok deraadt@ (guenther@)

less

  ~ main.c                                

  > Check the MORE (or LESS) environment variables after forcing the various
  > more(1) options, so it is possible to change them using MORE. From Ross
  > L Richardson. ok deraadt millert (nicm@)

login

  ~ login.c                               

  > Change sleep from crazy backoff to one second of sleep between retries
  > ok deraadt@ (beck@)

mandoc

  ~ dbm_map.c                             

  > When running into a mandoc.db(5) file still using the obsolete
  > format based on SQLite 3, say so in words that mortals can
  > understand rather than babbling about hex magic.
  > Suggested by espie@. (schwarze@)

  ~ mandocdb.c                            

  > When trying to edit an existing database with makewhatis(8) -d or -u
  > but reading the database fails, report the full path to the database
  > on standard error, and mention that the database is automatically
  > recreated from scratch.
  > Suggested by espie@. (schwarze@)

  ~ mdoc_argv.c                           

  > If a line inside .Bl -column starts with a tab character
  > and there was no preceding .It macro, do not read the byte
  > before the beginning of the line buffer.
  > Found by tb@ with afl@. (schwarze@)

netstat

  ~ unix.c                                

  > Pull in <sys/time.h> for struct timespec and timeval
  > ok deraadt@ (guenther@)

  ~ inet.c                                ~ mroute6.c
  ~ net80211.c                            ~ route.c

  > Pull in <sys/select.h> for howmany() and NBBY, used by various net*/*.h
  > ok deraadt@ (guenther@)

nfsstat

  ~ nfsstat.c                             

  > Pull in <sys/time.h> for struct timespec and timeval
  > ok deraadt@ (guenther@)

openssl

  ~ speed.c                               

  > Sorry Andrew and Luke, I'm pretty sure we deleted your IRIX and VMS code.
  > (deraadt@)

  ~ openssl.1                             

  > shorten the pkcs8 text; (jmc@)

  ~ openssl.1                             

  > shorten pkcs12; (jmc@)

  ~ openssl.1                             

  > shorten the pkey text; (jmc@)

  ~ openssl.1                             

  > shorten the pkeyparam text; (jmc@)

  ~ openssl.1                             

  > shorten the pkeyutl text;
  > help/ok guenther (jmc@)

  ~ apps.c                                

  > Repeated occurances of the idiom buf[5][BUFSIZ] -- ridiculous.  Give each
  > buf a special name, recognize that most are PATH_MAX, and remove a few that
  > are not needed at all.
  > ok jsing beck (deraadt@)

  ~ openssl.1                             

  > shorten the req text; (jmc@)

  ~ openssl.1                             

  > shorten the rsa text; of note, i've also reduced the description
  > for -inform/-outform/-text and removed the oft-repeated header/footer
  > blurb; (jmc@)

rcs

  ~ date.y                                ~ diff3.c
  ~ ident.c                               ~ merge.c
  ~ rcsclean.c                            ~ rcsmerge.c
  ~ rcsnum.c                              ~ rcsparse.c
  ~ rcstime.c                             ~ rlog.c

  > Pull in <time.h> for struct tm, used in rcs.h
  > ok deraadt@ (guenther@)

ssh

  ~ match.c                               

  > fix matching for pattern lists that contain a single negated match,
  > e.g. "Host !example"
  > report and patch from Robin Becker. bz#1918 ok dtucker@ (djm@)

  ~ addrmatch.c                           

  > fix negated address matching where the address list consists of a
  > single negated match, e.g. "Match addr !192.20.0.1"
  > Report and patch from Jakub Jelen. bz#2397 ok dtucker@ (djm@)

  ~ addrmatch.c                           

  > downgrade an error() to a debug2() to match similar cases
  > in addr_match_list() (djm@)

  ~ session.c                             

  > fix previous, a condition was modified incorrectly; ok markus@ deraadt@
  > (otto@)

  ~ readconf.c                            

  > remove superfluous NOTREACHED comment (djm@)

  ~ servconf.c                            

  > add a sIgnore opcode that silently ignores options and use it to
  > suppress noisy deprecation warnings for the Protocol directive.
  > req henning, ok markus (djm@)

  ~ chacha.h                              

  > Pull in <stdlib.h> for NULL
  > ok deraadt@ (guenther@)

  ~ misc.h                                

  > Pull in <sys/time.h> for struct timeval
  > ok deraadt@ (guenther@)

  ~ sshd.c                                

  > fix uninitialised optlen in getsockopt() call; harmless on Unix/BSD
  > but potentially crashy on Cygwin. Reported by James Slepicka
  > ok deraadt@ (djm@)

systat

  ~ vmstat.c                              

  > Convert quad_t to int64_t and %q to %ll
  > Convert bzero() to memset() and bcopy() to memcpy()
  > ok natano@ millert@ (guenther@)

  ~ cache.c                               

  > Pull in <time.h> for time()
  > ok deraadt@ (guenther@)

tmux

  ~ tmux.1                                

  > Two minor fixes from dilyan palauzov. (nicm@)

  ~ cmd-display-message.c                 

  > Do not crash if display-message used without a client, issue reported by
  > Serge Aleynikov, fix from Thomas Adam. (nicm@)

  ~ cmd-join-pane.c                       

  > Kill empty window after moving pane and updating current window, so that
  > index is still valid before renumber-windows happens. Fixes issue
  > reported by Eric Pruitt. (nicm@)

top

  ~ display.c                             

  > Pull in <sys/time.h> for struct timespec and timeval
  > ok deraadt@ (guenther@)

vi

  ~ common/common.h                       

  > Pull in <sys/time.h> for struct timespec and timeval
  > ok deraadt@ (guenther@)

== usr.sbin ========================================================== 13/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin

arp

  ~ arp.c                                 

  > Pull in <sys/time.h> for gettimeofday()
  > ok deraadt@ (guenther@)

bgpd

  ~ rde_rib.c                             

  > Pull in <time.h> for one or more of gmtime, strftime, strptime, time,
  > timegm, and tzset
  > ok deraadt@ (guenther@)

dhcpd

  ~ db.c                                  ~ dhcpd.c
  ~ dispatch.c                            ~ parse.c

  > Pull in <time.h> for one or more of gmtime, strftime, strptime, time,
  > timegm, and tzset
  > ok deraadt@ (guenther@)

dhcrelay

  ~ dhcrelay.c                            ~ dispatch.c

  > Pull in <time.h> for one or more of gmtime, strftime, strptime, time,
  > timegm, and tzset
  > ok deraadt@ (guenther@)

httpd

  ~ httpd.h                               ~ parse.y
  ~ server.c                              

  > Enable SNI support in httpd(8).
  > ok reyk@ (jsing@)

  ~ httpd.h                               ~ logger.c
  ~ server.c                              ~ server_http.c

  > Replace the static env variables with a single global variable.
  > ok reyk@ (rzalamena@)

  ~ httpd.c                               ~ httpd.h
  ~ proc.c                                

  > Kill the ps_ninstances from proc.c.
  > We got the same information in ps_instances[proc] (more accurate) and
  > we avoid allocating unnecessary memory for pipe storage.
  > ok reyk@ (rzalamena@)

  ~ control.c                             ~ httpd.h
  ~ logger.c                              ~ proc.c
  ~ server.c                              

  > Kill p_instance from proc.c and remove static proc_id unused variables.
  > To keep the debug functionality intact and correct we'll use the pid
  > field in the imsg header to pass the instance number. Remember to always
  > pass 'ps_instance + 1' otherwise libutil will fill imsg header pid field
  > with the imsgbuf pid (which is the current process pid).
  > ok reyk@ (rzalamena@)

ifstated

  ~ log.c                                 

  > Pull in <time.h> for one or more of gmtime, strftime, strptime, time,
  > timegm, and tzset
  > ok deraadt@ (guenther@)

inetd

  ~ inetd.c                               

  > remove lint comments (tedu@)

kgmon

  ~ kgmon.c                               

  > Pull in <sys/time.h> for struct timespec, timeval, or clockrate
  > ok deraadt@ (guenther@)

ldapd

  ~ uuid.c                                

  > Pull in <sys/time.h> for gettimeofday()
  > ok deraadt@ (guenther@)

ldomd

  ~ ldomd.c                               

  > Pull in <time.h> for tzset() (guenther@)

ntpd

  ~ sensors.c                             

  > Pull in <sys/time.h> for struct timespec, timeval, or clockrate
  > ok deraadt@ (guenther@)

pcidump

  ~ pcidump.c                             

  > Move up the <stdio.h> include so <dev/pci/*.h> have NULL
  > ok deraadt@ (guenther@)

pkg_add

  ~ pkg_check.8                           ~ OpenBSD/PkgCheck.pm

  > make the full filesystem check optional, by popular demand.
  > doubling -q removes the plist thorough check. (espie@)

  ~ pkg_check.8                           ~ OpenBSD/PkgCheck.pm

  > -F before -f (as -I before -i currently is...); (jmc@)

  ~ OpenBSD/PkgCheck.pm                   

  > grrr warning (espie@)

  ~ OpenBSD/PkgAdd.pm                     ~ OpenBSD/Delete.pm
  ~ OpenBSD/Add.pm                        

  > in case we run delete_first (not enough room), delay the unlink of
  > tied items so we can still skip extracting them.
  > better than the stopgap measure I committed a few weeks ago. (espie@)

radiusd

  ~ parse.y                               

  > Add missing $OpenBSD$ line and remove an unnecessary comment line.
  > (yasuoka@)

rarpd

  ~ arptab.c                              

  > Pull in <sys/time.h> for gettimeofday()
  > ok deraadt@ (guenther@)

rbootd

  ~ utils.c                               

  > Pull in <sys/time.h> for struct timespec, timeval, or clockrate
  > ok deraadt@ (guenther@)

rebound

  ~ rebound.c                             

  > introduce a union of sockaddr types and eliminate a lot of casts. (tedu@)

rtadvd

  ~ rtadvd.conf.5                         

  > Fix rtadvd.conf(5) example for pinfoflags, it accepts numbers not strings.
  > ok phessler (sthen@)

sasyncd

  ~ timer.c                               

  > Use %zu for size_t arguments (guenther@)

  ~ carp.c                                ~ log.c
  ~ pfkey.c                               

  > Pull in <sys/select.h> for fd_set
  > ok deraadt@ (guenther@)

sensorsd

  ~ sensorsd.c                            

  > Pull in <sys/time.h> for struct timespec, timeval, or clockrate
  > ok deraadt@ (guenther@)

smtpd

  ~ rfc2822.c                             

  TAGGED OPENBSD_6_0
  > backport from -current; original commit by eric@:
  > Properly initialize the message parser. fix a regression where the
  > message headers would not be altered as expected.
  > ok gilles@ (jasper@)

snmpd

  ~ timer.c                               

  > Pull in <sys/time.h> for struct timespec, timeval, or clockrate
  > ok deraadt@ (guenther@)

switchd

  ~ ofp.h                                 

  > goda@ contributed most of the OpenFlow 1.3.5 parts in ofp.h (for the
  > "still-unreleased" switch(4) driver), so it is only fair to add his
  > copyright.  This header file will eventually move to net/ofp.h. (reyk@)

trpt

  ~ trpt.c                                

  > Pull in <sys/time.h> for struct timespec, timeval, or clockrate
  > ok deraadt@ (guenther@)

===============================================================================
_______________________________________________
owc mailing list
[email protected]
http://www.squish.net/mailman/listinfo/owc

Reply via email to