]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoremove useless casts, unused macros and cleanup a line wrap.
alfred [Wed, 20 Nov 2002 10:13:04 +0000 (10:13 +0000)]
remove useless casts, unused macros and cleanup a line wrap.

21 years agocomment and untwist error return logic
alfred [Wed, 20 Nov 2002 10:06:51 +0000 (10:06 +0000)]
comment and untwist error return logic

21 years agoRemove an outdated comment complaining about exporting struct ucred
alfred [Wed, 20 Nov 2002 10:00:04 +0000 (10:00 +0000)]
Remove an outdated comment complaining about exporting struct ucred
to userspace, I fixed it a while ago.

21 years agoThe target for the maximum number of dependencies has been cut
mckusick [Wed, 20 Nov 2002 05:16:11 +0000 (05:16 +0000)]
The target for the maximum number of dependencies has been cut
in half because of reports that under heavy load the kernel could
exhaust its memory pool. The limit is now (desiredvnodes * 4)
rather than (desiredvnodes * 8), so it will still scale with
larger systems, just not as quickly.

Sponsored by:   DARPA & NAI Labs.

21 years agoIf an error occurs while writing a buffer, then the data will
mckusick [Wed, 20 Nov 2002 05:14:16 +0000 (05:14 +0000)]
If an error occurs while writing a buffer, then the data will
not have hit the disk and the dependencies cannot be unrolled.
In this case, the system will mark the buffer as dirty again so
that the write can be retried in the future. When the write
succeeds or the system gives up on the buffer and marks it as
invalid (B_INVAL), the dependencies will be cleared.

Sponsored by:   DARPA & NAI Labs.

21 years agoProperly handle UFS2 sparsely allocated inodes. Fix bug that caused
mckusick [Wed, 20 Nov 2002 02:13:32 +0000 (02:13 +0000)]
Properly handle UFS2 sparsely allocated inodes. Fix bug that caused
the error "quotacheck: bad inode number 1 to nextinode".

Sponsored by:   DARPA & NAI Labs.
Reported-by: Franky <franky@jasna.tarnow.pl> and Matthew Kolb <muk@msu.edu>

21 years agoFirst round to sync with the English version.
kuriyama [Tue, 19 Nov 2002 22:20:02 +0000 (22:20 +0000)]
First round to sync with the English version.

This patch sync'ed to 1.433 of the English version, but most of new
text are not yet translated.  More will be followed.

21 years agoMerge kld access control checks from the MAC tree: these access control
rwatson [Tue, 19 Nov 2002 22:12:42 +0000 (22:12 +0000)]
Merge kld access control checks from the MAC tree: these access control
checks permit policy modules to augment the system policy for permitting
kld operations.  This permits policies to limit access to kld operations
based on credential (and other) properties, as well as to perform checks
on the kld being loaded (integrity, etc).

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

21 years agoAdd entity references for cam(4), sn(4), awi(4).
bmah [Tue, 19 Nov 2002 21:34:35 +0000 (21:34 +0000)]
Add entity references for cam(4), sn(4), awi(4).

PR: 45489
Submitted by: Mark Linimon <linimon@lonesome.com>

21 years agoFix a couple of bewildering typos.
bmah [Tue, 19 Nov 2002 19:00:27 +0000 (19:00 +0000)]
Fix a couple of bewildering typos.

Pointed out by:  "Alexey V. Neyman" <alex.neyman@auriga.ru>
Approved by: re (implicitly)

21 years agoAdd a sysctl to control the generation of source quench packets,
silby [Tue, 19 Nov 2002 17:06:06 +0000 (17:06 +0000)]
Add a sysctl to control the generation of source quench packets,
and set it to 0 by default.

Partially obtained from: NetBSD
Suggested by: David Gilbert
MFC after: 5 days

21 years agocorrect function declarations of stubs used for building w/o device bpf
sam [Tue, 19 Nov 2002 02:50:46 +0000 (02:50 +0000)]
correct function declarations of stubs used for building w/o device bpf

21 years agoAdd description of a number of "default" files that have been added
grog [Tue, 19 Nov 2002 00:30:38 +0000 (00:30 +0000)]
Add description of a number of "default" files that have been added
over the last few years.

21 years agoAdd file for South African holidays.
grog [Tue, 19 Nov 2002 00:29:36 +0000 (00:29 +0000)]
Add file for South African holidays.

