]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoRemove the tlb argument to tlb_page_demap (itlb or dtlb), in order to better
jake [Fri, 26 Jul 2002 15:54:04 +0000 (15:54 +0000)]
Remove the tlb argument to tlb_page_demap (itlb or dtlb), in order to better
match the pmap_invalidate api.

22 years agoSort command-line options according to the mostly used style:
yar [Fri, 26 Jul 2002 15:46:08 +0000 (15:46 +0000)]
Sort command-line options according to the mostly used style:
alphabetical order, lower and upper case of the same letter
stick together, lower case first.

MFC after: 2 weeks

22 years agoFreeBSD doesn't use the host RSA key by default.
fanf [Fri, 26 Jul 2002 15:16:56 +0000 (15:16 +0000)]
FreeBSD doesn't use the host RSA key by default.

Reviewed by: des

22 years agoDon't dump all information about apm when only asked to enable/disable apm
sobomax [Fri, 26 Jul 2002 13:43:47 +0000 (13:43 +0000)]
Don't dump all information about apm when only asked to enable/disable apm
functions (-e and -h switches). This should make apm(8) self-consistent, as
for example -d enable|disable doesn't dump such info.

MFC after: 5 days

22 years agoFix -Werror build for sparc64: Use the appropriate conversion
robert [Fri, 26 Jul 2002 12:57:57 +0000 (12:57 +0000)]
Fix -Werror build for sparc64: Use the appropriate conversion
specifier for an 'unsigned int' argument.

22 years ago- now, IPV6CTL_V6ONLY is on by default.
ume [Fri, 26 Jul 2002 11:42:46 +0000 (11:42 +0000)]
- now, IPV6CTL_V6ONLY is on by default.
- .Nx -> .Fx

22 years agoBuild FDP ports with a clean runtime environment; gmake(1) somehow
ru [Fri, 26 Jul 2002 11:27:11 +0000 (11:27 +0000)]
Build FDP ports with a clean runtime environment; gmake(1) somehow
uses ${TARGET_ARCH}, in a way that is incompatible with our usage.

Submitted by: jhay, ru

22 years agoMake building docs possible on systems where sed(1) can't do in-place editing.
ru [Fri, 26 Jul 2002 11:22:46 +0000 (11:22 +0000)]
Make building docs possible on systems where sed(1) can't do in-place editing.

Obtained from: ports/Mk/bsd.port.mk

22 years agosync types with headers.
ume [Fri, 26 Jul 2002 08:20:34 +0000 (08:20 +0000)]
sync types with headers.

22 years agonote that we intentionally violate RFC2553 for security reasons.
ume [Fri, 26 Jul 2002 08:11:51 +0000 (08:11 +0000)]
note that we intentionally violate RFC2553 for security reasons.

Adviced by: itojun
Obtained from: NetBSD

22 years agoMFp4:
imp [Fri, 26 Jul 2002 08:07:55 +0000 (08:07 +0000)]
MFp4:
o reduce the extra-long ID names.
o TI-1510, 1520 and 4510 support.
o MFUNC is the name of the register on TI 1200 and newer chips (except
  125x and 1450).  Initialize it in the func routine, but only
  if NO_MFUNC isn't set.
o better comments about above workaround
o register definitions for MFUNC.
o move zoom video disable to a better place.

22 years agoMFp4:
imp [Fri, 26 Jul 2002 08:05:25 +0000 (08:05 +0000)]
MFp4:
o Rename the insanely long PCIC bridge ids.
o Add my copyright to pccbb.c
o Add support for the TI-1510, TI-1520 and TI-4510 series of upcoming
  bridges.
