CVS commit: src/distrib/utils/sysinst

2010-01-02 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jan 2 18:06:58 UTC 2010 Modified Files: src/distrib/utils/sysinst: aout2elf.c disks.c util.c wskbd.c src/distrib/utils/sysinst/arch/acorn32: md.c src/distrib/utils/sysinst/arch/cobalt: md.c

CVS commit: src/distrib/utils/sysinst/arch

2010-01-02 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jan 2 20:54:46 UTC 2010 Modified Files: src/distrib/utils/sysinst/arch/mvme68k: md.c src/distrib/utils/sysinst/arch/x68k: md.c Log Message: Fix another couple of signed v unsigned comparisons of disk block numbers. To

CVS commit: src/distrib/utils/sysinst

2010-01-02 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jan 2 21:16:47 UTC 2010 Modified Files: src/distrib/utils/sysinst: Makefile.inc defs.h label.c mbr.c Log Message: Change most of the variables that hold disk sector number to be (at least) uint32_t. Might make sysinst work on

CVS commit: src/sbin/fdisk

2009-12-23 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Dec 23 18:50:40 UTC 2009 Modified Files: src/sbin/fdisk: fdisk.c Log Message: Put #endif in correct place - fixes PR/42500 Update usage() for -A, and rename one of the variables for clarity. To generate a diff of this commit:

CVS commit: src/sbin/fdisk

2009-12-23 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Dec 23 20:56:18 UTC 2009 Modified Files: src/sbin/fdisk: fdisk.8 Log Message: Add info for -A ptn_alignment[/ptn_0_offset] To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 src/sbin/fdisk/fdisk.8 Please note that

CVS commit: src/sys/kern

2009-12-22 Thread David Laight
Module Name:src Committed By: dsl Date: Tue Dec 22 20:50:47 UTC 2009 Modified Files: src/sys/kern: kern_event.c Log Message: Use sizeof correct type, not pointer to wrong type. Fixes PR/42498. This has been wrong since the initial import! To generate a diff of this

CVS commit: src/sbin/fdisk

2009-12-22 Thread David Laight
Module Name:src Committed By: dsl Date: Tue Dec 22 21:04:38 UTC 2009 Modified Files: src/sbin/fdisk: fdisk.c Log Message: Editing partitions larger than 1TB works better if 'decimal' returns 64 bit integer values! To generate a diff of this commit: cvs rdiff -u -r1.127

CVS commit: src/sbin/fdisk

2009-12-22 Thread David Laight
Module Name:src Committed By: dsl Date: Tue Dec 22 21:55:12 UTC 2009 Modified Files: src/sbin/fdisk: fdisk.c Log Message: Add support for partition being aligned on non-cylinder boundaries. Info can be specified with -A parameter. Default is based on how the first

CVS commit: src/sys

2009-12-20 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 20 09:36:06 UTC 2009 Modified Files: src/sys/arch/xen/xen: xenevt.c src/sys/compat/svr4: svr4_net.c src/sys/compat/svr4_32: svr4_32_net.c src/sys/dev/dmover: dmover_io.c src/sys/dev/putter:

CVS commit: src/sbin/newfs

2009-12-20 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 20 15:21:13 UTC 2009 Modified Files: src/sbin/newfs: Makefile newfs.c Log Message: Push the mount path for mount_mfs through realpath(). This matches what other fs do. Fixes PR/20362 To generate a diff of this commit: cvs

CVS commit: src/sbin/fdisk

2009-12-20 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 20 17:32:09 UTC 2009 Modified Files: src/sbin/fdisk: fdisk.c Log Message: Add a large comment about disk geometries. Rename (with #defines) the variables use for aligning partitions to separate them from the bios geometry.

Re: CVS commit: src/sys/kern

2009-12-16 Thread David Laight
io on that fd.) David -- David Laight: da...@l8s.co.uk

Re: CVS commit: src/sys/kern

2009-12-16 Thread David Laight
On Wed, Dec 16, 2009 at 06:24:04AM +, David Holland wrote: On Tue, Dec 15, 2009 at 06:35:18PM +, David Laight wrote: Modified Files: src/sys/kern: sys_pipe.c Log Message: Don't ERESTART write() calls for now. I suspect some programs don't allow for the partial

CVS commit: src/sys/kern

