]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoSpelling fixes.
mpp [Sun, 20 Jun 2004 13:17:37 +0000 (13:17 +0000)]
Spelling fixes.

20 years agoSpelling fix and add $ FreeBSD $ tag
mpp [Sun, 20 Jun 2004 13:07:25 +0000 (13:07 +0000)]
Spelling fix and add $ FreeBSD $ tag

20 years agoGrr. Fixup markup on my last commit. Sorry, I'm a little out of practice :)
mpp [Sun, 20 Jun 2004 12:51:23 +0000 (12:51 +0000)]
Grr.  Fixup markup on my last commit.  Sorry, I'm a little out of practice :)

20 years agoSync up ERRORS section with errno.h.
mpp [Sun, 20 Jun 2004 12:44:42 +0000 (12:44 +0000)]
Sync up ERRORS section with errno.h.

20 years agoFix a spelling error.
mpp [Sun, 20 Jun 2004 12:35:16 +0000 (12:35 +0000)]
Fix a spelling error.

20 years agoThis commit was generated by cvs2svn to compensate for changes in r130780,
stefanf [Sun, 20 Jun 2004 12:04:00 +0000 (12:04 +0000)]
This commit was generated by cvs2svn to compensate for changes in r130780,
which included commits to RCS files with non-trunk default branches.

20 years agoThis commit was generated by cvs2svn to compensate for changes in r130777,
stefanf [Sun, 20 Jun 2004 11:52:51 +0000 (11:52 +0000)]
This commit was generated by cvs2svn to compensate for changes in r130777,
which included commits to RCS files with non-trunk default branches.

20 years agoImport the rest of tzcode2004a, the bits needed for the timezone compiler.
stefanf [Sun, 20 Jun 2004 11:52:51 +0000 (11:52 +0000)]
Import the rest of tzcode2004a, the bits needed for the timezone compiler.

Obtained from: ftp://elsie.nci.nih.gov/pub/tzcode2004a.tar.gz

20 years agoRetire support for gprof's -c option. All our currently supported
stefanf [Sun, 20 Jun 2004 11:05:25 +0000 (11:05 +0000)]
Retire support for gprof's -c option.  All our currently supported
architectures only provide a dummy implementation.

Silence on: current@

20 years agoCompletely remove s_ilogb.S as the assembler implementation gives very little
stefanf [Sun, 20 Jun 2004 10:42:23 +0000 (10:42 +0000)]
Completely remove s_ilogb.S as the assembler implementation gives very little
speed improvement to none at all over the MI version.

Submitted by: bde

20 years agoUncomment some functions that we now support.
das [Sun, 20 Jun 2004 10:39:09 +0000 (10:39 +0000)]
Uncomment some functions that we now support.

20 years agoRemove outdated comments.
tjr [Sun, 20 Jun 2004 10:01:30 +0000 (10:01 +0000)]
Remove outdated comments.

20 years agoWith tmm's latest change to the sparc64 dynamic loader, we can remove this
obrien [Sun, 20 Jun 2004 09:46:13 +0000 (09:46 +0000)]
With tmm's latest change to the sparc64 dynamic loader, we can remove this
hack to binutils and use the stock sparc64 sources.

20 years agoCross-reference round(3) and trunc(3) as appropriate.
das [Sun, 20 Jun 2004 09:27:17 +0000 (09:27 +0000)]
Cross-reference round(3) and trunc(3) as appropriate.

20 years agoConnect scalbln(), trunc(), and the associated documentation to the build.
das [Sun, 20 Jun 2004 09:27:03 +0000 (09:27 +0000)]
Connect scalbln(), trunc(), and the associated documentation to the build.

20 years agoDeclare scalbln(), scalblnf(), trunc(), and truncf().
das [Sun, 20 Jun 2004 09:26:41 +0000 (09:26 +0000)]
Declare scalbln(), scalblnf(), trunc(), and truncf().

20 years agoImplement trunc() and truncf().
das [Sun, 20 Jun 2004 09:25:43 +0000 (09:25 +0000)]
Implement trunc() and truncf().

