CVS commit: src/usr.bin/sort

2009-09-19 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Sep 19 16:18:01 UTC 2009 Modified Files: src/usr.bin/sort: radix_sort.c Log Message: Fix sort -u, PR/42094 To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/usr.bin/sort/radix_sort.c Please note that diffs are

Re: CVS commit: src/usr.sbin/puffs/rump_smbfs

2009-09-18 Thread David Laight
a symbol lookup...) There are probably other places where it is difficult to call an explicit initialiser. It is all rather similar to the proliferation of memory pools - for things where 'malloc' would be fine. David -- David Laight: da...@l8s.co.uk

CVS commit: src/usr.bin/sort

2009-09-16 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Sep 16 20:56:39 UTC 2009 Modified Files: src/usr.bin/sort: fields.c Log Message: Minor tweaks to the key generation for numeric fields. Use 1's compliment for -ve numbers to avoid confitionals. To generate a diff of this

CVS commit: src/usr.bin/sort

2009-09-05 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Sep 5 09:16:18 UTC 2009 Modified Files: src/usr.bin/sort: Makefile init.c sort.c sort.h Added Files: src/usr.bin/sort: radix_sort.c Log Message: Include a local copy of the sradixsort() code from libc. Currently

CVS commit: src/usr.bin/sort

2009-09-05 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Sep 5 12:00:26 UTC 2009 Modified Files: src/usr.bin/sort: append.c files.c fsort.c fsort.h msort.c radix_sort.c sort.h Log Message: Now we have our own radix_sort() change the interface so that we pass an array of

CVS commit: src/usr.bin/sort

2009-08-22 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 22 10:53:28 UTC 2009 Modified Files: src/usr.bin/sort: append.c fields.c files.c fsort.c init.c msort.c sort.c sort.h Log Message: Rework the way sort generates sort keys: - If we generate a key, it is always

CVS commit: src/usr.bin/sort

2009-08-22 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 22 21:19:41 UTC 2009 Modified Files: src/usr.bin/sort: fields.c Log Message: Only process each number digit once. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/usr.bin/sort/fields.c Please note that

CVS commit: src/usr.bin/sort

2009-08-22 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 22 21:28:55 UTC 2009 Modified Files: src/usr.bin/sort: fields.c Log Message: Fix generation of unmasked alpha keys. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/usr.bin/sort/fields.c Please note that

CVS commit: src/usr.bin/sort

2009-08-22 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 22 21:43:53 UTC 2009 Modified Files: src/usr.bin/sort: sort.c Log Message: Put radixsort() and sradixsort() the correct way around. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/usr.bin/sort/sort.c

CVS commit: src/lib/libc/stdlib

2009-08-21 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Aug 21 20:49:50 UTC 2009 Modified Files: src/lib/libc/stdlib: radixsort.c Log Message: The 'table' of character weights is allowed to be NULL. The SETUP define sorts it out (in the slowest and nastiest possible way!) Broken by

CVS commit: src/usr.bin/sort

2009-08-20 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Aug 20 06:36:26 UTC 2009 Modified Files: src/usr.bin/sort: append.c fields.c fsort.c fsort.h msort.c sort.c sort.h Log Message: Delete more unwanted/unused cruft. Simplify logic for reading input records. Do a merge

CVS commit: src/usr.bin/sort

2009-08-18 Thread David Laight
Module Name:src Committed By: dsl Date: Tue Aug 18 18:00:28 UTC 2009 Modified Files: src/usr.bin/sort: append.c files.c fsort.c sort.c sort.h Log Message: The code that attempted to sort large files by sorting each chunk by the first key byte and writing to a temp file,

CVS commit: src/usr.bin/sort

2009-08-16 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Aug 16 19:53:43 UTC 2009 Modified Files: src/usr.bin/sort: append.c files.c fsort.c msort.c sort.h Log Message: Replace all uses of sizeof(TRECHEADER) with REC_DATA_OFFSET - which is defined as offsetof(RECHEADER, data). Delete

CVS commit: src/usr.bin/sort

2009-08-16 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Aug 16 20:02:04 UTC 2009 Modified Files: src/usr.bin/sort: append.c fsort.c Log Message: 'depth' is used for the number of bytes into the key that the pointers reference, when we want to find the record header put the larger

CVS commit: src/usr.bin/sort

2009-08-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 15 09:48:46 UTC 2009 Modified Files: src/usr.bin/sort: append.c fields.c files.c fsort.c init.c msort.c sort.c tmp.c Log Message: Ansify. I'm looking at fixing the 'sort -n' fubars, but this code is an

CVS commit: src/usr.bin/sort

2009-08-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 15 14:31:48 UTC 2009 Modified Files: src/usr.bin/sort: files.c Log Message: In makeline() change 'pos' from 'char *' to 'u_char *' and remove all the casts associated with its use. None of the uses can possibly care about