Submitted by: Tony Harverson <Tony@epages.net>

21 years agoo Bring the NOTICE section into the DESCRIPTION section and wrap it in
chris [Mon, 18 Nov 2002 22:56:41 +0000 (22:56 +0000)]
o Bring the NOTICE section into the DESCRIPTION section and wrap it in
  .Bf -emphasis ... .Ef
o Grammar/spelling

Sponsored by: DARPA, NAI Labs

21 years agoFix the handling of high PLT entries (> 32764) on sparc64. This requires
tmm [Mon, 18 Nov 2002 22:08:50 +0000 (22:08 +0000)]
Fix the handling of high PLT entries (> 32764) on sparc64. This requires
additional arguments to reloc_jmpslot(), which is why MI code and MD code
of other platforms had to be changed.

Reviewed by: jake
Approved by: re

21 years agoFixup FILES section to use proper width and to use a cross-reference to
jhb [Mon, 18 Nov 2002 21:07:48 +0000 (21:07 +0000)]
Fixup FILES section to use proper width and to use a cross-reference to
devd(8).

21 years agoRemove leading ^ from example of match line in vendor-supplied rules since
jhb [Mon, 18 Nov 2002 21:02:29 +0000 (21:02 +0000)]
Remove leading ^ from example of match line in vendor-supplied rules since
the ^ is implicit at the beginning of the expressions.

21 years agoDocument the KERNELS variable.
jhb [Mon, 18 Nov 2002 20:31:35 +0000 (20:31 +0000)]
Document the KERNELS variable.

21 years agoWe leaked a process lock reference in the event an RFTHREAD process
rwatson [Mon, 18 Nov 2002 14:23:21 +0000 (14:23 +0000)]
We leaked a process lock reference in the event an RFTHREAD process
leader wasn't exiting during a fork; instead, do remember to release
the lock avoiding lock order reversals and recursion panic.

Reported by: "Joel M. Baldwin" <qumqats@outel.org>

21 years agoMake sure only update wall clock at upcall time, slightly reformat
davidxu [Mon, 18 Nov 2002 12:28:15 +0000 (12:28 +0000)]
Make sure only update wall clock at upcall time, slightly reformat
code in kse_relase().

21 years agoAdd EXTLOCALDIR document.
nyan [Mon, 18 Nov 2002 12:25:53 +0000 (12:25 +0000)]
Add EXTLOCALDIR document.

21 years agoExport NO_CPU_CFLAGS and NO_CPU_COPTFLAGS to chroot.
nyan [Mon, 18 Nov 2002 11:16:44 +0000 (11:16 +0000)]
Export NO_CPU_CFLAGS and NO_CPU_COPTFLAGS to chroot.

21 years agoDon't move NFSCLIENT.
nyan [Mon, 18 Nov 2002 11:03:29 +0000 (11:03 +0000)]
Don't move NFSCLIENT.

21 years agoCatch up with The Great Perl Script Rewrite.
ru [Mon, 18 Nov 2002 10:25:27 +0000 (10:25 +0000)]
Catch up with The Great Perl Script Rewrite.

21 years agoInstall /usr/libexec/makewhatis.local and /usr/libexec/catman.local.
ru [Mon, 18 Nov 2002 10:11:22 +0000 (10:11 +0000)]
Install /usr/libexec/makewhatis.local and /usr/libexec/catman.local.
This has slipped through the cracks of The Great Perl Script Rewrite.

Repocopied by: joe

21 years agolibc_r wasn't so tied to libc for 22 months.
ru [Mon, 18 Nov 2002 09:50:57 +0000 (09:50 +0000)]
libc_r wasn't so tied to libc for 22 months.

21 years agoAdd several new real categories and virtual categories.
knu [Mon, 18 Nov 2002 09:33:56 +0000 (09:33 +0000)]
Add several new real categories and virtual categories.
[Those marked with an asterisk (*) are virtual categories]

- accessibility* : Ports to help disabled users

  PR: ports/39103
  Requested by: trevor

- finance : Monetary, financial and related applications

  PR: ports/39102
  Requested by: trevor

- haskell* : Software related to the Haskell language

  PR: ports/41959
  Requested by: obraun

- hungarian : Hungarian language support

  PR: ports/37576
  Requested by: Janos Mohacsi <janos.mohacsi@bsd.hu>