2009-12-15 Thread David Laight
Module Name:src Committed By: dsl Date: Tue Dec 15 18:35:18 UTC 2009 Modified Files: src/sys/kern: sys_pipe.c Log Message: Don't ERESTART write() calls for now. I suspect some programs don't allow for the partial transfer. To generate a diff of this commit: cvs rdiff -u

Re: CVS commit: src/sys/kern

2009-12-14 Thread David Laight
On Mon, Dec 14, 2009 at 06:21:55AM +, David Holland wrote: On Sun, Dec 13, 2009 at 08:02:24PM +, David Laight wrote: Log Message: Another, better, fix for PR/26567. Only sleep once within each pipe_read/pipe_write call. If there is no data/space available after we wakeup

CVS commit: src/sys

2009-12-13 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 13 18:27:02 UTC 2009 Modified Files: src/sys/kern: sys_pipe.c src/sys/sys: pipe.h Log Message: Revert most of the previous change. Only one fd needs clobbering, not all fds that reference the pipe. This may be what

CVS commit: src/sys/kern

2009-12-13 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 13 20:02:23 UTC 2009 Modified Files: src/sys/kern: sys_pipe.c Log Message: Another, better, fix for PR/26567. Only sleep once within each pipe_read/pipe_write call. If there is no data/space available after we wakeup return

CVS commit: src/sys/kern

2009-12-12 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Dec 12 17:03:19 UTC 2009 Modified Files: src/sys/kern: init_sysctl.c Log Message: Always set L_INMEM to maintain binary compatibility. To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169 src/sys/kern/init_sysctl.c

CVS commit: src/sys/kern

2009-12-12 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Dec 12 17:29:34 UTC 2009 Modified Files: src/sys/kern: init_sysctl.c Log Message: Report L_INMEM in the lwp info as well. To generate a diff of this commit: cvs rdiff -u -r1.169 -r1.170 src/sys/kern/init_sysctl.c Please note

CVS commit: src/sys/kern

2009-12-12 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Dec 12 17:47:05 UTC 2009 Modified Files: src/sys/kern: sys_select.c Log Message: Bounding the 'nfds' arg to poll() at the current process limit for actual open files is rather gross - the poll map isn't required to be dense.

CVS commit: src/sys/kern

2009-12-12 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Dec 12 17:48:54 UTC 2009 Modified Files: src/sys/kern: subr_prof.c Log Message: Fix comment for arg types of sys_profil(). To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/sys/kern/subr_prof.c Please note

CVS commit: src/sys

2009-12-12 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Dec 12 21:28:04 UTC 2009 Modified Files: src/sys/kern: sys_pipe.c src/sys/sys: pipe.h Log Message: Add support for unblocking read/write when close called. Fixes PR/26567 for pipes. (NB ad backed out the fix for sockets)

CVS commit: src/sys/kern

2009-12-10 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Dec 10 20:55:17 UTC 2009 Modified Files: src/sys/kern: sys_pipe.c Log Message: Avoid leaking a mutex_obj when pipe_create() fails for the read pipe. Remove the unused argument from pipeclose(). To generate a diff of this

CVS commit: src/sys

2009-12-09 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Dec 9 21:33:00 UTC 2009 Modified Files: src/sys/arch/xen/xen: xenevt.c src/sys/compat/svr4: svr4_net.c src/sys/compat/svr4_32: svr4_32_net.c src/sys/dev/dmover: dmover_io.c src/sys/dev/putter:

Re: CVS commit: src/distrib/sets

2009-12-06 Thread David Laight
$(case x in x) echo hello;; esac) David -- David Laight: da...@l8s.co.uk

CVS commit: src/sys/altq

2009-12-06 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 6 14:03:23 UTC 2009 Modified Files: src/sys/altq: files.altq Log Message: Move BLUE_STATS to a commented out line since it is always enabled in the source file. Fixes PR/35390. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/dev

2009-12-06 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 6 16:33:19 UTC 2009 Modified Files: src/sys/dev: vnd.c vndvar.h Log Message: Make vnd_size (the returned size) 64 bit, keeping old field for ioctl compatibility. Both fields are now unsigned. Add compatibility for the old

CVS commit: src/usr.sbin/vnconfig

2009-12-06 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 6 16:35:16 UTC 2009 Modified Files: src/usr.sbin/vnconfig: vnconfig.c Log Message: VNDIOCSET now returns a 64bit unsigned size. Use compat ioctls if the kernel rejects the request. Fixes PR/41873. To generate a diff of