CVS commit: src/usr.bin/sort

2009-08-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 15 16:10:40 UTC 2009 Modified Files: src/usr.bin/sort: files.c Log Message: Remove the unused 'DBT *key' parameter from seq(). To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/usr.bin/sort/files.c Please

CVS commit: src/usr.bin/sort

2009-08-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 15 16:50:29 UTC 2009 Modified Files: src/usr.bin/sort: files.c fsort.c fsort.h msort.c Log Message: linebuf and linebuf_size are only used inside seq() - which also not only has its own static variable, but will also extend

CVS commit: src/usr.bin/sort

2009-08-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 15 18:40:02 UTC 2009 Modified Files: src/usr.bin/sort: fields.c files.c sort.h Log Message: Remove reference to db.h by using separate ptr+len fields for the only structure that used it. Pass end of keybuf area, not size to

CVS commit: src/usr.bin/sort

2009-08-15 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 15 21:26:32 UTC 2009 Modified Files: src/usr.bin/sort: fields.c Log Message: Always add an REC_D char (usually \n) as the last sort key char - we almost always need one. But do ADD it, instead of overwriting the last byte of

CVS commit: src/sys/lib/libkern

2009-08-14 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Aug 14 19:23:55 UTC 2009 Modified Files: src/sys/lib/libkern: Makefile.libkern src/sys/lib/libkern/arch/alpha: Makefile.inc src/sys/lib/libkern/arch/arm: Makefile.inc src/sys/lib/libkern/arch/hppa:

Re: CVS commit: src/sys/kern

2009-08-13 Thread David Laight
On Thu, Aug 13, 2009 at 08:41:36PM +0200, Alan Barrett wrote: What is an undescribed, direct ioctl, and where is it documented? Probably one that doesn't abuse the cmd field to include the length etc! David -- David Laight: da...@l8s.co.uk

CVS commit: src/sys/lib/libkern

2009-08-12 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Aug 12 21:18:43 UTC 2009 Modified Files: src/sys/lib/libkern: Makefile.libkern Log Message: Use stuff from libc/Makefile to auto-remove .c files if a .S has been added. Use it to dispose of tne .c files that were already only

CVS commit: src/sys/lib/libkern/arch

2009-08-12 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Aug 12 21:20:41 UTC 2009 Modified Files: src/sys/lib/libkern/arch/alpha: Makefile.inc src/sys/lib/libkern/arch/arm: Makefile.inc src/sys/lib/libkern/arch/hppa: Makefile.inc src/sys/lib/libkern/arch/i386:

CVS commit: src/sys/lib/libkern/arch/m68k

2009-08-12 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Aug 12 21:24:57 UTC 2009 Modified Files: src/sys/lib/libkern/arch/m68k: Makefile.inc Log Message: Remove some .c files accidentally left on the .S lines To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29

CVS commit: src/lib/libc

2009-08-11 Thread David Laight
Module Name:src Committed By: dsl Date: Tue Aug 11 17:29:05 UTC 2009 Modified Files: src/lib/libc: Makefile Log Message: Change (slightly) the way NO_SRCS is processed, update big comment! Now the .c file is removed from SRCS for both .S and .c in NO_SRSC. The .c file is

CVS commit: src/lib/libc/arch

2009-08-11 Thread David Laight
Module Name:src Committed By: dsl Date: Tue Aug 11 17:30:43 UTC 2009 Modified Files: src/lib/libc/arch/i386/stdlib: Makefile.inc src/lib/libc/arch/m68k/stdlib: Makefile.inc src/lib/libc/arch/powerpc/string: Makefile.inc

Re: CVS commit: src/sys/sys

2009-08-10 Thread David Laight
is plain stupid. Besides, there should be no casts in system headers ;-} What happens if these casts are put into inline functions inside the 'exterrn C' block. The compiler really has no excuse to warn then, if it does it is a compler bug. David -- David Laight: da...@l8s.co.uk

Re: CVS commit: src/sys/sys

2009-08-09 Thread David Laight
that modern c++ with -Wold-style-casts does not bitch. Do we really have to do that, it starts making files completely unreadable. David -- David Laight: da...@l8s.co.uk

CVS commit: src/lib/libc/sys

2009-08-07 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Aug 7 19:34:46 UTC 2009 Modified Files: src/lib/libc/sys: syscall.2 Log Message: Add text to the description saying that normal applications should not use syscall(). Add text to bugs saying that high bits of the syscall number

CVS commit: src/sys/kern

2009-08-06 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Aug 6 21:33:54 UTC 2009 Modified Files: src/sys/kern: kern_exec.c Log Message: ktrace the arguments to script interpreters that come from the script. Fixes PR/33021 To generate a diff of this commit: cvs rdiff -u -r1.289