20 years agoAdd trivial implementations of scalbln() and scalblnf().
das [Sun, 20 Jun 2004 09:25:27 +0000 (09:25 +0000)]
Add trivial implementations of scalbln() and scalblnf().
These routines are specified in C99 for the sake of
architectures where an int isn't big enough to represent
the full range of floating-point exponents.  However,
even the 128-bit long double format has an exponent smaller
than 15 bits, so for all practical purposes, scalbln() and
scalblnf() are aliases for scalbn() and scalbnf(), respectively.

20 years agoAdd pmap locking to pmap_is_prefaultable().
alc [Sun, 20 Jun 2004 06:11:00 +0000 (06:11 +0000)]
Add pmap locking to pmap_is_prefaultable().

20 years agoBacked out previous commit. Blind substitution of dev_t by `struct cdev *'
bde [Sun, 20 Jun 2004 03:52:50 +0000 (03:52 +0000)]
Backed out previous commit.  Blind substitution of dev_t by `struct cdev *'
was just wrong here because the dev_t's are user dev_t's.

20 years agoFixed misformatting of code and breaking of a comment in previous commit.
bde [Sun, 20 Jun 2004 03:36:31 +0000 (03:36 +0000)]
Fixed misformatting of code and breaking of a comment in previous commit.

20 years agoFixed misformatting in previous commit.
bde [Sun, 20 Jun 2004 03:34:21 +0000 (03:34 +0000)]
Fixed misformatting in previous commit.

20 years agoBacked out previous commit. The dev_t -> `struct cdev *' changes have
bde [Sun, 20 Jun 2004 03:11:19 +0000 (03:11 +0000)]
Backed out previous commit.  The dev_t -> `struct cdev *' changes have
lots of errors.  Blind substitution of "dev_t foo" by "struct cdev *foo"
in comments usually just created an English syntax error (e.g.,
"struct cdev *changes"), but here it did less than that since the dev_t
is a user dev_t.

20 years agoAdd a call to calcru() to update the kproc_info fields of ki_rusage.ru_utime
gad [Sun, 20 Jun 2004 02:03:33 +0000 (02:03 +0000)]
Add a call to calcru() to update the kproc_info fields of ki_rusage.ru_utime
and ki_rusage.ru_stime.  This greatly improves the accuracy of those fields.

Suggested by: bde

20 years agoOur 'TOOLS_PREFIX' and not 'DESTDIR' matches what the stock GNU build
obrien [Sun, 20 Jun 2004 01:44:58 +0000 (01:44 +0000)]
Our 'TOOLS_PREFIX' and not 'DESTDIR' matches what the stock GNU build
framework wants.

20 years agoInclude <sys/_lock.h>'s prerequisite <sys/queue.h> before including the
bde [Sun, 20 Jun 2004 00:33:14 +0000 (00:33 +0000)]
Include <sys/_lock.h>'s prerequisite <sys/queue.h> before including the
former, not after.

20 years agoUpdate to binutils 2.15.
marcel [Sat, 19 Jun 2004 23:18:14 +0000 (23:18 +0000)]
Update to binutils 2.15.

20 years agoPrint the `99.99% done, finished soon' message only as often as the
iedowse [Sat, 19 Jun 2004 22:41:18 +0000 (22:41 +0000)]
Print the `99.99% done, finished soon' message only as often as the
normal status messages. Previously a large number of these new
messages could be spewed out towards the end of a dump.

Reviewed by: imp

20 years agoClear any pending exceptions before using frstor (in the non-FXSR case)
bde [Sat, 19 Jun 2004 22:24:16 +0000 (22:24 +0000)]
Clear any pending exceptions before using frstor (in the non-FXSR case)
in npxsetregs() too.  npxsetregs() must overwrite the previous state, and
it is never paired with an npxgetregs() that would defuse the previous
state (since npxgetregs() would have fninit'ed the state, leaving nothing
to do).

PR: 68058 (this should complete the fix)
Tested by: Simon Barner <barner@in.tum.de>

20 years agoSeperately add regex.c and splay-tree.c to SRCS. They are both needed
marcel [Sat, 19 Jun 2004 22:22:42 +0000 (22:22 +0000)]
Seperately add regex.c and splay-tree.c to SRCS. They are both needed
by gdb(1). While here, sort SRCS.

