CVS: cvs.openbsd.org: src

2013-03-27 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/03/27 01:40:41

Modified files:
lib/libc/asr   : asr.c asr_private.h async_resolver.3 
 getaddrinfo_async.c gethostnamadr_async.c 
 res_search_async.c res_send_async.c 

Log message:
Only use the search domains for DNS lookups, as the current resolver does.
Better not diverge too much in behavior at this point.
Typo fix and doc update while there.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/03/27 01:48:42

Modified files:
usr.sbin/smtpd/smtpd: Makefile 

Log message:
fix build after asr update

ok gilles@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2013/03/27 02:52:49

Modified files:
sys/arch/arm/arm: pmap7.c 

Log message:
Further updates to pmap7. Fixes some problems and removes debug printfs.

ok miod@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2013/03/27 03:26:45

Modified files:
sys/dev/pci/drm/i915: i915_dma.c 

Log message:
Claim to support I915_PARAM_HAS_COHERENT_RINGS.
While seemingly unused by userspace at the moment this was apparently
added to resolve an abi problem with libva and the BSD ring.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2013/03/27 03:46:55

Modified files:
regress/usr.bin/pkg-config: Makefile 

Log message:
add two tests for resolving a regular module (passes) and the full path
to a pkgconfig file (currently fails).

the fix for pkg-config will be committed shortly



CVS: cvs.openbsd.org: src

2013-03-27 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/03/27 05:00:39

Modified files:
distrib/sets/lists/man: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2013-03-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/27 05:17:12

Modified files:
usr.bin/tmux   : colour.c options-table.c server-client.c tmux.1 
 tmux.c tmux.h tty-term.c tty.c 

Log message:
Remove tmux's (already minimal) 88 colour support. Such terminals are
few and unnecessary.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/27 05:19:20

Modified files:
usr.bin/tmux   : screen-write.c 

Log message:
Move the cursor back into the last column on CUU/CUD to match xterm
behaviour. From George Nachman.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/27 05:24:18

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

Log message:
Add TMUX_TMPDIR variable to put the socket directory outside
TMPDIR. From Ben Boeckel.



CVS: cvs.openbsd.org: www

2013-03-27 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2013/03/27 05:56:24

Modified files:
faq: upgrade53.html 

Log message:
squid may need some config changes, expanded from a diff by giovanni@,
ok giovanni nick



CVS: cvs.openbsd.org: src

2013-03-27 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2013/03/27 06:14:29

Modified files:
sys/dev/pci/drm/i915: i915_dma.c 

Log message:
claim support for secure and pinned batch buffers
we already have the code to handle these



CVS: cvs.openbsd.org: src

2013-03-27 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2013/03/27 06:37:49

Modified files:
sys/dev/pci/drm/i915: i915_dma.c 

Log message:
match recent linux and return whether the ring is initialised
for the has bsd/blt ring params instead of whether the hardware
has the ring.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ryan Thomas McBride
CVSROOT:/cvs
Module name:src
Changes by: mcbr...@cvs.openbsd.org 2013/03/27 07:32:29

Modified files:
sys/net: pf_ioctl.c 

Log message:
Use the correct src/dst ports depending on direction (one of src or dst was
wrong in each direction).

Report and fix from UMEZAWA Takeshi umez...@iij.ad.jp



CVS: cvs.openbsd.org: www

2013-03-27 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:www
Changes by: m...@cvs.openbsd.org2013/03/27 08:06:26

Modified files:
.  : want.html 

Log message:
Chris Jackman sent me a replacement PSU for a PowerMac, thanks!



CVS: cvs.openbsd.org: src

2013-03-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/27 08:30:11

Modified files:
sys/dev: softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
Rewrite the work unit handling code in the RAID 1/4/5/6 interrupt handlers.
This simplifies the code and will allow for easier conversion to the workq
based work unit completion routines. It also ensures that work units are
always removed from the pending queue and that colliders are started, even
in the event of an I/O failure.

ok krw@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2013/03/27 09:06:25

Modified files:
lib/libc/stdio : fmemopen.c open_memstream.c 
Added files:
lib/libc/stdio : open_wmemstream.c 

Log message:
Add an open_wmemstream(3) implementation and fix various issues for
fmemopen(3) and open_memstream(3).

With inputs from millert@, stsp@, guenther@, tedu@ and matthew@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2013/03/27 09:08:13

Modified files:
regress/lib/libc/fmemopen: fmemopentest.c 

Log message:
More test cases, especially when opening the stream in append an write
modes.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2013/03/27 09:41:04

Modified files:
sys/kern   : uipc_socket.c 

Log message:
Move soidle() into the big #ifdef SOCKET_SPLICE block to have it
all in one place.  Saves one additional #ifdef, no functional change.
OK mikeb@



CVS: cvs.openbsd.org: www

2013-03-27 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:www
Changes by: jas...@cvs.openbsd.org  2013/03/27 10:15:51

Modified files:
.  : octeon.html 

Log message:
sync; userland works.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2013/03/27 10:21:22

Modified files:
lib/libc/asr   : async_resolver.3 