CVS commit: src/sys/dist/pf/net

2009-12-06 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 6 16:46:11 UTC 2009 Modified Files: src/sys/dist/pf/net: pf_if.c Log Message: If pfi_address_add() has to extend the buffer, copy the data in the right direction! Fixes PR/41939. To generate a diff of this commit: cvs

CVS commit: src/sys/kern

2009-12-06 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Dec 6 20:26:55 UTC 2009 Modified Files: src/sys/kern: sys_pipe.c Log Message: Correct comment, pipelock() no longer releases the mutex. To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/kern/sys_pipe.c

Re: CVS commit: src/distrib/sets

2009-12-05 Thread David Laight
-- David Laight: da...@l8s.co.uk

CVS commit: src/sys/dev/pci

2009-12-05 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Dec 5 16:30:39 UTC 2009 Modified Files: src/sys/dev/pci: pcidevs Log Message: Correct what are clearly typos leading to duplicate vendor:product pairs. Where possible values have been checked against the pcidatabase and x.org.

CVS commit: src/sys/arch/i386/stand/bootxx

2009-11-30 Thread David Laight
Module Name:src Committed By: dsl Date: Mon Nov 30 21:37:16 UTC 2009 Modified Files: src/sys/arch/i386/stand/bootxx: pbr.S Log Message: Update 'oemname' to NetBSD60. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/i386/stand/bootxx/pbr.S

CVS commit: src/sys/arch/i386/stand/bootxx

2009-11-30 Thread David Laight
Module Name:src Committed By: dsl Date: Mon Nov 30 21:40:35 UTC 2009 Modified Files: src/sys/arch/i386/stand/bootxx: Makefile.bootxx Log Message: Move relocation address to lower memory (0x1000) further away from the BIOS 40:0 segment than previously but giving more room

Re: CVS commit: src/share/mk

2009-11-29 Thread David Laight
. Tested by running build.sh distribution. Some versions of make error ${V} when V is undefined. Safer is ${V:U} David -- David Laight: da...@l8s.co.uk

Re: CVS commit: src/gnu/dist/gdb6/gdb

2009-11-28 Thread David Laight
that referes to the middle of a struct, not setting a memory location to the address of the it. David -- David Laight: da...@l8s.co.uk

Re: CVS commit: src/sys/compat

