]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoRemove reference to struct execve_args from struct imgact, which
Robert Watson [Tue, 5 Nov 2002 01:59:56 +0000 (01:59 +0000)]
Remove reference to struct execve_args from struct imgact, which
describes an image activation instance.  Instead, make use of the
existing fname structure entry, and introduce two new entries,
userspace_argv, and userspace_envv.  With the addition of
mac_execve(), this divorces the image structure from the specifics
of the execve() system call, removes a redundant pointer, etc.
No semantic change from current behavior, but it means that the
structure doesn't depend on syscalls.master-generated includes.

There seems to be some redundant initialization of imgact entries,
which I have maintained, but which could probably use some cleaning
up at some point.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoLicense update authorized by NAI: remove clause 3.
Robert Watson [Tue, 5 Nov 2002 01:42:35 +0000 (01:42 +0000)]
License update authorized by NAI: remove clause 3.

21 years agoSlight redesign for fitting in with -current.
Julian Elischer [Tue, 5 Nov 2002 01:08:11 +0000 (01:08 +0000)]
Slight redesign for fitting in with -current.

21 years agoFix bogus return values from libc_r's write() routine in situations where
Archie Cobbs [Tue, 5 Nov 2002 00:59:18 +0000 (00:59 +0000)]
Fix bogus return values from libc_r's write() routine in situations where
a partial-write is followed by an error.

PR: 43335
MFC after: 1 week

21 years agoThe symbol for Hertz is Hz.
David Malone [Mon, 4 Nov 2002 22:44:42 +0000 (22:44 +0000)]
The symbol for Hertz is Hz.

21 years agoClarify language relating to ACLs, Capabtilities, and MAC, since the
Robert Watson [Mon, 4 Nov 2002 20:52:09 +0000 (20:52 +0000)]
Clarify language relating to ACLs, Capabtilities, and MAC, since the
implementation status of these services has changed substantially
since this man page was last updated.

21 years agoForce rpcbind to start even if it wasn't enabled. This solves the ypbind
Bill Fenner [Mon, 4 Nov 2002 20:51:20 +0000 (20:51 +0000)]
Force rpcbind to start even if it wasn't enabled.  This solves the ypbind
problems people were having at startup.

Approved by:    re

21 years agoUpdate license, historical information.
Robert Watson [Mon, 4 Nov 2002 20:45:44 +0000 (20:45 +0000)]
Update license, historical information.

21 years agoPoint out that the MAC Framework is considered experimental.
Robert Watson [Mon, 4 Nov 2002 20:42:58 +0000 (20:42 +0000)]
Point out that the MAC Framework is considered experimental.

21 years agoUpdate ntpd to 4.1.1b. There are two new drivers and the usual bunch of
Ollivier Robert [Mon, 4 Nov 2002 19:44:26 +0000 (19:44 +0000)]
Update ntpd to 4.1.1b. There are two new drivers and the usual bunch of
fixes. See contrib/ntp/ChangeLog for details.

MFC after: 1 month
Prodded by: jhay
Tested on: sparc64 (panther), alpha (beast) and i386.

21 years agoMerge conflicts.
Ollivier Robert [Mon, 4 Nov 2002 19:38:46 +0000 (19:38 +0000)]
Merge conflicts.

MFC after: 1 month

21 years agoThis commit was generated by cvs2svn to compensate for changes in r106424,
Ollivier Robert [Mon, 4 Nov 2002 19:36:11 +0000 (19:36 +0000)]
This commit was generated by cvs2svn to compensate for changes in r106424,
which included commits to RCS files with non-trunk default branches.

21 years agoVirgin import of ntpd 4.1.1b
Ollivier Robert [Mon, 4 Nov 2002 19:36:11 +0000 (19:36 +0000)]
Virgin import of ntpd 4.1.1b

21 years agoAfter waiting for help with the markup, I finally decided to just patch
Nick Sayer [Mon, 4 Nov 2002 19:30:04 +0000 (19:30 +0000)]
After waiting for help with the markup, I finally decided to just patch
the page myself. The new language is more accurate than what was there
before, but the most accurate way of describing the funcionality eludes
me.

PR: kern/33904
MFC after: 1 month