- multimedia : Multimedia software

  Requested by: many

- parallel* : pplications dealing with parallelism in computing

  PR: ports/39094
  Requested by: trevor

- portuguese : Portuguese language support

  PR: ports/35991
  Requested by: trevor

21 years agoCreate a link /boot -> /<efi>/boot, where <efi> is the mountpoint
marcel [Mon, 18 Nov 2002 08:37:46 +0000 (08:37 +0000)]
Create a link /boot -> /<efi>/boot, where <efi> is the mountpoint
of the EFI file system. This makes the EFI partition non-optional.
I don't think that the links are actually correct, given that all
the mount points are under /mnt when sysinstall is run as init.
(ie a non-upgrade). Thus: I think I need to go in once more, but
at least this doesn't get lost...

21 years agoAdd mount_msdosfs to the crunch-mix. We need to be able to mount
marcel [Mon, 18 Nov 2002 08:32:45 +0000 (08:32 +0000)]
Add mount_msdosfs to the crunch-mix. We need to be able to mount
the EFI partition, because we intend to link /boot to /efi/boot.

21 years ago - Wakeup the correct address when a zone is no longer full.
jeff [Mon, 18 Nov 2002 08:27:14 +0000 (08:27 +0000)]
 - Wakeup the correct address when a zone is no longer full.

Spotted by: jake

21 years agoThis file has reincarnated as src/include/uuid.h with a whole new
marcel [Mon, 18 Nov 2002 08:06:39 +0000 (08:06 +0000)]
This file has reincarnated as src/include/uuid.h with a whole new
future ahead of it.

21 years agolibc header files are normally in src/include. Therefore, uuid.h has
marcel [Mon, 18 Nov 2002 07:34:56 +0000 (07:34 +0000)]
libc header files are normally in src/include. Therefore, uuid.h has
been repo-copied from src/lib/libc/uuid to src/include. Update the
makefiles.

While in src/include/Makefile, reformat and resort INCS. Reverting
the functional change only involves removing uuid.h.

Pompted by: ru

21 years agoAdd BUGS section and note departure of actual implementation from what
imp [Mon, 18 Nov 2002 07:16:47 +0000 (07:16 +0000)]
Add BUGS section and note departure of actual implementation from what
is documented so the pioneers will know why it works the way it does.

21 years agoCreate the ofwcons device at SI_SUB_CONFIGURE instead of SI_SUB_DRIVERS,
jake [Mon, 18 Nov 2002 06:19:12 +0000 (06:19 +0000)]
Create the ofwcons device at SI_SUB_CONFIGURE instead of SI_SUB_DRIVERS,
after configure() has run.  Only create the device if ofwcons is the
highest priority console.  Make a dev alias with the same name as the
firmware output-device property.

21 years agoMove SHOW_BUSYBUFS and PANIC_REBOOT_WAIT_TIME into the MI options file, since
jmallett [Mon, 18 Nov 2002 06:17:07 +0000 (06:17 +0000)]
Move SHOW_BUSYBUFS and PANIC_REBOOT_WAIT_TIME into the MI options file, since
MI code uses them, and every platform provides them (except x86_64 whose
options file was lacking one).

Reviewed by: bde, rwatson

21 years agoSetup a default tty mode even if the device is not the console. Don't
jake [Mon, 18 Nov 2002 05:56:43 +0000 (05:56 +0000)]
Setup a default tty mode even if the device is not the console.  Don't
reset the chip on open if we're not the console.

This fixes running a getty on ttya or ttyb if console input and output
devices are screen.

21 years agoEverything in the disklabel is unsigned so make all the input routines
julian [Mon, 18 Nov 2002 04:58:11 +0000 (04:58 +0000)]
Everything in the disklabel is unsigned so make all the input routines
take unsigned values.
his allows one to label disk with the number of blocks > 31 bits
(though less then 32 bits)

e.g.
#        size   offset fstype [fsize bsize bps/cpg]
  c: 3125755904  0   unused    0     0        # (Cyl.    0 - 194569*)
  d: 3125755840  64  unused    0     0        # (Cyl.    0*- 194569*)
which is needd to test UFS2

21 years agoRemove vm_page_protect(). Instead, use pmap_page_protect() directly.
alc [Mon, 18 Nov 2002 04:05:22 +0000 (04:05 +0000)]
Remove vm_page_protect().  Instead, use pmap_page_protect() directly.