o Init MFUNC if it is zero and the TI part has a MFUNC register
  at offset 0x8c (1030, 1130 and 1131 don't have anything there, the
  1250,1251,1251B and 1450 have a different thing there.  The rest
  have it.  TI is likely to only do MFUNC from now on.  The IRQMUX
  in the 1250 series of chips needs no tweaks.
o Adjust to new exca interface.
o Add comments about TI chips that I learned in talking to an
  engineer at TI.
o Add register definitions for MFUNC.
o Create CB_TI125X chipset type.

22 years agoMFp4:
imp [Fri, 26 Jul 2002 08:01:08 +0000 (08:01 +0000)]
MFp4:
o Protect .h against multiple includes.
o eliminate the pointers to the read/write routines.  The
  bus_space_read routines can cope since we have the offset
  field.
o Print a warning if the requested map address is > 16M and
  your chipset doesn't support the extended ExCA registers.

22 years agoMake PCI_ENABLE_IO_MODES a sysctl hw.pci.enable_io_modes. It can also
imp [Fri, 26 Jul 2002 07:58:16 +0000 (07:58 +0000)]
Make PCI_ENABLE_IO_MODES a sysctl hw.pci.enable_io_modes.  It can also
be set at boot time.  It defaults to 1 now since it can be set in the
boot loader.  If this proves unwise, we can reset it to defaulting to 0.

22 years agoRevert part of revision 1.10, as it broke portmap lookups for IPv4
iedowse [Fri, 26 Jul 2002 07:52:21 +0000 (07:52 +0000)]
Revert part of revision 1.10, as it broke portmap lookups for IPv4
TCP clients. The problem was that a struct netconfig returned by
getnetconfigent() was being treated as a handle for __rpc_getconf(),
which certainly isn't right.

The tirpc-99 code uses __rpc_setconf("udp")/__rpc_getconf() to find
the IPv4 udp netconfig, but our implementation of these functions
seem happy to return IPv6 entries, so we can't use them. By reverting
to the old version, we are hard-coding the name of the udp4 netid.

Tracked down by: Bakul Shah <bakul@bitblocks.com>

22 years agoAdd a generic NANOSPEED wi card.
imp [Fri, 26 Jul 2002 06:12:14 +0000 (06:12 +0000)]
Add a generic NANOSPEED wi card.

Submitted by: matt peterson

While I'm here, kill the flags 0x10000 on all the prism based cards.
Both stable and current figure this out on their own and we've had at
least one releases where this is the case.

22 years agoUse sigaction(2) instead of signal(3) to avoid the signal handler being
tjr [Fri, 26 Jul 2002 05:25:12 +0000 (05:25 +0000)]
Use sigaction(2) instead of signal(3) to avoid the signal handler being
re-entered.

22 years agogethints.awk is a machine-specific 4.x->5.x transition aid. We cannot
peter [Fri, 26 Jul 2002 03:52:30 +0000 (03:52 +0000)]
gethints.awk is a machine-specific 4.x->5.x transition aid.  We cannot
use a common one because pc98 has got very different values.  This only
needs to exist on platforms that existed under 4.x.

22 years agoRecognize the Altima AC9100 chip, which is used in current versions
jdp [Fri, 26 Jul 2002 03:47:08 +0000 (03:47 +0000)]
Recognize the Altima AC9100 chip, which is used in current versions
of the Netgear GA302-T.  I changed the symbolic names in the
submitter's patch to reflect the part number of the chip instead
of the board.

PR: kern/38988
Submitted by: Brad Chapman <chapmanb@arches.uga.edu>
MFC after: 2 days

22 years agoProblems addressed:
ache [Fri, 26 Jul 2002 02:20:00 +0000 (02:20 +0000)]
Problems addressed:

1) options.print_lastlog was not honored.
2) "Last login: ..." was printed twice.
3) "copyright" was not printed
4) No newline was before motd.

Reviewed by: maintainer's silence in 2 weeks (with my constant reminders)

22 years agoDefine all paths in pathnames.h
johan [Thu, 25 Jul 2002 23:04:31 +0000 (23:04 +0000)]
Define all paths in pathnames.h

Approved by: joerg, sheldonh (mentor)

22 years agoFrequency default should be '25' for 25MHz, not 25000000.
mjacob [Thu, 25 Jul 2002 20:49:30 +0000 (20:49 +0000)]
Frequency default should be '25' for 25MHz, not 25000000.