21 years agoExport the function vm_page_splay().
Alan Cox [Mon, 4 Nov 2002 19:21:39 +0000 (19:21 +0000)]
Export the function vm_page_splay().

21 years agoFix a grammar bogon.
John Baldwin [Mon, 4 Nov 2002 19:18:57 +0000 (19:18 +0000)]
Fix a grammar bogon.

PR: 44883
Submitted by: Christian Brueffer <chris@unixpages.org>

21 years agoCall pcm_chn_destroy() in pcm_killchan() so that channel mutexes are destroyed and...
Olivier Houchard [Mon, 4 Nov 2002 19:12:02 +0000 (19:12 +0000)]
Call pcm_chn_destroy() in pcm_killchan() so that channel mutexes are destroyed and struct pcm_channel freed.

Reviewed by: cg
MFC after: 3 days

21 years agoLicense: update, remove clause three of BSD license per approval of
Robert Watson [Mon, 4 Nov 2002 18:11:17 +0000 (18:11 +0000)]
License: update, remove clause three of BSD license per approval of
NAI.

Add cautionary notes on the experimental status of the MAC Framework
in FreeBSD 5.0.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoImplement mpo_check_system_acct and mpo_check_system_settime() for Biba:
Robert Watson [Mon, 4 Nov 2002 17:50:52 +0000 (17:50 +0000)]
Implement mpo_check_system_acct and mpo_check_system_settime() for Biba:
require Biba privilege to configure either, and require that accounting
files be high integrity.  Note that this does allow implicit information
flow from low to high integrity, but it also protects the integrity
of accounting data.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoHook the new nextboot(8) manpage up to the build.
Gordon Tetlow [Mon, 4 Nov 2002 17:39:54 +0000 (17:39 +0000)]
Hook the new nextboot(8) manpage up to the build.

21 years agoCorrect use of mac_biba_subject_privileged() in swapon() code.
Robert Watson [Mon, 4 Nov 2002 17:36:47 +0000 (17:36 +0000)]
Correct use of mac_biba_subject_privileged() in swapon() code.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoAdd a nextboot manual page.
Gordon Tetlow [Mon, 4 Nov 2002 17:35:22 +0000 (17:35 +0000)]
Add a nextboot manual page.

Spotted by: brandt@fokus.gmd.de

21 years agoMove the modules in the mfsroot to /modules instead of /stand/modules so
John Baldwin [Mon, 4 Nov 2002 15:44:57 +0000 (15:44 +0000)]
Move the modules in the mfsroot to /modules instead of /stand/modules so
that they aren't copied over into /stand of new installations.

Submitted by: matusita
Tested on: i386

21 years agoPermit MAC policies to instrument the access control decisions for
Robert Watson [Mon, 4 Nov 2002 15:13:36 +0000 (15:13 +0000)]
Permit MAC policies to instrument the access control decisions for
system accounting configuration and for nfsd server thread attach.
Policies might use this to protect the integrity or confidentiality
of accounting data, limit the ability to turn on or off accounting,
as well as to prevent inappropriately labeled threads from becoming nfs
server threads.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoUpdate the list of FTP mirrors to reflect the current situation.
Peter Pentchev [Mon, 4 Nov 2002 15:06:09 +0000 (15:06 +0000)]
Update the list of FTP mirrors to reflect the current situation.

Reviewed by:    -doc, -hubs
Approved by:    silence on -doc, -hubs

21 years agoRemove mac_cache_fslabel_in_vnode sysctl -- with the new VFS/MAC
Robert Watson [Mon, 4 Nov 2002 14:55:14 +0000 (14:55 +0000)]
Remove mac_cache_fslabel_in_vnode sysctl -- with the new VFS/MAC
construction, labels are always cached.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoUse ${RD}/trees/base/boot/loader for kern.flp instead of /boot/loader.
Yoshihiro Takahashi [Mon, 4 Nov 2002 12:26:44 +0000 (12:26 +0000)]
Use ${RD}/trees/base/boot/loader for kern.flp instead of /boot/loader.

21 years agoPolish a bit here and there.
Poul-Henning Kamp [Mon, 4 Nov 2002 09:31:02 +0000 (09:31 +0000)]
Polish a bit here and there.
Reenable the geom.ctl device so people can play with gbde.

Sponsored by: DARPA & NAI Labs

