openbsd
9 years agoi wrote this
tedu [Tue, 20 Jan 2015 20:50:36 +0000 (20:50 +0000)]
i wrote this

9 years agokex_setup errors are fatal()
markus [Tue, 20 Jan 2015 20:16:21 +0000 (20:16 +0000)]
kex_setup errors are fatal()

9 years agoIf _dl_progname exceeds half the syslog buffer, truncate it with "...",
deraadt [Tue, 20 Jan 2015 19:51:00 +0000 (19:51 +0000)]
If _dl_progname exceeds half the syslog buffer, truncate it with "...",
so that the remaining information is more visible
ok kettenis miod

9 years agoMove ps_strings "after" the random stackgap. This makes its location a
kettenis [Tue, 20 Jan 2015 19:43:20 +0000 (19:43 +0000)]
Move ps_strings "after" the random stackgap.  This makes its location a
per-process value, and therefpore turns the VM_PSSTRINGS sysctl into a
per-process one as well.  This gets rid of a pointer to the bottom of the
stack at a fixed location.  Also clears the road for unmapping the stackgap.

ok deraadt@

9 years agoone more "center"; tedu forgot to use -i, i think...
jmc [Tue, 20 Jan 2015 19:23:32 +0000 (19:23 +0000)]
one more "center"; tedu forgot to use -i, i think...

9 years agotweak previous;
jmc [Tue, 20 Jan 2015 19:20:45 +0000 (19:20 +0000)]
tweak previous;

9 years agoDo not use /usr/ports/infrastructure/man/ by default because this
schwarze [Tue, 20 Jan 2015 19:17:28 +0000 (19:17 +0000)]
Do not use /usr/ports/infrastructure/man/ by default because this
directory is not contained in OpenBSD base, and because even people
having the directory often don't understand that they need to run
makewhatis(8) - and instead complain about the resulting warnings.
This commit reverts revisions 1.17 and 1.21.

Requested by deraadt@ millert@ kettenis@ who argue that people
using /usr/ports/infrastructure/bin/ already need to set PATH,
so editing man.conf (or, though more fragile, setting MANPATH)
should not be a big deal for them.

9 years agochange spelling of centre to center. consistent with other man pages,
tedu [Tue, 20 Jan 2015 18:54:33 +0000 (18:54 +0000)]
change spelling of centre to center. consistent with other man pages,
the name of the macro being described, and look(1).
ok jmc

9 years agoHOST_NAME_MAX + 1 is big enough for gethostname(3); this array has
florian [Tue, 20 Jan 2015 18:44:16 +0000 (18:44 +0000)]
HOST_NAME_MAX + 1 is big enough for gethostname(3); this array has
been one char too big when it was defined in terms of MAXHOSTNAMELEN.
While here, NI_MAXHOST is big enough for getnameinfo(3).
OK benno@

9 years agoMerge two copies of the (almost) identical bus space code into one file.
mpi [Tue, 20 Jan 2015 18:34:00 +0000 (18:34 +0000)]
Merge two copies of the (almost) identical bus space code into one file.

This brings bus_space_mmap(9) to socppc and change its bus_space_map(9)
implementation to use kernel_map instead of phys_map like macppc and
everybody else.

9 years agoAdjust <sys/param.h> comments regarding use of use of MSIZE, or
deraadt [Tue, 20 Jan 2015 18:26:57 +0000 (18:26 +0000)]
Adjust <sys/param.h> comments regarding use of use of MSIZE, or
delete <sys/param.h> if now possible
ok guenther

9 years agoAdjust <sys/param.h> comments regarding use of use of MAXFRAG, or
deraadt [Tue, 20 Jan 2015 18:22:20 +0000 (18:22 +0000)]
Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther

9 years agoMake the man(1) and apropos(1) options -s and -S much less expensive:
schwarze [Tue, 20 Jan 2015 18:19:39 +0000 (18:19 +0000)]
Make the man(1) and apropos(1) options -s and -S much less expensive:
Do not append an SQL clause looking into the large "keys" table.
Instead, filter the result of the SQL query in buildnames() where
equivalent data from the much smaller "mlinks" table is already
available for free.

This is relevant because man(1) uses the equivalent of "-S ${MACHINE}"
by default since main.c rev. 1.122, to make sure that manuals for
the current architecture are shown.  With many ports installed, this
patch can speed up man(1) by a factor of more than a hundred.