20 years agoSync to 1.182 of usbdevs
sanpei [Sat, 19 Jun 2004 22:17:34 +0000 (22:17 +0000)]
Sync to 1.182 of usbdevs

20 years agoAdd support Microtune Bluetooth dongle
sanpei [Sat, 19 Jun 2004 22:16:03 +0000 (22:16 +0000)]
Add support Microtune Bluetooth dongle

PR: kern/68049
Submitted by: Markus Brueffer <markus@brueffer.de>

20 years agoYield to ru's ninja-like manpage skills and update watchdog(4) to
smkelly [Sat, 19 Jun 2004 21:17:07 +0000 (21:17 +0000)]
Yield to ru's ninja-like manpage skills and update watchdog(4) to
look more like other manpages. Move some content around, use an EXAMPLES
section, etc.

Submitted by: ru

20 years agoAdd the necessary branding of ELF files. This is relatively easy to
marcel [Sat, 19 Jun 2004 21:14:10 +0000 (21:14 +0000)]
Add the necessary branding of ELF files. This is relatively easy to
achieve on ia64, because we need to generate the ELF64/ia64 code and
simply tag elf-fbsd-brand.c at the end of it.

This hasn't actually been tested beyond trivial compilation testing.
A buildworld has been started and it's time I wait for my changes to
loop back to my local repo anyway. I'll get back to this in a couple
of hours...

20 years agoAdd bfdwin.c to SRCS. The file contains support for mmap(2) windows
marcel [Sat, 19 Jun 2004 20:50:57 +0000 (20:50 +0000)]
Add bfdwin.c to SRCS. The file contains support for mmap(2) windows
into a BFD. It's included in stock BFD on the platforms I checked
(i386 and ia64).

20 years agoFix compilation for Xscale.
cognet [Sat, 19 Jun 2004 20:50:50 +0000 (20:50 +0000)]
Fix compilation for Xscale.

20 years agoGrrr. our rev 1.19 (FSF GCC rev 1.579) is causing some problems on 32-bit
obrien [Sat, 19 Jun 2004 20:40:00 +0000 (20:40 +0000)]
Grrr. our rev 1.19 (FSF GCC rev 1.579) is causing some problems on 32-bit
systems.  So only use the rev 1.19 (FSF GCC rev 1.579) change on 64-bit
systems.

20 years agoMove the elf32-target.h and elf64-target.h targets from the MD
marcel [Sat, 19 Jun 2004 20:37:38 +0000 (20:37 +0000)]
Move the elf32-target.h and elf64-target.h targets from the MD
makefiles to the centralized makefile. This not only reduces
duplication, it also makes the MD quirks stand out better and
thus improves maintenance.

20 years agoRemove dead code related to pv entry allocation.
alc [Sat, 19 Jun 2004 20:31:49 +0000 (20:31 +0000)]
Remove dead code related to pv entry allocation.

Reviewed by: marcel@

20 years agoThe 3C3SH573BT looks like the Xircom RealPort cards to the naked eye,
imp [Sat, 19 Jun 2004 19:46:13 +0000 (19:46 +0000)]
The 3C3SH573BT looks like the Xircom RealPort cards to the naked eye,
but it appears to have a 3CxFE575BT under the hood (and is identified
as such by the xl driver).  Add it to the list of supported cards.  No
driver changes are required or necessary to support this card.

20 years agoUpdate to binutils 2.15:
marcel [Sat, 19 Jun 2004 19:44:19 +0000 (19:44 +0000)]
Update to binutils 2.15:
o  BFD_VERSION_DATE now reflects the release date of 2.15,
o  BFD_VERSION now has the correct version number.

Previous values reflected 2.14.92 from a week prior to release.

While here, fix a whitespace (tab) nit.

20 years agoUpdate to binutils 2.15:
marcel [Sat, 19 Jun 2004 19:25:33 +0000 (19:25 +0000)]
Update to binutils 2.15:
o  HAVE_SEEKO and HAVE_TELLO are defined now. These are used in bfdio.c.
o  HAVE_STRTOULL is defined now. This is used in bfd.c.

20 years agoRemove unused pt_entry_ts. Remove an unneeded semicolon.
alc [Sat, 19 Jun 2004 19:09:08 +0000 (19:09 +0000)]
Remove unused pt_entry_ts.  Remove an unneeded semicolon.