21 years agoRemove some unnecessary code. Make the device description nicer. Add a
jake [Mon, 18 Nov 2002 04:02:42 +0000 (04:02 +0000)]
Remove some unnecessary code.  Make the device description nicer.  Add a
delay in the right place to flush output before switching consoles.

21 years agoRun configure at SI_SUB_THIRD instead of SI_SUB_ANY like other
jake [Mon, 18 Nov 2002 03:28:23 +0000 (03:28 +0000)]
Run configure at SI_SUB_THIRD instead of SI_SUB_ANY like other
architectures.

21 years agoDuring shutdown explain what the numbers following the 'syncing
alfred [Mon, 18 Nov 2002 02:41:03 +0000 (02:41 +0000)]
During shutdown explain what the numbers following the 'syncing
disks' message mean, specifically, 'buffers remaining...'.

21 years agoAdjust code for new mailbox format.
davidxu [Mon, 18 Nov 2002 02:02:08 +0000 (02:02 +0000)]
Adjust code for new mailbox format.

Reviewed by: deischen, mini

21 years ago1. Support versioning and wall clock in kse mailbox,
davidxu [Mon, 18 Nov 2002 01:59:31 +0000 (01:59 +0000)]
1. Support versioning and wall clock in kse mailbox,
   also add rusage time in thread mailbox.
2. Minor change for thread limit code in thread_user_enter(),
   fix typo in kse_release() last I committed.

Reviewed by: deischen, mini

21 years agoMFi386 r1.369
alc [Mon, 18 Nov 2002 01:36:09 +0000 (01:36 +0000)]
MFi386 r1.369
 - Clear the PG_WRITEABLE flag in pmap_changebit() if write access is
   being removed.  Return immediately if write access is being removed and
   PG_WRITEABLE is already clear.

Note: For efficiency, pmap_changebit() should be replaced by a function
similar to sparc64's pmap_clear_write().

21 years agoFlesh out the description of the uma_zcreate callback function arguements
alfred [Mon, 18 Nov 2002 01:11:58 +0000 (01:11 +0000)]
Flesh out the description of the uma_zcreate callback function arguements
a bit.  As there may be changes soon we're still a bit vague unfortunatly.

21 years agoDeal with the possibility that time_t != int32_t. Otherwise ia64 thought
peter [Sun, 17 Nov 2002 23:50:41 +0000 (23:50 +0000)]
Deal with the possibility that time_t != int32_t.  Otherwise ia64 thought
the fs_old_size was the half part of fs_old_time etc.

21 years agoOops. Some ut_time stuff slipped through the cracks. These turned out
peter [Sun, 17 Nov 2002 23:46:45 +0000 (23:46 +0000)]
Oops.  Some ut_time stuff slipped through the cracks.  These turned out
to be non-fatal due to stack alignment roundups.

21 years agoinclude smp.h.
julian [Sun, 17 Nov 2002 23:26:42 +0000 (23:26 +0000)]
include smp.h.
it is required by some code that was commented out until david's
last commit.

21 years agoMFi386 r1.369
alc [Sun, 17 Nov 2002 21:48:42 +0000 (21:48 +0000)]
MFi386 r1.369
 - Clear the PG_WRITEABLE flag in pmap_page_protect() if write access is
   being removed.  Return immediately if write access is being removed and
   PG_WRITEABLE is already clear.

21 years agoAdd ${DESTDIR} forgotten in the previous commit.
hrs [Sun, 17 Nov 2002 20:38:27 +0000 (20:38 +0000)]
Add ${DESTDIR} forgotten in the previous commit.

21 years agoUpgrade the root partition mount to r/w before trying to write to it.
luigi [Sun, 17 Nov 2002 20:19:34 +0000 (20:19 +0000)]
Upgrade  the root partition mount to r/w before trying to write to it.

MFC after: 3 days

21 years agoAdd a new translation and activate it:
hrs [Sun, 17 Nov 2002 19:45:00 +0000 (19:45 +0000)]
Add a new translation and activate it:

1.2   -> 1.3   ja_JP.eucJP/Makefile
(new) -> 1.3   ja_JP.eucJP/early-adopter/Makefile
(new) -> 1.5   ja_JP.eucJP/early-adopter/article.sgml