Slowness reported by Theo Buehler <theo at math dot ethz dot ch>, thanks!

9 years agoFSHIFT does not need to go to userland, so convert it to _FSHIFT.
deraadt [Tue, 20 Jan 2015 18:14:51 +0000 (18:14 +0000)]
FSHIFT does not need to go to userland, so convert it to _FSHIFT.
FSCALE still needs to be exported .. unless someone fixes a few ports
that need it.
ok guenther, tested by sthen

9 years agoNothing in this file requires <sys/queue.h>. While here remove old and
mpi [Tue, 20 Jan 2015 18:14:39 +0000 (18:14 +0000)]
Nothing in this file requires <sys/queue.h>.  While here remove old and
unused typedef & external definitions.

9 years agoYears ago, MSIZE had to be known in <sys/param.h> probably to allocate
deraadt [Tue, 20 Jan 2015 18:12:49 +0000 (18:12 +0000)]
Years ago, MSIZE had to be known in <sys/param.h> probably to allocate
memory for the mbuf layer up front.  These days it only matters for
sizing of macros in <sys/mbuf.h>, so move it there.  MCLSHIFT, MCLBYTES,
and MCLOFSET can move also (a decade ago, architectures had different
mbuf sizes.  you don't want to know more)
ok guenther, ports fallout checked for by sthen

9 years agoDo not assume a read buffer coming from libevent is aligned. Copy the
deraadt [Tue, 20 Jan 2015 18:09:12 +0000 (18:09 +0000)]
Do not assume a read buffer coming from libevent is aligned.  Copy the
int to an aligned variable before operating on it.
ok claudio

9 years agoMAXFRAG was always placed incorrectly in <sys/param.h> It is primarily
deraadt [Tue, 20 Jan 2015 18:08:16 +0000 (18:08 +0000)]
MAXFRAG was always placed incorrectly in <sys/param.h>  It is primarily
used in disklabel type tools, newfs, fsck, when related to ufs or
ufs-derived filesystems, but also in a struct. Those things always include
<ufs/ffs/fs.h>.  Move it there
ok guenther, tested in ports by sthen

9 years agoCMASK was only a CSRGism. It was only used in the kernel and ftpd, once
deraadt [Tue, 20 Jan 2015 18:03:17 +0000 (18:03 +0000)]
CMASK was only a CSRGism.  It was only used in the kernel and ftpd, once
each, never in portable software.  Mop it up.
ok guenther, tested in ports tree by sthen

9 years agouse <limits.h> comprehensively. For now try to push <> includes to
deraadt [Tue, 20 Jan 2015 17:37:54 +0000 (17:37 +0000)]
use <limits.h> comprehensively.  For now try to push <> includes to
each .c file, and out of the .h files.  To avoid overinclude.
ok gilles, in principle.  If this has been done right, -portable should
become easier to maintain.

9 years agoPrevent tables referenced by rules in anchors from getting disabled.
mikeb [Tue, 20 Jan 2015 17:25:35 +0000 (17:25 +0000)]
Prevent tables referenced by rules in anchors from getting disabled.
Analysis and patch by Richard Kojedzinszky, thanks!  ok henning

9 years agoRewrite to void using union sockaddr_union
deraadt [Tue, 20 Jan 2015 17:19:05 +0000 (17:19 +0000)]
Rewrite to void using union sockaddr_union
ok mikeb

9 years agoMerge two copies of the same dma code into one file and sync the headers.
mpi [Tue, 20 Jan 2015 17:08:35 +0000 (17:08 +0000)]
Merge two copies of the same dma code into one file and sync the headers.

ok kettenis@

9 years agoVarious cleanups. Explicitly include <sys/atomic.h>, Use pmap_remove_pg()
mpi [Tue, 20 Jan 2015 17:04:20 +0000 (17:04 +0000)]
Various cleanups. Explicitly include <sys/atomic.h>, Use pmap_remove_pg()
for the kernel pmap and kill pmap_kremove_pg().  Finally guard the hash
lock code under "MULTIPROCESSOR" to explicit which part of the code
received some MP love.

ok kettenis@

9 years agoAdd support for the "-r fromaddr" flag now that we don't support
millert [Tue, 20 Jan 2015 16:59:07 +0000 (16:59 +0000)]
Add support for the "-r fromaddr" flag now that we don't support
sendmail flags on the command line.
Also allow "from" to be set in mailrc.
Use sendmail's "-t" flag when executing sendmail instead of specifying
the list of recipients in argv.  The "-f" flag will be used to set
the from address if specified.

9 years agoAllocate a bit more memory to reduce the change of having to
millert [Tue, 20 Jan 2015 16:54:06 +0000 (16:54 +0000)]
Allocate a bit more memory to reduce the change of having to
realloc() which is expensive for large blacklists.

9 years agoincrease limits for staff (user created at install time is in staff)
deraadt [Tue, 20 Jan 2015 16:49:59 +0000 (16:49 +0000)]
increase limits for staff (user created at install time is in staff)

9 years agoRevert some $OpenBSD$ additions about which there are doubts.
krw [Tue, 20 Jan 2015 14:41:37 +0000 (14:41 +0000)]
Revert some $OpenBSD$ additions about which there are doubts.

Suggested by deraadt@

9 years agoRevert some $OpenBSD$ additions about which there are doubts.
krw [Tue, 20 Jan 2015 14:40:37 +0000 (14:40 +0000)]
Revert some $OpenBSD$ additions about which there are doubts.

Suggested by deraadt@

9 years agoRevert some $OpenBSD$ additions about which there are doubts.
krw [Tue, 20 Jan 2015 14:38:09 +0000 (14:38 +0000)]
Revert some $OpenBSD$ additions about which there are doubts.

Suggested by deraadt@

9 years agoRevert some $OpenBSD$ additions about which there are doubts.
krw [Tue, 20 Jan 2015 14:35:18 +0000 (14:35 +0000)]
Revert some $OpenBSD$ additions about which there are doubts.

Suggested by deraadt@

9 years agoMake ix(4) work on strict alignment architectures. The Intel networking
kettenis [Tue, 20 Jan 2015 12:56:50 +0000 (12:56 +0000)]
Make ix(4) work on strict alignment architectures.  The Intel networking
hardware is fairly retarded.  While it allows receive buffers with an
ETHER_ALIGN offset, it only allows the size of the buffers to be specified in
multiples of 1K.  This means that if we want to use standard mbuf clusters
we will waste 1024 - ETHER_ALIGN bytes per cluster, which is a lot for the
2K clusters we use now.  Compromise a bit by using 4K clusters on strict
alignment architectures and tell the hardware to use 3K of those, reducing
the spillage a bit.  While this isn't optimal, at least on sparc64 where we
have 8K pages, the pool page allocation overhead should be the same as on
amd64/i386 where we have 4K pages and continue to use 2K mbuf clusters.

ok mikeb@, dlg@

9 years agoWe do not support AIO, so comment it out in the kqueue(2) manpage for now.
reyk [Tue, 20 Jan 2015 11:56:33 +0000 (11:56 +0000)]
We do not support AIO, so comment it out in the kqueue(2) manpage for now.

OK jmc@ guenther@

9 years agotypo in comment ;) ok nicm
sthen [Tue, 20 Jan 2015 10:57:10 +0000 (10:57 +0000)]
typo in comment ;)  ok nicm