20 years agoFine-tune the last change even more and use the return value as error
le [Sat, 19 Jun 2004 19:03:01 +0000 (19:03 +0000)]
Fine-tune the last change even more and use the return value as error
indicator, as it is expected.

Spotted by: Christoph Mallon <christoph.mallon@gmx.de>

20 years agoUpdate to binutils 2.15.
marcel [Sat, 19 Jun 2004 18:52:31 +0000 (18:52 +0000)]
Update to binutils 2.15.

20 years agoDefine __lwpid_t as an int32_t in <sys/_types.h> and define lwpid_t
marcel [Sat, 19 Jun 2004 17:58:32 +0000 (17:58 +0000)]
Define __lwpid_t as an int32_t in <sys/_types.h> and define lwpid_t
as an __lwpid_t in <sys/types.h>. Retype td_tid from an int to a
lwpid_t and change related definitions accordingly.

20 years agoInclude sys/module.h.
cognet [Sat, 19 Jun 2004 17:38:32 +0000 (17:38 +0000)]
Include sys/module.h.

20 years agoI happened to have a sys/pool.h file in my tree, but most people do not,
cognet [Sat, 19 Jun 2004 17:37:47 +0000 (17:37 +0000)]
I happened to have a sys/pool.h file in my tree, but most people do not,
so nuke this useless include.

20 years agoInclude <sys/_lock.h>'s prerequisite <sys/queue.h> before including the
bde [Sat, 19 Jun 2004 14:58:35 +0000 (14:58 +0000)]
Include <sys/_lock.h>'s prerequisite <sys/queue.h> before including the
former, not after.

Don't hide this bug by including <sys/queue.h> in <sys/_lock.h>.

20 years agoWhen no fixed address is given in a shmat() request, pass a hint address
tjr [Sat, 19 Jun 2004 14:46:13 +0000 (14:46 +0000)]
When no fixed address is given in a shmat() request, pass a hint address
to vm_map_find() that is less likely to be outside of addressable memory
for 32-bit processes: just past the end of the largest possible heap.
This is the same hint that mmap() uses.

20 years agoThis is just a forced commit to note that the previous update was from:
gad [Sat, 19 Jun 2004 14:09:40 +0000 (14:09 +0000)]
This is just a forced commit to note that the previous update was from:

PR: bin/65803  (a very tiny piece of the PR)

20 years agoFill in the some new fields 'struct kinfo_proc', namely ki_childstime,
gad [Sat, 19 Jun 2004 14:08:10 +0000 (14:08 +0000)]
Fill in the some new fields 'struct kinfo_proc', namely ki_childstime,
ki_childutime, and ki_emul.  Also uses the timeradd() macro to correct
the calculation of ki_childtime.  That will correct the value returned
when ki_childtime.tv_usec > 1,000,000.

This also implements a new KERN_PROC_GID option for kvm_getprocs().
It also implements the KERN_PROC_RGID and KERN_PROC_SESSION options
which were added to sys/kern/kern_proc.c revision 1.203.

PR: bin/65803  (a very tiny piece of the PR)
Submitted by: Cyrille Lefevre

20 years agoFill in the some new fields 'struct kinfo_proc', namely ki_childstime,
gad [Sat, 19 Jun 2004 14:03:00 +0000 (14:03 +0000)]
Fill in the some new fields 'struct kinfo_proc', namely ki_childstime,
ki_childutime, and ki_emul.  Also uses the timevaladd() routine to
correct the calculation of ki_childtime.  That will correct the value
returned when ki_childtime.tv_usec > 1,000,000.

This also implements a new KERN_PROC_GID option for kvm_getprocs().
(there will be a similar update to lib/libkvm/kvm_proc.c)

Submitted by: Cyrille Lefevre

20 years agoAdd some more fields to the 'struct kinfo_proc', including some fields
gad [Sat, 19 Jun 2004 13:49:25 +0000 (13:49 +0000)]
Add some more fields to the 'struct kinfo_proc', including some fields
which just mark areas which are empty due to issues with the alignment
of already-existing fields.  This defines several unrelated variables
in one shot, because most of the work for updating kinfo_proc is making
sure the sizeof(struct kinfo_proc) remains the same across all hardware
platforms, and that no space is wasted on any platform due to alignment
issues with the new variables.