21 years agoRun a revision on the GBDE encryption facility.
Poul-Henning Kamp [Mon, 4 Nov 2002 09:27:01 +0000 (09:27 +0000)]
Run a revision on the GBDE encryption facility.

Replace ARC4 with SHA2-512.
Change lock-structure encoding to use random ordering rather for obscurity.
Encrypt lock-structure with AES/256 instead of AES/128.
Change kkey derivation to be MD5 hash based.
Watch for malloc(M_NOWAIT) failures and ditch our cache when they happen.
Remove clause 3 of the license with NAI Labs consent.

Many thanks to "Lucky Green" <shamrock@cypherpunks.to> and "David
Wagner" <daw@cs.berkeley.edu>, for code reading, inputs and
suggestions.

This code has still not been stared at for 10 years by a gang of
hard-core cryptographers.  Discretion advised.

NB: These changes result in the on-disk format changing: dump/restore needed.

Sponsored by:   DARPA & NAI Labs.

21 years agoAdd OpenBSD 3.2.
Maxim Konovalov [Mon, 4 Nov 2002 09:19:24 +0000 (09:19 +0000)]
Add OpenBSD 3.2.

Submitted by: Sergey A. Osokin <osa@freebsd.org.ru>
MFC after: 1 week

21 years agoAdded install documentation for pc98.
Yoshihiro Takahashi [Mon, 4 Nov 2002 08:45:31 +0000 (08:45 +0000)]
Added install documentation for pc98.

21 years agoRestore /var/games; lots of ports' games use it.
Mark Murray [Mon, 4 Nov 2002 07:50:48 +0000 (07:50 +0000)]
Restore /var/games; lots of ports' games use it.

21 years agoAdd debug.doslowdown to enable/disable niced slowdown on I/O. Default
Kirk McKusick [Mon, 4 Nov 2002 07:29:20 +0000 (07:29 +0000)]
Add debug.doslowdown to enable/disable niced slowdown on I/O. Default
to off until locking interference issues get sorted out.

Sponsored by:   DARPA & NAI Labs.

21 years agoAdd descriptions for some _PC_* variables from <sys/unistd.h> that
Tim J. Robbins [Mon, 4 Nov 2002 07:21:44 +0000 (07:21 +0000)]
Add descriptions for some _PC_* variables from <sys/unistd.h> that
were missing.

21 years agoCross-reference setfacl(1).
Tim J. Robbins [Mon, 4 Nov 2002 06:46:53 +0000 (06:46 +0000)]
Cross-reference setfacl(1).

21 years agoReject slices where begin == end.
Poul-Henning Kamp [Mon, 4 Nov 2002 06:30:38 +0000 (06:30 +0000)]
Reject slices where begin == end.
Remove clause 3 from the license with NAI Labs consent.

Sponsored by: DARPA & NAI Labs

21 years agoRemove clause 3 in the license with NAI's consent.
Poul-Henning Kamp [Mon, 4 Nov 2002 06:29:05 +0000 (06:29 +0000)]
Remove clause 3 in the license with NAI's consent.
Reject slices with type==0.
Diddle the bootverbose printfs.

Sponsored by: DARPA & NAI Labs

21 years agoBackout "compatibility hack" for __sF.
Alfred Perlstein [Mon, 4 Nov 2002 03:23:56 +0000 (03:23 +0000)]
Backout "compatibility hack" for __sF.

Requested by: Steve Kargl <sgk@troutmask.apl.washington.edu> (submitter)

21 years agoDetach the pccard bus children when we eject a 16-bit card, not the
Warner Losh [Mon, 4 Nov 2002 03:01:56 +0000 (03:01 +0000)]
Detach the pccard bus children when we eject a 16-bit card, not the
32-bit ones.  This was introduced in the last commit.

21 years agoUpdate licenses and wording: NAI has authorized the removal of clause three
Robert Watson [Mon, 4 Nov 2002 02:35:46 +0000 (02:35 +0000)]
Update licenses and wording: NAI has authorized the removal of clause three
of their BSD-style license; also, carry out the NAI Labs -> Network
Associates Laboratories renaming in these files.

21 years agoLicense and wording updates: NAI has authorized the removal of clause
Robert Watson [Mon, 4 Nov 2002 01:53:12 +0000 (01:53 +0000)]
License and wording updates: NAI has authorized the removal of clause
three from their BSD-style license.  Also, s/NAI Labs/Network Associates
Laboratories/.

