Commit Graph

8660 Commits

Author SHA1 Message Date
jhb
dc23a6cc29 - Rename installFixupBin to installFixupBase to finish up the 'bin' to
'base' dist rename.
- Rework struct dist to allow for different types of dists.  There are
  currently three types of dists: DT_TARBALL, the traditonal gzipped and
  split tar file; DT_PACKAGE, a package; and DT_SUBDIST, a meta-dist in
  the tree that has its own array of dists as its contents.  For example,
  the 'base' dist is a DT_TARBALL dist, the 'perl' dist is a DT_PACKAGE
  dist, and the 'src' dist is a DT_SUBDIST dist with its own dist table
  that contains 'sbase', 'ssys', etc.
- Add helper macros for defining array entries for the different types of
  dists to try and make the statically defined dist table in dist.c more
  readable.
- Split the logic to deal with a DT_TARBALL dist out of distExtract()
  and into its own distExtractTarball() function.  distExtract() now
  calls other functions to extract each dist.
- Tweak the percentage complete calculation in distExtractTarball() to
  do the multiply prior to the divide so it doesn't have to use floating
  point.
- Axe the installPackage() function along with the special handling for
  the perl and XFree86 dists in distExtractAll() since distExtract()
  handles package dists directly now.
- Add back in subdists for the X packages based on the split up packages
  that XFree86-4 uses that as closely map to the X dists we used with
  X 3.3.x.
- Lots of things like distSetX() and the X dist masks are no longer
  #ifndef X_AS_PKG since we use them in both cases now.
- Make the entire installFixupXFree() function #ifndef X_AS_PKG, we only
  call it in that case anyways, and it's not suitable for the X_AS_PKG
  case.
- Add in X dist menus for the X_AS_PKG case.

Approved by:	re
2003-01-17 19:05:32 +00:00
jhb
e4bbc64e1d Add 'vlan' as a network device.
Tested by:	dcs
2003-01-17 18:51:21 +00:00
ru
4a0e0ebdff Don't hide global `s'. 2003-01-17 08:10:43 +00:00
mbr
f4b7d59385 Implement nonblocking tpc-connections. rpcgen -m does still
produce backcompatible code.

Reviewed by:	rwatson
Obtained from:	NetBSD
MFC after:	1 day
2003-01-16 07:27:30 +00:00
rwatson
b622dadf70 Using LOGIN_SETALL &~LOGIN_SETMAC to avoid setting the MAC label improperly,
rather than specifically setting the process priority and resource class;
otherwise, we improperly set other aspects of the login class.  We have
a bit more to do here, but the proper fix will probably involve breaking
out MAC labels from the login class at some point, as well as further
clarifying the logic here.

Pointed out by:	kuriyama, max
2003-01-16 03:41:57 +00:00
jhb
8234b5cd64 Add a function driverFloppyCheck() that asks the user if they would like to
load drivers from the driver floppy if the "driver_floppy" variable is set
in the kernel environment and call this function after probing devices but
before displaying the main menu.

X-MFC after:	as soon as I finish committing to current
Approved by:	re@ (blanket)
2003-01-15 21:47:36 +00:00
sam
a7f59810e1 update for revised wi driver that uses the 802.11 link layer support
Reviewed by:	imp
2003-01-15 20:15:00 +00:00
obrien
6d7f9104bc Move the realloc outside the inner loop. This reduces the number of times
we do the realloc.
2003-01-15 16:10:29 +00:00
chris
c0b6a66b88 sigh... revert the previous change; this isn't getpmac
Pointy hat:	chris
2003-01-15 03:13:51 +00:00
chris
6e975db862 Cross-reference the appropriate mac library functions.
Sponsored by:	DARPA, Network Associates Laboratories
2003-01-15 03:13:50 +00:00
chris
ea77e1d7e7 Cross-reference mac(4).
Sponsored by:	DARPA, Network Associates Laboratories
2003-01-15 03:09:01 +00:00
chris
0fe7ecd117 Activate getpmac.8 2003-01-15 01:43:09 +00:00
chris
aeb97581f1 Document getpmac.
Sponsored by:	DARPA, Network Associates Laboratories
Obtained from:	TrustedBSD Project
2003-01-15 01:40:35 +00:00
chris
42596237d9 s/^Sh/.Sh/ (macros begin with .) 2003-01-15 01:20:58 +00:00
chris
fb8217a3c5 Document setpmac.
Sponsored by:	DARPA, Network Associates Laboratories
Obtained from:	TrustedBSD Project
2003-01-15 01:17:12 +00:00
kuriyama
26e1430b79 If you don't create a /usr filesystem, / will need 200MB. 2003-01-13 21:57:07 +00:00
dillon
ccd5574cc6 Bow to the whining masses and change a union back into void *. Retain
removal of unnecessary casts and throw in some minor cleanups to see if
anyone complains, just for the hell of it.
2003-01-13 00:33:17 +00:00
dillon
ddf9ef103e Change struct file f_data to un_data, a union of the correct struct
pointer types, and remove a huge number of casts from code using it.

Change struct xfile xf_data to xun_data (ABI is still compatible).

