CVS: cvs.openbsd.org: www

2013-04-17 Thread Charles Longeau
CVSROOT:/cvs
Module name:www
Changes by: c...@cvs.openbsd.org2013/04/17 00:20:07

Modified files:
opensmtpd  : portable.html 

Log message:
add new link



CVS: cvs.openbsd.org: src

2013-04-17 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2013/04/17 02:25:37

Modified files:
sys/netinet: in.c 

Log message:
Simplify the check to call in_ifinit() by merging two conditional
viariables.

ok mikeb@



CVS: cvs.openbsd.org: src

2013-04-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/04/17 02:41:41

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

Log message:
%zu format for size_t.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2013/04/17 03:04:09

Modified files:
usr.bin/ssh: session.c 

Log message:
revert rev 1.262; it fails because uid is already set here.  ok djm@



CVS: cvs.openbsd.org: src

2013-04-17 Thread Marcus Glocker
CVSROOT:/cvs
Module name:src
Changes by: mgloc...@cvs.openbsd.org2013/04/17 05:53:10

Modified files:
share/man/man4 : usb.4 
sys/dev/usb: usb.c usb.h 

Log message:
Add new ioctl command USB_DEVICE_GET_DDESC to usb(4) to retrieve the
device descriptor.

Help and ok mpi@



CVS: cvs.openbsd.org: www

2013-04-17 Thread Brett Mahar
CVSROOT:/cvs
Module name:www
Changes by: br...@cvs.openbsd.org   2013/04/17 06:50:15

Modified files:
.  : plus.html 

Log message:
plus.html for April 8-14, with input from jj@.



CVS: cvs.openbsd.org: xenocara

2013-04-17 Thread Okan Demirmen
CVSROOT:/cvs
Module name:xenocara
Changes by: o...@cvs.openbsd.org2013/04/17 07:30:38

Modified files:
app/cwm: calmwm.h conf.c group.c parse.y 

Log message:
add conf_ignore and move group_make_autogroup to conf_autogroup to match.



CVS: cvs.openbsd.org: xenocara

2013-04-17 Thread Okan Demirmen
CVSROOT:/cvs
Module name:xenocara
Changes by: o...@cvs.openbsd.org2013/04/17 07:31:47

Modified files:
app/cwm: conf.c 

Log message:
zap extra space



CVS: cvs.openbsd.org: xenocara

2013-04-17 Thread Okan Demirmen
CVSROOT:/cvs
Module name:xenocara
Changes by: o...@cvs.openbsd.org2013/04/17 07:52:20

Modified files:
app/cwm: calmwm.h client.c xutil.c 

Log message:
slightly rework WM_STATE set/get to make it less ambigious; will be more clear
on what needs to change to make it right in the end.



CVS: cvs.openbsd.org: xenocara

2013-04-17 Thread Okan Demirmen
CVSROOT:/cvs
Module name:xenocara
Changes by: o...@cvs.openbsd.org2013/04/17 07:57:06

Modified files:
app/cwm: calmwm.h client.c xutil.c 

Log message:
mechanical xu_{get,set}state - xu_{get,set}_wm_state change



CVS: cvs.openbsd.org: src

2013-04-17 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2013/04/17 08:19:32

Modified files:
sys/netinet: ip_input.c 

Log message:
Replace some casts by ifatoia() and sintosa().

ok krw@, mikeb@



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 08:52:31

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

Log message:
(long long) and %lld for time_t output
ok nicm



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 09:01:26

Modified files:
usr.bin/file   : file.h print.c softmagic.c 

Log message:
variety of fixes to correct large time_t code.  it is quite broken upstream.
ok chl



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 09:02:38

Modified files:
usr.sbin/smtpd : queue_backend.c smtpctl.c smtpd.c 

Log message:
large time_t problems
ok gilles



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 09:31:49

Modified files:
lib/libevent   : event.c 

Log message:
(long long) and %lld for big time_t
ok nicm, who will pass it upstream



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 09:33:02

Modified files:
lib/libevent   : event_tagging.c 