21 years agoReplace m_copy() with m_copypacket() where applicable.
luigi [Sun, 17 Nov 2002 18:14:04 +0000 (18:14 +0000)]
Replace m_copy() with m_copypacket() where applicable.
Replace 0 with NULL where appropriate.
Fix indentation and function headers.

21 years agoFix function headers, remove 'register' from variable declarations.
luigi [Sun, 17 Nov 2002 18:13:02 +0000 (18:13 +0000)]
Fix function headers, remove 'register' from variable declarations.

21 years agoFix function headers and remove 'register' variable declarations.
luigi [Sun, 17 Nov 2002 17:04:19 +0000 (17:04 +0000)]
Fix function headers and remove 'register' variable declarations.

21 years agoUpdate SYNOPSIS to reflect the standardized header. Add STANDARDS
mike [Sun, 17 Nov 2002 16:34:07 +0000 (16:34 +0000)]
Update SYNOPSIS to reflect the standardized header.  Add STANDARDS
section.

PR: 43270

21 years agoMove the ip_fragment code from ip_output() to a separate function,
luigi [Sun, 17 Nov 2002 16:30:44 +0000 (16:30 +0000)]
Move the ip_fragment code from ip_output() to a separate function,
so that it can be reused elsewhere (there is a number of places
where it can be useful). This also trims some 200 lines from
the body of ip_output(), which helps readability a bit.

(This change was discussed a few weeks ago on the mailing lists,
Julian agreed, silence from others. It is not a functional change,
so i expect it to be ok to commit it now but i am happy to back it
out if there are objections).

While at it, fix some function headers and replace m_copy() with
m_copypacket() where applicable.

MFC after: 1 week

21 years ago1. Hide the internals of struct fd_set in standard namespaces.
mike [Sun, 17 Nov 2002 16:22:18 +0000 (16:22 +0000)]
1. Hide the internals of struct fd_set in standard namespaces.
2. Avoid referencing bcopy() and bzero(), since they may not be in
   scope.

Request by:     bde (1)
Submitted by:   wollman (2)
Reviewed by: archie, bde
PR: 43270

21 years agoMinor documentation changes and indentation fix.
luigi [Sun, 17 Nov 2002 16:13:08 +0000 (16:13 +0000)]
Minor documentation changes and indentation fix.

Replace m_copy() with m_copypacket() where applicable.

While at it, fix some function headers and remove 'register' from
variable declarations.

21 years agoCleanup some of the comments, and reformat long lines.
luigi [Sun, 17 Nov 2002 16:02:17 +0000 (16:02 +0000)]
Cleanup some of the comments, and reformat long lines.

Replace m_copy() with m_copypacket() where applicable.

Replace "if (a.s_addr ...)" with "if (a.s_addr != INADDR_ANY ...)"
to make it clear what the code means.

While at it, fix some function headers and remove 'register' from
variable declarations.

MFC after: 3 days

21 years ago- Add support for ALT_BREAK_TO_DEBUGGER; this is the only reliable way to
jake [Sun, 17 Nov 2002 16:00:51 +0000 (16:00 +0000)]
- Add support for ALT_BREAK_TO_DEBUGGER; this is the only reliable way to
  trigger a breakpoint with this chip.
- Fiddle the right bits in the cn input and output routines to disable port
  interrupts and enable visibility of the masked interrupt status bits.
- Register a shutdown final event handler to put the chip back in the mode
  that the prom expects.

21 years agoApply some fixups in the driver_t's.
joe [Sun, 17 Nov 2002 14:22:37 +0000 (14:22 +0000)]
Apply some fixups in the driver_t's.

Submitted by: akiyama
MFC after: 3 days

21 years agoUse a sysctl for controlling the debugging output.
joe [Sun, 17 Nov 2002 14:08:48 +0000 (14:08 +0000)]
Use a sysctl for controlling the debugging output.

Submitted by: akiyama

21 years agoSave a slice name on the disk and print it at g_pc98_dumpconf().
nyan [Sun, 17 Nov 2002 13:56:37 +0000 (13:56 +0000)]
Save a slice name on the disk and print it at g_pc98_dumpconf().

21 years ago- Ease sanity check to get cylinders.
nyan [Sun, 17 Nov 2002 13:51:22 +0000 (13:51 +0000)]
- Ease sanity check to get cylinders.
- Get the slice name from the result of kern.geom.conftxt.