9 years agoCheck for out-of-range indices when searching the default dac and adc.
ratchov [Tue, 20 Jan 2015 09:46:31 +0000 (09:46 +0000)]
Check for out-of-range indices when searching the default dac and adc.
Fix from Alexey Suslikov <alexey.suslikov at gmail.com>. Thanks!

tested by many, ok armani

9 years agoSplit out from rdist/defs.h the client-only and server-only bits into
guenther [Tue, 20 Jan 2015 09:00:16 +0000 (09:00 +0000)]
Split out from rdist/defs.h the client-only and server-only bits into
 rdist/client.h and rdistd/server.h
Only put #includes in .h files that are necessary for the .h to be used;
 all other #includes go in the .c files
Move all extern variable declarations to the .h files, renaming local
 variables to avoid shadowing
Replace me_type member of mntent_t with an "is NFS?" flag bit

9 years agoSupport blinking cursor mode, both the xterm CSI ?12 h/l and (the
nicm [Tue, 20 Jan 2015 08:18:04 +0000 (08:18 +0000)]
Support blinking cursor mode, both the xterm CSI ?12 h/l and (the
backwards) screen CSI 34 h/l. From Guanpeng Xu.

9 years agothis test would accidentally delete agent.sh if run without obj/
djm [Tue, 20 Jan 2015 08:02:33 +0000 (08:02 +0000)]
this test would accidentally delete agent.sh if run without obj/

9 years agomake this compile with KERBEROS5 enabled
djm [Tue, 20 Jan 2015 07:56:44 +0000 (07:56 +0000)]
make this compile with KERBEROS5 enabled

9 years agofix hostkeys in agent; ok markus@
djm [Tue, 20 Jan 2015 07:55:33 +0000 (07:55 +0000)]
fix hostkeys in agent; ok markus@

9 years agoChange the machdep.lidsupsend example now that the default setting has been
deraadt [Tue, 20 Jan 2015 07:42:35 +0000 (07:42 +0000)]
Change the machdep.lidsupsend example now that the default setting has been
inverted.

9 years agoWe all have syslog() now; assume LOG_PID and LOG_DAEMON
guenther [Tue, 20 Jan 2015 07:03:21 +0000 (07:03 +0000)]
We all have syslog() now; assume LOG_PID and LOG_DAEMON

9 years agoChange the machdep.lidsupsend example now that the default setting has been
miod [Tue, 20 Jan 2015 07:00:05 +0000 (07:00 +0000)]
Change the machdep.lidsupsend example now that the default setting has been
inverted.

9 years agoMove MF_* to message.c too
guenther [Tue, 20 Jan 2015 06:08:08 +0000 (06:08 +0000)]
Move MF_* to message.c too

9 years agoMove struct distoptinfo into distopt.c, killing the DISTOPTINFO typedef
guenther [Tue, 20 Jan 2015 06:02:30 +0000 (06:02 +0000)]
Move struct distoptinfo into distopt.c, killing the DISTOPTINFO typedef
Move struct msgtype and msgfacility into message.c, killing the MSGTYPE and
 MSGFACILITY typedefs
Make getdistopt() static to distopt.c

9 years agorework the audio key handling to allocate a message to send to the
dlg [Tue, 20 Jan 2015 04:54:23 +0000 (04:54 +0000)]
rework the audio key handling to allocate a message to send to the
task, rather than abusing task arguments to carry long values around.

this is unreliable, but so was the previous mechanism, just in a
different way. if you're so low on memory that you cant change the
volume, you probably have other more important problems going on
too.

tested by jim smith

9 years agoFix size of the bcopy when extracting the MAC address.
brad [Tue, 20 Jan 2015 04:46:11 +0000 (04:46 +0000)]
Fix size of the bcopy when extracting the MAC address.

From FreeBSD

9 years agoDon't use utime(), so don't need <utime.h>
guenther [Tue, 20 Jan 2015 04:45:43 +0000 (04:45 +0000)]
Don't use utime(), so don't need <utime.h>

9 years agoMissing $OpenBSD$'s.
krw [Tue, 20 Jan 2015 04:41:01 +0000 (04:41 +0000)]
Missing $OpenBSD$'s.

ok deraadt@

9 years agoRemove use of the link change interrupt handling, not all controllers
brad [Tue, 20 Jan 2015 04:33:06 +0000 (04:33 +0000)]
Remove use of the link change interrupt handling, not all controllers
support this interrupt. Link state changes are noticed via the PHY
status change callback or via the timeout for re_tick().

From FreeBSD

9 years agoSome fixes for handling link state changes.
brad [Tue, 20 Jan 2015 04:23:33 +0000 (04:23 +0000)]
Some fixes for handling link state changes.

9 years agoAnd the variable too.
brad [Tue, 20 Jan 2015 03:58:04 +0000 (03:58 +0000)]
And the variable too.

9 years agoSELECT_FD_TYPE is obsolete
guenther [Tue, 20 Jan 2015 03:55:18 +0000 (03:55 +0000)]
SELECT_FD_TYPE is obsolete

9 years agoBack out a chunk of rev 1.34 that wasn't supposed to go in with the
brad [Tue, 20 Jan 2015 03:54:26 +0000 (03:54 +0000)]
Back out a chunk of rev 1.34 that wasn't supposed to go in with the
capitalization corrections.

9 years agoprintf wasn't supposed to go in.
brad [Tue, 20 Jan 2015 03:26:24 +0000 (03:26 +0000)]
printf wasn't supposed to go in.

9 years agoMove #include <syslog.h> to the one file that needs it
guenther [Tue, 20 Jan 2015 03:14:52 +0000 (03:14 +0000)]
Move #include <syslog.h> to the one file that needs it

9 years agoAdd support for tracing libraries in static PIE binaries. rcrt does not
deraadt [Tue, 20 Jan 2015 02:16:19 +0000 (02:16 +0000)]
Add support for tracing libraries in static PIE binaries.  rcrt does not
contain "LD_TRACE_LOADED_OBJECTS" support, so this gets done by calling
RTLD_TRACE directly.
ok guenther

9 years ago#include <sys/syslimits.h> to allow operation without requiring the noise
deraadt [Tue, 20 Jan 2015 01:48:13 +0000 (01:48 +0000)]
#include <sys/syslimits.h> to allow operation without requiring the noise
of <sys/param.h>

9 years agoDEFAULT_PRIORITY and DEFAULT_QLIMIT no longer used
deraadt [Mon, 19 Jan 2015 23:52:02 +0000 (23:52 +0000)]
DEFAULT_PRIORITY and DEFAULT_QLIMIT no longer used

9 years agoRouting sockets are here to stay, so delete the wrapper that would use the
guenther [Mon, 19 Jan 2015 23:51:54 +0000 (23:51 +0000)]
Routing sockets are here to stay, so delete the wrapper that would use the
defunct ioctl(SIOCSARP)

ok millert@

9 years agoExplicitly mention that PATH_MAX includes the NUL in the ENAMETOOLONG
millert [Mon, 19 Jan 2015 23:41:32 +0000 (23:41 +0000)]
Explicitly mention that PATH_MAX includes the NUL in the ENAMETOOLONG
description.

9 years agoPrefer linux_sockaddr over osockaddr, so the latter can go away.
guenther [Mon, 19 Jan 2015 23:30:20 +0000 (23:30 +0000)]
Prefer linux_sockaddr over osockaddr, so the latter can go away.
sys_socket() supports SOCK_{CLOEXEC,NONBLOCK} now, so build on that.
doaccept() supports the non-inheriting-of-O_NONBLOCK, so build on that.
Merge compat_sys_{accept,send,recv}() into their only callers.
Lie a little and use struct sockaddr in the linux socket syscall args when
 it's a return argument to avoid a bunch a casts.
Delete many other unnecessary sockaddr casts

verified with a curl Linux binary

9 years agoback it out properly
deraadt [Mon, 19 Jan 2015 23:01:07 +0000 (23:01 +0000)]
back it out properly

9 years agonever tested with a make release
deraadt [Mon, 19 Jan 2015 22:58:53 +0000 (22:58 +0000)]
never tested with a make release

9 years agoTalk about thread-local errno and do not mention "extern int errno".
millert [Mon, 19 Jan 2015 21:29:38 +0000 (21:29 +0000)]
Talk about thread-local errno and do not mention "extern int errno".
Also correct the string version of error 0.  OK guenther@

9 years agoThe kernel doesn't actually care what a sockaddr's sa_len is on input,
guenther [Mon, 19 Jan 2015 21:18:47 +0000 (21:18 +0000)]
The kernel doesn't actually care what a sockaddr's sa_len is on input,
so don't waste code setting it

improvment and ok florian@

9 years agoNo need to include pfvar.h, another leftover from relayd. It was also
reyk [Mon, 19 Jan 2015 21:07:33 +0000 (21:07 +0000)]
No need to include pfvar.h, another leftover from relayd.  It was also
used for portrange operators which weren't used in httpd.

OK florian@

9 years agoUse initial assignment of action to check for errors.
bcook [Mon, 19 Jan 2015 20:47:03 +0000 (20:47 +0000)]
Use initial assignment of action to check for errors.

This simplifies things and make action = -1 no longer a dead store.

Also, spell FALLTHROUGH consistently.

reported by fritjof@alokat.org

9 years agofinally enable the KEX tests I wrote some years ago...
markus [Mon, 19 Jan 2015 20:45:25 +0000 (20:45 +0000)]
finally enable the KEX tests I wrote some years ago...

9 years agoadapt to new error message (SSH_ERR_MAC_INVALID)
markus [Mon, 19 Jan 2015 20:42:31 +0000 (20:42 +0000)]
adapt to new error message (SSH_ERR_MAC_INVALID)

9 years agoswitch ssh-keyscan from setjmp to multiple ssh transport layer instances
markus [Mon, 19 Jan 2015 20:32:39 +0000 (20:32 +0000)]
switch ssh-keyscan from setjmp to multiple ssh transport layer instances
ok djm@

9 years agoadd experimental api for packet layer; ok djm@
markus [Mon, 19 Jan 2015 20:30:23 +0000 (20:30 +0000)]
add experimental api for packet layer; ok djm@

9 years agoMissing initialization; tjenahej@speedmail.se
miod [Mon, 19 Jan 2015 20:25:36 +0000 (20:25 +0000)]
Missing initialization; tjenahej@speedmail.se

9 years agoAdd arc4random/getentropy shims for NetBSD.
bcook [Mon, 19 Jan 2015 20:21:40 +0000 (20:21 +0000)]
Add arc4random/getentropy shims for NetBSD.

The latest NetBSD (6.1.5) arc4random does not appear to reseed the CRNG state
after a fork, so provide an override until the fork-safe version in CVS appears
in a release.

These are the same as the FreeBSD shims.

ok deraadt@

9 years agostore compat flags in struct ssh; ok djm@
markus [Mon, 19 Jan 2015 20:20:20 +0000 (20:20 +0000)]
store compat flags in struct ssh; ok djm@

9 years agoOops, missed the new #include when manually applying the diff from
guenther [Mon, 19 Jan 2015 20:16:27 +0000 (20:16 +0000)]
Oops, missed the new #include when manually applying the diff from
Helg (xx404 (at) msn.com)

9 years agoadapt kex to sshbuf and struct ssh; ok djm@
markus [Mon, 19 Jan 2015 20:16:15 +0000 (20:16 +0000)]
adapt kex to sshbuf and struct ssh; ok djm@

9 years ago`wellspring' Apple keyboards found on Macbook Air need slightly different
miod [Mon, 19 Jan 2015 20:16:10 +0000 (20:16 +0000)]
`wellspring' Apple keyboards found on Macbook Air need slightly different
processing for Fn-key chords. From William Orr <will@worrbase.com>

9 years agoFix bracing in ASSERT_VP_ISLOCKED(vp) macro to not always panic()
guenther [Mon, 19 Jan 2015 20:13:03 +0000 (20:13 +0000)]
Fix bracing in ASSERT_VP_ISLOCKED(vp) macro to not always panic()

From Helg (xx404 (at) msn.com)

9 years agomove dispatch to struct ssh; ok djm@
markus [Mon, 19 Jan 2015 20:07:45 +0000 (20:07 +0000)]
move dispatch to struct ssh; ok djm@

9 years agoLog the remote user in the access.log.
florian [Mon, 19 Jan 2015 20:01:02 +0000 (20:01 +0000)]
Log the remote user in the access.log.
Pointed out by, tweak & OK reyk@

9 years agos/clt_fcgi_remote_user/clt_remote_user/
florian [Mon, 19 Jan 2015 20:00:07 +0000 (20:00 +0000)]
s/clt_fcgi_remote_user/clt_remote_user/
OK reyk@

9 years agoMove doaccept() declaration from its .c file to sys/socketvar.h for use
guenther [Mon, 19 Jan 2015 19:57:59 +0000 (19:57 +0000)]
Move doaccept() declaration from its .c file to sys/socketvar.h for use
by compat/linux

9 years agoupdate packet.c & isolate, introduce struct ssh
markus [Mon, 19 Jan 2015 19:52:16 +0000 (19:52 +0000)]
update packet.c & isolate, introduce struct ssh
a) switch packet.c to buffer api and isolate per-connection info into struct ssh
b) (de)serialization of the state is moved from monitor to packet.c
c) the old packet.c API is implemented in opacket.[ch]
d) compress.c/h is removed and integrated into packet.c
with and ok djm@