21 years agoLicense clarification and wording changes: NAI has approved removal of
Robert Watson [Mon, 4 Nov 2002 01:42:39 +0000 (01:42 +0000)]
License clarification and wording changes: NAI has approved removal of
clause three, and NAI Labs now goes by the name Network Associates
Laboratories.

21 years agoAdd the necessary tweaks for FreeBSD/ia64 releases. Note that this is
Marcel Moolenaar [Mon, 4 Nov 2002 00:50:01 +0000 (00:50 +0000)]
Add the necessary tweaks for FreeBSD/ia64 releases. Note that this is
in no way final. A typical ia64 wart is that there are no boot blocks.
Instead, we need to create disks with EFI partitions if we want auto
boot to work. All this functionality is not present yet.

21 years agoAdd GPT entry types for partitions we're likely to encounter in the
Marcel Moolenaar [Sun, 3 Nov 2002 23:53:42 +0000 (23:53 +0000)]
Add GPT entry types for partitions we're likely to encounter in the
wild. These include MS partitions and Linux partitions. At this time
there's no evidence that HP-UX uses GPT.

21 years agoHook the aic7xxx modules up. This requires some extra care since aicasm
Scott Long [Sun, 3 Nov 2002 23:48:14 +0000 (23:48 +0000)]
Hook the aic7xxx modules up.  This requires some extra care since aicasm
is a compiler tool and needs to be compiled by the host compiler.  I've
tested this in i386->sparc cross-build, 4.7->current upgrade, normal
buildkernel target, and normal /sys/i386/compile/GENERIC configurations.

Submitted by: ru

21 years ago- Consistent use of warn() vs. perror().
Tim J. Robbins [Sun, 3 Nov 2002 23:22:34 +0000 (23:22 +0000)]
- Consistent use of warn() vs. perror().
- Gracefully handle the case where standard input is missing
  a newline at EOF.
- Exit with status 1 instead of -1 (really 255) on error.
- Add a Diagnostics section to the manual page documenting
  exit status.

Approved by: rwatson

21 years ago - Remove the memory allocation for the object/offset hash table
Alan Cox [Sun, 3 Nov 2002 22:20:42 +0000 (22:20 +0000)]
 - Remove the memory allocation for the object/offset hash table
   because it's no longer used.  (See revision 1.215.)
 - Fix a harmless bug: the number of vm_page structures allocated wasn't
   properly adjusted when uma_bootstrap() was introduced.  Consequently,
   we were allocating 30 unused vm_page structures.
 - Wrap a long line.

21 years agoImprove some questionable grammar.
Ceri Davies [Sun, 3 Nov 2002 22:06:48 +0000 (22:06 +0000)]
Improve some questionable grammar.

21 years agoCorrectly recognize both bogus and genuine BSD disklabels.
Poul-Henning Kamp [Sun, 3 Nov 2002 21:47:55 +0000 (21:47 +0000)]
Correctly recognize both bogus and genuine BSD disklabels.

Don't expect me to participate in a discussion which is which.

Sponsored by: DARPA & NAI Labs.

21 years agoRemove unused MBR gunk leftover from i386.
John Baldwin [Sun, 3 Nov 2002 21:18:17 +0000 (21:18 +0000)]
Remove unused MBR gunk leftover from i386.

21 years agoearly-adopter/article.sgml: translation fixes
Udo Erdelhoff [Sun, 3 Nov 2002 12:32:43 +0000 (12:32 +0000)]
early-adopter/article.sgml: translation fixes
relnotes/common/new.sgml:   1.446 -> 1.448

21 years agoAdd status initialization code for acpi_cmbat and acpi_acad,
Mitsuru IWASAKI [Sun, 3 Nov 2002 10:49:24 +0000 (10:49 +0000)]
Add status initialization code for acpi_cmbat and acpi_acad,
acpi_cmbat_init_battery() and acpi_cmbat_init_acline() respectively.
Call acpi_cmbat_init_battery() from acpi_cmbat_resume() too just in
case.
This is a workaround for embedded controller operations which is
unstable for about a minute (typically 30 or 40 sec.) at boot time.

