Commit Graph

99 Commits

Author SHA1 Message Date
brucec
6d9b42b486 Fix typos - remove duplicate "the".
PR:	bin/154928
Submitted by:	Eitan Adler <lists at eitanadler.com>
MFC after: 	3 days
2011-02-21 09:01:34 +00:00
joel
29af67e52c Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with:	imp, rwatson
2010-12-11 08:32:16 +00:00
ed
9b380e30d4 Build usr.bin/ with WARNS=6 by default.
Also add some missing $FreeBSD$ to keep svn happy.
2010-01-02 10:27:05 +00:00
kevlo
ee96f0aa6f Use NULL instead of 0 for the return value of fopen().
Approved by: re (kensmith)
2007-09-21 01:55:11 +00:00
ru
e68efdc747 Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
ru
6cc4b6c220 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
tjr
1d5fa9d950 Store a pointer to "null" in struct ndblock's defn member instead of a
duplicate allocated on the heap; the address defn points to is significant,
and is checked against the address of "null" in certain conditionals.

PR:		59883
MFC after:	1 week
2004-08-16 14:18:22 +00:00
tjr
5b15fb7d42 Respect locale settings from the environment. 2004-07-12 02:48:40 +00:00
tjr
c9e47db057 Document missing multibyte character support in utilities specified
by POSIX.
2004-07-03 01:28:21 +00:00
ru
fb1d8b3724 Mechanically kill hard sentence breaks. 2004-07-02 22:22:35 +00:00
stefanf
f4d682445c Don't depend on NULL's expansion being a pointer, cast it before it is passed
to variadic functions.

Approved by:	das (mentor)
2004-05-18 15:53:58 +00:00
smkelly
507ac98289 Fix m4 to properly handle bitwise operators &, ^, and |. Fix operator
precedence. Add short-circuit evaluation.

PR:		bin/60914
Reviewed by:	petef
Discussed with:	jeff, petef
2004-05-01 03:59:43 +00:00
smkelly
1728b4c285 m4 script to test the functionality of math operators in eval().
Submitted by:	K S Braunsdorf <sed@ksb.npcguild.org>
2004-05-01 03:27:05 +00:00
maxim
5b8e9ac6f5 Use .St -susv2 rather than "The Single UNIX specification".
Submitted by:	osa
2003-12-10 10:52:48 +00:00
charnier
b0319d6cd2 The .Nm utility 2003-06-08 13:47:20 +00:00
tjr
ddbd6efafa Flush streams before calling system() so that the output appears in the
right place in the output stream when redirected to a file (when full
buffering is enabled). Noticed by schweikh on freebsd-standards.
2003-05-01 02:36:27 +00:00
schweikh
14fc0ea5a4 Correct typo in COMPATIBILITY section: s/esycmd/esyscmd 2003-04-23 08:47:51 +00:00
schweikh
fec6546e12 english(4) police. 2002-12-27 12:15:40 +00:00
jmallett
ffb74eb1b4 When we appear to want a signed value from sizeof(), use ssize_t in the cast,
rather than int.
2002-10-30 15:50:00 +00:00
jmallett
eadd2de4a6 Die on -D=foo, when parsing options - we can't let someone define (nil).
MFC after:	3 days
2002-09-04 01:12:39 +00:00
jmallett
5cf2af5a27 Kill extraneous whitespace. 2002-07-15 02:15:12 +00:00
jmallett
8dcca6c133 Add a default case to the getopt(3) switch, remove a blank line nearby. 2002-07-14 02:34:37 +00:00
jmallett
868a694e34 Functions declared as <type> <identifier>(<nil>) should be declared as
<type> <identifier>(<void-type>) in ANSI C.
2002-07-14 02:03:23 +00:00
jmallett
1c19cb9624 Remove prototype for main(). 2002-07-14 02:00:45 +00:00
jmallett
e62709f86b Whitespace fixes to line-up EOL escapes whose right-most extraints changed in
the previous revision due to the biggest line changing.
2002-06-20 11:17:46 +00:00
jmallett
9942f1e160 Cast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.
This messes up some indentation in mdef.h for some macros.
2002-06-20 11:14:54 +00:00
jmallett
241a475e6f Note that this appeared at least as early as PWB UNIX.
Use the literal string 'PWB UNIX', as we still have no .At macro for it.
2002-06-10 22:59:59 +00:00
jmallett
cc031d1bb1 Make the manpage consistent with the code on the subject of comments, as to
not change the code to always do the "GNU" thing, as it's possible people
rely on BSD m4(1) traditionally resetting comment characters in case of no
arguments to the changecom function.