9 years agoDelete ABI compat for osockaddr: 20 years and many ABI bumps since sa_len added
guenther [Mon, 19 Jan 2015 19:47:29 +0000 (19:47 +0000)]
Delete ABI compat for osockaddr: 20 years and many ABI bumps since sa_len added

ok krw@ bluhm@ deraadt@

9 years agoPrefer strdup() to malloc() + strcpy() and ftello() to ftell()
miod [Mon, 19 Jan 2015 19:46:55 +0000 (19:46 +0000)]
Prefer strdup() to malloc() + strcpy() and ftello() to ftell()
ok deraadt@ guenther@ millert@

9 years agoDecouple auth parameters from struct server_config into struct auth.
reyk [Mon, 19 Jan 2015 19:37:50 +0000 (19:37 +0000)]
Decouple auth parameters from struct server_config into struct auth.

OK florian@

9 years agoDoes not need netinet/ip_ipsp.h
deraadt [Mon, 19 Jan 2015 19:25:47 +0000 (19:25 +0000)]
Does not need netinet/ip_ipsp.h

9 years agoAlso print the fspace member of map entries when PRINT_VM_MAP_ENTRY is
kettenis [Mon, 19 Jan 2015 19:25:28 +0000 (19:25 +0000)]
Also print the fspace member of map entries when PRINT_VM_MAP_ENTRY is
requested.