Submitted by: some by Cyrille Lefevre, some by me

20 years agoDefine a KERN_PROC_GID option for kvm_getprocs().
gad [Sat, 19 Jun 2004 13:42:05 +0000 (13:42 +0000)]
Define a KERN_PROC_GID option for kvm_getprocs().

Submitted by: Cyrille Lefevre

20 years agoRemoved foot-shooting setting of CR0_TS in exec_setregs(). It is
bde [Sat, 19 Jun 2004 12:28:48 +0000 (12:28 +0000)]
Removed foot-shooting setting of CR0_TS in exec_setregs().  It is
unnecessary because cpu_setregs() and/or npxinit() always sets CR0_TS
during system initialization, and CR0_TS is set in the next statement
(fpstate_drop()) if necessary after system initialization.  Setting
it unnecessarily was less than a pessimization since it broke the
invariant that the npx can be used without an npxdna() trap if
fpucurthread is non-null.  The broken invariant became harmful when I
added an fnclex to npxdrop().

Removed setting of CR0_MP in exec_setregs().  This was similarly
unnecessary but was harmless.

Updated comments (mainly by removing them).  Things are simpler now
that we have cpu_setregs() and don't support a math emulator or pretend
to support not having either a math emulator or an npx.

Removed the ifdef for avoiding setting CR0_NE in the !SMP case in
cpu_setregs().  npx_probe() should reverse the setting if it wants to
force IRQ13 exception handling for testing.

20 years agoOnly initialize f_data and f_ops if nobody else did so already.
phk [Sat, 19 Jun 2004 11:41:45 +0000 (11:41 +0000)]
Only initialize f_data and f_ops if nobody else did so already.

20 years agoExplicitly initialize f_data and f_vnode to NULL.
phk [Sat, 19 Jun 2004 11:40:08 +0000 (11:40 +0000)]
Explicitly initialize f_data and f_vnode to NULL.

Report f_vnode to userland in struct xfile.

20 years agoAdd the f_vnode pointer to struct xfile, shortly it will no longer be
phk [Sat, 19 Jun 2004 11:38:00 +0000 (11:38 +0000)]
Add the f_vnode pointer to struct xfile, shortly it will no longer be
identical to f_data by definition.

20 years agoDon't return NULL when the function is defined to return an integer.
le [Sat, 19 Jun 2004 10:09:44 +0000 (10:09 +0000)]
Don't return NULL when the function is defined to return an integer.

OK'ed by: tjr

20 years agoDocument ilogb()'s return values in terms of the FP_ILOGB* macros.
stefanf [Sat, 19 Jun 2004 09:33:29 +0000 (09:33 +0000)]
Document ilogb()'s return values in terms of the FP_ILOGB* macros.

20 years agoReturn the same result as the MI version for 0.0, INFINITY and NaN.
stefanf [Sat, 19 Jun 2004 09:30:00 +0000 (09:30 +0000)]
Return the same result as the MI version for 0.0, INFINITY and NaN.

Reviewed by: standards@

20 years agoOur MI implementation of ilogb() returns -INT_MAX for the argument 0.0 rather
stefanf [Sat, 19 Jun 2004 09:25:21 +0000 (09:25 +0000)]
Our MI implementation of ilogb() returns -INT_MAX for the argument 0.0 rather
than INT_MIN, so adjust FP_ILOGB0 to reflect this.  Use <machine/_limits.h> for
INT_MAX's value while there.

Reviewed by: standards@

20 years agoDuplicate the securelevel check from spec_vnops.c here.
phk [Sat, 19 Jun 2004 09:00:53 +0000 (09:00 +0000)]
Duplicate the securelevel check from spec_vnops.c here.