Log message:
evtag_marshal_timeval() truncates tv_sec to 32 bits, not passing the high
bits.  Mark it with XXX 2038.  I think it is poor style to create a
marshalling layer which throws away information someone might need.
ok nicm, who will pass the news upstream and ask for them to fix it



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 09:55:46

Modified files:
usr.sbin/amd/amd: nfs_start.c 
usr.sbin/amd/amq: amq.c 
usr.sbin/amd/fsinfo: fsi_util.c 

Log message:
first few large time_t changes; more might be required -- still digging.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 09:58:45

Modified files:
usr.bin/at : at.c 
usr.sbin/cron  : atrun.c cron.c externs.h funcs.h misc.c 

Log message:
Adapt cron and at for future large time_t and tv_sec types.  These were some
of the harder programs to adapt, so let me know if problems happen.
tested by guenther, gilles, chl, others



CVS: cvs.openbsd.org: src

2013-04-17 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2013/04/17 10:22:26

Modified files:
sys/nfs: nfs_vfsops.c nfsdiskless.h 
sys/uvm: uvm_swap.c 

Log message:
Unbreak and cleanup diskless swap automount.

Initial diff to replace unclear short variable name nd by
nfs_diskless and to display the real nfs path to swap in pstat -s by
deraadt@

Testing by me revealed diskless swap automount was broken since some
time.  Fix this by passing and using the correct vnode in nfs_diskless
to swapmount().

Lots of input / help deraadt@, tweaks by deraadt@
OK deraadt@



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 10:24:59

Modified files:
sys/sys: memrange.h 

Log message:
pretty



CVS: cvs.openbsd.org: src

2013-04-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/04/17 11:39:29

Modified files:
lib/libc/regex : engine.c regcomp.c regex2.h regexec.c regfree.c 

Log message:
silence some warnings by adding prototypes, casts, and headers as
appropriate. in regex, stop using the struct hack for a fixed size array



CVS: cvs.openbsd.org: src

2013-04-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/04/17 11:40:35

Modified files:
lib/libc/crypt : crypt2.c 
lib/libc/gen   : getcwd.c getgrent.c getgrouplist.c isatty.c 
 readdir_r.c scandir.c 
lib/libc/rpc   : xdr_rec.c 
lib/libc/stdio : fputws.c vfscanf.c vfwprintf.c wcio.h 
lib/libc/stdlib: strtol.c strtoul.c 
lib/libc/termios: tcgetpgrp.c tcsetpgrp.c 
lib/libc/time  : localtime.c 

Log message:
add some prototypes, casts, includes, parenthesis, and whatnot to
silence some warnings.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 11:40:53

Modified files:
libexec/talkd  : announce.c 

Log message:
do not mix concepts of gettimeofday(), tv_sec, and localtime() in a
useless fashion.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 11:43:55

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

Log message:
zlib info header is 32-bit; handle for localtime() call; ok millert



CVS: cvs.openbsd.org: src

2013-04-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/04/17 11:44:03

Modified files:
sys/kern   : subr_pool.c 

Log message:
check that the pool we are about to init isn't already on the list in
order to detect double init mistakes. add a similar check and rearrange
pool_destory to detect the opposite mistake.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/04/17 11:46:53

Modified files:
sys/uvm: uvm_map.c 

Log message:
do not permanently avoid the BRKSIZ gap in the heap for mmap. after some
allocations have been made, open it up. this is a variation on a previous
change that was lost in the great uvm map rewrite. allows some platforms,
notably i386, to fully utilize their address space.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/04/17 11:49:58

Modified files:
sys/dev/usb: udl.c 

Log message:
uvm_extern.h not uvm.h



CVS: cvs.openbsd.org: src

2013-04-17 Thread Gerhard Roth
CVSROOT:/cvs
Module name:src
Changes by: gerh...@cvs.openbsd.org 2013/04/17 12:35:47

Modified files:
sys/arch/i386/isa: clock.c 
sys/arch/amd64/isa: clock.c 

Log message:
Don't set the frequency of the statclock if we don't have one.
Prevents strange hang-ups during reboot. Joint work with hshoexer@.

ok mikeb@, mlarkin@, miod@, deraadt@



