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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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:
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
+ * 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
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
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:
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
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
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
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
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
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:
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
$ */
+
+/*-
+ * 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
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
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
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
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
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
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
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
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
+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
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
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
, and the
program was a network daemon.)
David
--
David Laight: da...@l8s.co.uk
], 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
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
801 - 864 of 864 matches
Mail list logo