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