Log message:
explicitely - explicitly;



CVS: cvs.openbsd.org: src

2013-03-27 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2013/03/27 10:39:30

Modified files:
usr.sbin/config: config.8 

Log message:
some updates from daniel dickman;



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/03/27 10:42:05

Modified files:
sys/crypto : crypto.c cryptodev.h 

Log message:
institute a hard cap on crypto devs instead of a useless wraparound check
ok beck



CVS: cvs.openbsd.org: src

2013-03-27 Thread Vadim Zhukov
CVSROOT:/cvs
Module name:src
Changes by: z...@cvs.openbsd.org2013/03/27 11:14:10

Modified files:
bin/pax: options.c pax.1 tar.c 

Log message:
Enable support for write_opt=nodir for ustar archives which helps to fix
issues with some crappy tar archive readers out there that rely on the
fact that directory entries ends up with / when created by GNU Tar, and
now I'm finishing this commit message by mentioning people who gave input
and okays: deraadt@ millert@ jmc@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2013/03/27 11:33:13

Modified files:
sys/arch/arm/conf: files.arm 
sys/arch/beagle/conf: files.beagle 

Log message:
Move generic armv7 files into arm's file list.

ok bmercer@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/03/27 11:51:17

Modified files:
distrib/sets/lists/base: md.vax 

Log message:
sync



CVS: cvs.openbsd.org: src

2013-03-27 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2013/03/27 12:32:05

Modified files:
sys/arch/octeon/octeon: machdep.c 

Log message:
fill in cpu_model.



CVS: cvs.openbsd.org: www

2013-03-27 Thread Antoine Jacoutot
CVSROOT:/cvs
Module name:www
Changes by: ajacou...@cvs.openbsd.org   2013/03/27 12:37:05

Modified files:
de : 53.html plat.html 
faq/nl : faq5.html 
faq/pf/nl  : pools.html 
ja : index.html 
nl : books.html crypto.html goals.html plat.html 
 tshirts.html 
openssh/ja : ftp.html index.html openbsd.html portable.html 
pt : crypto.html goals.html plat.html plus.html 

Log message:
Sync with Steelix CVS



CVS: cvs.openbsd.org: src

2013-03-27 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2013/03/27 13:46:35

Modified files:
distrib/octeon/ramdisk: install.md 

Log message:
fix wrapped line that snuck in an extra \n in a question.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2013/03/27 14:21:18

Modified files:
gnu/usr.bin/binutils-2.17/bfd: elflink.c 

Log message:
Revert the --as-needed logic to match the 2.15 logic. It is now aggressively
trying to avoid symbols needed by inter-library dependencies, assuming that
libraries are built with inter-library dependency information. Such is not
the case under OpenBSD and there are currently no plans to change this.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2013/03/27 14:23:52

Modified files:
sys/arch/i386/conf: GENERIC 

Log message:
Remove commented out tr(4) stanzas, since support for them has been removed
almost 6 years ago; Alexey Suslikov



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/03/27 14:28:22

Modified files:
lib/libossaudio: ossaudio.c soundcard.h 

Log message:
rename define to reflect current operating system, as in sys/compat
from tim van der molen



CVS: cvs.openbsd.org: www

2013-03-27 Thread Nick Holland
CVSROOT:/cvs
Module name:www
Changes by: n...@cvs.openbsd.org2013/03/27 18:12:28

Modified files:
faq: upgrade53.html 

Log message:
fontconf change is for 5.4, not 5.3.  Missing a # char.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2013/03/27 18:32:11

Modified files:
sys/net: if_gre.c pf.c 
sys/netinet: if_ether.c in_pcb.c ip_input.c 
sys/netinet6   : in6_src.c ip6_output.c raw_ip6.c 

Log message:
Unfortunately the satosin, sintosa, ifatoia, satosin6, sin6tosa,
ifatoia6 macros do not check the source type.  They just cast
anything.  Remove needless casts and do not use those macros if the
source type does not match.  Remove duplicate defines.
No binary change.  OK kettenis@ krw@



CVS: cvs.openbsd.org: www

2013-03-27 Thread Chris Cappuccio
CVSROOT:/cvs
Module name:www
Changes by: ch...@cvs.openbsd.org   2013/03/27 18:54:12

Modified files:
.  : events.html 

Log message:
slides, audio for PLUG march 19th talk



CVS: cvs.openbsd.org: src

2013-03-27 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2013/03/27 20:08:39

Modified files:
sys/isofs/cd9660: cd9660_vnops.c 
sys/isofs/udf  : udf_vnops.c 
sys/kern   : spec_vnops.c vfs_vops.c 
sys/miscfs/fifofs: fifo_vnops.c 
sys/miscfs/procfs: procfs_vnops.c 
sys/msdosfs: msdosfs_vnops.c 
sys/ntfs   : ntfs_vnops.c 
sys/sys: unistd.h 
sys/ufs/ufs: ufs_vnops.c 