Through the PITA of endiannness, clock has to be MHz freq << 8.

Don't trust NVRAM on SBus cards.

Set a default initiator ID sensibly.

SBus/ISP now working, what with the change to sbus.c earlier today.

22 years agoDon't test against default_iid being zero as a test for whether we
mjacob [Thu, 25 Jul 2002 20:47:40 +0000 (20:47 +0000)]
Don't test against default_iid being zero as a test for whether we
set something- iid 0 is valid.

22 years agocorrect comment for setsockopt arg size.
ume [Thu, 25 Jul 2002 20:40:09 +0000 (20:40 +0000)]
correct comment for setsockopt arg size.

Reported by: Martin Laabs <martin@martin.erfurt.thur.de>
Obtained from: KAME
MFC after: 1 week

22 years agoSet interrupt clear pointer for SBus slots to point to correct spot.
mjacob [Thu, 25 Jul 2002 20:14:59 +0000 (20:14 +0000)]
Set interrupt clear pointer for SBus slots to point to correct spot.

22 years ago o Remove a vm_page_deactivate() that is immediately followed by a
alc [Thu, 25 Jul 2002 19:09:07 +0000 (19:09 +0000)]
 o Remove a vm_page_deactivate() that is immediately followed by a
   vm_page_rename() from vm_object_backing_scan().  vm_page_rename()
   also performs vm_page_deactivate() on pages in the cache queues,
   making the removed vm_page_deactivate() redundant.

22 years agomake setsockopt(IPV6_V6ONLY, 0) actuall work for tcp6.
ume [Thu, 25 Jul 2002 18:10:04 +0000 (18:10 +0000)]
make setsockopt(IPV6_V6ONLY, 0) actuall work for tcp6.

MFC after: 1 week

22 years agoUse <arpa/ftp.h> stuff cleanly, without introducing
yar [Thu, 25 Jul 2002 17:41:47 +0000 (17:41 +0000)]
Use <arpa/ftp.h> stuff cleanly, without introducing
non-portable constants (in this case, hidden as offsets
to the "?AEIL" string.)

MFC after: 1 week

22 years agocleanup usage of ip6_mapped_addr_on and ip6_v6only. now,
ume [Thu, 25 Jul 2002 17:40:45 +0000 (17:40 +0000)]
cleanup usage of ip6_mapped_addr_on and ip6_v6only. now,
ip6_mapped_addr_on is unified into ip6_v6only.

MFC after: 1 week

22 years agoMake sure that if are in fact using 'full SMP', make the interrupt
mjacob [Thu, 25 Jul 2002 16:02:09 +0000 (16:02 +0000)]
Make sure that if are in fact using 'full SMP', make the interrupt
flags include INTR_MPSAFE. Put the flags in a common place so that
both isp_sbus && isp_pci DTRT.

In isp_mbxdma setup, drop any locks prior to calling things like
bus_dmatag_create. This gets rid of these obnoxious WITNESS messages
about 'sleeping with locks held' blah blah blah blah blah.

22 years agoPut MODULE_VERSION back here so that ispfw is happy.
mjacob [Thu, 25 Jul 2002 16:00:24 +0000 (16:00 +0000)]
Put MODULE_VERSION back here so that ispfw is happy.

22 years agoDocument the FreeBSD default for CheckHostIP, which was changed in
fanf [Thu, 25 Jul 2002 15:59:40 +0000 (15:59 +0000)]
Document the FreeBSD default for CheckHostIP, which was changed in
rev 1.2 of readconf.c.

Approved by: des

22 years agoWhen parsing the program name from the incoming log message
robert [Thu, 25 Jul 2002 15:45:41 +0000 (15:45 +0000)]
When parsing the program name from the incoming log message
from a client, accept all printable characters as being part
of the program name, except ':' and '[', because each is a
possible delimiter.

