]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoFix some misspellings, document the TAPE environment
Tim Kientzle [Mon, 19 Jul 2004 05:24:41 +0000 (05:24 +0000)]
Fix some misspellings, document the TAPE environment
variable and the default tape device.

20 years agoAdd a #error requiring KDB if DDB is specified. (This can probably be
Mike Silbersack [Mon, 19 Jul 2004 02:46:34 +0000 (02:46 +0000)]
Add a #error requiring KDB if DDB is specified.  (This can probably be
relocated to a better place, if one exists.)

20 years agoEmpty GENERIC.hints file needed by make release.
Peter Grehan [Mon, 19 Jul 2004 02:08:22 +0000 (02:08 +0000)]
Empty GENERIC.hints file needed by make release.

Noticed by:  Suleiman Souhlal <refugee@segfaulted.com>

20 years agoThis file was not used to import gdb. Remove.
Marcel Moolenaar [Mon, 19 Jul 2004 00:20:33 +0000 (00:20 +0000)]
This file was not used to import gdb. Remove.

20 years agoWhen calling scheduler entrypoints for creating new threads and processes,
Julian Elischer [Sun, 18 Jul 2004 23:36:13 +0000 (23:36 +0000)]
When calling scheduler entrypoints for creating new threads and processes,
specify "us" as the thread not the process/ksegrp/kse.
You can always find the others from the thread but the converse is not true.
Theorotically this would lead to runtime being allocated to the wrong
entity in some cases though it is not clear how often this actually happenned.
(would only affect threaded processes and would probably be pretty benign,
but it WAS a bug..)

Reviewed by: peter

20 years agoNow we have NO_ADAPTIVE_MUTEXES option, so use it here too.
Pawel Jakub Dawidek [Sun, 18 Jul 2004 23:27:14 +0000 (23:27 +0000)]
Now we have NO_ADAPTIVE_MUTEXES option, so use it here too.

Missed by: scottl

20 years agoDon't forget the arguments for -M and -N in the DESCRIPTION section.
Stefan Farfeleder [Sun, 18 Jul 2004 23:05:31 +0000 (23:05 +0000)]
Don't forget the arguments for -M and -N in the DESCRIPTION section.

20 years agoReverse a lock/unlock pair that were the wrong way around in some code that
Julian Elischer [Sun, 18 Jul 2004 22:57:46 +0000 (22:57 +0000)]
Reverse a lock/unlock pair that were the wrong way around in some code that
is obviously not run a lot. (but is in some test cases).
This code is not usually run because it covers a case that doesn't
happen a lot (removing a node that has data traversing it).

20 years agoComment clarifying debug_mpsafenet.
Robert Watson [Sun, 18 Jul 2004 21:50:22 +0000 (21:50 +0000)]
Comment clarifying debug_mpsafenet.

20 years agoClarify boot.8 (i386 version) a bit, so that people know
Mike Silbersack [Sun, 18 Jul 2004 21:39:45 +0000 (21:39 +0000)]
Clarify boot.8 (i386 version) a bit, so that people know
where boot.config needs to reside.  Also change /kernel
to /boot/loader, as that is the apparent default now.  This
man page probably requires more updates.

20 years agoReplace seven nominally MD implementations of frexp() that are broken
David Schultz [Sun, 18 Jul 2004 21:23:39 +0000 (21:23 +0000)]
Replace seven nominally MD implementations of frexp() that are broken
for subnormals with one implementation that works.

20 years agoUtilize pmap_pte_quick() rather than pmap_pte() in pmap_protect(). The
Alan Cox [Sun, 18 Jul 2004 21:19:10 +0000 (21:19 +0000)]
Utilize pmap_pte_quick() rather than pmap_pte() in pmap_protect().  The
reason being that pmap_pte_quick() requires the page queues lock, which is
already held, rather than Giant.

20 years agoAfter maintaining previous behaviour in writing out the core notes, it's
Marcel Moolenaar [Sun, 18 Jul 2004 20:28:07 +0000 (20:28 +0000)]
After maintaining previous behaviour in writing out the core notes, it's
time now to break with the past: do not write the PID in the first note.
Rationale:
1.  [impact of the breakage] Process IDs in core files serve no immediate
    purpose to the debugger itself. They are only useful to relate a core
    file to a process. This can provide context to the person looking at
    the core file, provided one keeps track of this. Overall, not having
    the PID in the core file is only in very rare occasions unfortunate.
