CVS: cvs.openbsd.org: src

2016-01-01 Thread Ingo Feinerer
CVSROOT:/cvs
Module name:src
Changes by: feine...@cvs.openbsd.org2016/01/02 00:46:07

Modified files:
share/man/man4 : video.4 

Log message:
Document recent videoio.h changes.

ok jmc@



CVS: cvs.openbsd.org: src

2016-01-01 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2016/01/01 22:49:36

Modified files:
sys/arch/sgi/pci: ioc.c iocreg.h 
sys/arch/sgi/sgi: ip27_machdep.c 
sys/arch/sgi/xbow: hub.h 

Log message:
Take the PHY of iec(4) out of reset before attaching the interface.
Otherwise the PHY goes undetected on the slave node of a dual-node
Origin 200. The PHY gets enabled by diagnostic checks but only on the
master node. As the attach code will now do the enabling, the checks can
be disabled on reboot, making reboots faster especially on IP27.

Tested on Origin 200 (IP27), Fuel (IP35 with iec), and Origin 350
(IP35 without iec).

Diff from miod@, ok krw@



CVS: cvs.openbsd.org: src

2016-01-01 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2016/01/01 17:24:16

Modified files:
sys/kern   : vfs_syscalls.c 

Log message:
mmcc noticed that nd.ni_pledge was uninitialized in doopenat() for the
oflags & 3 == 3 case. Therefore this depends on vn_open() blocking the
operation later.  Probably this meant the ni_pledge request would be too
high, causing transient operation failure, rather than transient operation
passage).  Instead of initializing based on the oflags value use the
result of FFLAGS().  I should have done this from the start.
ok semarie
[oflags & 3 == 3 is major dejavu for me]



CVS: cvs.openbsd.org: src

2016-01-01 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/01/01 13:55:13

Modified files:
usr.bin/sed: main.c 

Log message:
Improve error message for sed -i by appending strerror(errno).
>From Michael Reed, thanks!

ok deraadt@



CVS: cvs.openbsd.org: src

2016-01-01 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2016/01/01 12:15:00

Modified files:
sys/kern   : subr_log.c 

Log message:
The pointer buf is a user space string which was directly passed
to tputchar() and could crash the kernel.  Better use cnwrite() in
sendsyslog2() for writing to console.  It takes a struct uio which
does the copyin() automatically.  In addition cnwrite() outputs to
the real console or to a redirected one, whichever is appropriate.
One drawback is that the syslog priority cannot be stripped off
easily.
OK deraadt@



CVS: cvs.openbsd.org: src

2016-01-01 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2016/01/01 11:38:19

Modified files:
share/man/man5 : bsd.port.mk.5 

Log message:
Mention that GH_* yield a default for DISTNAME



Re: CVS: cvs.openbsd.org: src

2016-01-01 Thread Robert Peichaer
On Fri, Jan 01, 2016 at 08:58:28AM -0700, Robert Peichaer wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   r...@cvs.openbsd.org2016/01/01 08:58:28
> 
> Modified files:
>   distrib/notes  : INSTALL m4.common packages 
>   distrib/notes/landisk: xfer 
>   distrib/notes/sparc: xfer 
>   distrib/notes/sparc64: xfer 
> 
> Log message:
> Tweak the installation notes regarding references to FTP.
> 
> 'Sure' deraadt@

This was also OK sthen@



CVS: cvs.openbsd.org: src

2016-01-01 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/01/01 10:38:45

Modified files:
usr.bin/netstat: main.c 

Log message:
The "-P" option does not need to read routing table symbols so do not
check for them.

ok benno@, bluhm@



CVS: cvs.openbsd.org: src

2016-01-01 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2016/01/01 08:58:28

Modified files:
distrib/notes  : INSTALL m4.common packages 
distrib/notes/landisk: xfer 
distrib/notes/sparc: xfer 
distrib/notes/sparc64: xfer 

Log message:
Tweak the installation notes regarding references to FTP.

'Sure' deraadt@



CVS: cvs.openbsd.org: src

2016-01-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/01/01 08:56:04

Modified files:
bin/pax: extern.h 
games/adventure: extern.h 
games/battlestar: battlestar.c 

Log message:
don't declar main. from Michal Mazurek



CVS: cvs.openbsd.org: www

2016-01-01 Thread Robert Peichaer
CVSROOT:/cvs
Module name:www
Changes by: r...@cvs.openbsd.org2016/01/01 08:52:02

Modified files:
.  : armish.html plus54.html 

Log message:
fix broken links



CVS: cvs.openbsd.org: src

2016-01-01 Thread Ingo Feinerer
CVSROOT:/cvs
Module name:src
Changes by: feine...@cvs.openbsd.org2016/01/01 08:34:09

Modified files:
sys/sys: videoio.h 

Log message:
Sync formatting and a few comments with upstream. No functional change.



CVS: cvs.openbsd.org: src

2016-01-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2016/01/01 08:28:26

Modified files:
sys/dev/pci/drm: drm_linux.c 

Log message:
Reimplement vga_put() such that it compiles on i386 as well.



CVS: cvs.openbsd.org: src

2016-01-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/01/01 07:23:21

Modified files:
usr.bin/doas   : doas.conf.5 

Log message:
doas.conf lives in /etc. from Amit Kulkarni



CVS: cvs.openbsd.org: src

2016-01-01 Thread Ingo Feinerer
CVSROOT:/cvs
Module name:src
Changes by: feine...@cvs.openbsd.org2016/01/01 07:17:12

Modified files:
sys/sys: videoio.h 

Log message:
Sync V4L2 header file with upstream (i.e., recent Linux kernel) headers.

This syncs our videoio.h with upstream videodev2.h and inlines their
v4l2-controls.h (which was split off from videodev2.h). Another header,
v4l2-common.h, is currently not imported as it is GPL2 licensed.

There will be a second commit just addressing whitespace and formatting. The
current version has only real changes whereas the second commit will bring
videoio.h in line with videodev2.h formatting so that potential syncs in the
future are easier to implement.

Bulk build by ajacoutot@; ok robert@; "you should go for it" deraadt@



CVS: cvs.openbsd.org: src

2016-01-01 Thread Joerg Jung
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2016/01/01 05:50:54

Modified files:
sbin/ifconfig  : ifconfig.c 

Log message:
rmeove unused noprint variable

from Fabian Raetz via tech@

ok krw



CVS: cvs.openbsd.org: src

2016-01-01 Thread Joerg Jung
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2016/01/01 05:37:14

Modified files:
usr.sbin/smtpd : pony.c 

Log message:
add grp.h for setgroups, not necessarily required on OpenBSD but reduces diff
to -portable

ok gilles



CVS: cvs.openbsd.org: src

2016-01-01 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2016/01/01 01:04:20

Modified files:
usr.bin/tmux   : status.c 

Log message:
Don't rely on a calculation wrapping when applying message-limit, and
break out of the loop early. From Nicolas Viennot.