22 years agoChange the default setting of an IPv4-mapped IPv6 address to off.
ume [Thu, 25 Jul 2002 15:44:01 +0000 (15:44 +0000)]
Change the default setting of an IPv4-mapped IPv6 address to off.

Requested by: many people

22 years agoBraino in the 1.672 commit: scripts/games-make.sh expects the
ru [Thu, 25 Jul 2002 14:42:08 +0000 (14:42 +0000)]
Braino in the 1.672 commit: scripts/games-make.sh expects the
"manpages" and "catpages" dists to be already built.

22 years agoRegen.
takawata [Thu, 25 Jul 2002 14:16:47 +0000 (14:16 +0000)]
Regen.

22 years agoMFNetBSD: FTDI USB-serial converter chips description.
takawata [Thu, 25 Jul 2002 14:15:49 +0000 (14:15 +0000)]
MFNetBSD: FTDI USB-serial converter chips description.

22 years agoMoved some more NIC drivers to the second floppy.
ru [Thu, 25 Jul 2002 14:04:38 +0000 (14:04 +0000)]
Moved some more NIC drivers to the second floppy.

22 years agoAdd a -P/-o physical option which behaves similarly to bash/ksh's options
tjr [Thu, 25 Jul 2002 10:57:39 +0000 (10:57 +0000)]
Add a -P/-o physical option which behaves similarly to bash/ksh's options
by the same name. This option makes the cd and pwd builtins behave physically
(as opposed to logically) by default.

Submitted by: fanf

22 years agoSet opterr to zero to avoid duplicate warnings from getopt(3) for unknown
tjr [Thu, 25 Jul 2002 10:47:38 +0000 (10:47 +0000)]
Set opterr to zero to avoid duplicate warnings from getopt(3) for unknown
options.

22 years agoWhen reading a program name from the syslog configuration file,
robert [Thu, 25 Jul 2002 09:56:37 +0000 (09:56 +0000)]
When reading a program name from the syslog configuration file,
do not stop copying it into a buffer when encountering a
non-alphanumerical character.  Only stop at unprintable characters.
This makes syslogd work correctly with executables like `interp.bin',
`httpd_old', etc.

PR: misc/40941
MFC after: 1 week

22 years agoUse PATH_MAX instead of a local guess at it, which happened to be incorrect.
tjr [Thu, 25 Jul 2002 09:56:08 +0000 (09:56 +0000)]
Use PATH_MAX instead of a local guess at it, which happened to be incorrect.

Suggested by: fanf

22 years agopwdcmd()'s argc and argv arguments are no longer unused, remove __unused.
tjr [Thu, 25 Jul 2002 09:46:31 +0000 (09:46 +0000)]
pwdcmd()'s argc and argv arguments are no longer unused, remove __unused.

Pointed out by: fanf

22 years agoAdd SEE ALSO references to papers handling RED.
sheldonh [Thu, 25 Jul 2002 09:37:11 +0000 (09:37 +0000)]
Add SEE ALSO references to papers handling RED.

22 years agosysctl(NET_RT_IFLIST) up to several (currently 5) times.
ume [Thu, 25 Jul 2002 08:08:30 +0000 (08:08 +0000)]
sysctl(NET_RT_IFLIST) up to several (currently 5) times.
This will make the behavior robuster if many addresses are added
after the size estimation of storage at the first sysctl.

Reviewed by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
MFC after: 1 week

22 years agoBah, I forgot to commit this part of the nfssvc() cleanup. Sorry folks.
peter [Thu, 25 Jul 2002 06:18:22 +0000 (06:18 +0000)]
Bah, I forgot to commit this part of the nfssvc() cleanup. Sorry folks.

22 years agoGive an example showing how to change the mesg status of terminals
tjr [Thu, 25 Jul 2002 05:16:49 +0000 (05:16 +0000)]
Give an example showing how to change the mesg status of terminals
other than the default one.

PR: 13073