2009-11-28 Thread David Laight
On Sat, Nov 28, 2009 at 11:21:30PM +0100, Joerg Sonnenberger wrote: Are you sure about the PR? should have been 31368 :-( David -- David Laight: da...@l8s.co.uk

CVS commit: src/sys/compat/irix

2009-11-28 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 28 20:09:56 UTC 2009 Modified Files: src/sys/compat/irix: irix_sysmp.c Log Message: Set irm-bufmem = uvmexp.filepages; as suggested in PR/30408 To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22

CVS commit: src/usr.bin/genassym

2009-11-28 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 28 20:30:02 UTC 2009 Modified Files: src/usr.bin/genassym: genassym.sh Log Message: Use shell builtin getopts instead of getopt(1). Fixes PR/30425 To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/usr.bin/getopt

2009-11-28 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 28 20:36:45 UTC 2009 Modified Files: src/usr.bin/getopt: getopt.1 Log Message: Add a note telling people to use the shell getopts builtin. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/sys/compat

2009-11-28 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 28 22:11:42 UTC 2009 Modified Files: src/sys/compat/linux/common: linux_socket.c linux_socket.h linux_sockio.h src/sys/compat/sys: sockio.h Log Message: Add LINUX_SIOCGIFMTU and LINUX_IP_HDRINCL support.

CVS commit: src/sys/kern

2009-11-28 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 28 22:38:07 UTC 2009 Modified Files: src/sys/kern: subr_disk.c Log Message: When truncating a request in bounds_check_with_mediasize() multiply by the provided sector size instead of 512. Fixes last bit of PR/31565 To

Re: CVS commit: src/gnu/dist/gdb6/gdb

2009-11-27 Thread David Laight
for defining a symbol is MI. David -- David Laight: da...@l8s.co.uk

CVS commit: src/external/gpl2/xcvs/dist/src

2009-11-27 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Nov 27 18:38:29 UTC 2009 Modified Files: src/external/gpl2/xcvs/dist/src: zlib.c Log Message: Fix compressed server accesses. According to http://cvs.savannah.gnu.org/viewvc/ccvs/src/?root=cvs this was broken between revs 1.29

CVS commit: src/sys/dev/isa

2009-11-27 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Nov 27 20:56:29 UTC 2009 Modified Files: src/sys/dev/isa: if_ntwoc_isa.c Log Message: Add patch from PR/11805 To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/dev/isa/if_ntwoc_isa.c Please note that diffs

CVS commit: src/common/lib/libc/arch/x86_64/string

2009-11-22 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Nov 22 17:25:47 UTC 2009 Modified Files: src/common/lib/libc/arch/x86_64/string: bcopy.S Log Message: Align to the destination buffer. This probably costs 1 clock (on modern cpus) in the normal case. But gives a big benefit when

CVS commit: src/sys/dev/pcmcia

2009-11-22 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Nov 22 21:18:42 UTC 2009 Modified Files: src/sys/dev/pcmcia: if_cnw.c Log Message: Remove splurious interrupt message. The IRQ might be shared. Fixes PR/11410 To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52

CVS commit: src/sys/arch/i386/stand/lib

2009-11-21 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 21 11:52:57 UTC 2009 Modified Files: src/sys/arch/i386/stand/lib: bios_disk.S biosmemps2.S dos_file.S Log Message: Preserve %ds over bios calls. Not strickly necessary because real_to_prot doesn't normally rely on in.

CVS commit: src/sys/arch/i386/stand/lib

2009-11-21 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 21 11:54:47 UTC 2009 Modified Files: src/sys/arch/i386/stand/lib: realprot.S Log Message: Replace EPIA_HACK code with a version that 'just' trashes any return address cache. This seems to be rather more effective! This

CVS commit: src/common/lib/libc/arch/x86_64/string

2009-11-21 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 21 19:52:54 UTC 2009 Modified Files: src/common/lib/libc/arch/x86_64/string: bcopy.S Log Message: Avoid doing two 'rep movs' operations. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/sys/sys

2009-11-21 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 21 19:54:49 UTC 2009 Modified Files: src/sys/sys: lwp.h Log Message: Revert last change - don't expose lwp_getpcb() to userspace. To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125 src/sys/sys/lwp.h Please

CVS commit: src/sys/arch/i386/i386

2009-11-21 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 21 19:59:51 UTC 2009 Modified Files: src/sys/arch/i386/i386: db_trace.c Log Message: Don't call lwp_getpcb() when not KERNEL. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/arch/i386/i386/db_trace.c

CVS commit: src/sys/arch/i386/stand

2009-11-20 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Nov 20 17:28:19 UTC 2009 Modified Files: src/sys/arch/i386/stand/boot: Makefile.boot src/sys/arch/i386/stand/bootxx: Makefile.bootxx src/sys/arch/i386/stand/mbr: Makefile.mbr Log Message: Change relay address for

CVS commit: src/sys/arch/i386/stand/lib

2009-11-20 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Nov 20 19:25:38 UTC 2009 Modified Files: src/sys/arch/i386/stand/lib: bootinfo_biosgeom.c Log Message: EXT13_DEVPATH_SIGNATURE should be EXTINFO_DEVPATH_SIGNATURE To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/sys/arch/i386/stand/lib

2009-11-19 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Nov 19 22:08:14 UTC 2009 Modified Files: src/sys/arch/i386/stand/lib: dump_eax.S Log Message: Shorten slightly To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/i386/stand/lib/dump_eax.S Please note

CVS commit: src/sys/arch/i386/stand

2009-11-19 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Nov 19 22:10:03 UTC 2009 Modified Files: src/sys/arch/i386/stand/lib: message.S src/sys/arch/i386/stand/mbr: mbr.S Log Message: Move code for outputting directly to the serial port into message.S Allows it to be enabled

CVS commit: src/sys/arch/i386/stand/lib

2009-11-19 Thread David Laight
Exp $ */ + +/*- + * Copyright (c) 2003 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by David Laight. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted

CVS commit: src/sys/arch/i386/stand/boot

2009-11-18 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Nov 18 20:33:39 UTC 2009 Modified Files: src/sys/arch/i386/stand/boot: Makefile.boot Log Message: Keep the output of 'ld' prior to extracting the image. Useful for debugging (etc) since it contains the symbols. To generate a

CVS commit: src/sys/arch/i386/stand/mbr

2009-11-18 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Nov 18 20:51:22 UTC 2009 Modified Files: src/sys/arch/i386/stand/mbr: mbr.S Log Message: Adjust the way references to the unrelocated addresses are done so that the address doesn't have to be passed in. Adjust #ifdef so that

CVS commit: src/sys/arch/i386/stand/mbr/mbr

2009-11-18 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Nov 18 21:04:12 UTC 2009 Modified Files: src/sys/arch/i386/stand/mbr/mbr: Makefile Log Message: Reinstate the banner. This was added to detect problems when the mbr code gets written into the pbr. (When the code loops reading

Re: CVS commit: src/sys/conf

2009-11-15 Thread David Laight
On Sun, Nov 15, 2009 at 08:10:20PM +, David Holland wrote: On Sun, Nov 15, 2009 at 01:39:00PM +, David Laight wrote: Avoids problems with awk processing floating point numbers when LC_NUMERIC give a decimal point of ','. Isn't it a bug in awk for the input language to be broken

CVS commit: src/sys/conf

2009-11-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Nov 15 13:39:00 UTC 2009 Modified Files: src/sys/conf: osrelease.sh Log Message: Use shell builtins instead of awk and sed. Avoids problems with awk processing floating point numbers when LC_NUMERIC give a decimal point of ','.

CVS commit: src/sys/conf

2009-11-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Nov 15 14:40:18 UTC 2009 Modified Files: src/sys/conf: osrelease.sh Log Message: Get patch part of version from comment. To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/sys/conf/osrelease.sh Please note

CVS commit: src/dist/nvi/cl

2009-11-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Nov 15 18:23:08 UTC 2009 Modified Files: src/dist/nvi/cl: cl_funcs.c Log Message: Need %zu for size_t To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/dist/nvi/cl/cl_funcs.c Please note that diffs are not

CVS commit: src/sys/conf

2009-11-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Nov 15 18:41:08 UTC 2009 Modified Files: src/sys/conf: osrelease.sh Log Message: Fix borkeage To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/conf/osrelease.sh Please note that diffs are not public

CVS commit: src/dist/nvi

2009-11-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Nov 15 18:43:28 UTC 2009 Modified Files: src/dist/nvi/cl: cl_funcs.c src/dist/nvi/ex: ex_shell.c ex_util.c src/dist/nvi/vi: vi.c Log Message: Fix all formats for 64bit builds To generate a diff of this commit:

CVS commit: src/sys/kern

2009-11-14 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 14 13:18:41 UTC 2009 Modified Files: src/sys/kern: tty_subr.c Log Message: Christos was worried about clrbits() being called with a length of zero. This can't happen, but rework so it doesn't matter. Remove 'optimisation'

CVS commit: src/sys/kern

2009-11-13 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Nov 13 19:00:15 UTC 2009 Modified Files: src/sys/kern: tty_subr.c Log Message: Change args to clrbits() to be unsigned for efficiency. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/kern/tty_subr.c

CVS commit: src/sys/kern

2009-11-13 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Nov 13 19:15:24 UTC 2009 Modified Files: src/sys/kern: tty_subr.c Log Message: Fix clrbits() so that it doesn't mask no bits out of the byte after the range (when the last bit to be cleared is the msb of a byte). Fixes PR/42312

CVS commit: src/sys/arch/amd64/amd64

2009-11-13 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Nov 13 22:49:47 UTC 2009 Modified Files: src/sys/arch/amd64/amd64: copy.S Log Message: tlbstate is 'int', so use 'cmpl' not 'cmpq'. Fixes gprof on amd64 PR/40960. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

Re: CVS commit: src/external/bsd/mdocml/dist

2009-11-07 Thread David Laight
On Sat, Nov 07, 2009 at 12:48:16AM -0700, M. Warner Losh wrote: which ones have the same name, but different behavior on OS X? A quick read of the man pages suggests they are identical... Check about whether they need a \n at the end of the format. David -- David Laight: da

CVS commit: src/sys/rump/librump/rumpkern

2009-11-07 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Nov 7 12:08:35 UTC 2009 Modified Files: src/sys/rump/librump/rumpkern: pmap_stub.c Log Message: Fix stub prototype To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/rump/librump/rumpkern/pmap_stub.c

Re: CVS commit: src

2009-11-03 Thread David Laight
want to assume that the kernel is always compiled using %ebp as a frame pointer - x86 has few enough registers that freeing %ebp is probably a performance gain! David -- David Laight: da...@l8s.co.uk

CVS commit: src/usr.bin/systat

2009-11-01 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Nov 1 22:08:14 UTC 2009 Modified Files: src/usr.bin/systat: globalcmds.c Log Message: Correctly count number of chars output so that help isn't blank if the terminal is too narrow. Not ideal since the last command isn't shown

CVS commit: src/lib/libcurses

2009-11-01 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Nov 1 22:11:27 UTC 2009 Modified Files: src/lib/libcurses: get_wch.c getch.c tty.c Log Message: Move calls to __restore_termios() into the failing path of the functions that fail - instead of in most of the callers. All rather

CVS commit: src/dist/nvi/ex

2009-10-31 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Oct 31 14:30:55 UTC 2009 Modified Files: src/dist/nvi/ex: ex_write.c Log Message: Save command in :w !command for later :w !! Fixes PR/8169 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/dist/nvi/ex/ex_write.c

CVS commit: src/dist/nvi/regex

2009-10-31 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Oct 31 20:11:53 UTC 2009 Modified Files: src/dist/nvi/regex: regexec.c Log Message: Fix regexp on LP64 systems. By the time 'states1' was expanded, it became 'char *' so the code tried to put 64 bits into an int! Fixed PR/41924

CVS commit: src/sbin/fdisk

2009-10-31 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Oct 31 20:41:00 UTC 2009 Modified Files: src/sbin/fdisk: fdisk.c Log Message: Make absence of /usr/mdec/mbr only a warning. Fixes PR/26510 To generate a diff of this commit: cvs rdiff -u -r1.123 -r1.124 src/sbin/fdisk/fdisk.c

Re: CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2009-10-29 Thread David Laight
fail because another lwp owns it ... I hope it is only the checkin comment that is inverted! David -- David Laight: da...@l8s.co.uk

Re: CVS commit: src/lib/libc/stdio

2009-10-26 Thread David Laight
I've been caught out once too often by an unexpected cast converting beteen pointers and integers. Some of these lint checks really should have been killed once ANSI function prototypes were invernted. David -- David Laight: da...@l8s.co.uk

CVS commit: src/lib/libc/stdio

2009-10-25 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Oct 25 17:09:34 UTC 2009 Modified Files: src/lib/libc/stdio: asprintf.c fgets.c fgetwc.c fread.c fvwrite.c getdelim.c Log Message: Lint is differentially far too picky... Remove some warnings that only appear on i386

CVS commit: src/sys/arch/i386/stand/cdboot

2009-10-24 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Oct 24 10:28:30 UTC 2009 Modified Files: src/sys/arch/i386/stand/cdboot: cdboot.S Log Message: Add some illumination ... To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/i386/stand/cdboot/cdboot.S

CVS commit: src/sys/arch/i386/stand/cdboot

2009-10-24 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Oct 24 11:23:07 UTC 2009 Modified Files: src/sys/arch/i386/stand/cdboot: cdboot.S Log Message: Support reading /boot 64k. Based on the patch from Izumi Tsutsui. Compiles but not actually tested! Fixes PR/42202 To generate a

CVS commit: src/sys/arch/i386/stand/cdboot

2009-10-24 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Oct 24 12:57:17 UTC 2009 Modified Files: src/sys/arch/i386/stand/cdboot: cdboot.S Log Message: Fix constant in comment To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/i386/stand/cdboot/cdboot.S

CVS commit: src/lib/libc/stdio

2009-10-24 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Oct 24 14:50:48 UTC 2009 Modified Files: src/lib/libc/stdio: fgets.c Log Message: Check for EOF before erroring fgets() with length = 0. If length is invalid, set errno = EINVAL and __SERR as well returning NULL. Should let me

Re: CVS commit: src/lib/libc/stdio

2009-10-15 Thread David Laight
On Thu, Oct 15, 2009 at 12:01:01AM +0200, Alan Barrett wrote: On Wed, 14 Oct 2009, David Laight wrote: Module Name:src Committed By: dsl Date: Wed Oct 14 21:25:52 UTC 2009 Modified Files: src/lib/libc/stdio: fgets.c vfprintf.c Log Message

CVS commit: src/lib/libc/stdio

2009-10-15 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Oct 15 06:19:35 UTC 2009 Modified Files: src/lib/libc/stdio: vfprintf.c Log Message: Reverse previous, committed by mistake. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/lib/libc/stdio/vfprintf.c Please

CVS commit: src/sys/kern

2009-10-14 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Oct 14 19:25:39 UTC 2009 Modified Files: src/sys/kern: tty_pty.c Log Message: Error out of ptcread() if the uio length supplied is zero before the code has a chance to panic in ureadc(). To generate a diff of this commit: cvs

CVS commit: src/sys/sys

2009-10-13 Thread David Laight
Module Name:src Committed By: dsl Date: Tue Oct 13 17:19:00 UTC 2009 Modified Files: src/sys/sys: null.h Log Message: Enclose (void *)0 in an extra set of parenthese to make the result usable in arbitrary expressions. Fixes PR/41890, I can't think of any downsides! To

CVS commit: src/sys/kern

2009-10-11 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Oct 11 08:08:32 UTC 2009 Modified Files: src/sys/kern: tty_pty.c Log Message: Fix locking when collecting pt_read and pt_ucntl. To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118 src/sys/kern/tty_pty.c Please

CVS commit: src/sys/kern

2009-10-11 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Oct 11 17:20:48 UTC 2009 Modified Files: src/sys/kern: tty.c Log Message: Check for zero length read here - and return zero. Most times we've come through spec_read() which has already done the test, but not always (eg pty with

CVS commit: src/usr.bin/sort

2009-10-09 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Oct 9 20:23:19 UTC 2009 Modified Files: src/usr.bin/sort: fsort.c Log Message: Don't give merge an empty file when we detect EOF with nothing in our buffer. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44

CVS commit: src/usr.bin/sort

2009-10-09 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Oct 9 20:29:44 UTC 2009 Modified Files: src/usr.bin/sort: msort.c Log Message: When we need to merge more than 16 files, do them in a hierarchy. Reduces the amount of data written to temporary files. The 3-level stack has to do

CVS commit: src/usr.bin/sort

2009-10-09 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Oct 9 20:32:57 UTC 2009 Modified Files: src/usr.bin/sort: fsort.c Log Message: If anyone is stupid enough to feed records longer than 8MB into sort, don't sit in an infinite loop, instead eat memory until we have read 8

CVS commit: src/usr.bin/sort

2009-10-07 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Oct 7 21:02:57 UTC 2009 Modified Files: src/usr.bin/sort: fields.c Log Message: When encoding numbers, we can use all 8 bits for exponent values. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30

CVS commit: src/usr.bin/make

2009-10-01 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Oct 1 21:40:31 UTC 2009 Modified Files: src/usr.bin/make: make.1 Log Message: Add example of how to use the ?: modifier properly. To generate a diff of this commit: cvs rdiff -u -r1.161 -r1.162 src/usr.bin/make/make.1 Please

CVS commit: src/usr.bin/sort

2009-09-28 Thread David Laight
Module Name:src Committed By: dsl Date: Mon Sep 28 20:30:01 UTC 2009 Modified Files: src/usr.bin/sort: files.c fsort.c sort.h Log Message: Fix borked fix for sort relying on realloc() changing the buffer end. Sorts of more than 8MB data now probably work again. To

CVS commit: src/usr.bin/sort

2009-09-26 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Sep 26 21:16:55 UTC 2009 Modified Files: src/usr.bin/sort: files.c fsort.c fsort.h msort.c sort.c sort.h tmp.c Log Message: Move all the fopen() calls out of the record read routines into the callers. Split the merge sort so

Re: CVS commit: src/distrib

2009-09-21 Thread David Laight
On Sun, Sep 20, 2009 at 05:32:17PM -0400, Christos Zoulas wrote: | Although posix defines strict rules for expressions with small | numbers of arguments, netbsd'd parser doesn't obey them! Really? Can you give me an example. See PR/34646 $ test ! = foo David -- David Laight: da

Re: CVS commit: src/distrib

2009-09-20 Thread David Laight
for strings with whitespace. Sometimes I empty IFS David -- David Laight: da...@l8s.co.uk

<    3   4   5   6   7   8   9   >