21 years agoEnable if_fwe.
Hidetoshi Shimokawa [Sun, 3 Nov 2002 10:41:30 +0000 (10:41 +0000)]
Enable if_fwe.

21 years ago- Added the MenuIPLType menu for selecting pc98 boot IPL.
Yoshihiro Takahashi [Sun, 3 Nov 2002 10:06:22 +0000 (10:06 +0000)]
- Added the MenuIPLType menu for selecting pc98 boot IPL.
- Disabled 'Syscons, Font', 'Syscons, Screenmap' and 'Syscons, Ttys' menus
  on pc98.
- Fixed the MenuMouseType and MenuMousePort menus for pc98.
- Fixed some comments for pc98.

21 years agoFix to compile for pc98.
Yoshihiro Takahashi [Sun, 3 Nov 2002 09:35:08 +0000 (09:35 +0000)]
Fix to compile for pc98.

21 years agoBring newfs_msdos into the GEOM world. Totally rewrite and simplify
Scott Long [Sun, 3 Nov 2002 08:54:46 +0000 (08:54 +0000)]
Bring newfs_msdos into the GEOM world.  Totally rewrite and simplify
getdiskinfo().  For the fixed-disk case, bpb->hid probably isn't
handled correctly, but I'm not sure if this is a serious problem since
the primary use of this program is to format floppy disks.

Reviewed by:    phk

21 years agoPrint a `+' character after the standard UNIX permission fields in long
Tim J. Robbins [Sun, 3 Nov 2002 07:29:08 +0000 (07:29 +0000)]
Print a `+' character after the standard UNIX permission fields in long
listings if the file has an extended ACL (more than the required 3 entries).
This is what Solaris and IRIX do, and what the withdrawn POSIX.2c standard
required.

Reviewed by: rwatson (an earlier version of the patch)

21 years agoAdd hints for wd1, wd2 and wd3.
Yoshihiro Takahashi [Sun, 3 Nov 2002 06:52:43 +0000 (06:52 +0000)]
Add hints for wd1, wd2 and wd3.

21 years agoIntroduce mac_check_system_settime(), a MAC check allowing policies to
Robert Watson [Sun, 3 Nov 2002 02:39:42 +0000 (02:39 +0000)]
Introduce mac_check_system_settime(), a MAC check allowing policies to
augment the system policy for changing the system time.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoInitialize d->bios_cyl. We know the media size in sectors, the number
Marcel Moolenaar [Sun, 3 Nov 2002 01:37:08 +0000 (01:37 +0000)]
Initialize d->bios_cyl. We know the media size in sectors, the number
of heads end the number of sectors per track. If there's an obvious
insanity (heads and sectors are both zero or the media size is not
an integral multiple of heads times sector) we set the number of
cylinders to zero.

21 years agoChange privilege model for mac_partition such that BSD superuser can change
Robert Watson [Sun, 3 Nov 2002 00:53:03 +0000 (00:53 +0000)]
Change privilege model for mac_partition such that BSD superuser can change
the partition once a partition has been set.  This is required for correct
operation of sendmail between partitions.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRemove entry for All Saints' in Portugal. While it's correct, All
Greg Lehey [Sun, 3 Nov 2002 00:37:04 +0000 (00:37 +0000)]
Remove entry for All Saints' in Portugal.  While it's correct, All
Saints' is celebrated in all Christian countries, and there's already
another entry.

21 years agoX-ref clock_gettime(2).
Robert Watson [Sat, 2 Nov 2002 23:59:02 +0000 (23:59 +0000)]
X-ref clock_gettime(2).

21 years agoSync to src/sys/kern/syscalls.master
Robert Watson [Sat, 2 Nov 2002 23:55:30 +0000 (23:55 +0000)]
Sync to src/sys/kern/syscalls.master

21 years agoRegen from yesterday's system call placeholder rename.
Robert Watson [Sat, 2 Nov 2002 23:54:36 +0000 (23:54 +0000)]
Regen from yesterday's system call placeholder rename.

21 years agoMFp4:
Warner Losh [Sat, 2 Nov 2002 23:00:28 +0000 (23:00 +0000)]
MFp4:
o Always release the resources on device detach.
o Attach resources the same with driver added as we do we do in the insert
  case (maybe this should be a routine).
