]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoRebuild generated system call definition files following the addition of
rwatson [Mon, 30 May 2005 15:20:21 +0000 (15:20 +0000)]
Rebuild generated system call definition files following the addition of
the audit event field to the syscalls.master file format.

Submitted by: wsalamon
Obtained from: TrustedBSD Project

19 years agoIntroduce a new field in the syscalls.master file format to hold the
rwatson [Mon, 30 May 2005 15:09:18 +0000 (15:09 +0000)]
Introduce a new field in the syscalls.master file format to hold the
audit event identifier associated with each system call, which will
be stored by makesyscalls.sh in the sy_auevent field of struct sysent.
For now, default the audit identifier on all system calls to AUE_NULL,
but in the near future, other BSM event identifiers will be used.  The
mapping of system calls to event identifiers is many:one due to
multiple system calls that map to the same end functionality across
compatibility wrappers, ABI wrappers, etc.

Submitted by: wsalamon
Obtained from: TrustedBSD Project

19 years agoMarkup nits.
ru [Mon, 30 May 2005 12:33:04 +0000 (12:33 +0000)]
Markup nits.

19 years agoAdd the Dell PERC 4/IM as supported.
brueffer [Mon, 30 May 2005 12:26:12 +0000 (12:26 +0000)]
Add the Dell PERC 4/IM as supported.

Submitted by: Muthu_T@Dell.com

19 years ago - Don't set our bio op to be a READ when we've just completed a write. There
jeff [Mon, 30 May 2005 07:04:15 +0000 (07:04 +0000)]
 - Don't set our bio op to be a READ when we've just completed a write.  There
   are subtle differences in the read and write completion path.  Instead,
   grab an extra write ref so the write path can drop it when we recursively
   call bufdone().  I believe this may be the source of the wrong bufobj
   panics.

Reported by: pho, kkenn

19 years ago - Add bufobj_wrefl() to add a write ref to a bufobj that is already locked.
jeff [Mon, 30 May 2005 07:01:18 +0000 (07:01 +0000)]
 - Add bufobj_wrefl() to add a write ref to a bufobj that is already locked.

19 years agoDeny to switch into banked video mode when it is not available. Some
delphij [Mon, 30 May 2005 06:45:40 +0000 (06:45 +0000)]
Deny to switch into banked video mode when it is not available.  Some
users has reported corrupted display with old video cards.

Submitted by: Michal Mertl <mime traveller cz>

19 years agoKernel hooks to support PMC sampling modes.
jkoshy [Mon, 30 May 2005 06:29:29 +0000 (06:29 +0000)]
Kernel hooks to support PMC sampling modes.

Reviewed by: alc

19 years agoEliminate aio_activeproc; it's unused.
alc [Mon, 30 May 2005 05:25:10 +0000 (05:25 +0000)]
Eliminate aio_activeproc; it's unused.

19 years agomalloc.h relies on param.h for a definition of MAXCPU. I guess that there is
scottl [Mon, 30 May 2005 05:01:44 +0000 (05:01 +0000)]
malloc.h relies on param.h for a definition of MAXCPU.  I guess that there is
other header pollution that makes this work right now, but it falls over when
doing a RELENG_5 -> HEAD upgrade.

19 years agoCorrect mistake in previous commit: add 'bsm' to LDIRS not LSUBDIRS.
rwatson [Mon, 30 May 2005 01:06:29 +0000 (01:06 +0000)]
Correct mistake in previous commit: add 'bsm' to LDIRS not LSUBDIRS.

Pointy hat: over here, please

19 years agoCreate nexus in configure_first() instead of in configure(). This
marcel [Sun, 29 May 2005 23:44:22 +0000 (23:44 +0000)]
Create nexus in configure_first() instead of in configure(). This
makes sure that sysinit tasks that run after configure_first(),
but before configure() have a nexus to hang devices off.

19 years agos/-1000/BUS_PROBE_LOW_PRIORITY/
tanimura [Sun, 29 May 2005 23:22:23 +0000 (23:22 +0000)]
s/-1000/BUS_PROBE_LOW_PRIORITY/

Pointed out by: nyan