22 years agoFix some of the places where sound(4) can sleep with a lock held. (Help
green [Thu, 25 Jul 2002 04:49:45 +0000 (04:49 +0000)]
Fix some of the places where sound(4) can sleep with a lock held.  (Help
courtesy of fenner).

22 years agoget suspension counting right.
julian [Thu, 25 Jul 2002 03:21:35 +0000 (03:21 +0000)]
get suspension counting right.
fix an error message

Submitted by: David Xu <bsddiy@yahoo.com>

22 years agoMFC noted: acct(2) appends to file.
johan [Thu, 25 Jul 2002 02:18:41 +0000 (02:18 +0000)]
MFC noted: acct(2) appends to file.

New release notes: cp(1) -n, biff(1)/mesg(1) redirect stdin to affect
   another tty.

Reviewed by: bmah

22 years agoChange 'int pid' to 'pid_t pid'
jmallett [Thu, 25 Jul 2002 01:48:19 +0000 (01:48 +0000)]
Change 'int pid' to 'pid_t pid'

Submitted by: Bruce "Allah" Dang <bruce@research.teamxor.org>

22 years agoClarify the sizeof(var) rule. This is the result of the consensus in
imp [Thu, 25 Jul 2002 00:30:24 +0000 (00:30 +0000)]
Clarify the sizeof(var) rule.  This is the result of the consensus in
arch@ between myself, bde and markm.  I kept the parts that all of us
agreed to, and omitted some more extensive text that I'd originally
wanted.

22 years agofix some style problems and remove a mis-merged assert.
julian [Thu, 25 Jul 2002 00:27:39 +0000 (00:27 +0000)]
fix some style problems and remove a mis-merged assert.

22 years agoslight stylisations to take into account recent code changes.
julian [Wed, 24 Jul 2002 23:59:15 +0000 (23:59 +0000)]
slight stylisations to take into account recent code changes.

22 years agoAdd some locking asserts and some comments
julian [Wed, 24 Jul 2002 23:21:05 +0000 (23:21 +0000)]
Add some locking asserts and some comments

22 years agoFix a typo
julian [Wed, 24 Jul 2002 23:18:15 +0000 (23:18 +0000)]
Fix a typo
Cleanup a define
Correct locking notes (a bit)
Add a definition and a field for future work on thread suspension.

22 years agoOops, another unused arg to nfssvc_nfsd(). *blush*
peter [Wed, 24 Jul 2002 23:10:34 +0000 (23:10 +0000)]
Oops, another unused arg to nfssvc_nfsd().  *blush*

Submitted by: jake

22 years agoInline ${_cxx_consumers}.
ru [Wed, 24 Jul 2002 23:08:57 +0000 (23:08 +0000)]
Inline ${_cxx_consumers}.

22 years agoWe're done with 1.287 and 1.288 now.
peter [Wed, 24 Jul 2002 22:44:19 +0000 (22:44 +0000)]
We're done with 1.287 and 1.288 now.

Submitted by: ru

22 years agoFully exterminate nfsd_srvargs and nfsd_cargs. They were either unused
peter [Wed, 24 Jul 2002 22:27:35 +0000 (22:27 +0000)]
Fully exterminate nfsd_srvargs and nfsd_cargs.  They were either unused
or giant NOP's.  There was a credential in srvargs that was giving
rwatson some heartburn. :-)

22 years agoRemove WARNS and WFORMAT overrides.
mp [Wed, 24 Jul 2002 22:26:44 +0000 (22:26 +0000)]
Remove WARNS and WFORMAT overrides.

22 years agoIf NO_MAILWRAPPER is set, and sendmail is still enabled, then install
peter [Wed, 24 Jul 2002 22:17:22 +0000 (22:17 +0000)]
If NO_MAILWRAPPER is set, and sendmail is still enabled, then install
a direct symlink to sendmail.

22 years agoenable fdisk for ia64 as well as i386
peter [Wed, 24 Jul 2002 22:16:11 +0000 (22:16 +0000)]
enable fdisk for ia64 as well as i386