2.  [reason of the breakage] Having one PRSTATUS note contain the PID,
    while all others contain the LWPID of the corresponding kernel thread
    creates an irregularity for the debugger that cannot easily be worked
    around. This is caused by libthread_db correlating user thread IDs to
    kernel thread (aka LWP) IDs and thus aware of the actual LWPIDs.

Update comments accordingly.

20 years agoFix a possible hang which apparently occurs during a warm boot (cold boot
Gary Jennejohn [Sun, 18 Jul 2004 20:13:31 +0000 (20:13 +0000)]
Fix a possible hang which apparently occurs during a warm boot (cold boot
does not display the symptom). Evidently the ifpi2 controller needs to be
massaged more than it was.

Note that this does not close the PR since it was filed against 4.9.

MFC: 5 days
PR: kern/68756
Submitted by: Ari Suutari <ari.suutari@syncrontech.com>

20 years agoGratuitous whitespace change to un-wrap a short line.
Robert Watson [Sun, 18 Jul 2004 19:53:35 +0000 (19:53 +0000)]
Gratuitous whitespace change to un-wrap a short line.

20 years agoThis library is not WARNS=2 clean for -O2 builds, because we include
Marcel Moolenaar [Sun, 18 Jul 2004 19:33:56 +0000 (19:33 +0000)]
This library is not WARNS=2 clean for -O2 builds, because we include
headers from libpthread that are not WARNS=2 clean for -O2 builds.
Lower the WARNS level to 1. This is the highest level possible for
now.

20 years agoCorrect the mess I made by committing from the wrong tree. Most
Marcel Moolenaar [Sun, 18 Jul 2004 19:29:38 +0000 (19:29 +0000)]
Correct the mess I made by committing from the wrong tree. Most
notably, this restores some of the contents in thread_db.h as well
as David Xu's copyright notice. This also fixes the includes in
the MD libpthread files which Scott tried to provide a quick fix
for.

Pointy hat: marcel

20 years agoThe recent changes to control message passing broke some things
David Malone [Sun, 18 Jul 2004 19:10:36 +0000 (19:10 +0000)]
The recent changes to control message passing broke some things
that get certain types of control messages (ping6 and rtsol are
examples). This gets the new code closer to working:

1) Collect control mbufs for processing in the controlp ==
NULL case, so that they can be freed by externalize.

2) Loop over the list of control mbufs, as the externalize
function may not know how to deal with chains.

3) In the case where there is no externalize function,
remember to add the control mbuf to the controlp list so
that it will be returned.

4) After adding stuff to the controlp list, walk to the
end of the list of stuff that was added, incase we added
a chain.

This code can be further improved, but this is enough to get most
things working again.

Reviewed by: rwatson

20 years agoRename a preposterously long name with one that might look a bit
Mark Murray [Sun, 18 Jul 2004 18:55:31 +0000 (18:55 +0000)]
Rename a preposterously long name with one that might look a bit
more professional. While here, write a few lines of explanatory
text to explain what its for.

Discussed with: rwatson
With hat: core

20 years agoUnbreak kernel compiles by preserving an old opt_adaptive_mutexes.h file
Alexander Kabaev [Sun, 18 Jul 2004 18:21:39 +0000 (18:21 +0000)]
Unbreak kernel compiles by preserving an old opt_adaptive_mutexes.h file
name.

20 years agoFor the gbde attach script:
Simon L. B. Nielsen [Sun, 18 Jul 2004 18:01:48 +0000 (18:01 +0000)]
For the gbde attach script:
- Ask the user up to X times (3 by default) for the pass-phrase, if
  it is incorrect the first time.
- Add support for storing the lockfiles in another other directory
  than /etc.
- Document that it is possible to override the location of each single
  lockfile.

Approved by: pjd

20 years agoFix copy&paste bug.
Pawel Jakub Dawidek [Sun, 18 Jul 2004 16:51:58 +0000 (16:51 +0000)]
Fix copy&paste bug.

20 years agoAdd doxygen doc comments for most of newbus and the BUS interface.
Doug Rabson [Sun, 18 Jul 2004 16:30:31 +0000 (16:30 +0000)]
Add doxygen doc comments for most of newbus and the BUS interface.