21 years agoCopy from ${EXTLOCALDIR} to ${CHROOTDIR}/usr/local if EXTLOCALDIR is defined.
nyan [Sun, 17 Nov 2002 13:35:12 +0000 (13:35 +0000)]
Copy from ${EXTLOCALDIR} to ${CHROOTDIR}/usr/local if EXTLOCALDIR is defined.

21 years agoFix a typo in a console message.
joe [Sun, 17 Nov 2002 13:33:55 +0000 (13:33 +0000)]
Fix a typo in a console message.

Submitted by: akiyama
MFC after: 3 days

21 years ago1.Add sysctls to control KSE resource allocation.
davidxu [Sun, 17 Nov 2002 11:47:03 +0000 (11:47 +0000)]
1.Add sysctls to control KSE resource allocation.
  kern.threads.max_threads_per_proc
  kern.threads.max_groups_per_proc
2.Temporary disable borrower thread stash itself as
  owner thread's spare thread in thread_exit(). there
  is a race between owner thread and borrow thread:
  an owner thread may allocate a spare thread as this:
if (td->td_standin == NULL)
td->standin = thread_alloc();
  but thread_alloc() can block the thread, then a borrower
  thread would possible stash it self as owner's spare
  thread in thread_exit(), after owner is resumed, result
  is a thread leak in kernel, double check in owner can
  avoid the race, but it may be ugly and not worth to do.

21 years agoRework last exiting thread in kse_release(), wait a signal and then
davidxu [Sun, 17 Nov 2002 10:12:00 +0000 (10:12 +0000)]
Rework last exiting thread in kse_release(), wait a signal and then
schedule an upcall and call thread_exit().

21 years agoFix a typo. Add FreeBSD ID in a %% comment.
schweikh [Sun, 17 Nov 2002 09:53:11 +0000 (09:53 +0000)]
Fix a typo. Add FreeBSD ID in a %% comment.

MFC after: 3 days

21 years ago - Release the imgp vnode prior to freeing exec_map resources to avoid
jeff [Sun, 17 Nov 2002 09:33:00 +0000 (09:33 +0000)]
 - Release the imgp vnode prior to freeing exec_map resources to avoid
   deadlock.

21 years agogoto break; != break;
dougb [Sun, 17 Nov 2002 08:54:29 +0000 (08:54 +0000)]
goto break; != break;

I've no idea if this is the right behavior for the library, but this
at least fixes the build, and matches what seems to be alfred's intent
in the commit message for 1.19.

21 years agoDETACH_FORCE was removed recently. Remove it here, even though this
imp [Sun, 17 Nov 2002 04:52:37 +0000 (04:52 +0000)]
DETACH_FORCE was removed recently.  Remove it here, even though this
isn't supported.

21 years agoRework the sysconf(3) interaction with aio:
alfred [Sun, 17 Nov 2002 04:15:34 +0000 (04:15 +0000)]
Rework the sysconf(3) interaction with aio:

sysconf.c:
  Use 'break' rather than 'goto yesno' in sysconf.c so that we report a '0'
  return value from the kernel sysctl.

vfs_aio.c:
  Make aio reset its configuration parameters to -1 after unloading
  instead of 0.

posix4_mib.c:
  Initialize the aio configuration parameters to -1
  to indicate that it is not loaded.
  Add a facility (p31b_iscfg()) to determine if a posix4 facility has been
  initialized to avoid having to re-order the SYSINITs.
  Use p31b_iscfg() to determine if aio has had a chance to run yet which
  is likely if it is compiled into the kernel and avoid spamming its
  values.
  Introduce a macro P31B_VALID() instead of doing the same comparison over
  and over.

posix4.h:
  Prototype p31b_iscfg().

21 years agoMFi386: revision 1.550.
nyan [Sun, 17 Nov 2002 02:57:06 +0000 (02:57 +0000)]
MFi386: revision 1.550.

21 years agoMerged from sys/isa/fd.c revision 1.242.
nyan [Sun, 17 Nov 2002 02:39:55 +0000 (02:39 +0000)]
Merged from sys/isa/fd.c revision 1.242.

21 years agoMFi386 r1.369. Clear the PG_WRITEABLE flag in pmap_clear_write; return
jake [Sun, 17 Nov 2002 01:17:07 +0000 (01:17 +0000)]
MFi386 r1.369.  Clear the PG_WRITEABLE flag in pmap_clear_write; return
immediately if its already clear.

