hannken
aa9b145692
Don't invoke the egrep for cleandir and obj targets. Needed for build.sh.
...
Use ".if !make()" instead of ".if !target()".
2004-04-23 12:05:53 +00:00
hannken
1466f8c9d9
Undo last commit -- doesn't work.
2004-04-23 09:50:21 +00:00
hannken
0c0fbf545a
Don't invoke the egrep for cleandir and obj targets. Needed for build.sh.
2004-04-23 09:28:56 +00:00
simonb
9bc855a931
s/the the/the/ (only in sources that aren't regularly imported from
...
elsewhere).
2004-04-23 02:58:27 +00:00
simonb
ba5d7d507c
s/the the/to the/.
2004-04-23 02:55:11 +00:00
christos
19e4b9c5ad
Instead of pussy-footing around and grabbing a few of the ioctl's here and
...
there randomly, grab all the ioctls from the include files.
Read the XXX's in mkioctls about problems with our header files.
2004-04-22 22:31:18 +00:00
ross
fcce1f91eb
Recognize -- (dash dash) and apply the usual interpretation.
...
Notes:
* The immediately previous version of make errored out on --,
which is what needs fixing.
* Historic bsd make silently ate -- and continued to process
options, so this is a behavior change from that, too, but presumably
there is more to gain in fixing it than in being bug-compatible.
2004-04-22 21:19:02 +00:00
lukem
a63d7117f9
Add -h to decode RFC 1808 URI style encoding (VIS_HTTPSTYLE).
2004-04-22 06:55:15 +00:00
lukem
ee913daaf9
fix silly cut & paste error in -h description
2004-04-22 06:53:43 +00:00
lukem
a5bde8e7c5
Add -h to enable VIS_HTTPSTYLE.
...
Reorder getopt & usage strings to be alphabetical to match man page.
2004-04-22 06:35:02 +00:00
christos
6bd1d6d4db
Replace the statfs() family of system calls with statvfs().
...
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
lukem
1efa87943c
Rework "ignorefs" behaviour:
...
* types are added to (rather than overriding) the default list
* Still use "ignorefs none" to clear the list (including the default list)
* Fix argument parsing when using "none"
This makes "ignorefs" much more useful if you just want to add another
fstype to the default list.
Simplify variable assignment.
2004-04-19 01:05:22 +00:00
lukem
1df7609f71
xref locate.conf(5)
2004-04-19 00:32:44 +00:00
lukem
5d3311e08a
tweak roff in previous
2004-04-19 00:28:11 +00:00
lukem
3333d5f7f7
Use "sysctl vfs.generic.fstypes" to determine the list of available fstypes.
2004-04-19 00:18:46 +00:00
snj
b5746867c3
Lincoln was fatally shot on the 14th, and only the 14th. Move the more
...
detailed entry from 04/16 to 04/14.
2004-04-17 04:06:55 +00:00
sjg
3c6b696332
Allow "string" and "${varspec}" on lhs of conditionals.
...
This makes it possible to use expressions like
${("${LIST:Msomething"}):?present:absent}
it also makes treatment of lhs and rhs more consistent, and
makes CondToken easier to read.
Update unit-test/cond1 to test new features.
2004-04-13 16:06:23 +00:00
mrg
98445d2478
be sure we don't try to remove an output file we haven't actually created.
...
(reported by kimmo.)
2004-04-12 14:42:14 +00:00
lukem
f3c773016a
If connect(2) in xconnect() fails with EINTR, call select(2) on the socket
...
until it's writable or it fails with something other than EINTR.
This matches the behaviour in SUSv3, and prevents the problem when
pressing ^T (SIGINFO, which is marked as restartable) during connection
setup would cause ftp to fail with EADDRINUSE or EALREADY when the
second connect(2) was attempted on the same socket.
Problem found and solution provided by Maxime Henrion <mux@freebsd.org>.
2004-04-10 12:21:39 +00:00
lukem
aacb86f622
whitespace consistency tweak
2004-04-10 12:02:43 +00:00
atatat
e9814619fb
sysctl(3) no longer returns ENOPROTOOPT in this case, but ENOENT,
...
which is a more generic "that's not in the tree" response.
ENOPROTOOPT was specific to the net subtree under the old framework,
and didn't add much value (other than letting the caller know they
were looking up something under the net subtree, which they presumably
ought to have known already).
2004-04-09 18:48:05 +00:00
sjg
df910819de
Revised patch for catching extraneous .else's
...
We actually need to tack condTop and skipIfLevel.
Bump MAXIF while here.
Enhance the unit-test for conditionals to exercise more code.
PR: 24420
2004-04-08 07:24:26 +00:00
sjg
ab4f0bc644
Back out previous patch for now.
...
Breaks bsd.obj.mk
2004-04-08 01:35:33 +00:00
sjg
8bef426d13
Add check for extraneous .else's - based on patch from Arne H. Juul
...
in PR/24420.
Add a unit-test for conditionals.
Also in the unit-test makefile strip any .CURDIR in output.
PR: 24420
2004-04-08 00:59:01 +00:00
mrg
ff187e728e
- completely rewrite print_ratio(). fixes PR#25072 and a few other cases
...
- print_list() was getting the compressed/uncompressed sizes backwards.
2004-04-07 14:25:43 +00:00
christos
2a1bd4a323
- more void casts
...
- knf nits
- check for fdopen failure
2004-04-05 23:11:34 +00:00
christos
5a95d1e200
PR/25065: Arne H Juul: Typo in debugging output.
2004-04-05 21:17:27 +00:00
aymeric
263ab3f13d
bump version: failed recovery doesn't prevent edition anymore
2004-04-05 07:22:39 +00:00
aymeric
14069c4665
Don't fail if asked to recover a file for which there is no recovery file.
...
Just continue. This matches the man page, the POSIX standard, and even the
comment above that code!
From OpenBSD, via jmc@openbsd, via wiz@netbsd.
POSIX part confirmed by kleink@netbsd
:-)
2004-04-05 07:19:08 +00:00
aymeric
1bc3c9fb86
fix copying and freeing of options, patch from yamt@ in PR bin/25050. Thanks!
2004-04-05 06:59:15 +00:00
wiz
2be3546ee6
Use setprogname(); sort options in usage.
2004-04-04 10:29:20 +00:00
christos
ea764b2823
- add debugging flag
...
- use getprogname everywhere
- fix bug where if no .vacation.db existed, and the first message was not
suitable for reply, vacation would create a 0 length db file, and from
then on it would fail to process.
- handle e-mail address parsing better.
2004-04-04 01:19:35 +00:00
christos
4dae1e8533
document debugging flag.
2004-04-04 01:17:29 +00:00
christos
911c325c50
reverse logic in from test; from wiz
2004-04-03 23:57:32 +00:00
christos
103578edc3
fix date and wording; suggested by wiz
2004-04-03 23:56:49 +00:00
christos
58fa7a1588
- Fix bug in the determination of apparently-to and delivered-to.
...
- Add -f flag to look in Sender:, From:, and Return-Path: for the sender.
2004-04-03 20:55:13 +00:00
lukem
f9f551db32
Support strsuftoll(3) suffixes for '-l length'.
...
Provide an example of copying raw disks using dd, with a progress bar.
2004-04-03 06:19:22 +00:00
aymeric
5f3a5a8279
fix the way the ext2fs-specific size and mode variables are fetched:
...
they are indirectly gotten from kernel memory and as such should be read
with KVM_READ.
This fixes fstat core dumps when some process holds a reference in a Linux
ext2fs filesystem.
Thanks to Aleksy Schubert (alx.at.mimuw.dot.edu.dot.pl) for debugging this
with me.
2004-04-02 14:22:05 +00:00
wiz
3955de94f7
Bump date for previous.
2004-04-02 11:47:55 +00:00
jmmv
cc48ee25f5
Use ${0##*/} in examples instead of $0, so that they can successfully create
...
the temporary file even if the test program is executed given its full path.
That is, running /somewhere/test.sh could result in a call to mktemp like
mktemp /tmp//somewhere/test.sh.XXXXX, which fails.
Fixes PR misc/23447 by Piotr Meyer.
2004-04-02 10:44:22 +00:00
christos
54c7540419
Set our uid and gid to the effective user and group id's of the current
...
process so that access(2) DTRT's (from Peter Postma).
2004-04-01 22:14:48 +00:00
christos
70b5dfe845
Resurrect which(1), blessed by core.
2004-04-01 21:41:37 +00:00
christos
60a197ff0e
Fix const problem.
2004-04-01 21:41:14 +00:00
christos
745a6d0f0e
- add which(1) functionality.
...
- fix bug where if a program appeared in more than one place it would
erroneously exit(2)
- fix error messages to use err and errx as appropriate.
- made sure we don't pick up directories or non executable files.
2004-04-01 20:50:32 +00:00
martin
12920ed961
Remove which (the csh script installed in /usr/bin).
...
It was docuemented to work for *csh users only, and all *csh have a builtin
of that name, which works even better. All other shells have similar
builtins, and this led to confusion several times. Fixes PR 13462.
2004-04-01 14:41:53 +00:00
mrg
8a618ce17c
remove a chunk more code with -DSMALL and in the process fix -DSMALL
...
that was broken in the previous commit (by exposing "fflag".)
2004-03-31 15:46:25 +00:00
tron
17ebf9b589
Handle files with link count larger than 1 if "-f" option is used. This
...
is consistent with the old "gzip" and required by "pkgsrc" to implement
"MANZ" properly.
2004-03-31 15:19:14 +00:00
jmmv
31d9ef775a
Drop some unnecessary whitespaces from the usage message. Closes PR bin/24993
...
by Kouichirou Hiratsuka.
2004-03-31 13:01:00 +00:00
wiz
e3366bb6be
Bump date for previous, and sort a bit.
2004-03-31 01:46:22 +00:00
heas
a7353cbe7c
Mention -type w, which is coded as a synonym for W (whitespace).
2004-03-30 22:54:04 +00:00
heas
171a04291f
Whitespace nit
2004-03-30 22:51:55 +00:00
heas
59d5c91fe0
Do not skip whiteout files returned by fts_read(), which only returns them if
...
requested.
Patch from Dave Huang in PR bin/5419.
2004-03-30 22:51:13 +00:00
wrstuden
fa94e7cb27
Tweak change for Asimov's entry some. Restore reference to
...
Russian SFSR, but note that it's now Russia, not part of the USSR.
2004-03-30 22:29:19 +00:00
minoura
4061afd6fd
Johann Sebastian Bach I mentioned in the previous commit seems
...
wrong. Remove it, and put a part to the correct entry.
2004-03-30 12:33:50 +00:00
mrg
ff930808e7
backout previous. fix the bug it inspired instead. we will want this
...
version of the code when doing file-type detection.
2004-03-30 11:43:32 +00:00
mrg
7149a52947
factor out filetype checking code
2004-03-30 11:42:04 +00:00
mrg
d4e27c8dfb
use off_t instead of ssize_t in a few places.
...
fix "gzip -l" in -DSMALL (it wasn't doing a stat(2)).
2004-03-30 09:42:58 +00:00
mrg
70da2f0f10
patch from tron@ to convert to using public bz interfaces. simonb says
...
no reason not to and this fixes PR#24964.
2004-03-30 09:15:07 +00:00
jdc
a775b2011b
Note in the BUGS section that some termcap entries don't have
...
reset capabilities, so use init instead.
Part of the fix for PR misc/11052
2004-03-29 20:56:24 +00:00
minoura
8d4ece79fc
- AFAIK, Samuel Barber and Edward Elgar are composers; move them to
...
calendar.music, complementing Barber's birthday.
- Remove duplicating Beethoven's birthday.
(some materials say it's 12/16, some say 12/17, and some christened on
12/17... I do not know which is correct)
- BTW, who is Johann Sebastian Bach born on 05/22, 1665?
2004-03-29 13:24:24 +00:00
wiz
1612675940
s/compress/gzip/, our compress is not the backend for gzip.
...
Noted by hubertf.
2004-03-29 09:59:42 +00:00
mrg
ed20265f67
shave another 612 bytes off -DSMALL on x86. now x_gzip with -l support
...
is actually smaller than the older x_gzip without it!
2004-03-28 13:54:44 +00:00
grant
bfea1fe663
add birthdays of pkgsrc support for AIX, BSDI, Darwin, IRIX, FreeBSD,
...
Linux, NetBSD, OpenBSD and Solaris.
2004-03-28 12:48:53 +00:00
mrg
15fba948a6
still do argv[0] processing -DSMALL, from tsutsui.
...
pass the smaller list of options to getopt with -DSMALL.
2004-03-28 08:18:14 +00:00
mrg
720263a2ef
crank version
2004-03-28 04:13:40 +00:00
mrg
d7f0a538e2
remove a bunch more stuff with -DSMALL. now we are about 400 bytes larger
...
than x_gzip... given we add -l support, time to retire x_gzip/gzip.c.
2004-03-28 04:07:45 +00:00
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
wiz
5ad6c16fa8
Bump date for previous.
2004-01-26 21:59:42 +00:00
dsl
c08c3c342b
Pass -MD through to cpp so that it can generate a depend file.
...
(Actually pass any -M <arg> through, but -MD is most useful.)
2004-01-26 21:51:11 +00:00
dsl
36af2f9f0c
Redo code that expands the 'xxx.o' to 'xxx.o xxx.so xxx.po xxx.ln' so that
...
is doesn't care which of the wanted suffixes are in the input file.
Needed for my autodepend code where you don't know which compilation ran last.
2004-01-26 21:47:04 +00:00
grant
23032f5513
void functions need not call return
2004-01-25 05:19:49 +00:00
dsl
c3032ca9a0
Restore correct name string when VarGetPattern() returns.
...
Stops error from free() evaluating ${x::=y} when x is undefined.
(Erm why is free() allowed to write to fd 2?)
2004-01-24 19:58:54 +00:00
wiz
49b12ea919
Some fixes from jmc@openbsd.
2004-01-24 17:03:26 +00:00
snj
33a43be982
Mention mixerctl.conf in FILES and SEE ALSO. While here, tidy up some
...
sentences. Bump date. Closes my own PR misc/23516.
2004-01-23 21:12:07 +00:00
dbj
6ea7ce87e3
fixes to keep default output under 80 columns
...
reduce default number of disks to 3 from 4
adjust widths of cpu stats if one of them is 100%
always put spaces between # of processes runnable (from pr 12691)
2004-01-22 21:47:55 +00:00
mrg
b1da97fd23
apply the patch from PR#24127: make audio_wav_parse_hdr() take u_int *
...
parameters for encoding, precision, sample rate and channels.
2004-01-21 11:55:07 +00:00
sjg
4d32648363
ternary is .PHONY
2004-01-19 00:32:26 +00:00
mrg
7ca9a9ac30
redo the former in light of making the kernel output normal 64 bit
...
records for 32 bit & 64 bit processes. we still make some adjustments
when dealing with 32-bit processes, but largely things are handled the
same now. make the code to match "netbsd32_<syscall>" in place of
plain "<syscall>" more general.
2004-01-15 14:42:09 +00:00
grant
fc6ca7735c
uppercase NFS acronym
2004-01-15 03:33:20 +00:00
mrg
2ccd4840f5
- add a new flags field to the emulation vector, with one user so far
...
EMUL_FLAG_NETBSD32. set EMUL_FLAG_NETBSD32 in any 32 bit on 64 bit
kernel emulation layers.
- if EMUL_FLAG_NETBSD32 is set, calculate the proper argument count.
(XXX: this should use register32_t, but that's not visible to all
builders of kdump...)
now netbsd32_ioctl(2) actually reports sane values, and other arguments
are mostly correctly printed (there are still some signed extension
issues with 32 bit numbers being displayed as "0xffffffff8xxxxxxx".)
2004-01-12 13:39:56 +00:00
jdolecek
bd4dbe8139
g/c SDEAD handling
2004-01-11 19:15:50 +00:00
dsl
4169574d6f
Reindent search loop in SuffFindCmds using 'continue' and 'break' instead
...
of netsted ifs. No logic change.
2004-01-11 17:24:25 +00:00
dsl
742a98df46
Change DEBUG(DIR) traces to indent subsequent filenames instead of
...
generating very long lines (basically changes "..." into " ...\n ").
2004-01-11 12:22:40 +00:00
sjg
71746b839b
Add unit test for ternary modifier
2004-01-09 00:56:44 +00:00
sjg
1752434408
Fix :?: modifier so that it works again.
2004-01-08 23:55:05 +00:00
atatat
a068aea23a
Find the buf_map symbol, so that the submap can be labeled properly.
2004-01-06 14:01:19 +00:00
itojun
144fd6a2bf
typo fix. do not go suicide by mistake. from millert@openbsd
2004-01-06 07:35:58 +00:00
sjg
345311007d
Handle more complex conditional expressions.
...
CondCvtArg now returns NULL if it consumed all input, or a pointer
to any left overs.
2004-01-06 01:18:52 +00:00
jmmv
672f49e3a2
Let the usage message fit in 80 columns to avoid wrapping.
2004-01-05 23:35:41 +00:00
jmmv
b635f565e7
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
...
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
itojun
85dd54f188
KNF, from kevlo@openbsd
2004-01-05 19:20:10 +00:00
lukem
32e6b841fb
Generate the copyright string from sys/conf/copyright rather than
...
replicating it here. Idea from Simon Burge.
2004-01-05 03:53:10 +00:00
wiz
5b677ebe3a
Bump Dd for previous.
2004-01-04 02:24:32 +00:00
wiz
86a0205ded
Point people to re_format(7) instead of regex(3) for
...
RE description; from Greg A. Woods.
2004-01-04 02:24:07 +00:00
augustss
063a980b4e
Fix typo about which mixer device is used.
2004-01-03 18:43:02 +00:00
lukem
986979b8c9
Consistently check ${TOOLCHAIN_MISSING} against "no".
2004-01-03 14:04:27 +00:00
mrg
d8d414bd77
prepend_gzip: avoid searching beyond this string
2004-01-03 02:39:18 +00:00
wiz
9b45ab8153
Remove superfluous max() macro.
...
Noted by Jeff Ito in PR 23932.
2004-01-03 01:18:14 +00:00
cjep
26e45f0c9a
Import of our changes to grep developed in othersrc. A very
...
brief summary:
* Add NetBSD RCS Ids. Change to use a date based version number.
* Remove unused variables and functions.
* Move towards NetBSD code style.
* Add missing GNU options (except for --include, --exclude and
--line-buffered)
* Bug fixes
* Bug fixes and changes from OpenBSD's src/usr.bin/grep
A full list of changes can be viewed in the NetBSD CVS repository at
othersrc/usr.bin/grep. A ChangeLog is also available at:
ftp://ftp.NetBSD.org/pub/NetBSD/misc/cjep/grep-ChangeLog.txt
If you want to help out, please let me (cjep@) know so that we can
organise our efforts efficiently.
2004-01-02 15:00:29 +00:00
cjep
9ffc49ef33
Import of our changes to grep developed in othersrc. A very
...
brief summary:
* Add NetBSD RCS Ids. Change to use a date based version number.
* Remove unused variables and functions.
* Move towards NetBSD code style.
* Add missing GNU options (except for --include, --exclude and
--line-buffered)
* Bug fixes
* Bug fixes and changes from OpenBSD's src/usr.bin/grep
A full list of changes can be viewed in the NetBSD CVS repository at
othersrc/usr.bin/grep. A ChangeLog is also available at:
ftp://ftp.NetBSD.org/pub/NetBSD/misc/cjep/grep-ChangeLog.txt
If you want to help out, please let me (cjep@) know so that we can
organise our efforts efficiently.
2004-01-02 15:00:25 +00:00
cjep
232a750c61
Import of BSD-licensed grep by James Howard and Dag-Erling Coïdan
...
Smørgrav. This import is of version 0.16.
2004-01-02 14:58:43 +00:00
itojun
3d7bc49491
use snprintf, dude
2004-01-02 12:09:48 +00:00
simonb
95a042fe31
Fix off-by-one error in the malloc of the new argv in prepend_gzip().
2004-01-02 10:09:42 +00:00
wiz
7569ff6812
Fix typo in comment.
2004-01-02 03:12:21 +00:00
wiz
75806e5a61
Sort sections. New sentence, new line. Bump date.
2004-01-02 03:01:13 +00:00
mrg
0b76a77c33
implement $GZIP handling.
2004-01-02 02:55:26 +00:00
mrg
91536bce55
note that $GZIP support is missing still
2004-01-02 01:40:59 +00:00
mrg
74e9c5767a
allow HAVE_ZLIB_GZOPENFULL to be overriden externally
2004-01-02 01:34:01 +00:00
yyamano
0eb77d4bef
Fix incorrect date: 1.4 and 1.4.2 release.
2004-01-01 16:50:05 +00:00
mrg
e4b2fd8644
don't dump core in the face of unknown long options. from cjep@
2004-01-01 05:28:44 +00:00
wiz
a8763d1922
.P -> .Pp (typo fix).
2004-01-01 03:51:36 +00:00
mrg
09e6110c19
add some simple -DSMALL support. reduces the size of gzip(1) itself a by
...
nearly 2.5KB text.
2004-01-01 02:58:36 +00:00
mrg
ecadec7f36
port simonb's bzip2 support.
...
misc cleanups.
2004-01-01 02:44:09 +00:00
mycroft
a9866938b5
Welcome to 2004!
2004-01-01 00:00:05 +00:00
pk
498839ae5e
Adapt to kernel buffer cache memort allocation changes.
...
Since the buffer headers do no longer exist as an array in the kernel anymore,
use the new CTL_KERN.KERN_BUF mib to fetch them from kernel space.
Also look at a vnode's specinfo field to properly associate an opened
block device special file with a mounted filesystem.
2003-12-30 12:52:48 +00:00
simonb
60e35b79cc
Make "copy the file" (the -c option) the default behaviour. The -c option
...
is kept for backwards compatibility but now has no effect.
Patch from Bruce Nourish in PR bin/23874, with some minor changes by me.
2003-12-29 02:01:27 +00:00
wiz
e000293cc0
Add RCS Id.
2003-12-28 17:26:48 +00:00
wiz
6ac2a4f4db
Add a BSD licensed zgrep written by me.
...
Much nicer than the old one, if I may say so.
Thanks go to atatat for testing and suggestions.
2003-12-28 17:26:00 +00:00
mrg
0889156103
GNU gzip compatibility: don't let "gzip -dc" (zcat) operate on non-gzip
...
files by default. -f must be used.
2003-12-28 13:42:28 +00:00
mrg
f13009df25
fix an error in the previous
2003-12-28 13:40:56 +00:00
mrg
7530d0a53d
zdiff is also zcmp (from wiz)
2003-12-28 13:37:23 +00:00
wiz
98018344b7
No argument necessary after .Nm; add missing comma to enumeration.
2003-12-28 12:49:41 +00:00
wiz
28c2ebe997
Use more macros.
2003-12-28 12:48:03 +00:00
wiz
18a6b94f65
Uppercase CRT.
2003-12-28 12:47:52 +00:00
wiz
3a92ef57da
Add RCS Id.
2003-12-28 12:43:43 +00:00
mrg
ff7efa72db
install gzexe, zdiff, zforce, zmore and znew scripts and manual pages.
...
XXX: now only missing zgrep.
2003-12-28 12:37:42 +00:00
mrg
5ddb436023
import openbsd z* scripts and manuals.
2003-12-28 12:31:55 +00:00
jmc
6cf7ed4ade
Fix PR#4980 and support common symbols correctly in crunched programs.
...
Exclude them from renaming and expect the linker to do the right thing in
resolving them all to the library copy (i.e. optarg) or locally as the
case may be. Testing multiple programs crunched which reference optarg shows
correct behavior now.
2003-12-28 09:21:36 +00:00
jmc
c392dc52fe
Support crunch configs which specify relative srcdir's but don't use -D. For
...
these cases, prepend getwd() onto the front of them so a full correct path
is passed to the reach over make command (as it's running from at least
a subdir of the current directory for each object)
2003-12-27 22:28:38 +00:00
wiz
8114895bf3
Bump date for previous; use macros for marking up
...
the dollar sign.
2003-12-26 23:22:31 +00:00
jmc
31e37b335f
Note that variable expansion can occur within SYSV style = substitions.
2003-12-26 23:18:18 +00:00
jmc
3eb499682d
Support variable expansions inside of SYSV style = substitutions. Better matches
...
expectations (and some cases of historical behavior I've found). Also fixes
PR#3865
2003-12-26 23:13:32 +00:00
wiz
67ae4b51b8
.Pp\n.Pp -> .Pp.
2003-12-26 15:24:00 +00:00
mrg
63f41c4e03
--long-options are supported
2003-12-26 15:21:05 +00:00
wiz
cf79907567
New sentence, new line; avoid &; uppercase CRC.
2003-12-26 15:18:54 +00:00
mrg
f737ab4d3e
bump .Dd
2003-12-26 15:16:05 +00:00
mrg
a4624b06a5
- document --list
...
- use unsigned char's that are used in unsigned calculations later.
2003-12-26 15:15:49 +00:00
mrg
9e3ca570b9
support gzip -l -v.
2003-12-26 15:06:16 +00:00
mrg
88899e3372
- print totals for --list.
...
- round down percentages, like GNU gzip does
- use "stdout" not "-", like GNU gzip does
- factor percent calculation code.
2003-12-26 14:49:37 +00:00
mrg
78b17b7b2b
begin to start to support --list.
2003-12-26 14:11:01 +00:00
jmc
c7c6bf2bbd
Don't assume startc is always {, set delim to endc when separating the args to
...
the ? test.
2003-12-26 08:03:06 +00:00
wiz
f239211326
Sort options; no spaces at EOL; limit line lengths.
...
Fix one typo.
2003-12-23 23:20:37 +00:00
mrg
75fa5559f5
- make this WARNS=3 happy
...
- add RCSID()
- document the version number
2003-12-23 15:02:40 +00:00
jdolecek
23c869fe88
fix markup of --suffix option
...
add zlib(3) xref also to SEE ALSO
2003-12-23 08:19:49 +00:00
jdolecek
3c67b87463
some const-poisoing, depend on bss to set gzipflags[]
2003-12-23 08:11:58 +00:00
jdolecek
1740f0282b
remove one extra backslash from MLINKS
2003-12-23 07:56:01 +00:00
mrg
0a1b09ba9c
install gunzip, zcat & gzcat links.
2003-12-23 06:23:32 +00:00
mrg
874b680779
delete unused variables
2003-12-23 06:23:18 +00:00
mrg
4084ec5402
import distrib/utils/x_gzip into usr.bin/gzip, with these enhancements:
...
- fully updated manual
- -n/-N support
- time stamp/owner/etc saved properly
- GNU gzip --long-options supported (missing --ascii, --list
and --licence)
- various cleanups & fixes
note that "-n" (save filename) support is currently disabled due to
depending on API changes in zlib. for now, this support is disabled
(however "gzip -N -d" works.)
this gzip(1) replacement is ready for serious testing. issues are:
- might implement --list one day
- zlib API addition
2003-12-23 05:16:31 +00:00
dsl
e2be127214
Use an array of pointers to menu definitions so the array can grow without
...
leaving code having stale pointers to menu ites.
2003-12-21 21:42:48 +00:00
kleink
4bd5e026a4
Update to keep file lengths in appropriate data types (off_t, as opposed
...
to u_int32_t).
2003-12-20 23:41:38 +00:00