Commit Graph

7393 Commits

Author SHA1 Message Date
mrg
57a27c0187 remove another 3KB or so of text/data on i386 with -DSMALL. now only
about 1.1KB larger than the old x_gzip sources, but includes (required
for sysinst) gzip -l support.
2004-03-28 03:47:18 +00:00
tsutsui
b6e59003c4 Allow disabling bzip2 (.bz2) and compress (.Z) support
by -DNO_BZIP2_SUPPORT and -DNO_COMPRESS_SUPPORT.
OK'ed by mrg.
2004-03-27 22:33:43 +00:00
soren
2a2693ed37 PR bin/24029: Asimov was born in Russia, the USSR no longer exists. 2004-03-27 15:18:31 +00:00
jdolecek
2eb16b781e move the GNU awk-based awk.texi back under src/gnu/dist/gawk/,
it's covered by GNU Documentation Licence and thus shouldn't be mixed
with free code
2004-03-27 11:34:11 +00:00
martin
9df8f56ac0 A __attribute__((__noreturn__)) function better be void - gcc correctly
complains at >= -O3 otherwise.
2004-03-27 00:53:59 +00:00
enami
84b05f6e6e Validate existence of arguemnt. PR#24933. 2004-03-27 00:17:08 +00:00
jdolecek
0f0ea58942 copy over the gawk 3.1.3 info file and g/c the rules to build it from
gawk sources
2004-03-26 16:55:15 +00:00
mrg
1d5769dcfc switch over to mrg gzip. 2004-03-26 08:52:26 +00:00
hubertf
89cb93c02e -z actually passes the input file through gunzip(1).
Having an option to really pass it through gzip(1) would be nice...
2004-03-25 20:29:51 +00:00
wiz
59757c426a As in other man pages, use .Dq for strings, and .Sq for single characters.
Add a comma after e.g.. Replace .sp with .Pp.
2004-03-24 11:38:27 +00:00
fair
c223370599 Document that tr(1) was written for US-ASCII and may not work as
expected on other character sets which do not share ASCII's properties
(e.g. a symmetric set of capital and lower case characters), per PR 18738