ok deraadt@

9 years agoRemove dead store causing clang to warn; dhill
miod [Mon, 19 Jan 2015 18:38:41 +0000 (18:38 +0000)]
Remove dead store causing clang to warn; dhill

9 years agouse SYMLOOP_MAX rather than MAXSYMLINKS
deraadt [Mon, 19 Jan 2015 18:37:19 +0000 (18:37 +0000)]
use SYMLOOP_MAX rather than MAXSYMLINKS

9 years agomikeb points out that 'struct ipsec_policy' can also be hidden by _KERNEL
deraadt [Mon, 19 Jan 2015 18:36:51 +0000 (18:36 +0000)]
mikeb points out that 'struct ipsec_policy' can also be hidden by _KERNEL

9 years agoremove #ifndef #define blocks trying to handle lack of BUFSIZ
deraadt [Mon, 19 Jan 2015 18:20:47 +0000 (18:20 +0000)]
remove #ifndef #define blocks trying to handle lack of BUFSIZ
ok millert

9 years agomlk jr day is the third monday, and not just for new york.
tedu [Mon, 19 Jan 2015 18:07:47 +0000 (18:07 +0000)]
mlk jr day is the third monday, and not just for new york.
from richard

9 years agoSYMLOOP_MAX == MAXSYMLINKS, so use SYMLOOP_MAX
deraadt [Mon, 19 Jan 2015 18:05:41 +0000 (18:05 +0000)]
SYMLOOP_MAX == MAXSYMLINKS, so use SYMLOOP_MAX