20 years agoMerge FSF GCC rev 1.579 change ((x86_output_mi_thunk): Don't pass MEM to
obrien [Sat, 19 Jun 2004 07:29:04 +0000 (07:29 +0000)]
Merge FSF GCC rev 1.579 change ((x86_output_mi_thunk): Don't pass MEM to
%P0, just SYMBOL_REF) into GCC 3.3.3.  This fixes the bad C++ thunks code
generation building Firefox on AMD64.

Submitted by: Sean McNeil <sean@mcneil.com>

20 years agoRemove spl() calls. Update comments to reflect the removal of spl() calls.
alc [Sat, 19 Jun 2004 04:19:47 +0000 (04:19 +0000)]
Remove spl() calls.  Update comments to reflect the removal of spl() calls.
Remove '\n' from panic() format strings.  Remove some blank lines.

20 years agoIgnore file flag bits that we don't support. In particular, this
kientzle [Sat, 19 Jun 2004 04:19:27 +0000 (04:19 +0000)]
Ignore file flag bits that we don't support.  In particular, this
corrects a segfault seen when archiving files from NTFS (which sets
bits in st_flags that are not documented in <sys/stat.h>.)

Thanks to: Doug Rabson

20 years agoFix the check for a "duplicate filename to compress", so that we're checking
gad [Sat, 19 Jun 2004 03:28:42 +0000 (03:28 +0000)]
Fix the check for a "duplicate filename to compress", so that we're checking
the *filename* and not the pid_file(!).   Stupid brain-fault on my part.
This could cause a segfault under -neworder if newsyslog had to rotate
multiple files, and later ones had specifed the 'N' flag.

Bug first reported by: le
MFC after: 3 days

20 years agoMemory's free, but all the world ain't a VAX anymore. Bring math.3
das [Sat, 19 Jun 2004 03:25:28 +0000 (03:25 +0000)]
Memory's free, but all the world ain't a VAX anymore.  Bring math.3
kicking and screaming into the 1980's.  This change converts most of
the markup from man(7) to mdoc(7) format, and I believe it removes or
updates everything that was flat out wrong.  However, much work is
still needed to sanitize the markup, improve coverage, and reduce
overlap with other manpages.  Some of the sections would better belong
in a philosophy_of_w_kahan.3 manpage, but they are informative and
remain at least as reminders of topics to cover.

Reviewed by: doc@, trhodes@

20 years agoAssert socket buffer lock in sb_lock() to protect socket buffer sleep
rwatson [Sat, 19 Jun 2004 03:23:14 +0000 (03:23 +0000)]
Assert socket buffer lock in sb_lock() to protect socket buffer sleep
lock state.  Convert tsleep() into msleep() with socket buffer mutex
as argument.  Hold socket buffer lock over sbunlock() to protect sleep
lock state.

Assert socket buffer lock in sbwait() to protect the socket buffer
wait state.  Convert tsleep() into msleep() with socket buffer mutex
as argument.

Modify sofree(), sosend(), and soreceive() to acquire SOCKBUF_LOCK()
in order to call into these functions with the lock, as well as to
start protecting other socket buffer use in their implementation.  Drop
the socket buffer mutexes around calls into the protocol layer, around
potentially blocking operations, for copying to/from user space, and
VM operations relating to zero-copy.  Assert the socket buffer mutex
strategically after code sections or at the beginning of loops.  In
some cases, modify return code to ensure locks are properly dropped.

Convert the potentially blocking allocation of storage for the remote
address in soreceive() into a non-blocking allocation; we may wish to
move the allocation earlier so that it can block prior to acquisition
of the socket buffer lock.

Drop some spl use.

NOTE: Some races exist in the current structuring of sosend() and
soreceive().  This commit only merges basic socket locking in this
code; follow-up commits will close additional races.  As merged,
these changes are not sufficient to run without Giant safely.

Reviewed by: juli, tjr

20 years agoAdd more precision to the cx_usage sysctl output and special-case 0%.
njl [Sat, 19 Jun 2004 02:27:23 +0000 (02:27 +0000)]
Add more precision to the cx_usage sysctl output and special-case 0%.

Submitted by: YONETANI Tomokazu <qhwt+freebsd-acpi AT les.ath.cx>

20 years agoDocument rc.conf's "keyboard" directive.
green [Sat, 19 Jun 2004 00:18:13 +0000 (00:18 +0000)]
Document rc.conf's "keyboard" directive.

Reminded by: dougb

20 years agoIn tcp_ctloutput(), don't hold the inpcb lock over a call to
rwatson [Fri, 18 Jun 2004 20:22:21 +0000 (20:22 +0000)]
In tcp_ctloutput(), don't hold the inpcb lock over a call to
ip_ctloutput(), as it may need to perform blocking memory allocations.
This also improves consistency with locking relative to other points
that call into ip_ctloutput().

Bumped into by: Grover Lines <grover@ceribus.net>

20 years agoAdd a sysctl/tunable, "kern.always_console_output", that lets you set
green [Fri, 18 Jun 2004 20:12:42 +0000 (20:12 +0000)]
Add a sysctl/tunable, "kern.always_console_output", that lets you set
output to permanently (not ephemerally) go to the console.  It is also
sent to any other console specified by TIOCCONS as normal.

While I'm here, document the kern.log_console_output sysctl.

20 years agoAllow setting the system console keyboard via the ${keyboard} rc.conf
green [Fri, 18 Jun 2004 20:09:30 +0000 (20:09 +0000)]
Allow setting the system console keyboard via the ${keyboard} rc.conf
directive.

20 years agoNote that conscontrol set and unset are an interface for TIOCCONS.
green [Fri, 18 Jun 2004 20:06:04 +0000 (20:06 +0000)]
Note that conscontrol set and unset are an interface for TIOCCONS.

20 years agoClean up allocated ressources when destroying the main vinum geom.
le [Fri, 18 Jun 2004 19:53:33 +0000 (19:53 +0000)]
Clean up allocated ressources when destroying the main vinum geom.

20 years agoRemove compat code and unused lock declarations.
njl [Fri, 18 Jun 2004 17:58:11 +0000 (17:58 +0000)]
Remove compat code and unused lock declarations.

20 years agoRemove compat defines.
njl [Fri, 18 Jun 2004 17:56:45 +0000 (17:56 +0000)]
Remove compat defines.

20 years agoCheck if ${_dir}/kern exists as well, because if it doesn't exists
pjd [Fri, 18 Jun 2004 16:38:42 +0000 (16:38 +0000)]
Check if ${_dir}/kern exists as well, because if it doesn't exists
we will fail later and we can miss good kernel source tree directory.
I found this trying to compile kld module and it finds 'conf/kmod.mk'
in '../..', but it fails later, because there is no 'kern' directory,
but there is valid kernel source tree still in /usr/src/sys/.

20 years agoFix indentation of continuation lines to (hopefully) comply with
joerg [Fri, 18 Jun 2004 15:08:08 +0000 (15:08 +0000)]
Fix indentation of continuation lines to (hopefully) comply with
style(9).

Reminded by: bde

20 years agoAdd stub for Linux SOUND_MIXER_READ_RECMASK, required by some Linux sound
bms [Fri, 18 Jun 2004 14:36:24 +0000 (14:36 +0000)]
Add stub for Linux SOUND_MIXER_READ_RECMASK, required by some Linux sound
applications.

PR: misc/27471
Submitted by: Gavin Atkinson (with cleanups)

20 years agoAvoid deadlock which is caused by locking VDIR of parent and VREG of
kuriyama [Fri, 18 Jun 2004 14:35:17 +0000 (14:35 +0000)]
Avoid deadlock which is caused by locking VDIR of parent and VREG of
snapshot itself in wrong order.
We can skip unlink check of that directory because it must have
snapshot in it.

Reviewed by: mckusick and current@

20 years agoAdd a stub for the Linux SOUND_MIXER_INFO ioctl (even though we don't
bms [Fri, 18 Jun 2004 14:25:44 +0000 (14:25 +0000)]
Add a stub for the Linux SOUND_MIXER_INFO ioctl (even though we don't
actually implement it), as some applications, such as RealProducer,
expect to be able to use it.

PR: kern/65971
Submitted by: Matt Wright

20 years agoLinux applications expect to be able to call SIOCGIFCONF with an
bms [Fri, 18 Jun 2004 14:06:46 +0000 (14:06 +0000)]
Linux applications expect to be able to call SIOCGIFCONF with an
NULL ifc.ifc_buf pointer, to determine the expected buffer size.

The submitted fix only takes account of interfaces with an AF_INET
address configured. This could no doubt be improved.

PR: kern/45753
Submitted by: Jacques Garrigue (with cleanups)

20 years agoFix the VT_SETMODE/CDROMIOCTOCENTRY problem correctly.
bms [Fri, 18 Jun 2004 13:36:30 +0000 (13:36 +0000)]
Fix the VT_SETMODE/CDROMIOCTOCENTRY problem correctly.

Reviewed by: tjr

20 years agoUpdate the description of struct ifreq, and document SIOC[SG]IFCAP.
des [Fri, 18 Jun 2004 13:07:18 +0000 (13:07 +0000)]
Update the description of struct ifreq, and document SIOC[SG]IFCAP.

20 years agoCheck that m->m_pkthdr.rcvif is not NULL before checking if a packet
bms [Fri, 18 Jun 2004 12:58:45 +0000 (12:58 +0000)]
Check that m->m_pkthdr.rcvif is not NULL before checking if a packet
was received on a broadcast address on the input path. Under certain
circumstances this could result in a panic, notably for locally-generated
packets which do not have m_pkthdr.rcvif set.

This is a similar situation to that which is solved by
src/sys/netinet/ip_icmp.c rev 1.66.

PR: kern/52935

20 years agoAdd comment to reflect that we should retry after thread singling failed.
davidxu [Fri, 18 Jun 2004 11:13:49 +0000 (11:13 +0000)]
Add comment to reflect that we should retry after thread singling failed.

20 years agoAppease GCC.
bms [Fri, 18 Jun 2004 09:53:58 +0000 (09:53 +0000)]
Appease GCC.

20 years agoFix two attempts to use an unchecked NULL pointer provided from the
bms [Fri, 18 Jun 2004 09:13:35 +0000 (09:13 +0000)]
Fix two attempts to use an unchecked NULL pointer provided from the
userland, for the CDIOREADTOCENTRY and VT_SETMODE cases respectively.

Noticed by: tjr

20 years agoRemove nested include of <sys/module.h>
phk [Fri, 18 Jun 2004 08:54:49 +0000 (08:54 +0000)]
Remove nested include of <sys/module.h>

Should be happier now: peter

20 years agoAdd missing <sys/module.h> include.
phk [Fri, 18 Jun 2004 08:53:55 +0000 (08:53 +0000)]
Add missing <sys/module.h> include.

Approved by: sam

20 years agoReduce a fair bit of the atomics because we are now called with a
phk [Fri, 18 Jun 2004 08:08:47 +0000 (08:08 +0000)]
Reduce a fair bit of the atomics because we are now called with a
lock from kern_conf.c and cdev's act a lot more like real objects
these days.

20 years agoFix the description of hw.firewire.sbp.exclusive_login.
simokawa [Fri, 18 Jun 2004 08:02:49 +0000 (08:02 +0000)]
Fix the description of hw.firewire.sbp.exclusive_login.

Submitted by: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>

20 years agoAdd to conscontrol(8) "set" and "unset" commands which modify the
green [Fri, 18 Jun 2004 06:33:44 +0000 (06:33 +0000)]
Add to conscontrol(8) "set" and "unset" commands which modify the
virtual console set-up.  Specifically, "conscontrol unset" will cause
printf(9) output to start going to the console again.

20 years agoRemove a bogus panic. It is possible more than one threads will
davidxu [Fri, 18 Jun 2004 06:21:09 +0000 (06:21 +0000)]
Remove a bogus panic. It is possible more than one threads will
be suspended in thread_suspend_check, after they are resumed, all
threads will call thread_single, but only one can be success,
others should retry and will exit in thread_suspend_check.

20 years agoIf thread singler wants to terminate other threads, make sure it includes
davidxu [Fri, 18 Jun 2004 06:15:21 +0000 (06:15 +0000)]
If thread singler wants to terminate other threads, make sure it includes
all threads except itself.

Obtained from: julian

20 years agoThis file is not part of GDB 5.2.1, but was off the vendor branch.
marcel [Fri, 18 Jun 2004 06:10:13 +0000 (06:10 +0000)]
This file is not part of GDB 5.2.1, but was off the vendor branch.

20 years agoRevert local changes.
marcel [Fri, 18 Jun 2004 05:57:05 +0000 (05:57 +0000)]
Revert local changes.