If we need to add a #define for f_data and xf_data we can, but I don't
think it will be necessary.  There are no operational changes in this
commit.
2003-01-12 01:37:13 +00:00
jhb
6375e5f09a Fix a typo: s/save_free/safe_free/. 2003-01-09 22:07:24 +00:00
obrien
2bd2567c6b save_free the buf. 2003-01-09 19:11:16 +00:00
obrien
a41e13b44b Separate the uses of a buffer and make it dynamically sized.
Approved by:	scottl(re), jhb(re)
Reviewed by:	kuriyama
2003-01-09 17:44:29 +00:00
des
b046304055 Actually, the canonical way would be syntactically correct. 2003-01-09 12:04:21 +00:00
des
53c8a6f970 Canonical way of determining whether or not to use crypto. 2003-01-09 11:57:58 +00:00
trhodes
db763e9b6c Fix up some grammar.
Noticed by:	sheldonh
2003-01-09 04:35:38 +00:00
jhb
ad195fdafd Add code to parse the contents of an ACPI MADT table and to dump its
contents in the form of a comment in the acpidump output.  The output
is not in the prettiest output, but it does work correctly.

Approved by:	marcel
2003-01-08 20:46:25 +00:00
jhb
ca9e5cfca1 Add structure definitions for the various items in a ACPI Multiple
APIC Descriptor Table (MADT) which has the signature 'ACPI'.

Approved by:	marcel
2003-01-08 20:45:23 +00:00
rwatson
45a3623193 For now, set only the resource limits and process priority associated
with a class, rather than all aspects of the class when switching
classes for an inetd service.  Because we hard-code /daemon in the
current inetd implementation, using SETALL has unfortunate side-effects
involving the MAC code, and potentially other credential related
settings in the future.  This change maintains the DoS-resistent
aspects of the class behavior, which is all that is promised in the
inetd man page.

A larger set of diffs providing more pluggability and configurability
was deferred for this more simple approach in the short term.

Reviewed by:	ache
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-01-08 17:10:11 +00:00
scottl
d8ff7fe878 Teach sysinstall about rpcbind, rpc.lockd, and rpc.statd. As an added
bonus, rpcbind will be enabled automatically if rpc.lockd, rpc.statd, amd,
NFS Server, or NIS is enabled.
2003-01-07 07:46:50 +00:00
obrien
9043c08e47 Compare pointers to NULL rather than make it look like they are ints. 2003-01-06 17:15:35 +00:00
obrien
77b391761d save_realloc() should use reallocf() to close memory leaks.
item_add() should use safe_realloc() as it does no error checking itself.
2003-01-06 17:11:46 +00:00
phk
cf4805ac14 Update kernbb(8) to deal with GCC's new way of doing things. 2003-01-06 07:46:26 +00:00
jkh
99a8dbd2ab Prevent buffer overflow in format_cmd() by properly tracking maximum
buffer size.
Reported by:	Lionnel CHAPTAL <Lionnel.Chaptal@IPricot.com>
MFC after:	1 week
2003-01-06 07:39:02 +00:00
marcel
8c2352be36 Enable pppctl(8) on ia64. 2003-01-06 01:00:26 +00:00
tmm
9db57e5cdf Build pppctl on sparc64, now that we have libc_r. 2003-01-05 22:38:58 +00:00
simokawa
f1c859a3c5 - Remove speed_map API because speed_map is obsoleted by 1394a.
- Add definition of OHCI_HCC_BIBIV in fwohcireg.h.
2003-01-04 16:03:50 +00:00
simokawa
f588520584 - Handle zero sized directory right way.
- Staticize.
2003-01-04 10:32:31 +00:00
phk
b884c995db Make struct swblock kernel only, to make vm/swap_pager.h userland includable.
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h.
Adjust #include use in libkvm and pstat(8) to match.
2003-01-03 16:23:12 +00:00
schweikh
d3367c5f5d Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
2003-01-01 18:49:04 +00:00
schweikh
86f7487fb6 Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
mike
8540c7c57c Back out rev 1.19; getbsize(3)'s original interface has been restored. 2002-12-30 18:21:47 +00:00
mike
b6add043f9 Back out rev 1.78; getbsize(3)'s original interface has been restored.
Approved by:	markm
2002-12-30 18:19:19 +00:00
mike
9583e14608 Back out rev 1.33; getbsize(3)'s original interface has been restored.
Approved by:	markm
2002-12-30 18:16:26 +00:00
obrien
7e670eeaa0 Make fully WARNS=5 clean.
Tested on:	sparc64, x86
2002-12-30 10:57:41 +00:00
obrien
3d65cf2dd1 Use basename(3). 2002-12-30 10:16:56 +00:00
simokawa
41352fb7b2 Import FireWire userland utility. 2002-12-30 10:13:16 +00:00
obrien
88d4214ecf Use <sys/endian.h> rather than a private verison.
Tested on:	sparc64, Athlon[32]
2002-12-30 10:04:46 +00:00
obrien
b09fc872b2 Move elf2aout back to /usr/bin -- it is a general development tool, not
a sysadmin tool.
2002-12-30 10:01:26 +00:00
obrien
17e674a811 This really isn't WARNS clean. 2002-12-30 09:38:46 +00:00
jmallett
0426bfe115 Print old mixer levels when setting new ones. 2002-12-30 04:23:08 +00:00
wollman
be7461fd3f Fix printf format errors on 64-bit platforms and make WARNS=5 compliant.
Checked on Alpha and IA32.

Reviewed by:	maintainer timeout
MFC after:	1 week
2002-12-29 22:28:51 +00:00