20 years agoEnable ADAPTIVE_MUTEXES by default by changing the sense of the option to
Scott Long [Sun, 18 Jul 2004 15:59:03 +0000 (15:59 +0000)]
Enable ADAPTIVE_MUTEXES by default by changing the sense of the option to
NO_ADAPTIVE_MUTEXES.  This option has been enabled by default on amd64 for
quite some time, and has been extensively tested on i386 and sparc64.  It
shows measurable performance gains in many circumstances, and few negative
effects.  It would be nice in t he future if adaptive mutexes actually went
to sleep after a certain amount of spinning, but that will require quite a
bit more testing.

20 years agoTry to fix ia64 and alpha compiles. I don't have either equipment fired
Scott Long [Sun, 18 Jul 2004 15:24:37 +0000 (15:24 +0000)]
Try to fix ia64 and alpha compiles.  I don't have either equipment fired
up now, but it appears to be the same problem and solution as sparc64.

20 years agoAdd missing #includes so that this can compile. Obtained from the i386 version.
Scott Long [Sun, 18 Jul 2004 15:20:03 +0000 (15:20 +0000)]
Add missing #includes so that this can compile.  Obtained from the i386 version.

20 years agoFix a stupid attemp to apply host arithmetics to network byte ordered data.
Max Laier [Sun, 18 Jul 2004 14:25:48 +0000 (14:25 +0000)]
Fix a stupid attemp to apply host arithmetics to network byte ordered data.
This fixes checksum for some drivers with partial H/W ckcsum offloads.

Reported by: Simon 'corecode' Schubert, Devon H. O'Dell, hmp
Reviewed by: Pyun YongHyeon

20 years agoRemove claim of conformance to IEEE Std. 1003.2. Replace it with a list
Tim J. Robbins [Sun, 18 Jul 2004 10:11:27 +0000 (10:11 +0000)]
Remove claim of conformance to IEEE Std. 1003.2. Replace it with a list
of features required by the standard that the current implementation
does not support.

PR: 57911 (related)

20 years ago`off' is a keyword, not a parameter name.
Maxim Konovalov [Sun, 18 Jul 2004 09:57:47 +0000 (09:57 +0000)]
`off' is a keyword, not a parameter name.

Obtained from: DragonFly

20 years agoI missed two pieces of the commit to this file. Robert has already
David Malone [Sun, 18 Jul 2004 09:26:34 +0000 (09:26 +0000)]
I missed two pieces of the commit to this file. Robert has already
added one, this adds the other.