22 years agoOnly install the mbr code on i386.. not ia64. This changes it from
peter [Wed, 24 Jul 2002 22:15:51 +0000 (22:15 +0000)]
Only install the mbr code on i386.. not ia64.  This changes it from
#ifndef __alpha__ to #ifdef __i386__

22 years agoTurn nfsiod back on. It is basically now just a sysctl wrapper that also
peter [Wed, 24 Jul 2002 22:14:27 +0000 (22:14 +0000)]
Turn nfsiod back on.  It is basically now just a sysctl wrapper that also
arranges a kldload of the nfs client file system code if necessary.

22 years agoWARNS clean
peter [Wed, 24 Jul 2002 22:13:08 +0000 (22:13 +0000)]
WARNS clean

22 years agoFake a resume method for this chip via calling detach/attach. This lets
ambrisko [Wed, 24 Jul 2002 21:27:22 +0000 (21:27 +0000)]
Fake a resume method for this chip via calling detach/attach.  This lets
ThinkPads using this chip to have sound after a suspend/resume sequence
without resorting to kldunload/kldload.

MFC after: 1 week

22 years agoCopy the right dhclient-script(8).
ru [Wed, 24 Jul 2002 20:37:21 +0000 (20:37 +0000)]
Copy the right dhclient-script(8).

22 years agoWhen single threading a multithreaded program, awaken the
julian [Wed, 24 Jul 2002 19:50:08 +0000 (19:50 +0000)]
When single threading a multithreaded program, awaken the
'single threading thread' when the last other thread suspends.
I had this code in there before but it seems to have been
accidentally deleted somewhere along the way.  This would only affect
multithreaded processes.

Reviewed by: David Xu <bsddiy@yahoo.com>

22 years agoFix a stupid bug where I wasn't initializing the names
mux [Wed, 24 Jul 2002 19:50:00 +0000 (19:50 +0000)]
Fix a stupid bug where I wasn't initializing the names
of 0-length mount options.

22 years ago o Merge vm_fault_wire() and vm_fault_user_wire() by adding a new parameter,
alc [Wed, 24 Jul 2002 19:47:56 +0000 (19:47 +0000)]
 o Merge vm_fault_wire() and vm_fault_user_wire() by adding a new parameter,
   user_wire.

22 years agomake sure to set/unset INP_IPV4 according to a value
ume [Wed, 24 Jul 2002 19:19:53 +0000 (19:19 +0000)]
make sure to set/unset INP_IPV4 according to a value
of IN6P_IPV6_V6ONLY

Reviewed by: Keiichi SHIMA <keiichi@iij.ad.jp>

22 years ago- ntohs() returns unsigned value.
ume [Wed, 24 Jul 2002 18:58:32 +0000 (18:58 +0000)]
- ntohs() returns unsigned value.
- use strlcpy.
- snprintf can return negative value, so cope with it.
- tweak interface index on interface locals (ff01::/16).
- removed unused macros.
- removed a macro that uses only once (in a trivial context).
- explicitly say goodbye to ENI_xxx.
- constify struct afd.

Obtained from: KAME
MFC after: 1 week

22 years agostyle(9): - Put a space after the 'return' keyword.
robert [Wed, 24 Jul 2002 18:54:59 +0000 (18:54 +0000)]
style(9): - Put a space after the 'return' keyword.
          - Wrap lines longer than 80 characters.

22 years agoUse an ANSI-C function definition rather than a
robert [Wed, 24 Jul 2002 18:39:51 +0000 (18:39 +0000)]
Use an ANSI-C function definition rather than a
K&R one to avoid a warning.

22 years ago - Add a COMPATIBILITY section explaining that the default
robert [Wed, 24 Jul 2002 18:37:22 +0000 (18:37 +0000)]
 - Add a COMPATIBILITY section explaining that the default
   behaviour of obtaining the affected terminal has changed.
 - Refer to the user's terminal instead of the current
   terminal session.
 - Tell the reader what the utility does when it is invoked
   without arguments.

Submitted by: johan