Suggested by: alc

21 years agoRegenerate after adding syscalls.
deischen [Sat, 16 Nov 2002 23:48:14 +0000 (23:48 +0000)]
Regenerate after adding syscalls.

21 years ago - Don't forget the flags value when using boot pages.
jeff [Sat, 16 Nov 2002 20:57:41 +0000 (20:57 +0000)]
 - Don't forget the flags value when using boot pages.

Reported by: grehan

21 years agoImplement the lock with a cmpxchg instruction instead of a xchg.
marcel [Sat, 16 Nov 2002 17:05:06 +0000 (17:05 +0000)]
Implement the lock with a cmpxchg instruction instead of a xchg.
Both are atomic, but the cmpxchg has memory ordering hints. We
give this acquire semantics.

NOTE: The unlock in libc_r is implemented by a "normal" assign
statement. This is not correct on ia64 due to the memory ordering
characteristics of the architecture. We need release semantics
for an unlock.

21 years agoEnable selecting the type of partition menu on pc98.
nyan [Sat, 16 Nov 2002 16:36:01 +0000 (16:36 +0000)]
Enable selecting the type of partition menu on pc98.

21 years agoAdd *context() syscalls to ia64 32-bit compatability table as requested
deischen [Sat, 16 Nov 2002 15:15:17 +0000 (15:15 +0000)]
Add *context() syscalls to ia64 32-bit compatability table as requested
in kern/syscalls.master.

21 years agoDo not emit a message on stderr when one of the compared files
thomas [Sat, 16 Nov 2002 14:58:39 +0000 (14:58 +0000)]
Do not emit a message on stderr when one of the compared files
is shorter than the other.

Reviewed by: roberto
MFC after: 3 days

21 years agoRemove incorrect output redirection.
thomas [Sat, 16 Nov 2002 14:57:12 +0000 (14:57 +0000)]
Remove incorrect output redirection.

Reviewed by: roberto
Committed from: EuroBSDCon Amsterdam
MFC after: 3 days

21 years agoset watch in tcsh requires an equal sign after the variable name.
joerg [Sat, 16 Nov 2002 13:24:44 +0000 (13:24 +0000)]
set watch in tcsh requires an equal sign after the variable name.

MFC after: 1 day

21 years agoMfebd in a hurry
ue [Sat, 16 Nov 2002 12:14:22 +0000 (12:14 +0000)]
Mfebd in a hurry
installation/common/install.sgml: 1.15  -> 1.16
installation/sparc64/article.sgml: 1.3   -> 1.4
relnotes/common/new.sgml: 1.451 -> 1.452

21 years agoThese two patches makes it easier to compile custom versions of
roberto [Sat, 16 Nov 2002 08:06:43 +0000 (08:06 +0000)]
These two patches makes it easier to compile custom versions of
NTP on FreeBSD:

The first one allows one to avoid installing the html files.

The second one allows one to override the CLOCKDEFS on the
make command line.

Submitted by: phk

21 years agoNow that pmap_remove_all() is exported by our pmap implementations
alc [Sat, 16 Nov 2002 07:44:25 +0000 (07:44 +0000)]
Now that pmap_remove_all() is exported by our pmap implementations
use it directly.

21 years agoDisconnect the userland get/set/swapcontext() functions from
deischen [Sat, 16 Nov 2002 06:39:11 +0000 (06:39 +0000)]
Disconnect the userland get/set/swapcontext() functions from
libc.  I want to keep these in some version for the thread
library/ies, but don't know whether to have them repo-copied
to libc_r or renamed and kept in libc.

Change the name of an alpha macro that was changed with the
system call commit.

21 years agoExport the values for _SC_AIO_MAX and _SC_AIO_PRIO_DELTA_MAX via the p1003b
alfred [Sat, 16 Nov 2002 06:38:07 +0000 (06:38 +0000)]
Export the values for _SC_AIO_MAX and _SC_AIO_PRIO_DELTA_MAX via the p1003b
sysctl interface.

21 years agoRegenerate after adding system calls.
deischen [Sat, 16 Nov 2002 06:36:56 +0000 (06:36 +0000)]
Regenerate after adding system calls.