Log message:
Handle the pathconf _PC_PATH_MAX, _PC_PIPE_BUF, _PC_ASYNC_IO,
_PC_PRIO_IO, and _PC_SYNC_IO names in VOP_PATHCONF(), as they're
fs-independent for us.  Since we don't support latter three on any
fs, we can also define the related _POSIX_{ASYNC,PRIO,SYNC}_IO
symbols in unistd.h (via sys/unistd.h) with value -1.

Also, zap pointless tty-only values from procfs(!).

ok beck@, deraadt@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/03/27 20:17:16

Modified files:
sys/nfs: nfs_vnops.c 

Log message:
a better try at pathconf for nfs. there may be lies, but they are better
lies than EINVAL, until we can uncover the truth.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/03/27 20:27:28

Modified files:
sys/nfs: nfs_vnops.c 

Log message:
add a comment that we are faking it until code to ask the server is written.
requested by deraadt



CVS: cvs.openbsd.org: src

2013-03-27 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2013/03/27 20:39:17

Modified files:
sys/kern   : vfs_syscalls.c 

Log message:
When updating fd_cdir or fd_rdir, put the new pointer in place
_before_ vrele()'ing the old one, so that you can't catch the process
with a vnode with no references.

Similarly, in checkdirs(), just count the needed releases and do
them all at the end.  (I think I saw this in FreeBSD.)

Original problem encountered by landry@ (yay for backtrace)
ok tedu@ deraadt@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/03/27 21:27:46

Modified files:
sys/kern   : vfs_init.c 
sys/sys: vnode.h 

Log message:
no need for vnode.h to include namei.h unconditionally
ok deraadt guenther



CVS: cvs.openbsd.org: src

2013-03-27 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2013/03/27 21:29:45

Modified files:
sys/isofs/cd9660: cd9660_vnops.c 
sys/kern   : spec_vnops.c 
sys/miscfs/fifofs: fifo_vnops.c 
sys/msdosfs: msdosfs_vnops.c 
sys/nfs: nfs_vnops.c 
sys/sys: unistd.h 
sys/ufs/ext2fs : ext2fs_extern.h ext2fs_vnops.c 
sys/ufs/ufs: ufs_vnops.c 
lib/libc/sys   : pathconf.2 
usr.bin/getconf: getconf.c 

Log message:
Add support for _PC_TIMESTAMP_RESOLUTION for ffs/mfs, cd9600, ext2,
msdos, NFS, fifos and devices, plus support for querying it in
getconf(2) and the requisite pathconf(2) manpage blurb

ok tedu@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/03/27 21:31:56

Modified files:
sys/dev/usb: uaudio.c ubsa.c ucycom.c udcf.c uhts.c umbg.c 
 umct.c umidi.c umidi_quirks.c umodem.c uplcom.c 
 usb.c uvideo.c uvscom.c 

Log message:
you probably don't need to include vnode.h or reboot.h. you most definitely
absolutely do not need to include vnode.h because it includes uvm_extern.h
and you want the idiotic TRUE FALSE defines from uvm.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/03/27 21:37:10

Modified files:
sys/sys: swap.h 

Log message:
it is no longer interesting that struct swapent is not compatible with a
vm system that was replaced over 10 years ago.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/03/27 21:39:22

Modified files:
sys/uvm: uvm_swap.c 

Log message:
do not copy additional kernel memory into the swapent.se_path[]
ok tedu



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/03/27 21:45:32

Modified files:
sys/compat/ossaudio: ossaudio.c 

Log message:
it is believed that the comment is referring to the define below.
all thinking performed by tim van der molen



CVS: cvs.openbsd.org: src

2013-03-27 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/03/27 21:58:03

Modified files:
sys/dev/usb: ehci.c if_aue.c if_axe.c if_cdce.c if_kue.c 
 if_mos.c if_smsc.c if_udav.c if_url.c 
 if_urndis.c if_urtw.c if_wi_usb.c if_zyd.c 
 ohci.c uaudio.c ubsa.c ubt.c ucom.c udcf.c 
 udl.c ugen.c uhci.c uhts.c uhub.c ulpt.c umbg.c 
 umct.c umidi.c umidi_quirks.c umodem.c 
 uoak_subr.c uoaklux.c uoakrh.c uoakv.c uow.c 
 uplcom.c urio.c usb.c usb_mem.c usb_subr.c 
 usbdi.c usbdi_util.c usbdivar.h usbf_subr.c 
 uscanner.c usps.c uthum.c utrh.c utwitch.c 
 uvideo.c uvscom.c 

Log message:
proc.h is way too much header for usb to handle.



CVS: cvs.openbsd.org: src

2013-03-27 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/03/27 22:12:12

Modified files:
sys/dev/pci: viomb.c 
sys/dev/usb: if_athn_usb.c 

Log message:
removed unneccessary .h file



CVS: cvs.openbsd.org: src

2013-03-27 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2013/03/27 23:13:07

Modified files:
sys/dev/pci/drm: i915_drm.h 
sys/dev/pci/drm/i915: i915_drv.c i915_drv.h i915_gem.c 

Log message:
add the ioctls to get/set the caching level of a buffer object