22 years agoDocument upgrade procedure.
mp [Wed, 24 Jul 2002 16:42:58 +0000 (16:42 +0000)]
Document upgrade procedure.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r100616,
mp [Wed, 24 Jul 2002 16:23:10 +0000 (16:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r100616,
which included commits to RCS files with non-trunk default branches.

22 years agoImport of tcsh-6.12.00
mp [Wed, 24 Jul 2002 16:23:10 +0000 (16:23 +0000)]
Import of tcsh-6.12.00

22 years agoRe-use passive data ports with the SO_REUSEADDR
yar [Wed, 24 Jul 2002 16:11:34 +0000 (16:11 +0000)]
Re-use passive data ports with the SO_REUSEADDR
socket option to avoid exausting the passive port
space by TIME_WAIT'ing connections.

PR: bin/36955
Submitted by: Maxim Konovalov <maxim@FreeBSD.org>
MFC after: 2 weeks

22 years agoAllow selection of the affected terminal using redirection
robert [Wed, 24 Jul 2002 15:48:17 +0000 (15:48 +0000)]
Allow selection of the affected terminal using redirection
of standard input or standard output, like mesg(1) does.

Suggested by: sheldonh

22 years agoUnder #ifdef DIAGNOSTIC, NULL out componentname pointers if we free the
rwatson [Wed, 24 Jul 2002 15:42:22 +0000 (15:42 +0000)]
Under #ifdef DIAGNOSTIC, NULL out componentname pointers if we free the
pnbuf to increase the chances of detecting use of a free'd name buffer
if SAVENAME or SAVESTART wasn't passed in.  Curiously, running with these
changes doesn't panic the kernel, and should.

22 years agoRemove the outdated casts to "char *" from the setsockopt(2),
yar [Wed, 24 Jul 2002 15:30:53 +0000 (15:30 +0000)]
Remove the outdated casts to "char *" from the setsockopt(2),
write(2), and getipnodebyaddr(3) calls.  Now all the above functions
accept "void *" in that arguments and have prototypes.  Thus, the
casts are useless under the normal circumstances (and would be harmful
if the functions had no prototypes.)

MFC after: 2 weeks

22 years agoMove m_freem() from uipc_mbuf.c to subr_mbuf.c so it can take advantage
bmilekic [Wed, 24 Jul 2002 15:11:23 +0000 (15:11 +0000)]
Move m_freem() from uipc_mbuf.c to subr_mbuf.c so it can take advantage
of the inlines, like its cousin, m_free().  Also, make a small (first
step?) optimisation of m_free() to use the MBP_PERSIST{,ENT} interface
to hold the lock across frees when possible.  The thing is that right
now, we can only do this easily for at most across one mbuf + one
cluster free, as the comment mentions (it also explains why).  Anyway,
some basic tests revealed a 5-10% overall improvement.  Some of the
results can be found here:
http://people.freebsd.org/~bmilekic/code/measure.txt

22 years agoMove whereis(1) relnote to 'userland changes' section.
johan [Wed, 24 Jul 2002 14:51:24 +0000 (14:51 +0000)]
Move whereis(1) relnote to 'userland changes' section.

Approved by: bmah, sheldonh (mentor)

22 years agoClean up the syslog(3) messages on the setsockopt(2) errors:
yar [Wed, 24 Jul 2002 14:50:17 +0000 (14:50 +0000)]
Clean up the syslog(3) messages on the setsockopt(2) errors:

o Always check a setsockopt(2) return value
o Use a consistent message format
o Don't abort if the failed setsockopt(2) was actually not vital
o Use LOG_WARNING, not LOG_ERR, in non-fatal cases

MFC after: 1 week

22 years agoTeach whereis(1) about games.
johan [Wed, 24 Jul 2002 14:35:29 +0000 (14:35 +0000)]
Teach whereis(1) about games.

Approved by: joerg, sheldonh (mentor)

22 years agoStick a dark comment in about the fact that the NFS server code allocates
rwatson [Wed, 24 Jul 2002 14:24:16 +0000 (14:24 +0000)]
Stick a dark comment in about the fact that the NFS server code allocates
a ucred by itself as part of an nfs descriptor, then bzero's the ucred,
fails to initialize the mutex, etc.  This is very bad, but I don't have
time to fix it right now.  nfsd should instead hold a cred pointer,
and the credential should be properly initialized, probably from a
descendent of a kernel process credential.

22 years agoCatch up to rev 1.87 of sys/sys/socketvar.h (sb_cc changed from u_long
mike [Wed, 24 Jul 2002 14:21:41 +0000 (14:21 +0000)]
Catch up to rev 1.87 of sys/sys/socketvar.h (sb_cc changed from u_long
to u_int).

Noticed by: sparc64 tinderbox

22 years agoMove sio's ebus attachment to the MI files section so it is compiled in
jhb [Wed, 24 Jul 2002 12:43:27 +0000 (12:43 +0000)]
Move sio's ebus attachment to the MI files section so it is compiled in
for any machines that use ebus.

22 years agoMove sio_isa.c back to MD files files due to PC98 brain damage.
jhb [Wed, 24 Jul 2002 12:35:52 +0000 (12:35 +0000)]
Move sio_isa.c back to MD files files due to PC98 brain damage.

22 years agoMFi386: revision 1.407 (move the em driver entry to MI file)
nyan [Wed, 24 Jul 2002 12:33:39 +0000 (12:33 +0000)]
MFi386: revision 1.407 (move the em driver entry to MI file)

22 years agoRemove the word IPSec to respect RFCs (for example
blackend [Wed, 24 Jul 2002 10:24:52 +0000 (10:24 +0000)]
Remove the word IPSec to respect RFCs (for example
http://www.ietf.org/rfc/rfc2401.txt), IPsec is the right word and
already in the dictionary.

PR: in part docs/38668
Reviewed by: murray
MFC after: 10 days

22 years agoWhen suspending a thread, update the appropriate (sic) statistic.
julian [Wed, 24 Jul 2002 07:29:16 +0000 (07:29 +0000)]
When suspending a thread, update the appropriate (sic) statistic.

22 years agorevert some of the handling of STOP signals in
julian [Wed, 24 Jul 2002 07:23:41 +0000 (07:23 +0000)]
revert some of the handling of STOP signals in
issignal(). Let thread_suspend_check() actually do the suspension
at the user boundary.

Submitted by: David Xu <bsddiy@yahoo.com>

22 years agoWiden struct sockbuf's sb_timeo member to int from short. With
jdp [Wed, 24 Jul 2002 03:02:43 +0000 (03:02 +0000)]
Widen struct sockbuf's sb_timeo member to int from short.  With
non-default but reasonable values of hz this member overflowed,
breaking NFS over UDP.

Also, as long as I'm plowing up struct sockbuf ... Change certain
members from u_long/long to u_int/int in order to reduce wasted
space on 64-bit machines.  This change was requested by Andrew
Gallatin.

Netstat and systat need to be rebuilt.  I am incrementing
__FreeBSD_version in case any ports need to change.

22 years agoOnly log things net.inet.ip.fw.verbose is set
luigi [Wed, 24 Jul 2002 02:41:19 +0000 (02:41 +0000)]
Only log things net.inet.ip.fw.verbose is set

22 years agoAvoid calling el_resize() from a signal handler, even though libedit
tjr [Wed, 24 Jul 2002 02:06:07 +0000 (02:06 +0000)]
Avoid calling el_resize() from a signal handler, even though libedit
itself does that if you set EL_SIGNAL. Instead, set a flag and check it
before calling el_gets(). This is safer, but slower to respond to changes.

Pointed out by: mp

22 years agoFix warning.
jake [Wed, 24 Jul 2002 01:09:38 +0000 (01:09 +0000)]
Fix warning.

22 years agoAttempt to clarify comment in selrecord.
alfred [Wed, 24 Jul 2002 00:29:22 +0000 (00:29 +0000)]
Attempt to clarify comment in selrecord.