fenner
99d6402b40
Instead of eating trailing newlines after inserting them into the
...
output buffer, don't insert them at all. This prevents a buffer
*underrun* when the substitution consists completely of newlines
(e.g. `echo`) and the byte before the source buffer to which p
points is a '\n', in which case more characters would be removed
from the output buffer than were inserted.
This fixes certain port builds on sparc64.
Approved by: re (scottl)
Reviewed by: des, tjr
2003-05-31 06:27:57 +00:00
ru
8ec4f151e2
Erase whitspace at EOL.
...
Approved by: re (blanket)
2003-05-22 13:10:32 +00:00
des
e5d2d778eb
Retire the useless NOSECURE knob.
...
Approved by: re (scottl)
2003-05-19 15:52:01 +00:00
ru
c67d493b98
mdoc(7) police: A better version of the same.
...
Approved by: re (blanket)
2003-05-16 21:19:32 +00:00
ru
889e4564c8
mdoc(7) police: Fix document date.
...
Approved by: re (blanket)
2003-05-16 21:18:01 +00:00
schweikh
b9b6f9fc33
Note that -n and \c are implementation-defined as per TC1 to POSIX 2001.
...
Approved by: re@ (bmah)
MFC after: 3 days
2003-05-08 17:47:28 +00:00
trhodes
00a5646d50
df(1) and ls(1) print units in 'four or fewer' not 'three or less'.
...
PR: 35523
Submitted by: Tomas Svensson <tsn@gbdev.net>
2003-05-06 21:54:46 +00:00
obrien
df429f4699
Centralize _PATH_* definitions.
...
Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
2003-05-05 22:49:23 +00:00
markm
bc6b9b68d5
Fix long constant usage for i386.
...
Tested by: Joe Marcus Clarke <marcus@marcuscom.com>
2003-05-03 20:52:48 +00:00
keramida
978f22b7c8
Fix a broken reference to locale(5) and point to re_format(7) too for an
...
explanation of `collating elements'.
2003-05-03 20:26:11 +00:00
markm
0bdf7b1ca4
Fix a bazillion warnings. This makes almost the whole of src/bin/*
...
WARNS=6, std=c99 clean.
Tested on: i386, alpha
2003-05-03 16:39:34 +00:00
markm
374b694311
WARNS cleaning for the Alpha. On alpha, size_t is a long, and it
...
solicits a warning when used for the '*' in printf("%*d"). Cast
to u_int for universal use.
2003-05-03 16:02:52 +00:00
markm
f3382cb4be
Fix a shedload of warnings, some memory leaks and clean up WARNS
...
and lint. This is now WARNS=9, std=c99 clean on i386.
2003-05-03 10:21:26 +00:00
markm
8fbb9826c9
Fix format warning. This is WARNS=9, std=c99 clean on i386.
2003-05-03 10:16:51 +00:00
markm
aed36bd125
Fix warnings. This is now WARNS=9, std=c99 clean in i386.
...
Use return(0) for main() instead of exit(0). Makes it a
wee bit smaller.
2003-05-03 10:14:26 +00:00
obrien
9bb7fb74d1
Make this WARNS=1 as that is all we can do with GCC 3.3 -- too many
...
sized/unsigned comparisons.
2003-05-02 06:39:13 +00:00
obrien
3bcdc44d52
Make count a size_t as that is what is compared against and how it is used.
2003-05-02 06:36:52 +00:00
obrien
62a652dc44
The is_name and is_in_name macros are FUBAR'ed.
...
Due to the use of signed vs. unsigned chars on our various platforms, one gets
"warning: comparison is always true due to limited range of data type"
from GCC 3.3.
2003-05-02 06:24:51 +00:00
obrien
675505de16
fmt.c has a comparison between signed and unsigned that is unclear how
...
to properly fix.
2003-05-02 01:05:05 +00:00
obrien
14593b22f8
Quiet warnings about copyright[].
2003-05-02 00:04:21 +00:00
obrien
3557f18a16
Fix signed/unsigned mix comparisons involving sizeof.
2003-05-02 00:03:10 +00:00
obrien
eaf3fff90a
Quiet warnings about copyright[].
2003-05-01 16:58:57 +00:00
obrien
cd28e9efd9
Make GCC 3.3 STFU about copyright[].
2003-05-01 14:45:27 +00:00
tjr
910109ede4
Add the -j and -y options to the synopsis.
2003-05-01 02:37:46 +00:00
schweikh
eb8fd40b31
Fix references to non-existing or obsoleted man pages.
...
PR: docs/51480 (only a small part)
Submitted by: Diomidis D. Spinellis <dds@aueb.gr>
2003-04-30 19:18:50 +00:00
obrien
4389ea67ab
We have to hide copyright[] for gcc33. :-(
2003-04-30 17:40:28 +00:00
rwatson
c54b661d3c
When mac_from_text() fails with -Z, print "-" rather than "" so that
...
scripts parsing ls(1) output can still count columns.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
2003-04-26 02:31:26 +00:00
charnier
1315d25026
Revert the zombie part of previous commit
2003-04-15 18:49:20 +00:00
charnier
26efa7aed0
Correct style bugs. Don't skip zombies in cputime(), according to Bruce,
...
zombie CPU times are valid. Adjust array size in strftime(3).
Submitted by: Bruce
2003-04-14 19:51:36 +00:00
bde
0f2f76bb73
Include <signal.h> instead of depending on namespace pollution in
...
<sys/param.h>. Include <sys/types.h> instead of of <sys/param.h>
so that further such dependencies don't develop.
2003-04-13 08:47:30 +00:00
bde
93c5f89d55
Fixed some style bugs in rev.1.44.
2003-04-13 08:27:35 +00:00
tjr
72859c819a
Display residency and sleep times (re and sl fields) larger than 127 as 127.
...
This is what the manual page says ps should do, and what OpenBSD and NetBSD do.
Based on a patch from Ken Stailey.
PR: 27433, 46232
2003-04-12 10:39:56 +00:00
tjr
1b36fd7c8a
Refer to 1003.1-2001 in the Standards section now that TC1 allows the
...
traditional BSD behaviour (-n option) and FreeBSD extensions (\c).
2003-04-12 03:49:28 +00:00
tjr
3696ac15a7
Document the -L and -P options as being mutually exclusive.
2003-04-12 03:22:54 +00:00
tjr
cc40c95588
Document the -L and -P options to the cd and pwd commands as being
...
mutually exclusive. The fact that the most recent one specified on the
command line is the one that takes effect is an implementation detail and
users should not rely on this.
2003-04-12 03:20:28 +00:00
mdodd
86b0c078f7
Use the correct data type and qualifier for signal flag.
2003-04-07 12:09:17 +00:00
mdodd
7e2b8444e0
Add a SIGINFO handler.
2003-04-07 11:00:56 +00:00
johan
ce3ef17035
Document how to clear flags with negative-logic, currently only
...
the nodump flag.
PR: 46912
Reported by: dave@syix.com <dave@syix.com>
MFC after: 2 weeks
2003-03-24 20:15:58 +00:00
charnier
ed068996dc
The .Nm utility
2003-03-24 16:09:07 +00:00
tjr
836d4a749e
Flush the output buffers before forking a child process to avoid
...
the child process writing data that the parent should have written.
PR: 50051
MFC after: 2 weeks
2003-03-17 11:28:56 +00:00
ru
e6fb7d9461
ssize_t is not required to be the same width as size_t by the
...
specs, so cast to intmax_t where appropriate.
Pointed out by: bde
2003-03-15 13:34:48 +00:00
ru
6999b65340
Fixed (soon might be fatal) -Wformat warnings.
2003-03-15 07:56:59 +00:00
marcel
349ca981e1
Add an -o filename option to have the output written to a file.
...
This option is present on most uuidgen(1) implementations even
though normal file redirection can be used to achieve the same.
Submitted by: Hiten Pandya <hiten@unixdaemons.com>
2003-03-15 02:27:10 +00:00
markm
5736aa9039
WARNS=4 fixes. This would be WARNS=9 if we were -std=99 instead of
...
-ansi, due to 'long long'.
Reviewed by: green (slightly earlier version)
2003-02-27 18:04:54 +00:00
marcel
373501e769
Third attempt at removing machdep.h and using ALIGN from <sys/param.h>.
...
The initial stack_block is staticly allocated and will be aligned
according to the alignment requirements of pointers, which does not
necessarily match the alignment enforced by ALIGN. To solve this a
more involved change is required: remove the static initial stack
and deal with an initial condition of not having a stack at all. This
change is therefore more risky than the previous ones, but unavoidable
(other than not using the platform default alignment).
Discussed with: tjr
Approved and reviewed by: tjr
Tested on: alpha, i386, ia64 and sparc64
2003-02-24 08:07:05 +00:00
ru
8b5b8ec6a7
mdoc(7) police: markup laundry.
2003-02-23 01:47:49 +00:00
ru
0fe24b2245
Grammar.
2003-02-23 01:43:45 +00:00
obrien
25ad184a7a
We can simplify this Makefile down to a single line now.
2003-02-19 16:56:30 +00:00
obrien
def2990baf
Add an example to help one manually set the date on one machine taking the out
...
put from another.
2003-02-18 23:12:55 +00:00
obrien
2c8f50670b
chflags(1) repo copied, usr.bin->bin.
...
We've been installing chflags(1) into /bin since 2000-11-10, so this
shouldn't cause any problems.
2003-02-18 19:51:59 +00:00