CVS: cvs.openbsd.org: src

2013-04-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/04/17 12:40:58

Modified files:
lib/libc/stdlib: strtonum.c 

Log message:
the tiniest of style tweaks



CVS: cvs.openbsd.org: src

2013-04-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/04/17 12:53:27

Modified files:
lib/libc/stdlib: strtonum.3 

Log message:
surround the error strings with quotes to clarify exactly which strings
the function is going to return.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2013/04/17 13:13:23

Modified files:
lib/libc/asr   : asr.c 

Log message:
check return value of strdup(), fix mem leak in error path and take
into account that asr_use_resolver() can return NULL; ok tedu@ eric@



CVS: cvs.openbsd.org: src

2013-04-17 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2013/04/17 13:26:10

Modified files:
usr.sbin/dhcpd : db.c dhcpd.h parse.c 

Log message:
Replace hand-rolled date printing/parsing code with strftime()/strptime().
Use timegm() because all the dates are in UTC and the 'standard'
routines can't handle the truth.

Remove some 'time_t is 32bits' assumptions.

Print 'UTC' at the end of dates in the leases file, rather than
mentioning that all dates are UTC in a comment at the top of the
file.

Feedback and suggestions from guenther@, kettenis@, otto@, tedu@,
deraadt@.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2013/04/17 14:04:05

Modified files:
sys/dev/pci/drm/i915: i915_dma.c i915_drv.c i915_drv.h 
  i915_gem.c i915_gem_evict.c 
  i915_gem_execbuffer.c i915_irq.c 
  intel_display.c intel_overlay.c intel_pm.c 
  intel_ringbuffer.c 

Log message:
Another round of reducing diffs with Linux code.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2013/04/17 14:15:14

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

Log message:
Add support for 16bpp mode to code that interfaces with the rasops(9) code.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 14:17:33

Modified files:
usr.bin/ar : archive.c archive.h 
usr.bin/ranlib : build.c 

Log message:
Handle greater time_t, so that .a files work after 2038.
ok miod



CVS: cvs.openbsd.org: src

2013-04-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2013/04/17 15:15:23

Modified files:
gnu/usr.bin/binutils/ld/emulparams: elf32m88k.sh 

Log message:
Crank MAXPAGESIZE from 4KB to 64KB to match what SVR4/m88k and DG/UX do.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2013/04/17 15:19:17

Modified files:
gnu/usr.bin/binutils/bfd: elf32-m88k.c 
gnu/usr.bin/binutils/include/elf: m88k.h 

Log message:
Define and fill machine-specific DT_88K_PLT{START,END} _DYNAMIC tags when
creating objects with a .plt (either shared libraries or dynamic binaries).
These tags contain the start and end address of the plt, relative to the
beginning of the object.

This will (eventually) allow ld.so to find the area spanned by the plt more
easily, and also matches what SVR4/m88k does.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2013/04/17 15:34:58

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

Log message:
Also accelerate scrolling backwards.



CVS: cvs.openbsd.org: src

2013-04-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2013/04/17 17:22:42

Modified files:
sys/uvm: uvm_map.c 

Log message:
it is better if we always start addr at something reasonable, and
then move it up. previous revision would leave addr uninitialized.
pointed out by oga at nicotinebsd.org



CVS: cvs.openbsd.org: src

2013-04-17 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2013/04/17 20:16:08

Modified files:
usr.bin/ssh: sftp.c 

Log message:
make sftp -q do what it says on the sticker: hush everything but errors;
ok dtucker@



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 20:28:48

Modified files:
usr.bin/pr : pr.c 

Log message:
struct timezone is so 1980



CVS: cvs.openbsd.org: src

2013-04-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2013/04/17 20:29:59

Modified files:
usr.sbin/wsmoused: wsmoused.c 

Log message:
struct timezone is so 1980



CVS: cvs.openbsd.org: src

2013-04-17 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2013/04/17 20:46:12

Modified files:
regress/usr.bin/ssh: Makefile 
Added files:
regress/usr.bin/ssh: sftp-chroot.sh 

Log message:
test sshd ChrootDirectory+internal-sftp; feedback  ok dtucker@