Commit Graph

5338 Commits

Author SHA1 Message Date
ru
4898ea0542 mdoc(7) police: markup nits. 2002-05-30 06:18:53 +00:00
ru
7cc3531206 mdoc(7) police: use .Fl to denote stdin. 2002-05-30 06:07:29 +00:00
ru
d654861f5c mdoc(7) police: typo in .Dd. 2002-05-30 06:05:42 +00:00
ru
f8e987f066 mdoc(7) police: untangle SYNOPSIS's markup. 2002-05-30 06:03:08 +00:00
ru
4334e7515f mdoc(7) police: lint. 2002-05-30 05:59:25 +00:00
ru
aa9fde6b91 mdoc(7) police: removed unnecessary .Ns. 2002-05-30 05:52:19 +00:00
ru
297515d525 mdoc(7) police: removed unnecessary .Ns's. 2002-05-30 05:47:50 +00:00
tjr
f0cf811c24 Move exit status info into Diagnostics section. 2002-05-30 00:46:00 +00:00
tjr
60d1ab01d7 Accept an input file name of "-" to mean standard input, as required by
P1003.2.
2002-05-30 00:07:14 +00:00
tjr
2d9a2285ef Fields should be separated by <blank>s, not <space>s according to P1003.2. 2002-05-29 23:55:44 +00:00
tjr
31d09977d0 Don't bother trying to handle "-" arguments ourselves, getopt(3) already
does this for us.
2002-05-29 23:52:55 +00:00
ru
80e7ad7353 mdoc(7) police: lint. 2002-05-29 18:53:22 +00:00
ru
7ff3239b45 mdoc(7) police: punctuation. 2002-05-29 18:52:02 +00:00
ru
3e4fa1a599 mdoc(7) police: tidy up the markup. 2002-05-29 18:49:22 +00:00
ru
4a16a3c518 mdoc(7) police: markup nits. 2002-05-29 18:26:16 +00:00
ru
1ed142f293 mdoc(7) police: use .Fl to represent stdin. 2002-05-29 18:21:42 +00:00
ru
08c4a1f3cc mdoc(7) police: lint. 2002-05-29 18:12:21 +00:00
ru
d70d6a2c6b mdoc(7) police: lint. 2002-05-29 18:00:23 +00:00
jmallett
4a675d0d9d 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
jmallett
41ef234489 ANSI, __FBSDID() 2002-05-29 17:08:09 +00:00
tjr
17b5f40eed Use mkstemp(3) to avoid /tmp race. 2002-05-29 14:23:10 +00:00
tjr
4dce1a540c Document standards conformance. 2002-05-29 13:45:16 +00:00
tjr
83600f5b2c style(9): Sort sections correctly, exit status info into DIAGNOSTICS section. 2002-05-29 13:39:34 +00:00
tjr
eac28cf68c Sync synopsis with reality: file arguments are optional. 2002-05-29 13:33:48 +00:00
tjr
3539ebd46f Use getopt() to reject any options and skip "--" arguments. 2002-05-29 13:14:51 +00:00
des
4ba107a215 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
197cf7d2ba Assume __STDC__, remove non-__STDC__ code. 2002-05-28 19:23:47 +00:00
tjr
0372ab2f7b Add a History section. comm(1) appeared in V4. 2002-05-28 09:35:30 +00:00
tjr
14396afdcd No need to handle '-' explicitly in getopt() loop.
Obtained from:	NetBSD
2002-05-28 09:26:08 +00:00
des
0b10af209d Drive-by whitespace cleanup & add NAI copyright 2002-05-28 06:47:32 +00:00
des
5de2aebb49 Drive-by whitespace cleanup. 2002-05-28 06:46:37 +00:00
tjr
8daf14c02a Write "FROM" heading above the hostname column, like NetBSD and GNU do. 2002-05-28 06:36:46 +00:00
marcel
58435e6cb7 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
tjr
c749049ff8 Hook newgrp(1) up to the build.
PR:		36190
2002-05-28 05:07:42 +00:00
tjr
16f4712bc4 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
tjr
857b1f2ee6 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
tjr
b50c5edd06 style(9): use errx() where appropriate instead of fprintf() + exit(). 2002-05-27 06:46:29 +00:00
tjr
dab00ca877 style(9): use err() instead of perror() + exit(). 2002-05-27 06:37:34 +00:00
tjr
c73112a6c7 Claim conformance to IEEE Std 1003.1-2001.
See also csplit(1).
2002-05-27 06:08:14 +00:00
tjr
fd517aac90 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
tjr
89c62e14bd 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
tjr
3a59030266 Exit non-zero if the tags file cannot be opened. 2002-05-27 03:54:45 +00:00
tjr
ec252a0e8b 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
tjr
fb067c8f63 Initialise the `positions' array correctly before use. 2002-05-27 02:01:25 +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
ru
d98e09267b 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
ru
6e02fb8404 Move elf2aout to usr.sbin/.
Approved by:	jake
2002-05-25 13:29:47 +00:00
tjr
8f932f078d Sync usage message with manual page synopsis. 2002-05-25 11:37:10 +00:00
tjr
8ad547bb95 Bad numeric arguments or usernames should cause non-zero exit status. 2002-05-25 10:37:24 +00:00