Juli Mallett
d2c462cec8
String lengths and sizeof()s are size_t not int. Mark an unused parameter
...
of ReadMakefile as __unused, it's there because this function is used by
the abstracted list interface which normally deals with item handlers which
take two arguments. Add a missing static prototype.
2002-06-12 04:18:31 +00:00
Juli Mallett
22c26d85e3
The error functions take constant pointers to strings for their format.
2002-06-12 04:11:01 +00:00
Robert Drehmel
ddd16e87d0
Use the constants from <limits.h> for the sizes of integral C types
...
rather than defining them ourselves.
2002-06-11 11:27:20 +00:00
Tim J. Robbins
30f8b6c182
paste(1) appeared at least as early as 32v.
2002-06-11 08:13:03 +00:00
Tim J. Robbins
84fb5a42d2
cut(1) appeared at least as early as System III.
2002-06-11 08:11:12 +00:00
Juli Mallett
6fc8ba94c6
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
Tim J. Robbins
3ebf2779b3
Remove -j from synopsis. The form given in the synopsis was incorrect,
...
and it should not have been there at all since it is a deprecated option.
2002-06-10 10:39:33 +00:00
Tim J. Robbins
2a84afe106
When stat(2) fails, put the name of the component it failed on in the
...
warning message as well as the path argument.
2002-06-10 10:03:46 +00:00
Juli Mallett
851623f449
Add another example for using paste(1) since tjr seemed to want more examples
...
on IRC. This one is to create a colon seperated list of directories from
find(1), suitable for use in the shell's PATH.
2002-06-10 09:03:49 +00:00
Tim J. Robbins
76d70052fb
Add an EXAMPLES section with three examples. Document the problem with
...
multibyte characters and the -d option in a BUGS section.
2002-06-10 08:50:56 +00:00
Tim J. Robbins
e7cc3a2191
Refer to environ(7) for description of COLUMNS instead of describing it
...
in-line. Document effects of locale environment variables in the same way.
2002-06-10 07:55:13 +00:00
Tim J. Robbins
1fa600e8fe
The 10 occurrence limit for the `s' command documented here has not existed
...
for a very long time (or never did exist).
2002-06-10 07:44:04 +00:00
Tim J. Robbins
2ef53777fd
Newlines are not escaped anymore.
2002-06-10 07:27:32 +00:00
Tim J. Robbins
e307a7a172
Don't write escape newlines with `l' command (SUSv3)
2002-06-10 07:25:35 +00:00
Tim J. Robbins
03fef72fe9
Correctly handle global substitutions where the pattern is only "$", the
...
EOL anchor, when the last input line does not end in a newline character.
Picked up by the GNU sed test suite.
2002-06-10 06:06:20 +00:00
Juli Mallett
a13d4e42c2
Note early appearence of some commands. These actually appeared in PWB, but
...
it seems we don't have a macro for that yet, so list them in the first UNIX
release since then that we have a .At for: v7.
2002-06-10 05:03:20 +00:00
Doug Barton
b075c273da
Per previous discussion, and with Mark's blessing, update the value
...
of this knob to reflect (-)current reality.
2002-06-09 09:28:02 +00:00
Tim J. Robbins
e8d0276426
Use the Tn macro for COBOL, FORTRAN, PL/1, SNOBOL.
2002-06-08 11:40:12 +00:00
Tim J. Robbins
cbffce5928
Support the "--" end-of-options marker.
2002-06-08 11:33:22 +00:00
Tim J. Robbins
21e502a74c
nroff and pr no longer try to disallow messages.
2002-06-08 10:19:07 +00:00
Tim J. Robbins
500b4b738d
Add an examples section. Avoid beginning a sentence with a lowercase letter.
2002-06-08 08:37:27 +00:00
Tim J. Robbins
e4d15ec387
Document cut(1)'s deficiencies in dealing with multibyte characters in the
...
BUGS section. These will be easy to fix when we have wide character stdio.
2002-06-08 08:08:47 +00:00
Tim J. Robbins
393cf5088e
Don't split multibyte characters when the -n option is specified.
2002-06-08 07:27:21 +00:00
David E. O'Brien
7c381b21ad
Install a "perl5.6.1" wrapper. I think this is going too far as now
...
/usr/src has to carefully watch the Perl port to keep this in sync.
But this is the only way I am allowed to fix the mozzila build
(and other USE_PERL5 ports).
2002-06-07 18:55:42 +00:00
Tim J. Robbins
93738f50e5
style(9): don't initialise variables in their declaration, remove space
...
after function name, use __unused on unused parameters instead of
initialising them to bogus values.
2002-06-07 09:13:43 +00:00
Tim J. Robbins
8cd4e21f0f
Contrary to what the comments said, rs -H did not recycle storage, it just
...
kept writing past the end of the buffer. Correct the code so that it
actually does recycle storage.
2002-06-07 07:08:06 +00:00
Tim J. Robbins
6e473901a3
No need to check for "-" explicitly in getopt() loop.
2002-06-07 02:35:21 +00:00
Tim J. Robbins
c87180589e
Exit >1 when an error occurs, regardless of whether -s is specified (SUSv3)
2002-06-07 02:30:56 +00:00
Juli Mallett
e8e649cc5d
ANSI style function declarations.
2002-06-07 01:41:54 +00:00
Tim J. Robbins
c9ca258430
Expand description of environment variables, refer to environ(7) where
...
appropriate.
2002-06-07 01:29:49 +00:00
Tim J. Robbins
fa7595824c
Style nit: group together optional flags under the one Fl macro.
2002-06-07 01:17:54 +00:00
Tim J. Robbins
9bd2f93ab4
Respect LC_CTYPE and LC_COLLATE environment variables, mainly for their
...
effects on regular expressions. The libc regex code does not handle
equivalence classes well (for example), but we do our best.
2002-06-07 01:04:24 +00:00
Giorgos Keramidas
c8f927b297
Use size_t or ino_t instead of int, and remove a few warnings.
...
The makewhatis utility is now ok with WARNS=3.
Reviewed by: bde
2002-06-07 01:01:08 +00:00
Tim J. Robbins
850a1deb0c
Refer to environ(7) for description of COLUMNS. Note the effects of LANG,
...
LC_ALL and LC_TIME upon the utility.
2002-06-07 00:50:22 +00:00
Dag-Erling Smørgrav
a5426997a3
debug.{numvnodes,freevnodes} moved to vfs.
2002-06-06 23:01:50 +00:00
Doug Barton
d4d239ae67
Hook stat into the build
...
Fix a trailing ws nit while I'm here
2002-06-06 19:36:51 +00:00
Doug Barton
dd3d071205
This commit was generated by cvs2svn to compensate for changes in r97952,
...
which included commits to RCS files with non-trunk default branches.
2002-06-06 19:27:17 +00:00
Doug Barton
06b6d7d8a8
Virgin import of NetBSD's stat(1)
2002-06-06 19:27:17 +00:00
Dag-Erling Smørgrav
1f910d6cae
Factor out some code in preparation for un-kmeming fstat(1).
...
Sponsored by: DARPA, NAI Labs
2002-06-06 18:39:53 +00:00
Ruslan Ermilov
4093807dd9
libfetch now depends on libcrypto and libssl.
2002-06-06 13:45:46 +00:00
Andrey A. Chernov
e12155c834
Back out rev 1.19 because
...
1) It breaks uniq for real life languages when "substitute" directive used in
the collating table.
2) It breaks uniq usage in tool chain with other localized utilities which
use collate.
3) To follow LC_COLLATE it is directly allowed for uniq
by POSIX P1003.1 Draft7 (7.3.2). It means that rev 1.19 gains no additional
POSIX conformance.
2002-06-06 13:44:14 +00:00
Dag-Erling Smørgrav
2b488685e3
Support suidperl as well.
2002-06-06 12:12:23 +00:00
Ruslan Ermilov
860a2bf505
Added missing DPADD detected by ``make checkdpadd''.
2002-06-06 11:30:57 +00:00
Tim J. Robbins
5935c07540
Compare lines with strcmp(), not strcoll(). We are interested only in
...
equality, not ordering.
2002-06-06 03:13:08 +00:00
Tim J. Robbins
6a8be5c4f2
Sync usage() with manual page synopsis.
2002-06-06 03:05:30 +00:00
Dag-Erling Smørgrav
1bf28f7e94
Figures they had to call it NOCRYPT instead of NOCRYPTO.
2002-06-05 21:28:47 +00:00
Dag-Erling Smørgrav
d9615d7da4
During buildworld, "regular" libraries are built before crypto stuff, so
...
libfetch can't depend on lib{crypto,ssl}. Move the dependency to fetch
until we can figure out how to fix this.
2002-06-05 21:25:33 +00:00
Kelly Yancey
ab67591303
Use calculated column widths for the routing table display when -W is
...
supplied rather than arbitrarily larger widths. This (almost) guarantees
that no columns will be truncated (routing table additions between the
width calculation and display passes may create a row with column widths
larger than those calculated).
Sponsored by: NTT Multimedia Communications Labs
2002-06-05 18:29:26 +00:00
Ruslan Ermilov
5af50a7c59
Start the (overdue) de-orbit sequence for the -d -C combo,
...
as was promised in revision 1.43.
MFC after: 1 month
2002-06-05 17:37:48 +00:00
David E. O'Brien
6332b52c26
Some things used "#!/usr/bin/perl5" (such as the /usr/local/bin/use.perl on
...
my system). So install a "perl5" wrapper too.
2002-06-05 15:32:26 +00:00
Dag-Erling Smørgrav
fc281c6159
Don't build perl if NO_PERL is defined.
2002-06-04 15:20:11 +00:00
Tim J. Robbins
d1ccc822a5
Wrap lines correctly for the `l' command.
2002-06-04 10:40:14 +00:00
Tim J. Robbins
30e9580eca
Document the fact that the `l' command uses the COLUMNS environment
...
variable (SUSv3)
2002-06-04 10:01:06 +00:00
Tim J. Robbins
3714ae1254
Ignore COLUMNS environment variable if it is empty (SUSv3)
2002-06-04 10:00:08 +00:00
Tim J. Robbins
8358edb6c7
Respect the setting of the COLUMNS environment variable, use it instead of
...
the TTY width obtained by ioctl() when set & non-null. (SUSv3)
2002-06-04 09:52:30 +00:00
Tim J. Robbins
a51b574c46
Sort options in Description section.
2002-06-04 09:17:30 +00:00
Tim J. Robbins
debb184261
Note SUSv2 conformance.
2002-06-04 09:16:09 +00:00
Tim J. Robbins
91b14bffac
confstr() returns (size_t)-1 on failure. Check for this explicitly instead
...
of trying to see if an unsigned number is less than zero.
2002-06-04 08:45:38 +00:00
Juli Mallett
6aab7a863f
Add support for non-numeric key lookup via the 'cmds' file, by using the key
...
base as the key number.
2002-06-04 06:14:11 +00:00
Juli Mallett
51f7a48bf0
Err, duh, free(3) doesn't set its argument to NULL... Fix realloc of a freed
...
chunk.
2002-06-04 04:08:18 +00:00
Mike Barcroft
cb263c3594
Use POSIX macros for wait(2)-style status information instead of the
...
deprecated 4.2/4.3BSD wait union. Fix some nearby pid_t/int
confusion.
2002-06-03 23:13:11 +00:00
Juli Mallett
ee3cbef6be
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
Tim J. Robbins
1b2edc04ee
Correct History: cal(1) appeared in V5, not V6.
2002-06-03 15:02:02 +00:00
Tim J. Robbins
e561f2b479
Correct History: nice(1) appeared in V4.
2002-06-03 14:56:57 +00:00
Tim J. Robbins
780c7a8790
Correct History: time(1) appeared at least as early as V3.
2002-06-03 14:54:04 +00:00
Tim J. Robbins
242093bb8c
Sort sections.
2002-06-03 14:42:28 +00:00
Tim J. Robbins
03c249af41
Correct HISTORY section - split(1) appeared at least as early as V3.
2002-06-03 14:41:32 +00:00
Ian Dowse
ab5ff6a601
Call getmntinfo with MNT_NOWAIT to avoid hanging if any NFS servers
...
are down. Avoid trying to send RPCs to the pidXXX@machine names
used in the special amd(8) mounts.
PR: bin/6183
Submitted by: Petr Lampa <lampa@fee.vutbr.cz>
2002-06-03 12:06:49 +00:00
Andrey A. Chernov
86a7fd100f
Skip %pN comes from ncurses
...
PR: 15418
2002-06-03 10:44:39 +00:00
Dag-Erling Smørgrav
ce7be04eae
Connect perl to the build.
2002-06-02 22:43:17 +00:00
Jens Schweikhardt
21dc7d4f57
Fix typo in the BSD copyright: s/withough/without/
...
Spotted and suggested by: des
MFC after: 3 weeks
2002-06-02 20:05:59 +00:00
Tim J. Robbins
5e25d888a8
Support the SysV-style -exec utility args.. {} + function, required by
...
SUSv3. This is similar to find foo -print0 | xargs -0 utility args.
2002-06-02 12:57:41 +00:00
Brian Feldman
f020c7fa88
Fix a bug in sed(1)'s "s" command wherein if an escape ("\" character)
...
was initiated at the last character of the line buffer, the Wrong
Thing was done and sed barfed by interpreting the following NUL byte
as a digit. Instead, pull up the next buffer and record that the "\"
was last seen.
2002-06-01 13:25:47 +00:00
Juli Mallett
27d72beba7
We have a version of help(SCCS) in /usr/bin now.
2002-06-01 01:07:50 +00:00
Juli Mallett
30617de0f3
Remove a stray asterisk in a comment.
2002-06-01 00:52:28 +00:00
Mike Silbersack
acc52a9a8e
Use %lu instead of %ld when printing rt_use (aka rt_rmx.rmx_pksent)
...
Submitted by: Andre Oppermann <oppermann@pipeline.ch>
MFC after: 5 days
2002-05-31 04:36:55 +00:00
Giorgos Keramidas
806968d6a7
Typo: characer -> character
2002-05-31 00:33:40 +00:00
Garrett Wollman
0fb7a0beb0
Fix preprocessor directive syntax (text after #endif).
...
The style of this program is still atrocious (not fixed).
2002-05-30 21:18:01 +00:00
Juli Mallett
6ea89183fc
Restructure sanity checks so that -I and -J just override eachother, rather
...
than triggering a usage(). Allow -R and -I to be specified in any order, and
thus change how -R checks for -I not being given and triggering a usage().
Partially requested by: gad
2002-05-30 19:34:31 +00:00
Juli Mallett
986d829b8f
Allow the input line to be NULL, and teach strnsubst() that NULL means to use
...
a nil-string.
2002-05-30 19:24:08 +00:00
Ruslan Ermilov
36588206d0
mdoc(7) police: kill hard sentence breaks.
2002-05-30 14:10:44 +00:00
Ruslan Ermilov
14387c71ca
mdoc(7) police: pedantry.
2002-05-30 14:07:05 +00:00
Ruslan Ermilov
3c7cf139ac
mdoc(7) police: tidy up the markup.
2002-05-30 14:02:23 +00:00
Ruslan Ermilov
8bf118ed78
mdoc(7) police: one minor change that was not probably worth a commit.
2002-05-30 13:57:35 +00:00
Ruslan Ermilov
35ff8c06b7
mdoc(7) police: fixed typo, minor markup nits.
2002-05-30 13:52:18 +00:00
Ruslan Ermilov
2d2ca4665c
mdoc(7) police: markup polishing.
2002-05-30 13:48:06 +00:00
Ruslan Ermilov
13fbf0d174
mdoc(7) police: tidy up.
2002-05-30 13:39:43 +00:00
Ruslan Ermilov
05cb5024af
mdoc(7) police: minor markup nits.
2002-05-30 13:33:59 +00:00
Tim J. Robbins
231b81bd22
Document conformance to IEEE Std 1003.1-2001.
2002-05-30 12:13:18 +00:00
Tim J. Robbins
38b8c17f6a
Sort sections according to mdoc(7).
2002-05-30 12:02:55 +00:00
Tim J. Robbins
df111dde6e
Sort entries by locale collating order when -x is specified.
2002-05-30 11:43:20 +00:00
Tony Finch
5b6c090658
Character 0 is nul not null.
2002-05-30 11:42:44 +00:00
Tim J. Robbins
a5d5212371
Create tags for typedefs, structs, unions and enums by default (imply the
...
-t option). Make a new option, -T, to revert to the old behaviour.
2002-05-30 11:36:12 +00:00
Ruslan Ermilov
24ef71e9f0
mdoc(7) police: tidy up.
2002-05-30 11:29:25 +00:00
Ruslan Ermilov
39a82b8c2d
mdoc(7) police: tidy up the markup.
2002-05-30 11:12:34 +00:00
Tim J. Robbins
e58bac2e7f
Avoid buffer overrun when identifies or filenames are extremely long.
...
OpenBSD revisions: C.c 1.4-1.5, ctags.c 1.5, fortran.c 1.3, lisp.c 1.3,
tree.c 1.2
Obtained from: OpenBSD
2002-05-30 10:54:53 +00:00
Ruslan Ermilov
a17e8e32cc
which(1) was once a Perl script.
2002-05-30 08:33:13 +00:00
Alfred Perlstein
e043516d4d
Check for defined(__i386__) instead of just defined(i386) since the compiler
...
will be updated to only define(__i386__) for ANSI cleanliness.
2002-05-30 07:00:42 +00:00
Ruslan Ermilov
df182f6dd1
mdoc(7) police: tidy up the markup.
2002-05-30 06:56:43 +00:00
Ruslan Ermilov
809a3054f6
mdoc(7) police: punctuation, miscellaneous.
2002-05-30 06:50:52 +00:00
Ruslan Ermilov
8c756f116f
mdoc(7) police: lint.
2002-05-30 06:44:27 +00:00
Ruslan Ermilov
50965a6892
mdoc(7) police: markup nits.
2002-05-30 06:18:53 +00:00
Ruslan Ermilov
f9988a58ec
mdoc(7) police: use .Fl to denote stdin.
2002-05-30 06:07:29 +00:00
Ruslan Ermilov
cec2dd9f32
mdoc(7) police: typo in .Dd.
2002-05-30 06:05:42 +00:00
Ruslan Ermilov
4f3cd85e1d
mdoc(7) police: untangle SYNOPSIS's markup.
2002-05-30 06:03:08 +00:00
Ruslan Ermilov
3a0f91d5ae
mdoc(7) police: lint.
2002-05-30 05:59:25 +00:00
Ruslan Ermilov
12b32eafa8
mdoc(7) police: removed unnecessary .Ns.
2002-05-30 05:52:19 +00:00
Ruslan Ermilov
1ab9d5a384
mdoc(7) police: removed unnecessary .Ns's.
2002-05-30 05:47:50 +00:00
Tim J. Robbins
80a4c82db1
Move exit status info into Diagnostics section.
2002-05-30 00:46:00 +00:00
Tim J. Robbins
38b1ff46af
Accept an input file name of "-" to mean standard input, as required by
...
P1003.2.
2002-05-30 00:07:14 +00:00
Tim J. Robbins
a9986a105a
Fields should be separated by <blank>s, not <space>s according to P1003.2.
2002-05-29 23:55:44 +00:00
Tim J. Robbins
fc63032590
Don't bother trying to handle "-" arguments ourselves, getopt(3) already
...
does this for us.
2002-05-29 23:52:55 +00:00
Ruslan Ermilov
2d7065e066
mdoc(7) police: lint.
2002-05-29 18:53:22 +00:00
Ruslan Ermilov
2d341e5cc3
mdoc(7) police: punctuation.
2002-05-29 18:52:02 +00:00
Ruslan Ermilov
c16cb68560
mdoc(7) police: tidy up the markup.
2002-05-29 18:49:22 +00:00
Ruslan Ermilov
e2f8ed516a
mdoc(7) police: markup nits.
2002-05-29 18:26:16 +00:00
Ruslan Ermilov
a59a315d08
mdoc(7) police: use .Fl to represent stdin.
2002-05-29 18:21:42 +00:00
Ruslan Ermilov
3971fc8c4b
mdoc(7) police: lint.
2002-05-29 18:12:21 +00:00
Ruslan Ermilov
5ec37969a1
mdoc(7) police: lint.
2002-05-29 18:00:23 +00:00
Juli Mallett
b45e416a12
A space between switch and open-paren. Don't explicitly cast the value
...
returned by getopt(3) to 'char' in a switch.
2002-05-29 17:12:30 +00:00
Juli Mallett
6cad2ed174
ANSI, __FBSDID()
2002-05-29 17:08:09 +00:00
Tim J. Robbins
5204b700b3
Use mkstemp(3) to avoid /tmp race.
2002-05-29 14:23:10 +00:00
Tim J. Robbins
23ff0f8355
Document standards conformance.
2002-05-29 13:45:16 +00:00
Tim J. Robbins
aa67918988
style(9): Sort sections correctly, exit status info into DIAGNOSTICS section.
2002-05-29 13:39:34 +00:00
Tim J. Robbins
b312843c3a
Sync synopsis with reality: file arguments are optional.
2002-05-29 13:33:48 +00:00
Tim J. Robbins
759484bacd
Use getopt() to reject any options and skip "--" arguments.
2002-05-29 13:14:51 +00:00
Dag-Erling Smørgrav
743ea2081c
Make our child the leader of its own process group to avoid receiving
...
signals in its stead. This fixes the dread "zsh exits upon ^C" bug.
2002-05-29 03:32:17 +00:00
Alfred Perlstein
16d8455dcc
Assume __STDC__, remove non-__STDC__ code.
2002-05-28 19:23:47 +00:00
Tim J. Robbins
7c5b751452
Add a History section. comm(1) appeared in V4.
2002-05-28 09:35:30 +00:00
Tim J. Robbins
fc7f17b1fe
No need to handle '-' explicitly in getopt() loop.
...
Obtained from: NetBSD
2002-05-28 09:26:08 +00:00
Dag-Erling Smørgrav
a1bdb05cce
Drive-by whitespace cleanup & add NAI copyright
2002-05-28 06:47:32 +00:00
Dag-Erling Smørgrav
c51edfb77d
Drive-by whitespace cleanup.
2002-05-28 06:46:37 +00:00
Tim J. Robbins
1a94013869
Write "FROM" heading above the hostname column, like NetBSD and GNU do.
2002-05-28 06:36:46 +00:00
Marcel Moolenaar
52183d0145
Add uuidgen(2) and uuidgen(1).
...
The uuidgen command, by means of the uuidgen syscall, generates one
or more Universally Unique Identifiers compatible with OSF/DCE 1.1
version 1 UUIDs.
From the Perforce logs (change 11995):
Round of cleanups:
o Give uuidgen() the correct prototype in syscalls.master
o Define struct uuid according to DCE 1.1 in sys/uuid.h
o Use struct uuid instead of uuid_t. The latter is defined
in sys/uuid.h but should not be used in kernel land.
o Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid()
to kern_uuid.c for use in the kernel (currently geom_gpt.c).
o Rename the non-standard struct uuid in kern/kern_uuid.c
to struct uuid_private and give it a slightly better definition
for better byte-order handling. See below.
o In sys/gpt.h, fix the broken uuid definitions to match the now
compliant struct uuid definition. See below.
o In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change.
A note about byte-order:
The standard failed to provide a non-conflicting and
unambiguous definition for the binary representation. My initial
implementation always wrote the timestamp as a 64-bit little-endian
(2s-complement) integral. The clock sequence was always written
as a 16-bit big-endian (2s-complement) integral. After a good
nights sleep and couple of Pan Galactic Gargle Blasters (not
necessarily in that order :-) I reread the spec and came to the
conclusion that the time fields are always written in the native
by order, provided the the low, mid and hi chopping still occurs.
The spec mentions that you "might need to swap bytes if you talk
to a machine that has a different byte-order". The clock sequence
is always written in big-endian order (as is the IEEE 802 address)
because its division is resulting in bytes, making the ordering
unambiguous.
2002-05-28 06:16:08 +00:00
Tim J. Robbins
776c387ac1
Hook newgrp(1) up to the build.
...
PR: 36190
2002-05-28 05:07:42 +00:00
Tim J. Robbins
29f48d6256
Add the newgrp(1) utility, which changes groups. This is required by
...
the POSIX.2 UPE.
PR: 36190
Reviewed by: -standards, silence on -audit
2002-05-28 05:05:28 +00:00
Tim J. Robbins
66f9c15fcf
The XCU issue 5 requirement of accepting the file operand intermingled
...
with options has been withdrawn in issue 6, to which nl(1) now conforms.
2002-05-27 06:53:54 +00:00
Tim J. Robbins
53e29ec5b4
style(9): use errx() where appropriate instead of fprintf() + exit().
2002-05-27 06:46:29 +00:00
Tim J. Robbins
f1e20ff77e
style(9): use err() instead of perror() + exit().
2002-05-27 06:37:34 +00:00
Tim J. Robbins
3662a24058
Claim conformance to IEEE Std 1003.1-2001.
...
See also csplit(1).
2002-05-27 06:08:14 +00:00
Tim J. Robbins
3e4228c3be
Allow "-" to be specified as an operand as well as an option.
...
SUSV3 requires something like "split -- -" to work. Document the "-" operand.
2002-05-27 05:27:10 +00:00
Tim J. Robbins
3f5869d0b0
Avoid overflowing `fname' if the file name prefix given on the command
...
line is too long.
Obtained from: OpenBSD
2002-05-27 04:59:46 +00:00
Tim J. Robbins
880ff11350
Exit non-zero if the tags file cannot be opened.
2002-05-27 03:54:45 +00:00
Tim J. Robbins
594830fbc1
From NetBSD:
...
Revision 1.10 Sat Oct 14 17:41:55 2000 UTC by bjh21
Don't core dump with an empty format string. Fixes PR#11218.
Patch supplied by Launey Thomas.
Obtained from: NetBSD
2002-05-27 03:17:28 +00:00
Tim J. Robbins
f457179a13
Initialise the `positions' array correctly before use.
2002-05-27 02:01:25 +00:00
Tim J. Robbins
7d44cb6e1f
Add Standards, Diagnostics and History sections.
2002-05-26 07:07:14 +00:00
Tim J. Robbins
456fc9e56f
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
Ruslan Ermilov
1c3fc710e2
Make it work for a different endianness binary.
...
(This version is still limited to ELF64.)
Reviewed by: jake
2002-05-25 13:43:16 +00:00
Ruslan Ermilov
02c0301fa7
Move elf2aout to usr.sbin/.
...
Approved by: jake
2002-05-25 13:29:47 +00:00
Tim J. Robbins
ba545bbb61
Sync usage message with manual page synopsis.
2002-05-25 11:37:10 +00:00
Tim J. Robbins
b8b53eef91
Bad numeric arguments or usernames should cause non-zero exit status.
2002-05-25 10:37:24 +00:00
Tim J. Robbins
d6c762af40
Determine exit status to use before writing diagnostic message; warn()
...
may change errno.
2002-05-25 03:32:23 +00:00
Tim J. Robbins
816dde7d05
Typo: use plural now that we have more than one option.
2002-05-25 03:08:21 +00:00
Tim J. Robbins
fb2582c006
If a file cannot be processed, try to process any remaining files
...
then exit non-zero.
2002-05-25 03:04:28 +00:00
Tom Rhodes
e223a77118
Add the word ``fields'' to the description, and change an instance from
...
fields to num in the SYNOPSIS
Noticed by: keramida
2002-05-24 19:12:02 +00:00
Ruslan Ermilov
1737392273
Back out the ``run shell from $PATH'' change; this was an overkill
...
and is insecure.
Requested by: bde
2002-05-24 15:51:27 +00:00
Tim J. Robbins
3af4dcb223
If a file argument cannot be processed, process the remaining ones
...
and exit non-zero (SUSv3)
2002-05-24 10:58:21 +00:00
Tim J. Robbins
204c78a163
When a file name of "-" is given, read from standard input (SUSv3)
2002-05-24 09:56:18 +00:00
Tim J. Robbins
a8522a9bb7
Allow byte/character positions >_POSIX2_LINE_MAX to be specified by
...
dynamically growing the `positions' array.
2002-05-24 09:11:18 +00:00
Tim J. Robbins
d42862594a
Use fgetln(3) to handle lines of unlimited length instead of a
...
getc/putc loop.
Suggested by: dd
2002-05-24 08:56:49 +00:00
Tim J. Robbins
ce78cbf9e0
P1003.2 forbids imposing any limit on line lengths; read character by
...
character instead of manually buffering each line.
2002-05-24 07:05:10 +00:00
Tim J. Robbins
0968654cfd
Exit with non-zero status if any files specified could not be opened
...
when -s option is given (SUSv3).
2002-05-24 06:17:29 +00:00
Tim J. Robbins
a6ea32c3c5
If processing of one file fails, try to process the remaining files and
...
exit non-zero instead of immediately exiting. The traditional BSD
behaviour is explicitly forbidden by P1003.2.
2002-05-24 06:03:12 +00:00
Tim J. Robbins
5069e2716c
If processing of one file fails, try to process the remaining files and
...
exit non-zero instead of immediately exiting (SUSv3).
2002-05-24 06:00:47 +00:00
Tony Finch
5ac21f6976
Sync with upstream version:
...
* Ensure we work within the array bounds when parsing command-line options;
* Replace h0h0getopt with getopt(3);
* Use consistent whitespace style in the function declarations.
Revieweded by: dwmalone (mentor)
2002-05-23 16:50:41 +00:00
Juli Mallett
a8ca0a178e
Handle numeric keys by checking a "default" file. Handle number-less keys
...
by failing, since comparing up to the length of the key (0) against the
begin line for a key in the help file will always succeed, and print what
is wholly bogus output.
2002-05-23 14:58:22 +00:00
Juli Mallett
e0bd05dc2f
Set the MAKEFILE variable to the value passed to ReadMakefile(), not the full
...
path to it. Use the full path only for parsing it.
2002-05-23 12:01:54 +00:00
Juli Mallett
39346853df
Make my style consistent.
...
Remove two includes.
Fix a typo (semicolon instead of period at EOL).
2002-05-23 03:03:44 +00:00
Juli Mallett
3549859680
Taking a leap of faith, tie the help command in to the build.
2002-05-22 23:15:58 +00:00
Juli Mallett
192f0a0c65
Add my PD implementation of the SCCS help command, which prints help from
...
files in the format used by SCCS, given a key. It behaves exactly like the
``proper'' SCCS help command, from what testing I can do.
2002-05-22 23:14:17 +00:00
Juli Mallett
a0304d8026
Tie sccs(1) in to the build, as it now does one thing right: sccs what
2002-05-22 16:19:31 +00:00
Juli Mallett
fb22fc68e4
Remove mention of the GNU version of ptx, it is dead.
2002-05-22 16:18:14 +00:00
Juli Mallett
08f4375879
Add a usage().
...
Print usage() if right before executing the specified command, it comes to be
that *argv is NULL (i.e. a flag was specified without a command being given).
2002-05-22 16:09:52 +00:00
Juli Mallett
824ff2896d
Remove #ifndef's on V6.
2002-05-22 16:01:50 +00:00
Juli Mallett
5e213af359
Put braces around the command table properly.
2002-05-22 15:59:27 +00:00
Juli Mallett
6bad09a23e
Use what(1) here, in /usr/bin/what. It doesn't print error 26 correctly, but
...
neither does the pd sccs(1) implementation I have around, so there's no loss
for now.
2002-05-22 15:44:29 +00:00
Juli Mallett
8eccf3b248
str_concat() doesn't really take const arguments.
...
Submitted by: bde
Pointy hat to: jmallett
2002-05-22 15:34:00 +00:00
Ruslan Ermilov
ea98f295f7
Do not run shell from /bin, run it from $PATH.
...
Bump MAKE_VERSION to 5200205221.
2002-05-22 14:53:18 +00:00
Ruslan Ermilov
8e9bddc97b
Added the MAKE_VERSION global that could be useful in determining
...
if a given make(1) is feature-compatible with a set of makefiles.
When merged, this will be used to replace the ugly upgrade_checks
hacks in src/Makefile.
Version has the RYYYYMMDDX format, where R is from RELENG_<R> and
X allows for 10 distinguishable changes per day.
Discussed with: bde
2002-05-22 14:35:47 +00:00
Juli Mallett
e0f783d4f8
Format internal commands properly.
...
Kill a bit of trailing whitespace.
Fix a path format.
Submitted by: mdoc(7) police (ru)
2002-05-22 14:17:16 +00:00
Juli Mallett
89d6ab227d
Clean up the manual page by leaps and bounds in terms of formatting.
...
Ruslan's version took away the '.Nm' for some commands, but not others, so
I chose to go with leaving '.Nm'.
Submitted by: ru
2002-05-22 13:59:52 +00:00
Juli Mallett
b77ce308c0
Make the guarded string functions take a const "from" addr, and make the
...
function that prints when a botched guarded string operation occurs take
two const arguments.
XXX Should we use strlcat/strlcpy instead and hope for the best?
2002-05-22 13:41:08 +00:00
Juli Mallett
aecf4d561b
Remove register qualifier.
2002-05-22 12:32:54 +00:00
Juli Mallett
8a4f086026
Use function prototypes.
2002-05-22 12:31:40 +00:00
Juli Mallett
5fed7e7311
Clean up formatting.
2002-05-22 11:29:21 +00:00
Juli Mallett
27ffa61f2a
Replace the evil that is __DECONST() with (void *). This is one of the least
...
evil things we can do involving the const qualifier and a pointer.
Submitted by: bde, ru
2002-05-22 11:16:48 +00:00
Juli Mallett
d7853f431e
Make sccs(1) compile cleanly by fixing syntax errors such as #endif followed
...
by a token, and by including headers to get prototypes for many things, and
also by spelling the type of structure readdir(3) returns as "dirent".
2002-05-22 11:10:03 +00:00
Ruslan Ermilov
f6ce5895a9
Unroff all forms of \f and \*, and the simplest form of \s.
...
Submitted by: fenner, ru
Reviewed by: ru, fenner
2002-05-22 11:08:41 +00:00
Juli Mallett
61252e89e7
Revive the SCCS front-end, sccs(1), back from the Attic, since it's something
...
SUS wants (they want the entire suite of SCCS commands, we don't have them,
but we *had* the frontend, so we can have it again, and now).
Add $FreeBSD$ where appropriate, don't revive PSD.doc/spell.ok.
2002-05-22 10:43:50 +00:00
Tim J. Robbins
b9f6304141
Build pathchk(1).
2002-05-22 10:32:24 +00:00
Tim J. Robbins
c78c4633a2
Add the pathchk utility, which checks pathnames for validity or
...
portability between POSIX systems.
Submitted by: Chuck Rouillard (manpage, initial implementation)
2002-05-22 10:30:16 +00:00
Juli Mallett
21b8b7cb3c
Make ReadMakefile() operate using the realpath(3) name for the file handed to
...
it, which means that relative paths will be expanded to absolute paths, and
filenames without a path will end up with their absolute path included as
well. This aids tremendously in debugging a build using our make(1) with
multiple Makefile's, such as when there is a syntax error in a file in a
sub-directory as per <bsd.subdir.mk>. Normally we'd end up with just
"Makefile" known about the Makefile in question, which means that an error
would be useless for someone trying to debug their build system, now we
end up with a complete real pathname for the Makefile.
So mostly this is useful in a debugging context, but possibly others too
(I haven't thought of them yet, but they probably are more useful if you
make Dir_FindFile use realpath(3), but that's another story).
Reviewed by: -current
MFC after: 2 weeks
2002-05-21 20:24:46 +00:00
Tom Rhodes
69cc776cd6
Reword a small part of the uniq(1) manual page to help reduce word
...
duplication (ie: fields fields).
PR: 38161
Reviewed by: keramida
MFC after: 3 days
2002-05-21 16:54:58 +00:00
Tim J. Robbins
4ef27b1a49
Mark argc as __unused to silence GCC.
2002-05-21 02:48:55 +00:00
Tim J. Robbins
743f138e8d
Build the tabs(1) utility.
...
PR: 36126
2002-05-21 02:36:12 +00:00
Tim J. Robbins
890a73ed39
Add an implementation of the tabs(1) utility, as required by SUSv3.
...
PR: 36126
2002-05-21 02:33:25 +00:00
Ruslan Ermilov
0f91d7050c
Style.
2002-05-20 16:42:15 +00:00
Ruslan Ermilov
b501b9b5c1
Bootstrap elf2aout(1) for sparc64; used to build sys/boot/sparc64/boot1.
2002-05-20 14:42:48 +00:00
Ruslan Ermilov
fa7e3ca68a
Kill the stray #include line.
2002-05-20 08:05:58 +00:00
Ruslan Ermilov
8aa98dece2
s/u_int/u_int32_t/
2002-05-20 07:56:40 +00:00