20 years agoStart the entropy device insecure/unblocked. I'll be handing over
Mark Murray [Sun, 18 Jul 2004 09:07:58 +0000 (09:07 +0000)]
Start the entropy device insecure/unblocked. I'll be handing over
responsibility for critical randomness requirements (like sshd)
to rc.d/*

Requested by: many

20 years agoIn -CURRENT pseudo devices are not statically assigned at compile time,
Maxim Konovalov [Sun, 18 Jul 2004 09:03:12 +0000 (09:03 +0000)]
In -CURRENT pseudo devices are not statically assigned at compile time,
remove a stale comment.

PR: kern/62285

20 years agoMFp4: Add 'dump' command to gconcat(8), glabel(8) and gstripe(8) which allow
Pawel Jakub Dawidek [Sun, 18 Jul 2004 08:00:30 +0000 (08:00 +0000)]
MFp4: Add 'dump' command to gconcat(8), glabel(8) and gstripe(8) which allow
      to dump metadata from given components.

20 years agoRemove claim of conformance to IEEE Std. 1003.2. Replace it with a list
Tim J. Robbins [Sun, 18 Jul 2004 06:56:40 +0000 (06:56 +0000)]
Remove claim of conformance to IEEE Std. 1003.2. Replace it with a list
of features required by the standard that the current implementation
does not support.

PR: 57911

20 years agoFix exclusive-bit leakage.
Pawel Jakub Dawidek [Sun, 18 Jul 2004 06:54:29 +0000 (06:54 +0000)]
Fix exclusive-bit leakage.

20 years agoAdd support System TALKS Inc. SGC-X2UL
MIHIRA Sanpei Yoshiro [Sun, 18 Jul 2004 06:50:58 +0000 (06:50 +0000)]
Add support System TALKS Inc. SGC-X2UL

20 years agoAdd support System TALKS Inc. SGC-X2UL
MIHIRA Sanpei Yoshiro [Sun, 18 Jul 2004 06:45:38 +0000 (06:45 +0000)]
Add support System TALKS Inc. SGC-X2UL

PR: FreeBSD-users-jp/80137
Submitted by: HORIO Shinsuke <shin@happynet.co.jp>

20 years agoQuirk for SEGRAND NP-900 USB MP3Player
MIHIRA Sanpei Yoshiro [Sun, 18 Jul 2004 05:39:14 +0000 (05:39 +0000)]
Quirk for SEGRAND NP-900 USB MP3Player

PR: kern/64563
Submitted by: Kunitada Kokubun <unix_grandy@yahoo.co.jp>
MFC after: 1 week

20 years agoOnly extract a physical address from a pte in pmap_extract() if the pte is
Alan Cox [Sun, 18 Jul 2004 05:09:28 +0000 (05:09 +0000)]
Only extract a physical address from a pte in pmap_extract() if the pte is
valid.

Implement the protection check required by the pmap_extract_and_hold()
specification.  (This enables the elimination of Giant from that function.)

20 years agoRemove GIANT_REQUIRED from vmapbuf().
Alan Cox [Sun, 18 Jul 2004 04:57:49 +0000 (04:57 +0000)]
Remove GIANT_REQUIRED from vmapbuf().

20 years agoRemove the GIANT_REQUIRED preceding pmap_remove() in
Alan Cox [Sun, 18 Jul 2004 04:38:11 +0000 (04:38 +0000)]
Remove the GIANT_REQUIRED preceding pmap_remove() in
vm_pageout_map_deactivate_pages().

20 years agoHook libthread_db into the build, except for arm and powerpc.
Marcel Moolenaar [Sun, 18 Jul 2004 04:36:22 +0000 (04:36 +0000)]
Hook libthread_db into the build, except for arm and powerpc.
Porting libthread_db to arm and/or powerpc is easy enough, but
we don't build gdb on those platforms yet.

20 years agoDefine _libthr_debug for use by libthread_db.
Marcel Moolenaar [Sun, 18 Jul 2004 04:23:30 +0000 (04:23 +0000)]
Define _libthr_debug for use by libthread_db.

20 years agoDon't include lock.h and pthread_md.h when we're being included by
Marcel Moolenaar [Sun, 18 Jul 2004 04:22:01 +0000 (04:22 +0000)]
Don't include lock.h and pthread_md.h when we're being included by
libthread_db. Both headers are included seperately.

20 years agoAdd rudimentary support and stubs for libthr and libc_r on alpha, amd64,
Marcel Moolenaar [Sun, 18 Jul 2004 04:17:15 +0000 (04:17 +0000)]
Add rudimentary support and stubs for libthr and libc_r on alpha, amd64,
i386, ia64 and sparc64. Add stubs for alpha, amd64, ia64 and sparc64 for
libpthread.

Restructure the source files to avoid unnecessary use of subdirectories
that also force us to use non-portable compilation flags to deal with
the uncommon compilation requirements (building archive libraries for
linkage into a shared library).

The libpthread support has been copied from the original local and
cleaned-up to make them WARNS=2 clean.
that also force us to use non-portable compilation flags to deal with
the uncommon compilation requirements (building archive libraries for
linkage into a shared library).

The libpthread support has been copied from the original local and
cleaned-up to make them WARNS=2 clean.

Tested on: amd64, i386, ia64

20 years agoRemove 'sg' argument to linux_sendto_hdrincl, which is what I think was
Robert Watson [Sun, 18 Jul 2004 04:09:40 +0000 (04:09 +0000)]
Remove 'sg' argument to linux_sendto_hdrincl, which is what I think was
intended.  This fixes the build, but might require revision.

20 years agoThe description of ng_mesg.cmd should call it "cmd" to match the struct
Giorgos Keramidas [Sun, 18 Jul 2004 02:42:38 +0000 (02:42 +0000)]
The description of ng_mesg.cmd should call it "cmd" to match the struct
definition and netgraph.h.

PR: docs/66539
Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us>

20 years agoRemove the dependency of the :C/regexp/replacement/ variable modifier
Giorgos Keramidas [Sun, 18 Jul 2004 02:26:30 +0000 (02:26 +0000)]
Remove the dependency of the :C/regexp/replacement/ variable modifier
from the :S modifier which follows a bit further below.  This way the
reader can read each of these two descriptions without having to jump
back and forth in the manpage.

PR: docs/26943
Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>

20 years agoPriner control devices are now lpt*.ctl.
David E. O'Brien [Sun, 18 Jul 2004 02:22:47 +0000 (02:22 +0000)]
Priner control devices are now lpt*.ctl.

20 years agoMention the vfs.usermount sysctl.
Christian Brueffer [Sun, 18 Jul 2004 01:51:59 +0000 (01:51 +0000)]
Mention the vfs.usermount sysctl.

Obtained from: NetBSD via DragonFly BSD
MFC after: 3 days

20 years agoDrop Giant and acquire the UNIX domain socket subsystem lock a bit
Robert Watson [Sun, 18 Jul 2004 01:29:43 +0000 (01:29 +0000)]
Drop Giant and acquire the UNIX domain socket subsystem lock a bit
earlier in unp_connect() so that vp->v_socket can't change between
our copying its value to a local variable and later use of that
variable.  This may have been responsible for a panic during
shutdown that I experienced where simultaneous closing of a listen
socket by rpcbind and a new connection being made to rpcbind by
mountd.

20 years agoAdd an "out" to the now required BS of defining DESTDIR.
David E. O'Brien [Sun, 18 Jul 2004 01:19:33 +0000 (01:19 +0000)]
Add an "out" to the now required BS of defining DESTDIR.

20 years agoThis is a forced commit.
David Xu [Sun, 18 Jul 2004 00:59:57 +0000 (00:59 +0000)]
This is a forced commit.
Clear suspension flag for debugged process when detaching.

20 years agom_tag_copy takes an additional "how" parameter in FreeBSD.
Max Laier [Sun, 18 Jul 2004 00:51:56 +0000 (00:51 +0000)]
m_tag_copy takes an additional "how" parameter in FreeBSD.

Submitted by: rwatson

20 years agoFix macro so that we don't get missing initializer warnings.
Alfred Perlstein [Sat, 17 Jul 2004 23:56:24 +0000 (23:56 +0000)]
Fix macro so that we don't get missing initializer warnings.

20 years agoChange named parameters from max (which conflicts with a macro in libkern.h)
Alfred Perlstein [Sat, 17 Jul 2004 23:53:37 +0000 (23:53 +0000)]
Change named parameters from max (which conflicts with a macro in libkern.h)
to maxval.

20 years agoRemedy my omission of one change in the prevision revision: pmap_remove()
Alan Cox [Sat, 17 Jul 2004 23:44:59 +0000 (23:44 +0000)]
Remedy my omission of one change in the prevision revision: pmap_remove()
must pin the current thread in order to call pmap_pte_quick().

20 years agoFix typo.
David Xu [Sat, 17 Jul 2004 23:15:41 +0000 (23:15 +0000)]
Fix typo.

20 years ago - Utilize pmap_pte_quick() rather than pmap_pte() in pmap_remove() and
Alan Cox [Sat, 17 Jul 2004 22:20:53 +0000 (22:20 +0000)]
 - Utilize pmap_pte_quick() rather than pmap_pte() in pmap_remove() and
   pmap_remove_page().  The reason being that pmap_pte_quick() requires
   the page queues lock, which is already held, rather than Giant.
 - Assert that the page queues lock is held in pmap_remove_page() and
   pmap_remove_pte().

20 years agoFix the !INET6 build.
David Malone [Sat, 17 Jul 2004 21:40:14 +0000 (21:40 +0000)]
Fix the !INET6 build.

Reported by: alc

20 years agoAdd a kern_setsockopt and kern_getsockopt which can read the option
David Malone [Sat, 17 Jul 2004 21:06:36 +0000 (21:06 +0000)]
Add a kern_setsockopt and kern_getsockopt which can read the option
values from either user land or from the kernel. Use them for
[gs]etsockopt and to clean up some calls to [gs]etsockopt in the
Linux emulation code that uses the stackgap.

20 years agoProperly terminate a quoted string in the previous commit. Oddly
Marcel Moolenaar [Sat, 17 Jul 2004 20:57:37 +0000 (20:57 +0000)]
Properly terminate a quoted string in the previous commit. Oddly
enough this only seems to cause problems with -jX so went unnoticed
until now.

20 years agos/manditory/mandatory
Alfred Perlstein [Sat, 17 Jul 2004 20:22:24 +0000 (20:22 +0000)]
s/manditory/mandatory

Obtained from: Ceri Davies

20 years agoRevert WARNS bump until I figure out why this does not work.
Johan Karlsson [Sat, 17 Jul 2004 20:10:23 +0000 (20:10 +0000)]
Revert WARNS bump until I figure out why this does not work.

20 years agoExplain that for nfs, rpc.lockd and truss I am just noting that I _can_
Alfred Perlstein [Sat, 17 Jul 2004 20:00:45 +0000 (20:00 +0000)]
Explain that for nfs, rpc.lockd and truss I am just noting that I _can_
and would like to review changes if desired.

Maintain my strict lock on libc/rpc.

20 years agoSupport readlink(2) better. Readlink does not nul terminate the
Alfred Perlstein [Sat, 17 Jul 2004 19:48:49 +0000 (19:48 +0000)]
Support readlink(2) better.  Readlink does not nul terminate the
result buffer, so we need to format it ourselves.  The problem is
that the length is stored as the return value from readlink, so we
need to pass the return value from our syscall into print_arg.

Motivated by: truss garbage on my screen from reading /etc/malloc.conf.

20 years agoThe tcp syncache code was leaving the IPv6 flowlabel uninitialised
David Malone [Sat, 17 Jul 2004 19:44:13 +0000 (19:44 +0000)]
The tcp syncache code was leaving the IPv6 flowlabel uninitialised
for the SYN|ACK packet and then letting in6_pcbconnect set the
flowlabel later. Arange for the syncache/syncookie code to set and
recall the flow label so that the flowlabel used for the SYN|ACK
is consistent. This is done by using some of the cookie (when tcp
cookies are enabeled) and by stashing the flowlabel in syncache.

Tested and Discovered by: Orla McGann <orly@cnri.dit.ie>
Approved by: ume, silby
MFC after: 1 month

20 years agoWhen reporting reciept of a signal, print the signal's name.
Alfred Perlstein [Sat, 17 Jul 2004 19:19:36 +0000 (19:19 +0000)]
When reporting reciept of a signal, print the signal's name.

20 years agoRemove unused user_uname variable.
Tim Kientzle [Sat, 17 Jul 2004 18:21:00 +0000 (18:21 +0000)]
Remove unused user_uname variable.
Add range-checking to argument of -b.

Thanks to: Tim J Robbins

20 years agoExplicitly specify ATPROTO_DDP constant rather than '0' when binding
Robert Watson [Sat, 17 Jul 2004 17:16:16 +0000 (17:16 +0000)]
Explicitly specify ATPROTO_DDP constant rather than '0' when binding
a netatalk socket.  No functional change.

20 years agoMerge in a stable fix from OpenBSD:
Max Laier [Sat, 17 Jul 2004 17:15:15 +0000 (17:15 +0000)]
Merge in a stable fix from OpenBSD:
  MFC:
  Fix by dhartmei@

  change pf_route() loop detection: introduce a counter (number of times
  a packet is routed already) in the mbuf tag, allow at most four times.
  Fixes some legitimate cases broken by the previous change.

Reviewed by: dhartmei

20 years agoAdd a simple tool to bind netatalk sockets and perform send operations.
Robert Watson [Sat, 17 Jul 2004 17:12:15 +0000 (17:12 +0000)]
Add a simple tool to bind netatalk sockets and perform send operations.
This isn't a classic regression test in that it doesn't have a notion of
pass fail, it's more of an exercise tool.  It attempts to exercise
unbound, bound, unconnected, and connected variations on SOCK_DGRAM
sockets.

20 years agoAdd the const qualifier to the prgregset_t argument for the *setregs*
Marcel Moolenaar [Sat, 17 Jul 2004 17:09:12 +0000 (17:09 +0000)]
Add the const qualifier to the prgregset_t argument for the *setregs*
functions.

20 years agoo ps_pd{read|write} and ps_pt{read|write} are obsolete interface
Marcel Moolenaar [Sat, 17 Jul 2004 17:08:13 +0000 (17:08 +0000)]
o  ps_pd{read|write} and ps_pt{read|write} are obsolete interface
   functions. Only ps_p{read|write} remains.
o  Remove ps_getpid. We don't need it now.

20 years agoRe-implement this file, including copyright notice. Keep David Xu as
Marcel Moolenaar [Sat, 17 Jul 2004 17:05:12 +0000 (17:05 +0000)]
Re-implement this file, including copyright notice. Keep David Xu as
copyright owner. Typical bugs fixed by this are:
o  various style(9) bugs,
o  #ifdef'd out code,
o  lack of comments,
o  missing const,
o  introduction of obsolete functions,
o  missing __BEGIN_DECLS & __END_DECLS,

The major flaw in this version, that was also present in the previous
version is the lack of man page. Minor flaws undoubtedly still exist.

20 years agogcc now objects to a default label without any contents. Because I want
Robert Watson [Sat, 17 Jul 2004 17:01:25 +0000 (17:01 +0000)]
gcc now objects to a default label without any contents.  Because I want
to have a comment present in the default case, add a 'break' to each
default case that previously had no actual statements.

20 years agoAdd simple regression test to detect leakage of file descriptors when
Robert Watson [Sat, 17 Jul 2004 16:56:46 +0000 (16:56 +0000)]
Add simple regression test to detect leakage of file descriptors when
accept() returns EAGAIN on a non-blocking listen socket.  This is the
tool I used to check that such a bug was resolved when merging accept()
locking.

20 years agoDocument the SUSER_RUID flag.
Colin Percival [Sat, 17 Jul 2004 15:21:34 +0000 (15:21 +0000)]
Document the SUSER_RUID flag.

Reminded by: pjd

20 years agoAdd a BUGS entry pointing out that the ASU flag isn't being set. This was
Colin Percival [Sat, 17 Jul 2004 15:14:43 +0000 (15:14 +0000)]
Add a BUGS entry pointing out that the ASU flag isn't being set.  This was
disabled by rwatson in revision 1.60 of sys/kern/kern_prot.c in August 2000.

20 years agoFix minor namespace pollution: The prototypes for f{dim,max,min}(),
Stefan Farfeleder [Sat, 17 Jul 2004 15:03:52 +0000 (15:03 +0000)]
Fix minor namespace pollution:  The prototypes for f{dim,max,min}(),
nearbyint(), round() and trunc() shouldn't be visible when compiling with
-D_XOPEN_SOURCE=500.

20 years agoDont set "address setup timing" on newer VIA chips.
Søren Schmidt [Sat, 17 Jul 2004 14:48:46 +0000 (14:48 +0000)]
Dont set "address setup timing" on newer VIA chips.

closes PR: 69180

20 years agoUse correct location for nsmb.conf file.
Boris Popov [Sat, 17 Jul 2004 14:38:42 +0000 (14:38 +0000)]
Use correct location for nsmb.conf file.

PR: misc/45273

20 years agoFix typo: carat -> caret.
Tim J. Robbins [Sat, 17 Jul 2004 12:27:25 +0000 (12:27 +0000)]
Fix typo: carat -> caret.

20 years agoRename the sound device drivers.
Yoshihiro Takahashi [Sat, 17 Jul 2004 10:22:42 +0000 (10:22 +0000)]
Rename the sound device drivers.

20 years agoMerged from the following changes.
Yoshihiro Takahashi [Sat, 17 Jul 2004 10:07:19 +0000 (10:07 +0000)]
Merged from the following changes.
  - sys/dev/fdc/fdc.c revision 1.281
  - sys/dev/fdc/fdcvar.h revision 1.3
  - sys/dev/fdc/fdc_isa.c revision 1.7

20 years agoCorrect typo.
Yoshihiro Takahashi [Sat, 17 Jul 2004 10:05:56 +0000 (10:05 +0000)]
Correct typo.

20 years agoRemove duplicate include.
Yoshihiro Takahashi [Sat, 17 Jul 2004 10:05:32 +0000 (10:05 +0000)]
Remove duplicate include.

20 years agoAdd some PCI IDs for OHCI chips.
Hidetoshi Shimokawa [Sat, 17 Jul 2004 09:41:20 +0000 (09:41 +0000)]
Add some PCI IDs for OHCI chips.

Obtained from: DragonFly BSD

20 years agoResurrect kld support. Support ADDR16_HA/LA relocations, and sync
Peter Grehan [Sat, 17 Jul 2004 07:26:32 +0000 (07:26 +0000)]
Resurrect kld support. Support ADDR16_HA/LA relocations, and sync
the icache on module load. Requires "-mlongcall" support, in gcc >= 3.3
but needs a bugfix to support gcc arith builtins.

20 years agoMake bsdtar the default system tar. This makes /usr/bin/tar a symlink
Tim Kientzle [Sat, 17 Jul 2004 06:03:47 +0000 (06:03 +0000)]
Make bsdtar the default system tar.  This makes /usr/bin/tar a symlink
pointing to /usr/bin/bsdtar by default.  To make it point to /usr/bin/gtar,
you can define WITH_GTAR.

20 years agoDefine semantic of M_SKIP_FIREWALL more precisely, i.e. also pass associated
Max Laier [Sat, 17 Jul 2004 05:10:06 +0000 (05:10 +0000)]
Define semantic of M_SKIP_FIREWALL more precisely, i.e. also pass associated
icmp_error() packets. While here retire PACKET_TAG_PF_GENERATED (which
served the same purpose) and use M_SKIP_FIREWALL in pf as well. This should
speed up things a bit as we get rid of the tag allocations.

Discussed with: juli

20 years agoValidate -o usage. Strictly speaking, -o only makes sense with -x,
Tim Kientzle [Sat, 17 Jul 2004 04:17:50 +0000 (04:17 +0000)]
Validate -o usage.  Strictly speaking, -o only makes sense with -x,
of course, but I make an effort to accomodate GNU tar scripts that
use -o with -c (with a meaning that totally contradicts SUSv2) by
only issuing a benign warning message in that case.

20 years agoMention in the BUGS section that write and wall bogusly use the sender's
Tim J. Robbins [Sat, 17 Jul 2004 04:15:27 +0000 (04:15 +0000)]
Mention in the BUGS section that write and wall bogusly use the sender's
LC_CTYPE setting instead of the receiver's when determining which
characters are printable.

20 years agoDocument incorrect handling of multibyte characters.
Tim J. Robbins [Sat, 17 Jul 2004 04:04:30 +0000 (04:04 +0000)]
Document incorrect handling of multibyte characters.

20 years agoMFamd64 revision 1.478
Alan Cox [Sat, 17 Jul 2004 04:01:29 +0000 (04:01 +0000)]
MFamd64 revision 1.478
 Simplify pmap_remove_pages(), eliminating unnecessary indirection.

20 years agoDocument the limitation that multibyte characters cannot be used as
Tim J. Robbins [Sat, 17 Jul 2004 03:37:31 +0000 (03:37 +0000)]
Document the limitation that multibyte characters cannot be used as
delimiters with the 's' and 'y' commands.

20 years agoMake M_SKIP_FIREWALL a global (and semantic) flag, preventing anything from
Juli Mallett [Sat, 17 Jul 2004 02:40:13 +0000 (02:40 +0000)]
Make M_SKIP_FIREWALL a global (and semantic) flag, preventing anything from
using M_PROTO6 and possibly shooting someone's foot, as well as allowing the
firewall to be used in multiple passes, or with a packet classifier frontend,
that may need to explicitly allow a certain packet.  Presently this is handled
in the ipfw_chk code as before, though I have run with it moved to upper
layers, and possibly it should apply to ipfilter and pf as well, though this
has not been investigated.

Discussed with: luigi, rwatson

20 years agoSupport a ``set rad_alive N'' command to enable periodic RADIUS accounting
Brian Somers [Sat, 17 Jul 2004 01:07:53 +0000 (01:07 +0000)]
Support a ``set rad_alive N'' command to enable periodic RADIUS accounting
information being sent to the RADIUS server.

Logging of RADIUS accounting information moves to a ``set log [+-]radius''
level, along with the RADIUS alive info, and the version number is bumped
to 3.2 to reflect this.

Mostly submitted by: alx@sm.ukrtel.net (back in January)
MFC after: 3 weeks

20 years agoGive the most awesome example of how to parse the output of date
Alfred Perlstein [Sat, 17 Jul 2004 00:26:31 +0000 (00:26 +0000)]
Give the most awesome example of how to parse the output of date
back into epoch time.  Everytime I'm asked to do this by someone I
have to spend about ten minutes recreating the same command line.
So record it under examples.

20 years agoBe consistant with probe
Warner Losh [Fri, 16 Jul 2004 23:07:38 +0000 (23:07 +0000)]
Be consistant with probe