simonb
618d628845
Reverse the if and else clauses for the chardata test if there is
...
no format string specified.
Fixes PR bin/12424 from Jim Bernard.
2001-03-17 11:43:06 +00:00
pooka
64f1971541
update for file 3.34
2001-03-17 11:32:15 +00:00
pooka
629aebf0e1
kill dupe RCS Id
2001-03-17 11:30:52 +00:00
pooka
85cfab9a41
make this compile with our warning flags
2001-03-17 11:25:32 +00:00
pooka
a2f50a2443
resolve conflicts
2001-03-17 11:21:51 +00:00
pooka
d58fff15f7
file 3.34
2001-03-17 11:06:52 +00:00
mycroft
3fe322d08e
Power of 2 realloc.
2001-03-16 08:02:32 +00:00
fair
5f086f4804
Add cross references for qsort(3), and radixsort(3), per PR 10567
2001-03-16 07:37:58 +00:00
fair
fb3c4927d6
Commit patch from PR 9220 to document all options, and consistently
...
document defaults. Also, clean up nroff nits.
2001-03-16 06:23:20 +00:00
jdolecek
507cbfd5d0
Use patch provided Paul Janzen <pjanzen@OpenBSD.org> to fix
...
bin/12316 more completely.
Highlights:
* we only allow explicitly specified set of (numberic) formats
* %% is correctly skipped, extra %foo formats are detected
* '*' in format specification is not allowed
The code in getformat() is slighly different to the OpenBSD version
of fix - the list of allowed printf(3) flags is explicit and the
condition checking 'chardata' is written slighly differently.
Also pull-in some cosmetic changes from OpenBSD - s/isdefault()/is_default()/,
error() -> errx(), usage().
2001-03-14 07:50:06 +00:00
jdolecek
5cf4138b21
Don't exit with status 1 for successfull (non-interrupted) run.
...
Reported and patch provided in bin/12372 by Jim Bernard.
2001-03-12 13:29:26 +00:00
eeh
7cb49c5859
Add svr4_32 info.
2001-03-11 21:28:59 +00:00
itojun
6924e04336
redo of previous: do not destroy v->val if str points to v->val.
...
XXX GC of v->val
2001-03-10 00:41:48 +00:00
itojun
4679105873
correct case with VAR_KEEP. if clause checked VAR_KEEP backwards,
...
and made str a dangling pointer.
2001-03-09 12:49:05 +00:00
simonb
1d86c612aa
Show pages used by executables.
...
Align the numbers in the summary lines.
2001-03-09 03:05:20 +00:00
simonb
21425f4507
Show number of pages used by executables now that they're are counted
...
by UVM.
2001-03-09 02:42:23 +00:00
ross
3a0778cdc4
lp64/printf
2001-03-08 06:28:14 +00:00
enami
33ee74b742
Print hopcount too when -rv is given.
2001-03-08 03:47:04 +00:00
fair
a672ba6fd5
Correct the HISTORY section, per PR 11192 and Robert Elz.
2001-03-08 02:59:25 +00:00
garbled
5d095e634b
Fix more problems noted in PR 6649
2001-03-07 22:34:35 +00:00
garbled
092307c43c
Fix problem noted in PR 6649 (nuke trailing whitespace in .Nm)
2001-03-07 22:32:36 +00:00
wiz
9d876c80cc
Sprinkle some const, and rename a shadow-variable.
2001-03-05 20:26:17 +00:00
wiz
8e6d01d5a7
Fix appearance of bogus 0xff at EOF reported by me in bin/12287.
2001-03-05 20:19:54 +00:00
sjg
cefcce2537
Test for non-existant LIB was incorrect (using cmtime cf. mtime).
2001-03-05 16:20:33 +00:00
hubertf
d0a42335a9
Don't play trailing garbage at end of RIFF WAVE (.wav) files
...
Patch sent by YAMAMOTO Takashi <takashi.yamamoto@bigfoot.com> in PR 12328
2001-03-04 15:27:35 +00:00
assar
93963c8db2
fix spelling of cpp symbol (ENCRYPT vs ENCRYPTION).
...
enable encryption with autologin.
fixes PR 12226
2001-03-04 01:51:05 +00:00
assar
e625c71295
add krb5 support to ssh/sshd. based on code initially from Daniel Kouril <kouril@informatics.muni.cz> and Björn Grönvall <bg@sics.se>
2001-03-04 00:41:27 +00:00
jdolecek
13cb1a6488
Don't coredump if format given via -w doesn't contain alphanumeric
...
character; in such case, warn user the format is invalid.
This addresses bin/12316 by Perry E. Metzger.
2001-03-02 21:17:31 +00:00
itojun
7806b5d1f3
increase ipstat.ips_badaddr if the packet fails to pass address checks.
2001-03-02 04:26:10 +00:00
cgd
82f3142780
fix NetBSD RCS id tags
2001-02-27 19:04:39 +00:00
cgd
fd8d16c72f
fix broken NetBSD RCS id tags
2001-02-24 00:43:50 +00:00
christos
3e343f9152
PR/12251: Thomas Klausner: Make core dumps on unclosed conditional.
...
Well, it should say 'make core-dumps on any error on the primary makefile'.
This was a result of the new changes to print the path to the parsed
Makefile... Made the code a lot more conservative, plus prepended <progname>:
to each message.
2001-02-23 21:11:38 +00:00
jdolecek
d906805397
Use MAXPATHLEN (which is 1024) instead of _POSIX_PATH_MAX (which is only 255).
...
This change tracks change in rev 1.25 of sort.c by Christos Zoulas.
While here, improve error messages slighly.
2001-02-23 08:59:49 +00:00
christos
e56e039c8c
- use MAXPATHLEN (1024) instead of _POSIX_PATH_MAX (255) for the temporary
...
path buffer
- provide better error messages about why the temp file creation is failing
- explicitly compare syscall return to -1 instead of < 0 and fdopen return
to NULL instead of 0.
2001-02-22 22:45:49 +00:00
christos
faf9e3e459
Fix problem when using sort >> foo
...
If no output file was specified sort fopened("/dev/stdout", "w").
This is *wrong* because "/dev/stdout" will truncate the output file,
thus undoing the append effect the shell had set up. The simple fix
here is to just arrange for outfp = stdout and don't play with /dev/stdout.
While I am here:
- KNF
- make pattern for mkstemp have 6 X's.
2001-02-21 19:24:30 +00:00
itojun
e79a9123a3
use u_quad_t for rtstat.
...
not sure if it really matters, but short (32K) looks way too small given
recent fat pipes connecting *BSD boxes, and our great uptime :-).
2001-02-21 05:45:11 +00:00
cgd
040de26f85
call setprogname(argv[0]) at start of main()
2001-02-21 00:06:22 +00:00
cgd
c2bdafab79
use getprogname()
2001-02-20 23:51:59 +00:00
jdolecek
9c52662e24
fsort(): don't call append() with zero nelem
...
This fixes the 'sort -f /dev/null' coredump reported on current-users.
2001-02-20 18:33:09 +00:00
cgd
a8ec668ddf
convert to use getprogname()
2001-02-19 23:03:42 +00:00
jdolecek
025b45e604
Pull in various cosmetic changes from OpenBSD version of this manpage - mostly
...
whitespace changes, which don't influence the layout of result manpage at all,
but also add -H to SYNOPSIS and state sort(1) appeared in v5, not v6 of
AT&T Unix.
2001-02-19 21:06:57 +00:00
jdolecek
affba8f2e9
Pull up various cosmetic (mostly whitespace) changes from OpenBSD.
...
This is primarily to ease syncing the two versions.
2001-02-19 20:50:17 +00:00
lukem
83a00b2109
- display a limited progress bar (containing bytes xferred and xfer rate)
...
when the file size is unknown
- disable progress bar during remglob()
2001-02-19 20:02:42 +00:00
jdolecek
21928fdd78
enterfield(): test the buffer size BEFORE assignment also for the other code
...
branch, since we might get called with tablepos == endkey for some special
input files (where an record would happen to fit exactly to the input
buffer) - BTW, this bug looks like it has been here ~forever ...
This seems to fix the sort crash for 'make british' build of ispell package,
as reported by Mark White at current-users@.
2001-02-19 19:52:27 +00:00
jdolecek
c499b18924
enterkey():
...
* move the test for keybuf size before keypos[-1] assignment, "just in case"
* move the keypos assignment to improve readability
2001-02-19 19:41:31 +00:00
jdolecek
e1a2c672d7
oops - wrong file, backoff local test change
2001-02-19 19:39:53 +00:00
jdolecek
552af1f3f4
enterkey():
...
* move the test for keybuf size before keypos[-1] assignment, "just in case"
* move the keypos assignment to improve readability
2001-02-19 19:36:59 +00:00
jdolecek
7f547730fd
cosmetic changes - make keylist[] static and remove extern definition
...
in fsort.h, move macro SALIGN() from sort.h to fsort.c
2001-02-19 19:31:29 +00:00
lukem
ac52e9e4de
minor knf
2001-02-19 18:15:28 +00:00
jdolecek
0fbdf074b5
put tmp.c back to Makefile, too
2001-02-19 17:45:24 +00:00