21 years agoAdd getcontext, setcontext, and swapcontext as system calls.
deischen [Sat, 16 Nov 2002 06:35:53 +0000 (06:35 +0000)]
Add getcontext, setcontext, and swapcontext as system calls.
Previously these were libc functions but were requested to
be made into system calls for atomicity and to coalesce what
might be two entrances into the kernel (signal mask setting
and floating point trap) into one.

A few style nits and comments from bde are also included.

Tested on alpha by: gallatin

21 years agoProvide more correct default values for sysconf(3) reporting of the AIO
alfred [Sat, 16 Nov 2002 06:35:20 +0000 (06:35 +0000)]
Provide more correct default values for sysconf(3) reporting of the AIO
subsystems capabilities:

_SC_AIO_LISTIO_MAX returns the default of _POSIX_AIO_LISTIO_MAX
_SC_AIO_MAX returns the default _POSIX_AIO_MAX
_SC_AIO_PRIO_DELTA_MAX returns the default of 0

Without these adjustments the values returned are -1 even when the
aio side of the kernel returns '0' for them which is incorrect.

Noticed by: Craig Rodrigues <rodrigc@attbi.com>

21 years agoCall 'p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, AIO_LISTIO_MAX)'
alfred [Sat, 16 Nov 2002 04:22:55 +0000 (04:22 +0000)]
Call 'p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, AIO_LISTIO_MAX)'
when AIO is initialized so that sysconf() gives correct results.

Reported by: Craig Rodrigues <rodrigc@attbi.com>

21 years agoRepair buglet introduced with the last import of Heimdal:
nectar [Sat, 16 Nov 2002 02:23:17 +0000 (02:23 +0000)]
Repair buglet introduced with the last import of Heimdal:
`krb5-config --cflags' spewed an erroneous argument.

Reported by: Gabor@Zahemszky.HU
Approved by: re (jhb)

21 years agoSort SRCS.
marcel [Sat, 16 Nov 2002 01:41:33 +0000 (01:41 +0000)]
Sort SRCS.

21 years agoProperly calculate the initial number of fragments in a large filesystem.
mckusick [Fri, 15 Nov 2002 23:50:14 +0000 (23:50 +0000)]
Properly calculate the initial number of fragments in a large filesystem.

Sponsored by:   DARPA & NAI Labs.

21 years agoheaders should not really include "opt_foo.h" (in this case opt_posix.h).
alfred [Fri, 15 Nov 2002 22:55:06 +0000 (22:55 +0000)]
headers should not really include "opt_foo.h" (in this case opt_posix.h).
remove it from the header and add it to the files that require it.

21 years agoMassive cleanup of the ip_mroute code.
luigi [Fri, 15 Nov 2002 22:53:53 +0000 (22:53 +0000)]
Massive cleanup of the ip_mroute code.

No functional changes, but:

  + the mrouting module now should behave the same as the compiled-in
    version (it did not before, some of the rsvp code was not loaded
    properly);
  + netinet/ip_mroute.c is now truly optional;
  + removed some redundant/unused code;
  + changed many instances of '0' to NULL and INADDR_ANY as appropriate;
  + removed several static variables to make the code more SMP-friendly;
  + fixed some minor bugs in the mrouting code (mostly, incorrect return
    values from functions).

This commit is also a prerequisite to the addition of support for PIM,
which i would like to put in before DP2 (it does not change any of
the existing APIs, anyways).

Note, in the process we found out that some device drivers fail to
properly handle changes in IFF_ALLMULTI, leading to interesting
behaviour when a multicast router is started. This bug is not
corrected by this commit, and will be fixed with a separate commit.

Detailed changes:
--------------------
netinet/ip_mroute.c     all the above.
conf/files              make ip_mroute.c optional
net/route.c             fix mrt_ioctl hook
netinet/ip_input.c      fix ip_mforward hook, move rsvp_input() here
                        together with other rsvp code, and a couple
                        of indentation fixes.
netinet/ip_output.c     fix ip_mforward and ip_mcast_src hooks
netinet/ip_var.h        rsvp function hooks
netinet/raw_ip.c        hooks for mrouting and rsvp functions, plus
                        interface cleanup.
netinet/ip_mroute.h     remove an unused and optional field from a struct

Most of the code is from Pavlin Radoslavov and the XORP project

Reviewed by: sam
MFC after: 1 week