Commit Graph

75595 Commits

Author SHA1 Message Date
des
35f5a040c8 Add NAI copyright. 2002-05-28 06:53:41 +00:00
des
db56aa68a1 If unable to retrive maxfiles / openfiles, fail rather than print garbage.
Gratuitously rename a couple of variables.
Remove unused macros.
Add NAI copyright.

Sponsored by:	DARPA, NAI Labs
2002-05-28 06:52:21 +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
des
de2d13be74 Remove the code that was disabled in a recent commit; it is of very limited
use and has been broken in -CURRENT for a long time.
Clean up unneeded entries in the nlist array.
Implement kvm-backed ttymode (which we never had before).  Incomplete as we
do not (yet?) print the correct device, sid or pgid.

Sponsored by:	DARPA, NAI Labs
2002-05-28 06:37:27 +00:00
tjr
8daf14c02a Write "FROM" heading above the hostname column, like NetBSD and GNU do. 2002-05-28 06:36:46 +00:00
des
2f98561bef Back out part of previous commit; the dev_t union trick is still useful in
the kvm case.
2002-05-28 06:34:28 +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
kris
6063437945 Quiet some format string warnings by marking prototypes with
__printflike()

MFC After:	1 week
2002-05-28 06:12:31 +00:00
asmodai
1597fa8dfe Remove, with extreme prejudice, the notion that /tmp best needs to be a
softlink to /var/tmp.

This is horribly wrong since /tmp and /var/tmp serve different goals.
Even given the text that in the old days things were different doesn't help,
since our scripts clean /tmp, and we depend on /var/tmp to persist for
vi editing sessions recovery and other likewise applications.
2002-05-28 06:03:50 +00:00
marcel
e2eeb62542 Add syscall uuidgen() for generating Univerally Unique Identifiers
(UUIDs). On ia64 UUIDs, aka GUIDs, are used by EFI and the firmware
among others. To create GUID Partition Tables (GPTs), we need to
be able to generate UUIDs.
2002-05-28 05:58:06 +00:00
des
671edd16d9 Oops, don't print /dev/ twice. 2002-05-28 05:45:56 +00:00
des
e60971dda8 struct tty -> struct xtty. Reenable some previously disable code, but
temporarily disable some rarely-used code that needs more work.

Sponsored by:	DARPA, NAI Labs
2002-05-28 05:42:32 +00:00
des
e332aae785 Introduce struct xtty, used when exporting tty information to userland.
Make kern.ttys export a struct xtty rather than struct tty.  Since struct
tty is no longer exposed to userland, remove the dev_t / udev_t hack.

Sponsored by:	DARPA, NAI Labs
2002-05-28 05:40:53 +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
mike
4edee95d82 Prepend BIG_ENDIAN, BYTE_ORDER, LITTLE_ENDIAN, and PDP_ENDIAN with an
underscore.  This is the preferred form.  Also fix a preprocessor
syntax error in an error-detection section.
2002-05-28 04:32:25 +00:00
bmah
5125105610 Typo fix: s/IPSec/IPsec/g
PR:		38627
Submitted by:	 Marc Fonvieille <marc@blackend.org>
2002-05-28 00:16:22 +00:00
brian
6fc921d693 Coerce pid_t to long rather than int for better portability.
Suggested by: Theo de Raadt <deraadt@openbsd.org>
2002-05-27 23:19:53 +00:00
alc
06c3939cfb o Remove unused #defines. 2002-05-27 22:10:28 +00:00
murray
7689e10e1a The ports collection now contains over 7000 applications and consumes
about 165MB of space when first installed.

Submitted by:  rpratt
2002-05-27 19:31:02 +00:00
robert
824b3e35f9 Correct a check for NUL.
Spotted by: bde
2002-05-27 19:27:43 +00:00
obrien
59f416fcf0 I missed the setting of PREFIX_INCLUDE_DIR when I visually santity checked
the output from a autoconfig run.
2002-05-27 17:48:28 +00:00
ru
d542ec16a8 Re-enable running of makewhatis(1). 2002-05-27 15:52:40 +00:00
ru
37bdc051b0 Bootstrap makewhatis(1). 2002-05-27 15:51:38 +00:00
dwmalone
3a164e8568 As far as I can tell, the maximum packet size for 802.11b is 2346,
which means that the valid range for the RTS threshold is 0-2347.
The default is definitely 2347.
2002-05-27 13:39:01 +00:00
dwmalone
4c72376dab Remove a stray "t" in the usage message.
PR:		38605
Submitted by:	KOIE Hidetaka <hide@koie.org>
MFC after:	1 week
2002-05-27 13:33:46 +00:00
bde
edc5c7457a phsyical -> physical
Submitted by:	Andre Guibert de Bruet <andy@siliconlandmark.com>
2002-05-27 13:08:08 +00:00
benno
556157d84a Print srr1 in printtrap()
Submitted by:	Peter Grehan <peterg@ptree32.com.au>
2002-05-27 11:20:19 +00:00
benno
d7323955b4 Get the correct memory regions from OpenFirmware. We were getting the
"available" ranges, not the "physical" ranges.  Clean up some of the
bootstrap code in the process.

Submitted by:	Peter Grehan <peterg@ptree32.com.au>
2002-05-27 11:18:12 +00:00
robert
1a1155b204 - Move the loop conditional into the "for" header.
- Remove redundant "? :" construct.
style(9):
 - Place a space after return statements.
 - Compare pointers to NULL.
 - Do not use ! to compare a character to nul.
2002-05-27 11:01:30 +00:00
ru
447608687b Change the ">>> make release ..." output to also include ${TARGET}. 2002-05-27 10:59:41 +00:00
ru
06d0707126 Fixed the nasty bug I introduced in rev. 1.671 that got
fatal in the previous delta.  Repeat after me: exists()
is executed at parse time.
2002-05-27 10:52:03 +00:00
benno
496e86d41b Use correct types in [sf]uword32. 2002-05-27 10:50:47 +00:00
jmallett
afc38d0730 Don't risk catching a signal while handling a signal for a dying child, as we
can then end up not properly clearing wtmp/utmp entries.

PR:		bin/37934
Submitted by:	Sandeep Kumar <skumar@juniper.net>
Reviewed by:	markm
MFC after:	2 weeks
2002-05-27 08:10:24 +00:00
marcel
36a7d4b914 Work around a memory fault on ia64 caused by having the 1MB buffer on
the stack in DoFile(). This needs some investigation. In the mean time
we do a one time malloc() for the buffer to have it on the heap instead.
2002-05-27 07:54:43 +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
dd
90158e3b68 Don't tsleep() with an sb_mtx held. 2002-05-27 05:20:15 +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
dd
ef78f19043 Remove spurious period. 2002-05-27 03:45:27 +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
mike
e24a2ccd6a Use underscored variant of BYTE_ORDER and friends to allow this to
work in a !__BSD_VISIBLE environment.
2002-05-27 00:55:17 +00:00
joe
708a20ee7b Regen. 2002-05-27 00:01:21 +00:00
joe
a65e356625 Add a couple of new aue ethernet adapters from NetBSD:
ELECOM LDUSBLTX
	IODATA USBETTXS
2002-05-27 00:00:48 +00:00