19 years agoCall cninit_finish() from configure_final().
marcel [Sun, 29 May 2005 22:53:48 +0000 (22:53 +0000)]
Call cninit_finish() from configure_final().

19 years agoCall cninit_finish() in configure_final().
marcel [Sun, 29 May 2005 22:48:41 +0000 (22:48 +0000)]
Call cninit_finish() in configure_final().

19 years agoCall cninit_finish() and set cold to 0 in configure_final() instead
marcel [Sun, 29 May 2005 22:45:36 +0000 (22:45 +0000)]
Call cninit_finish() and set cold to 0 in configure_final() instead
of in configure(). Call cninit_finish() before setting cold to 0.
This is how it's done for other platforms. Be alike to avoid problems.

19 years agoo Call cninit_finish() in configure_final().
marcel [Sun, 29 May 2005 22:42:27 +0000 (22:42 +0000)]
o  Call cninit_finish() in configure_final().
o  Remove unused and compiled-out code while here.

19 years agoMake bzip2 support working again after bzip2 upgrade. This time commit
sobomax [Sun, 29 May 2005 21:56:38 +0000 (21:56 +0000)]
Make bzip2 support working again after bzip2 upgrade. This time commit
BZ_NO_COMPRESS support to the bzip2 sources directly (yes, this takes file
off the vendor branch, but looks like bzip2 maintainer doesn't care), so that
it will not be removed when the next upgrade is performed. Also, add a short
note on how to test bzip2 support.

Pointy hat to:  obrien

Correct comment (libz -> libbz2) and remove useless full path to zutil.h
while I am here.

19 years agoEliminate aio_bufjobs; it's unused.
alc [Sun, 29 May 2005 21:29:15 +0000 (21:29 +0000)]
Eliminate aio_bufjobs; it's unused.

19 years agoCatch up with s/dev_t/struct cdev */.
simon [Sun, 29 May 2005 21:23:50 +0000 (21:23 +0000)]
Catch up with s/dev_t/struct cdev */.

19 years agoWhite space normalization: use tabs instead of spaces before and after
rwatson [Sun, 29 May 2005 21:06:56 +0000 (21:06 +0000)]
White space normalization: use tabs instead of spaces before and after
the system call type field.

19 years agoAdd missed ${.CURDIR}/../../contrib/bzip2 into include search path, otherwise
sobomax [Sun, 29 May 2005 21:05:58 +0000 (21:05 +0000)]
Add missed ${.CURDIR}/../../contrib/bzip2 into include search path, otherwise
old version of bzlib.h can be picked up from the /usr/include.

19 years agoNormalize white space in syscalls.master: try to use tabs before system
rwatson [Sun, 29 May 2005 20:20:16 +0000 (20:20 +0000)]
Normalize white space in syscalls.master: try to use tabs before system
call types.

19 years agoAdd a new field, sy_auevent, to the system call entry description
rwatson [Sun, 29 May 2005 20:08:39 +0000 (20:08 +0000)]
Add a new field, sy_auevent, to the system call entry description
structure, sysent.  This field will hold the default audit event
to generate when the system call is entered.  Currently, it will
default to 0 due to allocation in bss.

Submitted by: wsalamon
Obtained from: TrustedBSD Project

19 years agoHand it to spaff, he knows how to say it:
phk [Sun, 29 May 2005 19:29:19 +0000 (19:29 +0000)]
Hand it to spaff, he knows how to say it:

Using encryption on the Internet is the equivalent of arranging
an armoured car to deliver credit card information from someone
living in a cardboard box to someone living on a park bench.
-- Gene Spafford, Purdue University.

19 years agobump version for libpcap (+tcpdump) import
sam [Sun, 29 May 2005 19:15:34 +0000 (19:15 +0000)]
bump version for libpcap (+tcpdump) import

19 years agoupdate after import of v3.9.1-096
sam [Sun, 29 May 2005 19:11:21 +0000 (19:11 +0000)]
update after import of v3.9.1-096

Reviewed by: bms

19 years agoresolve merge conflicts and update for proper build; including:
sam [Sun, 29 May 2005 19:09:28 +0000 (19:09 +0000)]
resolve merge conflicts and update for proper build; including:

o print-fr.c returned to code on vendor branch
o remove pmap_prot.h include from print-sunrprc.c
o remove gcc/i386-specific ntoh* write-arounds from tcpdump-stdinc.h

Reviewed by: bms

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146775,
sam [Sun, 29 May 2005 18:24:21 +0000 (18:24 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146775,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import of tcpdump v3.9.1 (alpha 096) from tcpdump.org
sam [Sun, 29 May 2005 18:24:21 +0000 (18:24 +0000)]
Virgin import of tcpdump v3.9.1 (alpha 096) from tcpdump.org

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146773,
sam [Sun, 29 May 2005 18:17:16 +0000 (18:17 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146773,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import of tcpdump v3.9.1 (alpha 096) from tcpdump.org
sam [Sun, 29 May 2005 18:17:16 +0000 (18:17 +0000)]
Virgin import of tcpdump v3.9.1 (alpha 096) from tcpdump.org

19 years agoupdate for import of v0.9.1-096
sam [Sun, 29 May 2005 18:12:46 +0000 (18:12 +0000)]
update for import of v0.9.1-096

19 years agoresolve merge conflicts
sam [Sun, 29 May 2005 18:09:04 +0000 (18:09 +0000)]
resolve merge conflicts

Reviewed by: bms (earlier version)

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146768,
sam [Sun, 29 May 2005 17:46:52 +0000 (17:46 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146768,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import of libpcap v0.9.1 (alpha 096) from tcpdump.org
sam [Sun, 29 May 2005 17:46:52 +0000 (17:46 +0000)]
Virgin import of libpcap v0.9.1 (alpha 096) from tcpdump.org

19 years agoChop a '>' in a feature name (RSVD2>) that snuck in;
schweikh [Sun, 29 May 2005 17:43:24 +0000 (17:43 +0000)]
Chop a '>' in a feature name (RSVD2>) that snuck in;
this now balances the <> flags displayed at boot, e.g. without this
Features2=0x41d<SSE3,RSVD2>,MON,DS_CPL,CNTX-ID>

MFC after: 1 week

19 years agoDue to a last minute change in the #ifdefing in malloc.h before committing,
rwatson [Sun, 29 May 2005 17:27:52 +0000 (17:27 +0000)]
Due to a last minute change in the #ifdefing in malloc.h before committing,
a nested include of param.h is required so that MAXCPU is visible to all
consumers of sys/malloc.h.  In an earlier version of the patch, the
malloc_type_internal structure was only conditionally visible.

Pointed out by: delphij

19 years agoConstify savedir pointer, and remove an accompaning strdup() call.
delphij [Sun, 29 May 2005 16:28:07 +0000 (16:28 +0000)]
Constify savedir pointer, and remove an accompaning strdup() call.

19 years agoAdd /usr/include/bsm to mtree creation set.
rwatson [Sun, 29 May 2005 16:18:29 +0000 (16:18 +0000)]
Add /usr/include/bsm to mtree creation set.

Submitted by: wsalamon
Obtained from: TrustedBSD Project

19 years agoDo install BSM include files (such as they are) when installing system
rwatson [Sun, 29 May 2005 16:17:00 +0000 (16:17 +0000)]
Do install BSM include files (such as they are) when installing system
includes.

Submitted by: wsalamon
Obtained from: TrustedBSD Project

19 years agoFor consistency with more system include files, add a trailing '_' to
rwatson [Sun, 29 May 2005 16:11:34 +0000 (16:11 +0000)]
For consistency with more system include files, add a trailing '_' to
the define guards in audit_kevents.h.

19 years agoAdd place-holder audit.h that defines only au_event_t, which is needed
rwatson [Sun, 29 May 2005 16:10:33 +0000 (16:10 +0000)]
Add place-holder audit.h that defines only au_event_t, which is needed
in order to modify the system call table to include event identifiers.
The full audit.h will be merged at a later date.

Obtained from: TrustedBSD Project

19 years agoGive variable an initial value. Use errx() instead of fprintf().
charnier [Sun, 29 May 2005 16:07:10 +0000 (16:07 +0000)]
Give variable an initial value. Use errx() instead of fprintf().

19 years agoReduce compiler warning: variable might be used uninitialized, by giving
charnier [Sun, 29 May 2005 16:04:46 +0000 (16:04 +0000)]
Reduce compiler warning: variable might be used uninitialized, by giving
an initial value.

19 years agoEven if variable is never used uninitialized by the semantic, reduce compiler
charnier [Sun, 29 May 2005 16:01:12 +0000 (16:01 +0000)]
Even if variable is never used uninitialized by the semantic, reduce compiler
warning by giving an initial value in all cases.

19 years agorscid -> __FBSDID. Mark parameter as __unused when necessary.
charnier [Sun, 29 May 2005 15:57:00 +0000 (15:57 +0000)]
rscid -> __FBSDID. Mark parameter as __unused when necessary.

19 years agoMove variable initialization to reduce compiler warning.
charnier [Sun, 29 May 2005 15:52:48 +0000 (15:52 +0000)]
Move variable initialization to reduce compiler warning.

19 years agoReduce compiler warning: variable might be used uninitialized, by giving
charnier [Sun, 29 May 2005 15:49:53 +0000 (15:49 +0000)]
Reduce compiler warning: variable might be used uninitialized, by giving
an initial value.

19 years agoMove FreeBSD Id outside of copyright. Initialize variable.
charnier [Sun, 29 May 2005 15:47:31 +0000 (15:47 +0000)]
Move FreeBSD Id outside of copyright. Initialize variable.

19 years agoTypo correction.
avatar [Sun, 29 May 2005 14:56:51 +0000 (14:56 +0000)]
Typo correction.

19 years agoModify vmstat(8)'s domem() routine, which is responsible for extracting
rwatson [Sun, 29 May 2005 13:40:00 +0000 (13:40 +0000)]
Modify vmstat(8)'s domem() routine, which is responsible for extracting
malloc(9) statistics from kernel memory or a kernel coredump, to catch
up with recent changes to adopt per-CPU malloc(9) statistics.  The new
routines walk the per-CPU statistics pools and coalesce them for
presentation to the user.

19 years agoKernel malloc layers malloc_type allocation over one of two underlying
rwatson [Sun, 29 May 2005 13:38:07 +0000 (13:38 +0000)]
Kernel malloc layers malloc_type allocation over one of two underlying
allocators: a set of power-of-two UMA zones for small allocations, and the
VM page allocator for large allocations.  In order to maintain unified
statistics for specific malloc types, kernel malloc maintains a separate
per-type statistics pool, which can be monitored using vmstat -m.  Prior
to this commit, each pool of per-type statistics was protected using a
per-type mutex associated with the malloc type.

This change modifies kernel malloc to maintain per-CPU statistics pools
for each malloc type, and protects writing those statistics using critical
sections.  It also moves to unsynchronized reads of per-CPU statistics
when generating coalesced statistics.  To do this, several changes are
implemented:

- In the previous world order, the statistics memory was allocated by
  the owner of the malloc type structure, allocated statically using
  MALLOC_DEFINE().  This embedded the definition of the malloc_type
  structure into all kernel modules.  Move to a model in which a pointer
  within struct malloc_type points at a UMA-allocated
  malloc_type_internal data structure owned and maintained by
  kern_malloc.c, and not part of the exported ABI/API to the rest of
  the kernel.  For the purposes of easing a possible MFC, re-use an
  existing pointer in 'struct malloc_type', and maintain the current
  malloc_type structure size, as well as layout with respect to the
  fields reused outside of the malloc subsystem (such as ks_shortdesc).
  There are several unused fields as a result of no longer requiring
  the mutex in malloc_type.

- Struct malloc_type_internal contains an array of malloc_type_stats,
  of size MAXCPU.  The structure defined above avoids hard-coding a
  kernel compile-time value of MAXCPU into kernel modules that interact
  with malloc.

- When accessing per-cpu statistics for a malloc type, surround read -
  modify - update requests with critical_enter()/critical_exit() in
  order to avoid races during write.  The per-CPU fields are written
  only from the CPU that owns them.

- Per-CPU stats now maintained "allocated" and "freed" counters for
  number of allocations/frees and bytes allocated/freed, since there is
  no longer a coherent global notion of the totals.  When coalescing
  malloc stats, accept a slight race between reading stats across CPUs,
  and avoid showing the user a negative allocation count for the type
  in the event of a race.  The global high watermark is no longer
  maintained for a malloc type, as there is no global notion of the
  number of allocations.

- While tearing up the sysctl() path, also switch to using sbufs.  The
  current "export as text" sysctl format is retained with the same
  syntax.  We may want to change this in the future to export more
  per-CPU information, such as how allocations and frees are balanced
  across CPUs.

This change results in a substantial speedup of kernel malloc and free
paths on SMP, as critical sections (where usable) out-perform mutexes
due to avoiding atomic/bus-locked operations.  There is also a minor
improvement on UP due to the slightly lower cost of critical sections
there.  The cost of the change to this approach is the loss of a
continuous notion of total allocations that can be exploited to track
per-type high watermarks, as well as increased complexity when
monitoring statistics.

Due to carefully avoiding changing the ABI, as well as hardening the ABI
against future changes, it is not necessary to recompile kernel modules
for this change.  However, MFC'ing this change to RELENG_5 will require
also MFC'ing optimizations for soft critical sections, which may modify
exposed kernel ABIs.  The internal malloc API is changed, and
modifications to vmstat in order to restore "vmstat -m" on core dumps will
follow shortly.

Several improvements from: bde
Statistics approach discussed with: ups
Tested by: scottl, others

19 years agoAdd vr_init_t member to sc_rndr_sw_t instances in order to unbreak
marius [Sun, 29 May 2005 12:47:39 +0000 (12:47 +0000)]
Add vr_init_t member to sc_rndr_sw_t instances in order to unbreak
compilation after sys/dev/syscons/syscons.h rev. 1.83.

19 years agoFix check for leading zero, so that it does not block two zeroes
glebius [Sun, 29 May 2005 12:20:41 +0000 (12:20 +0000)]
Fix check for leading zero, so that it does not block two zeroes
in hook name.

19 years agoSync with syscons update (Add new member to struct sc_rndr_sw).
nyan [Sun, 29 May 2005 11:53:14 +0000 (11:53 +0000)]
Sync with syscons update (Add new member to struct sc_rndr_sw).

19 years agoThe end values passed to rman_manage_region() for PCI i/o and mem
grehan [Sun, 29 May 2005 08:51:21 +0000 (08:51 +0000)]
The end values passed to rman_manage_region() for PCI i/o and mem
spaces were 1 too large. This resulted in the rman list not being
sorted correctly, and USB ports not being discovered on older
TiBooks.

Detective work by:   Andreas Tobler <toa at pop dot agri dot ch>

19 years agoAdd VESA mode support for syscons, which enables the support of 15, 16,
delphij [Sun, 29 May 2005 08:43:44 +0000 (08:43 +0000)]
Add VESA mode support for syscons, which enables the support of 15, 16,
24, and 32 bit modes.  To use that, syscons(4) must be built with
the compile time option 'options SC_PIXEL_MODE', and VESA support (a.k.a.
vesa.ko) must be either loaded, or be compiled into the kernel.

Do not return EINVAL when the mouse state is changed to what it already is,
which seems to cause problems when you have two mice attached, and
applications are not likely obtain useful information through the EINVAL
caused by showing the mouse pointer twice.

Teach vidcontrol(8) about mode names like MODE_<NUMBER>, where <NUMBER> is
the video mode number from the vidcontrol -i mode output.  Also, revert the
video mode if something fails.

Obtained from: DragonFlyBSD
Discussed at: current@ with patch attached [1]
PR: kern/71142 [2]
Submitted by: Xuefeng DENG <dsnofe at msn com> [1],
Cyrille Lefevre <cyrille dot lefevre at laposte dot net> [2]

19 years agoMove information about exit status into a DIAGNOSTICS section.
tjr [Sun, 29 May 2005 08:18:48 +0000 (08:18 +0000)]
Move information about exit status into a DIAGNOSTICS section.

19 years agoRemove bus_{mem,p}io.h and related code for a micro-optimization on i386
nyan [Sun, 29 May 2005 04:42:30 +0000 (04:42 +0000)]
Remove bus_{mem,p}io.h and related code for a micro-optimization on i386
and amd64.  The optimization is a trivial on recent machines.

Reviewed by: -arch (imp, marcel, dfr)

19 years agoFix panic when module is compiled in and it is loaded from loader.conf.
pjd [Sat, 28 May 2005 23:20:05 +0000 (23:20 +0000)]
Fix panic when module is compiled in and it is loaded from loader.conf.
Only panic is fixed, module will be still listed in kldstat(8) output.
Not sure what is correct fix, because adding unloading code in case of
failure to linker_init_kernel_modules() doesn't work.

19 years agoProvide info on the incompatible change in v1.33 of sys/kern/imgact_shell.c
gad [Sat, 28 May 2005 22:45:31 +0000 (22:45 +0000)]
Provide info on the incompatible change in v1.33 of sys/kern/imgact_shell.c

Discussed with: imp

19 years agoChange the way options are parsed on the `#!'-line of a shell-script. Instead
gad [Sat, 28 May 2005 22:42:41 +0000 (22:42 +0000)]
Change the way options are parsed on the `#!'-line of a shell-script.  Instead
of having the kernel parse that line and add an entry to the argument list for
each 'separate word' it finds, have it add only one entry which holds all
the words found on that line.  The old behavior is useful in some situations,
but it does not match the way any other operating system will parse that line.

This has been discussed in the thread "Bug in #! processing - One More Time"
on the freebsd-arch mailing list (starting back on Feb 24, 2005).  The first
few messages in that thread provide the background in much detail.

PR: 16393
Reviewed by: freebsd-arch

19 years agoPrevent loading modules with are compiled into the kernel.
pjd [Sat, 28 May 2005 22:29:44 +0000 (22:29 +0000)]
Prevent loading modules with are compiled into the kernel.

PR: kern/48759
Submitted by: Pawe³ Ma³achowski <pawmal@unia.3lo.lublin.pl>
Patch from: demon
MFC after: 2 weeks

19 years agointegrate changes from libpcap-0.9.1-096
sam [Sat, 28 May 2005 21:56:41 +0000 (21:56 +0000)]
integrate changes from libpcap-0.9.1-096

Reviewed by: bms

19 years agoUpdate some comments to reflect the change from spl-based to lock-based
alc [Sat, 28 May 2005 17:56:18 +0000 (17:56 +0000)]
Update some comments to reflect the change from spl-based to lock-based
synchronization.

19 years agopmap_enter() no longer requires Giant. Therefore, stop acquiring and
alc [Sat, 28 May 2005 17:13:36 +0000 (17:13 +0000)]
pmap_enter() no longer requires Giant.  Therefore, stop acquiring and
releasing it in pmap_enter_quick().

MFC after: 3 weeks

19 years agoDocument 'jid' keyword for ps(1) and '-j' option for pgrep(1)/pkill(1).
pjd [Sat, 28 May 2005 16:23:29 +0000 (16:23 +0000)]
Document 'jid' keyword for ps(1) and '-j' option for pgrep(1)/pkill(1).

19 years agoRegenerate from syscalls.master.
rwatson [Sat, 28 May 2005 14:35:43 +0000 (14:35 +0000)]
Regenerate from syscalls.master.

19 years agoMark ntp_gettime() as MSTD, since its system call path will acquire
rwatson [Sat, 28 May 2005 14:35:05 +0000 (14:35 +0000)]
Mark ntp_gettime() as MSTD, since its system call path will acquire
Giant if required.

19 years agoExplicitly acquire Giant around the ntp_gettime() and assert it in the
rwatson [Sat, 28 May 2005 14:34:41 +0000 (14:34 +0000)]
Explicitly acquire Giant around the ntp_gettime() and assert it in the
sysctl path.  While this code is close to MPSAFE, it may require some
additional locking.  Mark ntp_gettime1() as GIANT_REQUIRED for now.

Suggested by: phk

19 years agoChange the spkr_set_pitch() function to a macro to fix low level profiling.
nyan [Sat, 28 May 2005 13:40:27 +0000 (13:40 +0000)]
Change the spkr_set_pitch() function to a macro to fix low level profiling.

19 years agoRegenerate for updated syscalls.master.
rwatson [Sat, 28 May 2005 13:24:05 +0000 (13:24 +0000)]
Regenerate for updated syscalls.master.

19 years agoMark the following compatability system calls as MCOMPAT or MCOMPAT4 based
rwatson [Sat, 28 May 2005 13:23:42 +0000 (13:23 +0000)]
Mark the following compatability system calls as MCOMPAT or MCOMPAT4 based
on the their simply wrapping MPSAFE implementations of existing MPSAFE
system calls:

  getfsstat()
  lseek()
  stat()
  lstat()
  truncate()
  ftruncate()
  statfs()
  fstatfs()

Note that ogetdirentries() is not marked MPSAFE because it does not share
the MPSAFE implementation used for getdirentries(), and requires separate
locking to be implemented.

19 years agoFix use of uninitialized variable len in ngd_send.
bz [Sat, 28 May 2005 13:15:44 +0000 (13:15 +0000)]
Fix use of uninitialized variable len in ngd_send.

Note: len gets intialized to 0 for sap == NULL case only to
make compiler on amd64 happy. This has nothing todo with the
former uninitialized use of len in sap != NULL case.

Reviewed by: glebius
Approved by: pjd (mentor)

19 years agoRegenerate from syscalls.master.
rwatson [Sat, 28 May 2005 13:13:01 +0000 (13:13 +0000)]
Regenerate from syscalls.master.

19 years agoMark quotactl() as MSTD.
rwatson [Sat, 28 May 2005 13:12:04 +0000 (13:12 +0000)]
Mark quotactl() as MSTD.

19 years agoAcquire Giant explicitly in quotactl() so that the syscalls.master
rwatson [Sat, 28 May 2005 13:11:35 +0000 (13:11 +0000)]
Acquire Giant explicitly in quotactl() so that the syscalls.master
entry can become MSTD.

19 years agoRegenerate from updated syscalls.master.
rwatson [Sat, 28 May 2005 13:09:56 +0000 (13:09 +0000)]
Regenerate from updated syscalls.master.

19 years agoMark kenv(2) as MPSAFE, since it appears to be properly locked down.
rwatson [Sat, 28 May 2005 13:09:41 +0000 (13:09 +0000)]
Mark kenv(2) as MPSAFE, since it appears to be properly locked down.

19 years agoRegenerate system call tables from syscalls.master.
rwatson [Sat, 28 May 2005 13:08:26 +0000 (13:08 +0000)]
Regenerate system call tables from syscalls.master.

19 years agoAlso mark the COMPAT4 version of fhstatfs() as MPSAFE.
rwatson [Sat, 28 May 2005 13:07:43 +0000 (13:07 +0000)]
Also mark the COMPAT4 version of fhstatfs() as MPSAFE.

19 years agoMark fhopen(), fhstat(), and fhstatfs() as MSTD, since they now
rwatson [Sat, 28 May 2005 12:59:33 +0000 (12:59 +0000)]
Mark fhopen(), fhstat(), and fhstatfs() as MSTD, since they now
acquire Giant themselves.

19 years agoAcquire Giant explicitly in fhopen(), fhstat(), and kern_fhstatfs(),
rwatson [Sat, 28 May 2005 12:58:54 +0000 (12:58 +0000)]
Acquire Giant explicitly in fhopen(), fhstat(), and kern_fhstatfs(),
so that we can start to eliminate the presence of non-MPSAFE system
call entries in syscalls.master.

19 years agoEnable ReiserFS note on pc98.
nyan [Sat, 28 May 2005 12:41:55 +0000 (12:41 +0000)]
Enable ReiserFS note on pc98.

19 years agoAdd 6300ESB, which should be treated as ICH4.
tanimura [Sat, 28 May 2005 09:32:43 +0000 (09:32 +0000)]
Add 6300ESB, which should be treated as ICH4.

PR: kern/81573
Submitted by: OOTOMO Hiroyuki <ootomo@za.wakwak.com>
MFC after: 1 week

19 years agoLet OSPFv3 go through ipfw. Some more additional checks would be
tanimura [Sat, 28 May 2005 07:46:44 +0000 (07:46 +0000)]
Let OSPFv3 go through ipfw.  Some more additional checks would be
desirable, though.

19 years agoUpdate refrenced URL for SNMP list of ifTypes to refer to iana.org
brooks [Sat, 28 May 2005 06:11:38 +0000 (06:11 +0000)]
Update refrenced URL for SNMP list of ifTypes to refer to iana.org
instead of a dead location on ftp.isi.edu.

19 years agoMove AVM USB Bluetooth-Adapter BlueFritz! from "broken" devices list
emax [Sat, 28 May 2005 00:48:42 +0000 (00:48 +0000)]
Move AVM USB Bluetooth-Adapter BlueFritz! from "broken" devices list
(where I incorrectly put it initially) to "ignored" devices list (where
it should be). Pointy hat goes to me.

MFC after: 3 days

19 years agoreduce cast.
ume [Fri, 27 May 2005 20:44:57 +0000 (20:44 +0000)]
reduce cast.

MFC after: 1 week

19 years ago- Add support to the loader for multiple consoles.
jhb [Fri, 27 May 2005 19:31:00 +0000 (19:31 +0000)]
- Add support to the loader for multiple consoles.
- Teach the i386 and pc98 loaders to honor multiple console requests from
  their respective boot2 binaries so that the same console(s) are used in
  both boot2 and the loader.
- Since the kernel doesn't support multiple consoles, whichever console is
  listed first is treated as the "primary" console and is passed to the
  kernel in the boot_howto flags.

PR: kern/66425
Submitted by: Gavin Atkinson gavin at ury dot york dot ac dot uk
MFC after: 1 week

19 years agoFix a warning by adding a missing 'const'.
jhb [Fri, 27 May 2005 19:28:04 +0000 (19:28 +0000)]
Fix a warning by adding a missing 'const'.

MFC after: 1 week

19 years agoPrint out the commands from /boot.config after parsing them so that they
jhb [Fri, 27 May 2005 19:26:11 +0000 (19:26 +0000)]
Print out the commands from /boot.config after parsing them so that they
output is sent to the correct console(s).

PR: kern/66425
Submitted by: Gavin Atkinson gavin at ury dot york dot ac dot uk
MFC after: 1 week

19 years agoRemove (now) unused argument 'td' from bsd_to_linux_statfs().
pjd [Fri, 27 May 2005 19:25:39 +0000 (19:25 +0000)]
Remove (now) unused argument 'td' from bsd_to_linux_statfs().

19 years agoRemove (now) unused argument 'td' from cvtstatfs().
pjd [Fri, 27 May 2005 19:23:48 +0000 (19:23 +0000)]
Remove (now) unused argument 'td' from cvtstatfs().

19 years agoSync locking in freebsd4_getfsstat() with getfsstat().
pjd [Fri, 27 May 2005 19:21:08 +0000 (19:21 +0000)]
Sync locking in freebsd4_getfsstat() with getfsstat().
Giant is probably also needed in kern_fhstatfs().

19 years agoUse consistent style in functions I want to modify in the near future.
pjd [Fri, 27 May 2005 19:15:46 +0000 (19:15 +0000)]
Use consistent style in functions I want to modify in the near future.

19 years agoDo not tread 128-bit UUID as int128. Provide separate macros to get/put
emax [Fri, 27 May 2005 19:11:33 +0000 (19:11 +0000)]
Do not tread 128-bit UUID as int128. Provide separate macros to get/put
128-bit UUID libsdp(3). Fix 128-bit UUID printing in sdpcontrol(8).

MFC after: 3 days

19 years agodisable defining NI_WITHSCOPEID. It was obsoleted, and was exist
ume [Fri, 27 May 2005 19:02:12 +0000 (19:02 +0000)]
disable defining NI_WITHSCOPEID.  It was obsoleted, and was exist
only for backward compatibility since 5.2-RELEASE.

19 years agodd a '-n' option to ministat, which causes it to display only summary
rwatson [Fri, 27 May 2005 17:52:56 +0000 (17:52 +0000)]
dd a '-n' option to ministat, which causes it to display only summary
statistics, not graph and statistical test output.  Useful for automated
processing.