CVS commit: src/sys/kern

2009-08-05 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Aug 5 19:39:50 UTC 2009 Modified Files: src/sys/kern: vfs_lockf.c Log Message: lockf() passes its arguments through to fcntl() but is supposed to support -ve lengths (lock area before current offset). Nothing in libc or the

CVS commit: src/sys/kern

2009-08-05 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Aug 5 19:53:42 UTC 2009 Modified Files: src/sys/kern: kern_ktrace.c Log Message: Fix ktrace of data from iovec based system calls. Fixes PR/41819 To generate a diff of this commit: cvs rdiff -u -r1.148 -r1.149

CVS commit: src/lib/libc/stdio

2009-08-05 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Aug 5 20:46:01 UTC 2009 Modified Files: src/lib/libc/stdio: vfwprintf.c Log Message: If the current locale doesn't define the 'thousands' grouping info then use sane defaults (',' every 3 digits). Fixes PR/40714 To generate a

CVS commit: src/sbin/fdisk

2009-08-05 Thread David Laight
Module Name:src Committed By: dsl Date: Wed Aug 5 21:31:50 UTC 2009 Modified Files: src/sbin/fdisk: fdisk.c Log Message: Change arguments to decimal() to be int64_t. They need to be able to hold disk sector numbers 2^31 and also -1. Should fix PR/34807 To generate a

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

2009-08-04 Thread David Laight
Module Name:src Committed By: dsl Date: Tue Aug 4 06:55:27 UTC 2009 Modified Files: src/sys/arch/i386/i386: mainbus.c Log Message: Add #if NPCI 1 around call to mp_pci_childdetached() Fixes rst of PR/41301 To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86

CVS commit: src/bin/ps