9 years agoKill loadavg.h and just use the fscale value directly.
millert [Mon, 19 Jan 2015 18:01:13 +0000 (18:01 +0000)]
Kill loadavg.h and just use the fscale value directly.
There's no need for crazy casts of p_pctcpu in ORDERKEY_PCTCPU
since kinfo_proc exports it as uint32_t.  OK deraadt@

9 years agosparc also needs <machine/param.h> for CPU_SUN*.
miod [Mon, 19 Jan 2015 18:01:11 +0000 (18:01 +0000)]
sparc also needs <machine/param.h> for CPU_SUN*.

9 years agofix format strings in (disabled) debugging
djm [Mon, 19 Jan 2015 17:35:48 +0000 (17:35 +0000)]
fix format strings in (disabled) debugging

9 years agothis test was broken in at least two ways, such that it
djm [Mon, 19 Jan 2015 17:31:13 +0000 (17:31 +0000)]
this test was broken in at least two ways, such that it
wasn't checking that a KRL was not excluding valid keys

9 years agoFirst step of hiding many kernel-only parts of <netinet/ip_ipsp.h>
deraadt [Mon, 19 Jan 2015 16:49:04 +0000 (16:49 +0000)]
First step of hiding many kernel-only parts of <netinet/ip_ipsp.h>
under _KERNEL, and adjust the one consumer (netstat) so that it requests
the exposure.  Will take a few more rounds to get this right.
ok mikeb