o signal the wakeup of the thread on resume instead of trying to force an
  interrupt.
o Minor debug hacks.
o use 0xffffffff instead of -1 for uint32_t items.
o Don't complain when we're asked to detach no cards.  This is normal.
o Eliminate the now worthless second parameter to card_detach_card.
o minor style(9)isms

Some of these patches may be from: iwasaki-san, jhb, iadowse

21 years agoCatch up with the removal of the vm page buckets spin mutex.
Alan Cox [Sat, 2 Nov 2002 22:42:18 +0000 (22:42 +0000)]
Catch up with the removal of the vm page buckets spin mutex.

21 years agoRemove the vm page buckets mutex. As of revision 1.215 of vm/vm_page.c,
Alan Cox [Sat, 2 Nov 2002 22:39:30 +0000 (22:39 +0000)]
Remove the vm page buckets mutex.  As of revision 1.215 of vm/vm_page.c,
it is unused.

21 years agoMFp4:
Warner Losh [Sat, 2 Nov 2002 22:35:24 +0000 (22:35 +0000)]
MFp4:
o It turns out that we always need to try to route the interrupts for
  the case where the $PIR tells us there can be only one.  Some machines
  require this, while others fail when we try to do this (bogusly, imho).
  Since we have no apriori way of knowing which is which, we always try to
  do the routing and hope for the best if things fail.