PR:	bin/17480 (I think this satisfies the problem report)
2002-06-03 20:35:35 +00:00
ru
1446786a98 mdoc(7) police: tidy up the markup. 2002-05-30 11:12:34 +00:00
tjr
ec9860cfd0 Add Standards, Diagnostics and History sections. 2002-05-26 07:07:14 +00:00
tjr
dc6576dc1f If a file operand cannot be processed, go on to process any remaining files
but exit non-zero.
2002-05-26 06:15:15 +00:00
jmallett
0ff89ada02 Rename eqrelval' which was renamed from eqrel' to quiet a shadow warning
to `op' as suggested by Bruce, as this is used to store the operator between
vl and vr.

Submitted by:	bde
2002-05-03 20:46:10 +00:00
jmallett
fc27b969e8 Revert vendor identifiers, and #if 0 what is #if 0/#else for OpenBSD.
Add __FBSDID() properly.

Requested by:	bde, mike
2002-05-03 14:48:21 +00:00
jmallett
ccab2ee09e Remove redundant declarations of getopt(3) externals (since <unistd.h> does
take care of them), and add __FreeBSD__ to the defined() checks for the
_PATH_DIVNAME.
2002-05-02 05:25:23 +00:00
jmallett
831e54bef9 Add some spurious veritcal whitespace to reduce diffs to OpenBSD. 2002-05-01 21:45:22 +00:00
jmallett
5f1aa32acd Merge local changes again, against ANSIfied m4(1). 2002-05-01 21:37:29 +00:00
jmallett
57eb4121a5 Use %zu to print a size_t, not %u and definitely not %d.
Remove WARNS?=2, as GCC will usually throw a fit right now, and I'm not going
to mix WARNS and NO_WERROR.

Submitted by:	fenner
2002-04-20 21:37:26 +00:00
jmallett
26cc89a7ab Print a size_t as %u not %d.
Pointed out by:	mike, des's tinderbox
2002-04-20 21:13:00 +00:00
charnier
ad8a79e6a5 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ache
8b5aa4feb9 Prevent sign extension (again) 2002-04-20 02:04:58 +00:00
jmallett
ecccdb8703 Crank WARNS.
Cast sizeof() to (int), as it's being compared against an int, not a size_t.
If i is changed to a size_t, it means the logic must be slightly changed later
in the flow, where --i is checked to be >= 0.  I am not sure I want to make a
logic change to account for clearing up a warning, when an aesthetic one will
keep from modifying the logic.

Other harmless casts, that I think I've made in the right directions.

Make gpbc() an inline function, rather than an obfuscated macro, make its
scratch space local, rather than global.  The previous macro used a dirty
hack (logical AND in place of a conditional) which would lead GCC to throw
a fit (rightly so) as the logical check, as well as the incrementation of
a variable, were not used for anything.

const'ify a few places where gcc3 yells. xstrdup() some global consts in
places where we xstrdup() when not using consts, but tried to assign them
to non-consts before.

Don't use execv(2) if we don't have the kind of arguments it wants.

Reviewed by:    asmodai obrien tjr
Submitted by:   tjr (a gcc3 build log)
2002-04-20 01:49:10 +00:00
ache
892b6521ac Prevent sign extension on characters with 8bit set 2002-04-19 19:43:46 +00:00
jmallett
f8344a0fde Add __FBSDID, this file was unmodified so it was missed in the initial sweep. 2002-04-19 17:33:12 +00:00
jmallett
b38bbfea3b Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option,
$FreeBSD$ identifiers, and fix initialisation to stderr to happen in a function
as stderr is not the same in CURRENT as in OpenBSD.

Reviewed by:	obrien
2002-04-19 17:26:21 +00:00
jmallett
e0dd7499cb Merge differences and correct the manual page. 2002-04-19 17:16:23 +00:00
jmallett
116615d3b6 This adds support for -s to the m4(1) utility, which causes #line directives
to be emitted as per the C preprocessor.  It updates the manual page in
regards to standards accordingly.

PR:		standards/36075
Submitted by:	tjr
Reviewed by:	mike
MFC after:	1 week
2002-04-17 17:26:32 +00:00
imp
1698cb216e remove __P 2002-03-22 01:33:25 +00:00
jmallett
1535c1638d This commit was generated by cvs2svn to compensate for changes in r90744,
which included commits to RCS files with non-trunk default branches.
2002-02-16 21:27:48 +00:00
jmallett
8fcbd90d54 Import OpenBSD m4 as of today. 2002-02-16 21:27:48 +00:00
jmallett
aaec7e94a0 Import OpenBSD m4 as of today. 2001-11-16 23:50:40 +00:00