Commit Graph

7299 Commits

Author SHA1 Message Date
enami 35c4c5bed3 Calculate the width again if we start newline at tab character, since
start column changes.
2004-02-27 22:44:38 +00:00
enami 1f8c4c1f20 Rototill for less confusing output, especially when multiple processes
are traced and blocking operation is involved (previously, some system
call isn't displayed or displayed as if it is issued by other process).
2004-02-26 22:00:57 +00:00
wiz f05e6f1a3a occured -> occurred. From Peter Postma. 2004-02-24 15:12:51 +00:00
jdolecek b142758840 sort iconv -l output 2004-02-21 09:16:25 +00:00
sjg a3cc11808b Fix :M so that modifiers in nested variables don't terminate parsing
early.  Add a unit-test to verify it works and keeps working.
Re-jig the unit-tests so that all are sub makefiles.
2004-02-20 09:03:26 +00:00
atatat caea20e952 Add PTRTOUINT64() and UINT64TOPTR() macros to sys/sysctl.h for use by
kern.proc, kern.proc2, kern.lwp, and kern.buf.

Define more MIB for kern.buf so that specific buffers can be selected
(only all/all is supported right now), and use a 32/64 bit agnostic
structure for communcating buffer information to userland.

Convert systat to the new kern.buf method.

Clean up the vm.buf* handling a little.  There's no actual need to
record the dynamically assigned OIDs, since sysctl_data can tell us
what we're looking at.

Oh, and fix a typo in a comment.
2004-02-19 03:56:30 +00:00
jdolecek de243242be insertcol() may insert up to two items to clist, so allocate memory accordingly
this fixes sort regression test 28A and 28B
2004-02-18 20:44:36 +00:00
he 2f8028b1b0 Fix mismatched type error in fropen() usage by converting return
type of zread() from ssize_t to int.
2004-02-18 18:29:07 +00:00
wiz 15d66087e7 Mention compress(1) support, and add bzip2(1) and compress(1) to SEE ALSO.
Bump date.
2004-02-18 09:16:27 +00:00
mrg 91d1fa9407 support decompressing "compress"ed files. from rtr@ with a few minor edits
from me.  code in zuncompress liberally borrowed from usr.bin/compress.
2004-02-18 08:19:48 +00:00
wiz 9ea670a934 Some fixes and formatting changes from jmc@openbsd. 2004-02-17 20:41:49 +00:00
jdolecek c8e0ab671d fix parsing of some +POS -POS variants, as pointed out by sort regression
tests
2004-02-17 20:17:38 +00:00
jdolecek bf96399c09 initialize malloc()ated memory 2004-02-17 19:09:36 +00:00
jdolecek 3b6344c769 ftpos pointer was not updated when fldtab was reallocated; drop completely
in favour of an index counter
fixes bin/24449 by Jun-ichiro itojun
2004-02-17 18:59:13 +00:00
jdolecek d8c927fdbf fldtab[] needs to have one extra element - this marks end of array
adresses part of PR bin/24449 by Jun-ichiro itojun
2004-02-17 13:52:56 +00:00
itojun aa7ee5b5c7 use safer realloc idiom
memset new region got by realloc
2004-02-17 02:38:47 +00:00
itojun 909cd63c63 safer realloc idiom
minor knf
2004-02-17 02:31:33 +00:00
itojun 0795537158 initialize fldtab 2004-02-17 02:28:29 +00:00
itojun 7551fb024f do not use long for file offset, use off_t. otto@openbsd 2004-02-16 21:57:04 +00:00
sjg 79e5bb77fc Use ${.MAKE:S,^./,${.CURDIR}/,} so that when someone does
./make test
it works.  Note use .CURDIR rather than .OBJDIR since the later
_may_ not always be correct (eg. symlink in .CURDIR for make).
2004-02-15 19:05:45 +00:00
soren c87f3766c2 Make usage() not overflow 80 char lines. 2004-02-15 17:03:30 +00:00
jdolecek 9f77432368 remove compile-time limit on number of -k options, allocate necessary
structures as-needed
2004-02-15 14:22:55 +00:00
jdolecek 87c48f115e rewrite fixit() to duplicate less code, and comment the contents better;
also removes compile-time dependancy on ND constant
2004-02-15 14:19:22 +00:00
jdolecek 002b9278dc make sure zero is recognized as regular number in number(), and thus sorted
properly with -n
fixes PR bin/20259 by Giles Lean, PR bin/20542 by Peter Seebach, and
part of PR bin/24316 by MLH
2004-02-15 12:41:25 +00:00
jdolecek afac62bca7 g/c redundant setfield() prototype
clear setcolumn() somewhat - use strtol() instead of sscanf(), and
simplify flag setting code
2004-02-15 12:35:26 +00:00
jdolecek 95b7d83c21 fix -Wunitialized warnings 2004-02-15 11:54:17 +00:00
jdolecek 33f354551b fix some cases of use of unitialized variables 2004-02-15 11:52:12 +00:00
wiz e3fc4b66c3 Spell the plural of suffix "suffixes", not "suffices".
Inspired by PR 24400 by Todd Vierling.
2004-02-13 17:56:17 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
wiz f582138c1b Uppercase CPU. 2004-02-13 10:11:56 +00:00
matt fc5f7e902b Deal with backing out of changes in:
http://mail-index.netbsd.org/source-changes/2004/01/29/0027.html
2004-02-10 01:31:41 +00:00
itohy 0822f845c4 Use /etc/locate.conf for configuration, per discussion at tech-userlevel. 2004-02-06 14:29:51 +00:00
wiz 56bb942672 Bump date; uppercase POSIX. 2004-02-05 23:51:46 +00:00
ross 3856fab870 Briefly document the posix command line order and add that this
is (unfortunately) not enforced.
2004-02-05 23:40:52 +00:00
ross 380bdcb7fb Parse args with open code to eliminate use of getopt(3).
No functional change under NetBSD.

Restarting a getopt(3) loop is an extension to the posix getopt(3)
behavior and is not portable.

Fixes tools build (tools/groff) under Cygwin.
2004-02-05 23:31:34 +00:00
wiz c732f0a853 Use more mdoc macros; new sentence, new line; bump date for previous. 2004-02-04 00:37:45 +00:00
chuck 51659857a7 add parent directory search for make as discussed on tech-toolchain.
- new dir.c function: Dir_FindHereOrAbove:
      Search for a path in the current directory and then all the directories
      above it in turn until the path is found or we reach the root ("/").
 - add hooks to use it in main.c for -m and syspath (compiled in
      _PATH_DEFSYSPATH and $MAKESYSPATH).
 - updated man page
2004-02-03 19:25:29 +00:00
lukem f0cea2f5e2 Fix bug when calculating digest when copying from dev/null.
Problem noted by Matthias Scheler and Tomasz Luchowski.
2004-02-02 23:25:36 +00:00
christos 301d580988 Fix reversed logic (decimal argument passed in output_long, where it expects
hex). Change tests to <= 9 to a small(v) macro, so that negative numbers fail
too consistently.
2004-02-02 06:27:56 +00:00
christos 8e65a43404 Include iosfwd instead of iostream, since it is smaller; from Marc Espie. 2004-02-01 21:24:02 +00:00
snj a6b397d6de New sentence, new line. Kill some extra whitespace. Mention calendar.netbsd
and calendar.lotr.  Okayed by wiz.
2004-02-01 01:03:57 +00:00
snj 54d71a44a7 Fix some typos and spelling errors. Okayed by wiz. 2004-02-01 01:00:43 +00:00
snj 9395c6ab06 Expand some names, fix a spelling error (Pete Townshend might disagree,
but "quadrophonic" is not the proper spelling), give George Gershwin's
year of birth, add Stevie Ray Vaughan's birth/death dates.  Okayed by wiz.
2004-02-01 00:59:28 +00:00
snj 6d087af2f4 Expand a couple names and fix some spelling errors. Okayed by wiz. 2004-02-01 00:51:27 +00:00
snj a6c6550af8 Give year of MLK's birth. Expand some names. Okayed by wiz. 2004-02-01 00:48:50 +00:00
snj 22a35b2cee Jimi Hendrix's death date belongs in the music calendar. Okayed by wiz. 2004-02-01 00:46:05 +00:00
snj 7c73c22c56 It's "its." Add NetBSD 1.6.1 release date. Okayed by wiz. 2004-02-01 00:34:13 +00:00
atatat 9fa5182332 Lint police. 2004-01-31 20:53:55 +00:00
atatat 282eb9c623 Unfold the KDEREF() macros a little, and tweak the LOCKDEBUG detection
code, to detect a KDEREF failure instead of simply aborting.  If the
KDEREF fails, we're obviously not_using_lockdebug().
2004-01-31 18:25:27 +00:00
lukem 75b72cb4f9 Auso support -h hash for hard-linked files. 2004-01-30 01:38:25 +00:00