Change all double quotes to nroff macros.
Change "System V" references to the .At macro.
2004-03-24 06:35:53 +00:00
fair
c680acdbd9 Document that the flags in the configuration file are parsed
in a case-insensitive manner, per PR 22985
2004-03-24 02:25:15 +00:00
fair
11b2aeb6e2 Fix comment per PR 24437; make(1) tries "makefile" first, and then
"Makefile", not the other way around as previously documented.
2004-03-24 00:59:40 +00:00
snj
a726afffcb New sentence, new line. 2004-03-21 18:48:20 +00:00
simonb
221634063e Fix option handling so that you can show information about more than
one thing at a time.
Patch from Chris Demetriou a very long time ago.
2004-03-21 10:02:12 +00:00
heas
209ebbab46 - deal with a dead tty in ttyflush() by cleaning-up and exiting instead of
returning a failure code and processing that all the way up the stack.
- deal with a dead peer similarly and do it without setjmp/longjmp() (at
  christos' request).

These fix bin/20304 and my own observations when the remote abruptly closes
the connection.
2004-03-20 23:26:05 +00:00
heas
d5561e39ff remove duplicate description of DEFAULT keyword (introduced by me). 2004-03-20 23:10:01 +00:00
christos
4d4a846694 PR/24862: Peter Postma: From Andrey Matveev via OpenBSD:
1. use socklen_t instead of int
2. compare socket error return value to == -1 instead of <= 0
2004-03-20 17:07:33 +00:00
wiz
f05120b375 Add Xref to mscdlabel, bump date. 2004-03-18 21:13:19 +00:00
christos
3506cd1fa5 - KNF
- detect and print more errors
- use strtol() instead of atoi()
- use getprogname()
2004-03-17 17:54:25 +00:00
christos
eee22dae1e PR/24796: Colin Percival: CPU-eating loop in lock(1); apply FreeBSD fix. 2004-03-17 17:01:31 +00:00
wiz
2dbbff262f Document -c more accurately. Patch from Aymeric Vincent in response
to PR 24676.
2004-03-17 10:13:10 +00:00
mason
9cc30e773d missed part of identifier on my first pass 2004-03-15 09:13:32 +00:00
mason
387f55ac2e Include year of My Lai massacre, correct spacing in name, and provide slightly
more detail regarding perpetrators.
2004-03-15 09:06:27 +00:00
heas
2a3d05aa4e Do not step over the edge of the buffer (check for '\0'). This just happens
to not lose on i386 because another buffer appears immediately following.
Regress tests all passed.
2004-03-14 21:12:14 +00:00
heas
c68b80b9a5 remove double initialisation of SINGL_FLD & SEP_FLAG 2004-03-14 21:09:30 +00:00
jdolecek
c370e5310e switch awk to nawk; gawk sources will be removed after some grace period
change blessed by core@
2004-03-13 22:28:47 +00:00
grant
5e5453e284 folllow wiz' lead, add date of pkgsrc/Interix support. 2004-03-12 13:11:27 +00:00
wiz
935372e7be Add xen port and 1.6.2 release date. 2004-03-12 01:23:12 +00:00
uebayasi
9d002ba501 getfl() and cu_take() write a file locally. Open a file with O_RDWR. 2004-03-11 03:47:13 +00:00
uebayasi
7f507fd263 Use O_WRONLY / O_RDWR instead of bare integers. 2004-03-11 03:33:19 +00:00
wiz
610cd4021b Drop trailing whitespace. 2004-03-09 19:04:09 +00:00
hubertf
849866f9c1 Allow custom text printed before (left of) the progress bar from progress(1):
miyu# cat openoffice-linux-1.1.0.tgz | progress -z -p 'Bytes written: ' dd of=/dev/null bs=1m
	Bytes written:    193 MB   13.83 MB/s 0+195211 records in
and:
	miyu# progress -f openoffice-linux-1.1.0.tgz -z -p 'Bytes written: ' dd of=/dev/null bs=1m
	Bytes written:  28% |******                | 57919 KB   14.12 MB/s    00:09 ETA

OK'd by lukem.
2004-03-09 17:04:24 +00:00
dsl
c395262f1f Suppress duplicate lines when hexdumping data 2004-03-07 17:20:53 +00:00
mrg
6506e19a17 minor cleanup. 2004-03-06 09:41:36 +00:00
enami
222e389ef2 Print useful line number on error while executing .for directive. 2004-03-06 03:57:07 +00:00
dsl
273835431b Allow menu boxes to be forced down the screen if the message text is long. 2004-02-29 23:13:23 +00:00
junyoung
85b95abd1e pidhash and pgrphash should have been removed from here as well when the
new pid allocator was committed 3/2003.
2004-02-28 05:14:55 +00:00
enami
a612fb0b9d Replace rest of exit status `1' with EXIT_FAILURE. 2004-02-28 02:42:45 +00:00
enami
698c01aba0 Fix usage:
- ktrace(1) takes -s.
- ktruss(1) takes -l.
- -C/-c and commands are exclusive.
- make output fits 80 column.
2004-02-28 02:22:31 +00:00
enami
8a1309b72f - Make ktruss(1) works as expected when -c or -C is specified.
- Include pid or file descriptor in error message when
  ktrace(2)/fktrace(2) failed.
- Remove unnecessary cast.
2004-02-28 01:43:07 +00:00
enami
4d34b523bc Fix whitespace usage. 2004-02-28 01:37:56 +00:00
enami
3f98504ee8 Fix whitespace usage and remove unnecessary semi-colon. 2004-02-27 23:06:02 +00:00
enami
6a6547d143 We can't access array[sizeof(array) / sizeof(array[0])]. 2004-02-27 22:48:56 +00:00
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
yamt
4480473553 follow the kernel vm_map_entry allocation strategy change. 2004-01-29 22:19:12 +00:00
mrg
49637d1931 use gzopenfull() 2004-01-29 13:18:58 +00:00
wiz
f46a4026cc Drop trailing space. 2004-01-29 11:17:37 +00:00
lukem
37cb4fb1d9 Implement -h {none,md5,rmd160,sha1} to determine the appropriate hash
(digest) when copying a file to store in the -M METALOG.
2004-01-29 07:58:33 +00:00
lukem
5541148775 now that -c is the default, use "copy" instead of "move" 2004-01-27 02:49:42 +00:00
lukem
f83f942f81 Document more SPECIAL SOURCES (aka ATTRIBUTES).
Improve description of variable modifiers.
In the variable list, be more specific referring to "environment variables"
rather than just relying upon the formatting difference between .Ev and .Va.
2004-01-27 01:38:01 +00:00