o Add some additional comments that state the obvious, but amplify it in
  non-obvious ways (judging from the questions I've gotten).

This should un-break older laptops that still have to use PCIBIOS to route
interrupts.

Tested by: sam

21 years agoUse 0xffffffff instead of -1 for id to compare against.
Warner Losh [Sat, 2 Nov 2002 22:32:04 +0000 (22:32 +0000)]
Use 0xffffffff instead of -1 for id to compare against.
Use exact width types, since this is a MD file and won't be used elsewhere.
Fix a couple of resulting printf breakages

Bug found by: phk using Flexlint

21 years agoShamelessly copy the files over from the sparc64 port. Since there
Marcel Moolenaar [Sat, 2 Nov 2002 20:31:54 +0000 (20:31 +0000)]
Shamelessly copy the files over from the sparc64 port. Since there
was no history to speak of, a repocopy would not have bought us
anything. Versions copied:
../sparc64/boot_crunch.conf,v 1.3 2002/11/01 15:29:35 jhb
../sparc64/dokern.sh,v 1.1 2002/10/13 18:36:06 jake
../sparc64/mkisoimages.sh,v 1.1 2002/10/13 18:36:06 jake

obtained from: jake, jhb
chapeau: jkh (mkisoimages.sh)

21 years agoUnbreak MNT_UPDATE when running with cd as root. Detect mountroot by
Peter Wemm [Sat, 2 Nov 2002 20:16:55 +0000 (20:16 +0000)]
Unbreak MNT_UPDATE when running with cd as root.  Detect mountroot by
checking for "path == NULL" (like ffs) rather than MNT_ROOT.  Otherwise
when you try and do an update or mountd does an NFS export, the remount
fails because the code tries to mount a fresh rootfs and gets an EBUSY.
The same bug is in 4.x (which is where I found it).

Sanity check by: mux

21 years agoFix some warnings on 64 bit architectures. The vn_extattr_get()
Maxime Henrion [Sat, 2 Nov 2002 20:16:35 +0000 (20:16 +0000)]
Fix some warnings on 64 bit architectures.  The vn_extattr_get()
function takes an int * parameter, not a size_t * parameter.

Arguably, it should rather take a size_t *, but that would
require changing the uio_resid field of struct uio to be a size_t
instead of an int, which I don't want to do that close to
5.0-RELEASE.

Reviewed by: rwatson

21 years agoSwitch to two-clause license, with NAI's permission.
Dag-Erling Smørgrav [Sat, 2 Nov 2002 19:55:23 +0000 (19:55 +0000)]
Switch to two-clause license, with NAI's permission.

21 years agoProvide a hook to make __sF visible outside of libc for commercial apps
Alfred Perlstein [Sat, 2 Nov 2002 19:47:53 +0000 (19:47 +0000)]
Provide a hook to make __sF visible outside of libc for commercial apps
if WANT_COMPAT4_STDIO is defined when compiling libc.

Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>

21 years agoThe hw.physmem sysctl has an unsigned long value now, fix the retrieval
Thomas Moestl [Sat, 2 Nov 2002 17:19:18 +0000 (17:19 +0000)]
The hw.physmem sysctl has an unsigned long value now, fix the retrieval
to match that.

21 years agoFix typo manpage for ktrdump
Sebastien Gioria [Sat, 2 Nov 2002 14:59:06 +0000 (14:59 +0000)]
Fix typo manpage for ktrdump
PR: docs/44825
Submitted by: Mark Linimon <linimon@lonesome.com>

21 years agoFix typo
Sebastien Gioria [Sat, 2 Nov 2002 14:52:23 +0000 (14:52 +0000)]
Fix typo
PR:   docs/44824
Submitted by: Mark Linimon <linimon@lonesome.com>

21 years agoWelcom to installation and early-adopter directory
Sebastien Gioria [Sat, 2 Nov 2002 14:16:09 +0000 (14:16 +0000)]
Welcom to installation and early-adopter directory

21 years agoFirst French version of early-adopter
Sebastien Gioria [Sat, 2 Nov 2002 14:15:25 +0000 (14:15 +0000)]
First French version of early-adopter

21 years agoAdd support for GPT:
Marcel Moolenaar [Sat, 2 Nov 2002 12:14:04 +0000 (12:14 +0000)]
Add support for GPT:
1. When the parition type is not an integer, try to parse the type
   as an UUID. If that succeeds, map the UUID to chunk_e.
2. For GPT partitions, pass the type constructed in point 1 above
   to Add_Chunk.

While here, fix the MBREXT case by only checking if the first 3
characters are MBR. This avoids duplication.

21 years agoAdd support for ia64. This is almost identical to i386, except that
Marcel Moolenaar [Sat, 2 Nov 2002 12:05:16 +0000 (12:05 +0000)]
Add support for ia64. This is almost identical to i386, except that
with GPT chunks of type "part" do not necessarily live under chunks
of type "freebsd". We don't necessarily have a disklabel.

21 years agoRemove the GEOM_GPT hack. We now check for partition type 0xEE and
Marcel Moolenaar [Sat, 2 Nov 2002 12:01:12 +0000 (12:01 +0000)]
Remove the GEOM_GPT hack. We now check for partition type 0xEE and
skip those. This handles the Protective MBR (PMBR) which consists
of a single partition of type 0xEE that covers the whole disk and
as such protects the GPT partitioning. We allow other partitions to
be present besides partitions of type 0xEE and as such interpret
partition type 0xEE as a "hands-off" partition only.

While here, fix g_mbrext_dumpconf to test if indent is NULL and
dump the data in a form that libdisk can grok. Change the logic
in g_mbr_dumpconf to match that of g_mbrext_dumpconf. This does
not change the output, but prevents a NULL-pointer dereference
when indent == NULL && pp == NULL.

21 years agoFix dumpconf so libdisk can grok its output. We weren't checking
Marcel Moolenaar [Sat, 2 Nov 2002 11:45:54 +0000 (11:45 +0000)]
Fix dumpconf so libdisk can grok its output. We weren't checking
if indent was NULL. Consequently we always emitted the XML format.

21 years agoMFbed:
Udo Erdelhoff [Sat, 2 Nov 2002 11:20:26 +0000 (11:20 +0000)]
MFbed:
hardware/common/dev.sgml: 1.111 -> 1.112
readme/article.sgml: 1.17  -> 1.18
relnotes/common/new.sgml: 1.439 -> 1.446

21 years agomalloc(9) with M_NOWAIT seems to return NULL a lot more than I would have
Poul-Henning Kamp [Sat, 2 Nov 2002 11:08:07 +0000 (11:08 +0000)]
malloc(9) with M_NOWAIT seems to return NULL a lot more than I would have
expected under -current.  This is a problem for GEOM because the up/down
threads cannot sleep waiting for memory to become free.  The reason they
cannot sleep is that paging things out to disk may be the only way we can
clear up some RAM.  Nice catch-22 there.

Implement a rudimentary ENOMEM recovery strategy:  If an I/O request
fails with an error code of ENOMEM, schedule it for a retry, and
tell the down-thread to sleep hz/10 to get other parts of the system
a chance to free up some memory, in particular the up-path in GEOM.

All caches should probably start to monitor malloc(9) failures using the new
malloc_last_fail() function, and release when it indicates congestion.

Sponsored by: DARPA & NAI Labs.

21 years agoDon't claim all MBR's have subtype 165 on i386.
Poul-Henning Kamp [Sat, 2 Nov 2002 10:57:44 +0000 (10:57 +0000)]
Don't claim all MBR's have subtype 165 on i386.

Spotted by: Frode Nordahl <frode@nordahl.net>

21 years agoadd missing '!', don't why it was lost when checked in.
David Xu [Sat, 2 Nov 2002 10:31:22 +0000 (10:31 +0000)]
add missing '!', don't why it was lost when checked in.

21 years agoFix indentation of comments.
Jonathan Mini [Sat, 2 Nov 2002 08:49:51 +0000 (08:49 +0000)]
Fix indentation of comments.

21 years agoAdd IPv6 setup for ipfilter. `ipv6_ipfilter_rules' was added
Hajimu UMEMOTO [Sat, 2 Nov 2002 08:21:26 +0000 (08:21 +0000)]
Add IPv6 setup for ipfilter.  `ipv6_ipfilter_rules' was added
to specify rules definition file for ipfilter.  The default is
/etc/ipf6.rules.  If there is a file which is specified by
'ipv6_ipfilter_rules', IPv6 rule is installed.

Reviewed by: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
MFC after: 1 week

21 years agobzero() the sigframe before we fill it. This was not done at all in
Marcel Moolenaar [Sat, 2 Nov 2002 07:41:04 +0000 (07:41 +0000)]
bzero() the sigframe before we fill it. This was not done at all in
linux_rt_sendsig() and only done for the fpstate in linux_sendsig().

21 years agoo Remove the fallback implementations of uuid_create(),
Marcel Moolenaar [Sat, 2 Nov 2002 07:08:15 +0000 (07:08 +0000)]
o  Remove the fallback implementations of uuid_create(),
   uuid_from_string(), uuid_is_nil() and uuid_to_string().
o  Include <uuid.h> where appropriate.

21 years agoAdd loader variables to control the loading of various networking modules.
Jonathan Mini [Sat, 2 Nov 2002 06:52:28 +0000 (06:52 +0000)]
Add loader variables to control the loading of various networking modules.

Submitted by: David Yeske <dyeske@yahoo.com>

21 years agoDon't move the NFSCLIENT support into mfsroot-small.flp.
Yoshihiro Takahashi [Sat, 2 Nov 2002 06:24:29 +0000 (06:24 +0000)]
Don't move the NFSCLIENT support into mfsroot-small.flp.

21 years agoAdd CVSARGS for cvs arguments (vs. cvs subcommand arguments).
John W. De Boskey [Sat, 2 Nov 2002 06:00:06 +0000 (06:00 +0000)]
Add CVSARGS for cvs arguments (vs. cvs subcommand arguments).
Allow the cvs command to be prefixed by using CVSPREFIX.

21 years agoRevert the change in revision 1.77 of kern/uipc_socket2.c. It is causing
Alan Cox [Sat, 2 Nov 2002 05:14:31 +0000 (05:14 +0000)]
Revert the change in revision 1.77 of kern/uipc_socket2.c.  It is causing
a panic because the socket's state isn't as expected by sofree().

Discussed with: dillon, fenner

21 years agoMerge PC98 changes.
Matthew N. Dodd [Sat, 2 Nov 2002 04:18:10 +0000 (04:18 +0000)]
Merge PC98 changes.

21 years agoGerman version of the early adopter's guide
Udo Erdelhoff [Sat, 2 Nov 2002 03:07:46 +0000 (03:07 +0000)]
German version of the early adopter's guide

21 years agoThe easy part of converting the ng_source node to -current.
Julian Elischer [Sat, 2 Nov 2002 02:29:43 +0000 (02:29 +0000)]
The easy part of converting the ng_source node to -current.
More to come.. does not compile (deliberatly.. logic broken)

21 years agoFix an obvious typo
Udo Erdelhoff [Sat, 2 Nov 2002 01:52:37 +0000 (01:52 +0000)]
Fix an obvious typo