2009-08-03 Thread David Laight
Module Name:src Committed By: dsl Date: Mon Aug 3 20:00:39 UTC 2009 Modified Files: src/bin/ps: ps.1 Log Message: Remove reference to P_SYSTRACE. Fixes PR/41426 (leave defn in sys/sysctl.h since the bit shouldn't be reused!) To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/arch/x86/x86

2009-08-03 Thread David Laight
Module Name:src Committed By: dsl Date: Mon Aug 3 20:15:14 UTC 2009 Modified Files: src/sys/arch/x86/x86: x86_autoconf.c Log Message: Only define x86_genfb_set_mapreg() and found_console when NPCI 0 Fixes PR/41451 To generate a diff of this commit: cvs rdiff -u -r1.40

CVS commit: src/sys/dev/if_ndis

2009-08-02 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Aug 2 20:22:34 UTC 2009 Modified Files: src/sys/dev/if_ndis: if_ndis.c if_ndis_pci.c Log Message: Patch from PR/39034 - should make this compile! I've not removed the mtx_destroy() since that has to be in there somewhere. Patch

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

2009-08-01 Thread David Laight
+ * by David Laight. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions

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

2009-08-01 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Aug 1 20:47:02 UTC 2009 Modified Files: src/common/lib/libc/arch/x86_64/string: memchr.S Log Message: In the misaligned case, xor the read word with the target pattern before making the unwanted bytes non-zero. Means that

CVS commit: src/lib/libc

2009-07-31 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Jul 31 20:40:01 UTC 2009 Modified Files: src/lib/libc/arch/alpha/stdlib: Makefile.inc src/lib/libc/arch/arm/stdlib: Makefile.inc src/lib/libc/arch/hppa/stdlib: Makefile.inc src/lib/libc/arch/i386/stdlib:

CVS commit: src/lib/libc

2009-07-30 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Jul 30 20:57:17 UTC 2009 Modified Files: src/lib/libc: Makefile src/lib/libc/arch/alpha/string: Makefile.inc src/lib/libc/arch/arm/string: Makefile.inc src/lib/libc/arch/hppa/string: Makefile.inc

CVS commit: src/lib/libc/arch/sparc64/string

2009-07-30 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Jul 30 21:26:36 UTC 2009 Modified Files: src/lib/libc/arch/sparc64/string: Makefile.inc Log Message: Stop bcopy.c and bzero.c being compiled To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7

CVS commit: src/lib/libc/string

2009-07-30 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Jul 30 21:42:06 UTC 2009 Modified Files: src/lib/libc/string: strcspn.c strspn.c Log Message: Use a 'register only' str[c]spn() on 64 bit systems. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17

CVS commit: src/regress/lib/libc/string/strchr

2009-07-18 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jul 18 09:20:46 UTC 2009 Modified Files: src/regress/lib/libc/string/strchr: strchr_test.c Log Message: Add tests that scan for 0x0 and 0xff. Remove the 'answers' section from the test definition, instead use our own version of

CVS commit: src/lib/libc/string

2009-07-18 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jul 18 09:41:23 UTC 2009 Modified Files: src/lib/libc/string: Makefile.inc Log Message: Remove index() and rindex() from the list (in comment) To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72

CVS commit: src/lib/libc/arch

2009-07-18 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jul 18 09:44:31 UTC 2009 Modified Files: src/lib/libc/arch/alpha/string: Makefile.inc src/lib/libc/arch/arm/string: Makefile.inc src/lib/libc/arch/hppa/string: Makefile.inc src/lib/libc/arch/ia64/string:

CVS commit: src

2009-07-18 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jul 18 09:50:32 UTC 2009 Modified Files: src: UPDATING Log Message: Presence of index.o in existing libc.a causes duplicate symbol now that strchr.[cS] provides its definition. To generate a diff of this commit: cvs rdiff -u

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

2009-07-18 Thread David Laight
$ */ + +/*- + * Copyright (c) 2009 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 provided

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

2009-07-18 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jul 18 12:03:31 UTC 2009 Modified Files: src/common/lib/libc/arch/x86_64/string: ffs.S Log Message: Remove a pointless _ALIGN_TEXT. XXX ffs() ought to be a gcc inline asm. To generate a diff of this commit: cvs rdiff -u -r1.1

CVS commit: src/regress/lib/libc/string/memchr

2009-07-18 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jul 18 16:34:47 UTC 2009 Modified Files: src/regress/lib/libc/string/memchr: memchr_test.c Log Message: Start with alignment '1' and write the search char to the byte before the buffer. XXX needs tests searching for 0xff. To

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

2009-07-18 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jul 18 16:40:31 UTC 2009 Modified Files: src/common/lib/libc/arch/x86_64/string: strchr.S Log Message: Shorten a dependency chain by using 'sbb, xor' (at a time when carry is set) instead of 'mov, neg, dec'. ('mov, not' can't be

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

2009-07-17 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Jul 17 19:42:05 UTC 2009 Removed Files: src/common/lib/libc/arch/x86_64/string: index.S rindex.S Log Message: Delete files that are no longer needed. To generate a diff of this commit: cvs rdiff -u -r1.1 -r0

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

2009-07-17 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Jul 17 19:42:45 UTC 2009 Removed Files: src/common/lib/libc/arch/m68k/string: index.S rindex.S Log Message: Delete files that are no longer needed. To generate a diff of this commit: cvs rdiff -u -r1.1 -r0

CVS commit: src/regress/lib/libc/string/strchr

2009-07-17 Thread David Laight
Module Name:src Committed By: dsl Date: Fri Jul 17 22:07:36 UTC 2009 Modified Files: src/regress/lib/libc/string/strchr: strchr_test.c Log Message: Pollute the space either side of the string being compared with the test pattern. To generate a diff of this commit: cvs

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

2009-07-16 Thread David Laight
Module Name:src Committed By: dsl Date: Thu Jul 16 21:25:36 UTC 2009 Added Files: src/common/lib/libc/arch/mips/string: strchr.S strrchr.S Log Message: Add asm files for str(r)chr by copying the files for (r)index from src/libc/arch/mips/string. Add XLEAF() for index

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

2009-07-12 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Jul 12 21:00:54 UTC 2009 Modified Files: src/common/lib/libc/arch/x86_64/string: strlen.S Log Message: Correct some comments To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4

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

2009-07-12 Thread David Laight
+1,43 @@ +/* $NetBSD: strlen.S,v 1.5 2009/07/12 21:24:21 dsl Exp $ */ + +/*- + * Copyright (c) 2009 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

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

2009-07-11 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jul 11 08:48:52 UTC 2009 Modified Files: src/common/lib/libc/arch/x86_64/string: strlen.S Log Message: Change comments about algorithms, 99.6% for random data isn't 'rare' in my book! (The 'rare' case is any byte values

CVS commit: src/regress/lib/libc/string/strlen

2009-07-11 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Jul 11 11:45:17 UTC 2009 Modified Files: src/regress/lib/libc/string/strlen: strlen_test.c Log Message: The local function pointer wasn't enough to stop gcc using the builtin strlen! Move to file scope and make 'volatile'. When

Re: CVS commit: [yamt-nfs-mp] src/sys

2009-06-25 Thread David Laight
, and the program was a network daemon.) David -- David Laight: da...@l8s.co.uk

Re: CVS commit: src/sys/kern

2009-05-16 Thread David Laight
], and that the count of processes is correct. [1] consider what happens if the proc table has to be extended, or when a process is in a fork/exit loop. David -- David Laight: da...@l8s.co.uk

Re: CVS commit: src/sys/kern

2009-03-26 Thread David Laight
pmf_private { ... } pmf_private_t' into a struct definition and a typedef definition. Surely it is better to fix ctags David -- David Laight: da...@l8s.co.uk

<    4   5   6   7   8   9