]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoProtect against negative numbers as well
Alfred Perlstein [Mon, 26 Feb 2001 09:52:43 +0000 (09:52 +0000)]
Protect against negative numbers as well

23 years agoDocument the EINTR error.
Jason Evans [Mon, 26 Feb 2001 09:38:01 +0000 (09:38 +0000)]
Document the EINTR error.

23 years agoAllow a changed MAC address to show up in ifconfig by changing it
Julian Elischer [Mon, 26 Feb 2001 09:31:54 +0000 (09:31 +0000)]
Allow a changed MAC address to show up in ifconfig by changing it
in the ifaddr list as well. Also change an error return in the base system.

23 years agoDo not output extra space after .Ef call.
Ruslan Ermilov [Mon, 26 Feb 2001 09:24:14 +0000 (09:24 +0000)]
Do not output extra space after .Ef call.

Ported from: mdocNG

23 years agomdoc(7) police: use .Vt macro.
Ruslan Ermilov [Mon, 26 Feb 2001 09:15:17 +0000 (09:15 +0000)]
mdoc(7) police: use .Vt macro.

23 years agofix typo in comment
Alfred Perlstein [Mon, 26 Feb 2001 09:13:42 +0000 (09:13 +0000)]
fix typo in comment

23 years agoSantize a size variable passed to kernel malloc.
Alfred Perlstein [Mon, 26 Feb 2001 09:07:55 +0000 (09:07 +0000)]
Santize a size variable passed to kernel malloc.

Since we know there's always an upper bound we force that bound,
otherwise users can cause a panic via malloc getting hit with a
odd (huge or negative) amount of memory to allocate.

Tested by: kris
Pointed out by: Andrey Valyaev <dron@infosec.ru>

23 years agoPrepare for mdocNG.
Ruslan Ermilov [Mon, 26 Feb 2001 09:05:48 +0000 (09:05 +0000)]
Prepare for mdocNG.

23 years agoBackout -a restriction hack.
Ruslan Ermilov [Mon, 26 Feb 2001 08:09:51 +0000 (08:09 +0000)]
Backout -a restriction hack.

Requested by: rwatson

23 years ago- Mutexify midi(4). The driver runs under the giant lock by default.
Seigo Tanimura [Mon, 26 Feb 2001 07:36:24 +0000 (07:36 +0000)]
- Mutexify midi(4). The driver runs under the giant lock by default.
If you ever want to run midi(4) out of the giant lock, uncomment
MIDI_OUTOFGIANT in midi.h. Confirmed to work for csamidi with WITNESS
and INVARIANTS.

- midi_info, midi_open and seq_info are now tailqs, allowing arbitrary
numbers of devices to be configured.

- Do not send an active sensing message to reset midi modules.

- Clone /dev/sequencer*. /dev/sequencer0 and /dev/sequencer are generated
upon initialization.

23 years agoUpdate for bc 1.06
Kris Kennaway [Mon, 26 Feb 2001 07:23:27 +0000 (07:23 +0000)]
Update for bc 1.06

23 years agoResolve conflicts
Kris Kennaway [Mon, 26 Feb 2001 07:17:03 +0000 (07:17 +0000)]
Resolve conflicts

23 years agoThis commit was generated by cvs2svn to compensate for changes in r73064,
Kris Kennaway [Mon, 26 Feb 2001 07:13:00 +0000 (07:13 +0000)]
This commit was generated by cvs2svn to compensate for changes in r73064,
which included commits to RCS files with non-trunk default branches.

23 years agoInitial import of bc 1.0.6
Kris Kennaway [Mon, 26 Feb 2001 07:13:00 +0000 (07:13 +0000)]
Initial import of bc 1.0.6

23 years agoDocument various changes to kq:
Jonathan Lemon [Mon, 26 Feb 2001 04:16:19 +0000 (04:16 +0000)]
Document various changes to kq:
    - new EV_SET macro,
    - NOTE_LOWAT option for low water marks on read/write filters,
    - NOTE_REVOKE for filesystem unmounting (and revoke() calls)
    - improved API for EVFILT_AIO

23 years agoMore IP option length validation.
Kris Kennaway [Mon, 26 Feb 2001 03:41:13 +0000 (03:41 +0000)]
More IP option length validation.
Includes the following revisions from KAME (two of these were actually
committed previously but the CVS revisions weren't documented):

1.40      kame/kame/sys/netinet6/ah_core.c (committed in previous rev)
1.41      kame/kame/sys/netinet6/ah_core.c
1.28      kame/kame/sys/netinet6/ah_output.c (committed in previous rev)
1.29      kame/kame/sys/netinet6/ah_output.c
1.30      kame/kame/sys/netinet6/ah_output.c
1.129     kame/kame/sys/netinet6/nd6.c
1.130     kame/kame/sys/netinet6/nd6.c
1.24      kame/kame/sys/netinet6/dest6.c
1.25      kame/kame/sys/netinet6/dest6.c

Obtained from: KAME

23 years agoReally set the flags for a private mutex (used by libc/libc_r).
Daniel Eischen [Mon, 26 Feb 2001 01:06:52 +0000 (01:06 +0000)]
Really set the flags for a private mutex (used by libc/libc_r).

23 years agoLimit threads clock resolution to no less than 1000usec (1000Hz).
Daniel Eischen [Mon, 26 Feb 2001 01:05:33 +0000 (01:05 +0000)]
Limit threads clock resolution to no less than 1000usec (1000Hz).

PR: 25300
Submitted by: Tom Pavel <pavel@alum.mit.edu> (in part)

23 years agoFix my ambiguous message about ECONNABORTED.
Jimmy Olgeni [Sun, 25 Feb 2001 23:56:41 +0000 (23:56 +0000)]
Fix my ambiguous message about ECONNABORTED.

Submitted by: Ian Dowse <iedowse@maths.tcd.ie>

23 years agoAdd the 'mly' device nodes.
Mike Smith [Sun, 25 Feb 2001 22:52:55 +0000 (22:52 +0000)]
Add the 'mly' device nodes.

23 years agoRemove the 'gdt' and 'gdtd' majors; the ICP driver is taking a
Mike Smith [Sun, 25 Feb 2001 22:51:36 +0000 (22:51 +0000)]
Remove the 'gdt' and 'gdtd' majors; the ICP driver is taking a
different direction.

Add 'mly' for the newer Mylex driver's control interface.

23 years agoMajor update and bugfix for the 'mly' driver.
Mike Smith [Sun, 25 Feb 2001 22:48:34 +0000 (22:48 +0000)]
Major update and bugfix for the 'mly' driver.

 - Convert to a more efficient queueing implementation.
 - Don't allocate command buffers on the fly; simply work from a
   static pool.
 - Add a control device interface, for later use.
 - Handle controller overload better as a consequence of the
   improved queue implementation.
 - Add support for the XPT_GET_TRAN_SETTINGS ccb, and correctly
   set the virtual SCSI channels up for multiple outstanding I/Os.
 - Update copyrights for 2001.
 - Some whitespace fixes to improve readability.

Due to a misunderstanding on my part, previous versions of the
driver were limited to a single outstanding I/O per virtual drive.
Needless to say, this update improves performance substantially.

23 years agoSpelling: Signalling -> Signaling.
Jimmy Olgeni [Sun, 25 Feb 2001 22:26:37 +0000 (22:26 +0000)]
Spelling: Signalling -> Signaling.
Removed whitespaces at end of lines.

23 years agoAdd ECONNABORTED to the ERRORS section.
Jimmy Olgeni [Sun, 25 Feb 2001 22:12:40 +0000 (22:12 +0000)]
Add ECONNABORTED to the ERRORS section.

23 years agoUpdate the list of OpenSSL manpages (now contains many more describing
Kris Kennaway [Sun, 25 Feb 2001 21:42:12 +0000 (21:42 +0000)]
Update the list of OpenSSL manpages (now contains many more describing
libssl, for example), and hide it behind a make.conf option,
WANT_OPENSSL_MANPAGES, instead of having it commented out.  We still can't
install these by default because of clobbering of a number of system
manpages with the same name, but they're there for people who want them.

23 years agoUse vsnprintf in logmsg() to avoid overflowing the array on the stack.
Gary Jennejohn [Sun, 25 Feb 2001 19:52:42 +0000 (19:52 +0000)]
Use vsnprintf in logmsg() to avoid overflowing the array on the stack.
The problem was noted with an older model 3Com 3C589 which seems
to return more than 256 bytes of data.

23 years agoRemove tcp_drop_all_states, which is unneeded after jlemon removed it
Jesper Skriver [Sun, 25 Feb 2001 17:20:19 +0000 (17:20 +0000)]
Remove tcp_drop_all_states, which is unneeded after jlemon removed it
from tcp_subr.c in rev 1.92

23 years agoslight cleanups during testing.
Julian Elischer [Sun, 25 Feb 2001 16:49:04 +0000 (16:49 +0000)]
slight cleanups during testing.

23 years ago Allow for easier configuration when using disklabel. A sample
John W. De Boskey [Sun, 25 Feb 2001 16:47:44 +0000 (16:47 +0000)]
   Allow for easier configuration when using disklabel. A sample
being:

#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   400M        0    4.2BSD     4096 16384    75     # (Cyl.    0 - 812*)
  b:     1G        *      swap
  c:      *        *    unused
  e: 204800        *    4.2BSD
  f:     5g        *    4.2BSD
  g:      *        *    4.2BSD

   These patches are the original work of Randell Jesup, and
I believe Matt Dillon, with additional work by Warner Losh.
Please let me know if I've left someone out.

   Incorporated into this is the fix for PR bin/22727.

   This patchset still has style issues and a possible problem on
large disks. However, it was a agreed to get these committed before
performing major surgery on them.

PR: bin/22727
Submitted by: Randell Jesup <rjesup@wgate.com>

23 years agoRemove brackets around variables in a function that used to be
Jake Burkholder [Sun, 25 Feb 2001 16:18:13 +0000 (16:18 +0000)]
Remove brackets around variables in a function that used to be
a macro.

23 years agoDo not delay a new ack if there already is a delayed ack pending on the
Jonathan Lemon [Sun, 25 Feb 2001 15:17:24 +0000 (15:17 +0000)]
Do not delay a new ack if there already is a delayed ack pending on the
connection, but send it immediately.  Prior to this change, it was possible
to delay a delayed-ack for multiple times, resulting in degraded TCP
behavior in certain corner cases.

23 years agoo Check the size of I/O window handed by parent bus.
Noriaki Mitsunaga [Sun, 25 Feb 2001 14:01:46 +0000 (14:01 +0000)]
o Check the size of I/O window handed by parent bus.

23 years agoo Check the size of I/O window handed by parent bus.
Noriaki Mitsunaga [Sun, 25 Feb 2001 14:01:05 +0000 (14:01 +0000)]
o Check the size of I/O window handed by parent bus.
o Check if it is in PIO_MODE when memory window is not handed.

23 years agoStop pac dereferencing a null pointer if accounting is not enabeled.
David Malone [Sun, 25 Feb 2001 13:50:29 +0000 (13:50 +0000)]
Stop pac dereferencing a null pointer if accounting is not enabeled.

PR: 24798 18191
Submitted by: Nick Hilliard <nick@netability.ie>
Reviewed by: gad

23 years agoForgot to remove unneeded "intcmp" function.
Poul-Henning Kamp [Sun, 25 Feb 2001 13:14:41 +0000 (13:14 +0000)]
Forgot to remove unneeded "intcmp" function.

23 years agoMake "md" and "mdctl" macroized parameters.
Poul-Henning Kamp [Sun, 25 Feb 2001 13:12:57 +0000 (13:12 +0000)]
Make "md" and "mdctl" macroized parameters.

Implement "-l" option to mdconfig which can list one or all md devices.

Submitted by:   Dima Dorfman <dima@unixfreak.org>

23 years agoo Support AUTO SENSE correctly.
Noriaki Mitsunaga [Sun, 25 Feb 2001 12:40:30 +0000 (12:40 +0000)]
o Support AUTO SENSE correctly.
o Offset and period in synch messages and width negotiation should be
  done for per target not per lun. Move these from *lun_info to
  *targ_info.
o Change in handling XPT_RESET_DEV and XPT_GET_TRAN_SETTINGS .
o Change CAM_* xpt_done return values.
o Busy loop did not timeout. Change this to timeout as original NetBSD/pc98.

Reviewed by: bsd-nomads ML

23 years agoFix references to Chapman & Zwicky and Cheswick & Bellowin.
Dag-Erling Smørgrav [Sun, 25 Feb 2001 11:44:51 +0000 (11:44 +0000)]
Fix references to Chapman & Zwicky and Cheswick & Bellowin.

PR: 24652
Submitted by: jjreynold@home.com

23 years agoSupported pcmcia modem card.
Yoshihiro Takahashi [Sun, 25 Feb 2001 08:55:07 +0000 (08:55 +0000)]
Supported pcmcia modem card.

Submitted by: MURAMATSU Atsushi <amura@ma3.seikyou.ne.jp>

23 years agoUpdate unused __dtoa prototypes to match reality.
Tor Egge [Sun, 25 Feb 2001 08:51:41 +0000 (08:51 +0000)]
Update unused __dtoa prototypes to match reality.

23 years agoAdd fsck_4.2bsd to boot crunch target. This returns the ability to
Jordan K. Hubbard [Sun, 25 Feb 2001 08:02:46 +0000 (08:02 +0000)]
Add fsck_4.2bsd to boot crunch target.  This returns the ability to
actually fsck (and upgrade) a box from boot media again.

23 years agoMerged from sys/i386/i386/machdep.c revision 1.443.
KATO Takenori [Sun, 25 Feb 2001 08:00:35 +0000 (08:00 +0000)]
Merged from sys/i386/i386/machdep.c revision 1.443.

23 years agogenassym.sh does not work with a.out because the sizes are rounded up
Peter Wemm [Sun, 25 Feb 2001 07:51:19 +0000 (07:51 +0000)]
genassym.sh does not work with a.out because the sizes are rounded up
by the compiler.  ie: char foo[0] comes out as 4 bytes on a.out, and
we depended on it coming out as 0 for the script version. :-(

Make double sure that genassym.o is built and nm'ed in elf mode.

(ia64 skipped since it is stuck on the linux toolchain and doesn't
 understand the -elf switches)

23 years agoMake the kernel actually compile and link under a.out, using
Peter Wemm [Sun, 25 Feb 2001 07:44:39 +0000 (07:44 +0000)]
Make the kernel actually compile and link under a.out, using
gcc -aout -mno-underscores.  The bioscall.s tweak is not an a.out
requirement really, but to work around the bugs in the antique version of
gas that used for a.out.  Makefile hacks are all that is needed to
get an a.out kernel.  There is no telling if it will work though.
This is little more than an academic curiosity anyway since all it is
good for is situations where the boot code is hard wired, eg: rom
bootstraps (such as the gnat box).

GENERIC:
...
size -aout kernel ; chmod 755 kernel
text    data    bss     dec     hex
3051520 368640  198688  3618848 373820

23 years agoMake this compile in a.out mode. link.h has extra dependencies for a.out.
Peter Wemm [Sun, 25 Feb 2001 07:26:54 +0000 (07:26 +0000)]
Make this compile in a.out mode.  link.h has extra dependencies for a.out.

23 years agoManually add an extra _ to _DYNAMIC since it is provided by ld, not gcc.
Peter Wemm [Sun, 25 Feb 2001 07:25:05 +0000 (07:25 +0000)]
Manually add an extra _ to _DYNAMIC since it is provided by ld, not gcc.
Make the rest compile.

23 years agoRemove underscores from linker set stabs for the a.out case, after
Peter Wemm [Sun, 25 Feb 2001 07:24:03 +0000 (07:24 +0000)]
Remove underscores from linker set stabs for the a.out case, after
the demise of asnames.h.

23 years agoAlways use the ELF naming after the demise of asnames.h.
Peter Wemm [Sun, 25 Feb 2001 07:23:03 +0000 (07:23 +0000)]
Always use the ELF naming after the demise of asnames.h.

23 years agoRemove superfluous m_pkthdr.rcv_if = NULL assignment following
Bosko Milekic [Sun, 25 Feb 2001 06:33:50 +0000 (06:33 +0000)]
Remove superfluous m_pkthdr.rcv_if = NULL assignment following
m_gethdr() mbuf allocation, which already does this for us.

23 years agoRemove the leading underscore from all symbols defined in x86 asm
Jake Burkholder [Sun, 25 Feb 2001 06:29:04 +0000 (06:29 +0000)]
Remove the leading underscore from all symbols defined in x86 asm
and used in C or vice versa.  The elf compiler uses the same names
for both.  Remove asnames.h with great prejudice; it has served its
purpose.

Note that this does not affect the ability to generate an aout kernel
due to gcc's -mno-underscores option.

moral support from: peter, jhb

23 years agoAllow the eiface node to be made as a module (not linked into build yet)
Julian Elischer [Sun, 25 Feb 2001 06:18:22 +0000 (06:18 +0000)]
Allow the eiface node to be made as a module (not linked into build yet)

23 years agoDrop the 'count' from the aha device specs
Peter Wemm [Sun, 25 Feb 2001 05:52:38 +0000 (05:52 +0000)]
Drop the 'count' from the aha device specs

23 years agoAdd a node that looks to all the word like an ethernet but delivers its
Julian Elischer [Sun, 25 Feb 2001 05:46:52 +0000 (05:46 +0000)]
Add a node that looks to all the word like an ethernet but delivers its
ehternet frames to a netgraph  hook.

Submitted by: "Vitaly V. Belekhov" <vitaly@riss-telecom.ru>
translated to 5.0 by me. man page not yet written.

This node still needs a little work.. don't use yet. Not yet linked into
the build.

23 years agoMake the sample netgraph node compileable again.
Julian Elischer [Sun, 25 Feb 2001 05:36:25 +0000 (05:36 +0000)]
Make the sample netgraph node compileable again.
Makes it easier for people if they can start with something
that actually compiles.

23 years agoAdd a Makefile for the sample node so It can be compiled.
Julian Elischer [Sun, 25 Feb 2001 05:34:33 +0000 (05:34 +0000)]
Add a Makefile for the sample node so It can be compiled.
This helps to stop it from geting out of sync.
It is not part of the normal build but I can use it with all the others
when I make changes to netgraph to ensure it is buildable.

23 years agoMove netgraph spimlock order entries out of
Julian Elischer [Sun, 25 Feb 2001 04:56:23 +0000 (04:56 +0000)]
Move netgraph spimlock order entries out of
the #ifdef SMP section. They need to be there for UP too.

23 years ago- Rename the lcall system call handler from Xsyscall to Xlcall_syscall
Jake Burkholder [Sun, 25 Feb 2001 02:53:06 +0000 (02:53 +0000)]
- Rename the lcall system call handler from Xsyscall to Xlcall_syscall
  to be more like Xint0x80_syscall and less like c function syscall().
- Reduce code duplication between the int0x80 and lcall handlers by
  shuffling the elfags into the right place, saving the sizeof the
  instruction in tf_err and jumping into the common int0x80 code.

Reviewed by: peter

23 years agoAdd "ELFOSABI_NONE" which is the symbol used in a copy of the old ELF spec,
David E. O'Brien [Sat, 24 Feb 2001 22:23:12 +0000 (22:23 +0000)]
Add "ELFOSABI_NONE" which is the symbol used in a copy of the old ELF spec,
as an alias for "ELFOSABI_SYSV".

23 years agoMFS: bring the consistent `compat_3_brand' support into -CURRENT
David E. O'Brien [Sat, 24 Feb 2001 22:20:11 +0000 (22:20 +0000)]
MFS: bring the consistent `compat_3_brand' support into -CURRENT
     (the work was first done in the RELENG_4 branch near a release
 during a MFC to make the code cleaner and more consistent)

23 years agoGrrr, s/INVARIANTS_SUPPORT/INVARIANT_SUPPORT/.
John Baldwin [Sat, 24 Feb 2001 21:29:32 +0000 (21:29 +0000)]
Grrr, s/INVARIANTS_SUPPORT/INVARIANT_SUPPORT/.

23 years ago- Axe RETIP() as it was very i386 specific and unwieldy. Instead, use the
John Baldwin [Sat, 24 Feb 2001 19:36:13 +0000 (19:36 +0000)]
- Axe RETIP() as it was very i386 specific and unwieldy.  Instead, use the
  passed in filename and line number in the KTR tracepoint message.
- Even though it is #if 0'd code, change the code to detect that a process
  is an interrupt thread to check p->p_ithd against NULL rather than
  checking non-existant process flags from BSD/OS.
- Use '%p' to print pointers in KTR log messages instead of assuming
  sizeof(int) == sizeof(void *).
- Don't set p_mtxname to NULL when releasing a mutex.  It doesn't hurt
  to leave it set (we don't clear w_mesg for example) and at least at
  one time in the past, there used to be race conditions in the kernel
  that would result in setting this to NULL causing the kernel to
  dereference NULL.
- Make the _mtx_assert() function be compiled in if INVARIANTS_SUPPORT is
  defined rather than if INVARIANTS is defined so that a KLD compiled
  with INVARIANTS that uses mtx_assert() can be used with a kernel that
  just has INVARIANT_SUPPORT compiled in.

23 years agoIn the SCSI_NO_SENSE_STRINGS case, properly fill the table with the
Justin T. Gibbs [Sat, 24 Feb 2001 19:24:36 +0000 (19:24 +0000)]
In the SCSI_NO_SENSE_STRINGS case, properly fill the table with the
asc and ascq pair rather than asc, asc.

PR: 25291
Submitted by: Stephen Ferrari <sferrari@yahoo.com>

23 years agosched_swi -> swi_sched
John Baldwin [Sat, 24 Feb 2001 19:09:37 +0000 (19:09 +0000)]
sched_swi -> swi_sched

23 years agoDon't include machine/mutex.h and relocate sys/mutex.h's include to be
John Baldwin [Sat, 24 Feb 2001 19:09:16 +0000 (19:09 +0000)]
Don't include machine/mutex.h and relocate sys/mutex.h's include to be
closer to alphabetical order and identical to that of the alpha.

23 years agoAdd back in INVARIANT_SUPPORT and expand the comments in NOTES about it
John Baldwin [Sat, 24 Feb 2001 19:03:18 +0000 (19:03 +0000)]
Add back in INVARIANT_SUPPORT and expand the comments in NOTES about it
to include the reasoning Eivind justifiably thwapped me over the head with.

23 years agoClockframes have a trapframe stored in a cf_tf member, not ct_tf.
John Baldwin [Sat, 24 Feb 2001 18:57:34 +0000 (18:57 +0000)]
Clockframes have a trapframe stored in a cf_tf member, not ct_tf.

23 years agoProperly orient the buttons for yes/no and no/yes so that POLA is
Jordan K. Hubbard [Sat, 24 Feb 2001 18:52:56 +0000 (18:52 +0000)]
Properly orient the buttons for yes/no and no/yes so that POLA is
observed.  This fixes the "no/yes box jumps buttons around" problem.

PR: gnu/24487
Submitted by: Gerhard Sittig <Gerhard.Sittig@gmx.net>

23 years agoWhitespace nits.
John Baldwin [Sat, 24 Feb 2001 18:41:38 +0000 (18:41 +0000)]
Whitespace nits.

23 years agoPass in process to mark ast on to aston().
John Baldwin [Sat, 24 Feb 2001 18:41:17 +0000 (18:41 +0000)]
Pass in process to mark ast on to aston().

23 years agoMake md/mdconfig do kld.
Poul-Henning Kamp [Sat, 24 Feb 2001 16:26:41 +0000 (16:26 +0000)]
Make md/mdconfig do kld.

Submitted by: dcs

23 years agoIntroduce API for sequential reads/writes (build/dissect) of mbuf chains.
Boris Popov [Sat, 24 Feb 2001 15:44:30 +0000 (15:44 +0000)]
Introduce API for sequential reads/writes (build/dissect) of mbuf chains.

Reviewed by: Ian Dowse <iedowse@maths.tcd.ie>,
Bosko Milekic <bmilekic@technokratis.com>,
Julian Elischer <julian@elischer.org> and arch@/net@
Obtained from: smbfs

23 years agoAdd knowledge of the netgraph spinlocks into the Witness code.
Julian Elischer [Sat, 24 Feb 2001 14:29:47 +0000 (14:29 +0000)]
Add knowledge of the netgraph spinlocks into the Witness code.
Well, at least I think that's how it's done.

23 years agoAdd two missed modifiers into usage message (`-G' and `-x').
Maxim Sobolev [Sat, 24 Feb 2001 14:10:31 +0000 (14:10 +0000)]
Add two missed modifiers into usage message (`-G' and `-x').

23 years ago- Assert that the proc to return is not NULL in runq_choose the
Jake Burkholder [Sat, 24 Feb 2001 14:06:36 +0000 (14:06 +0000)]
- Assert that the proc to return is not NULL in runq_choose the
  same as runq_remove.
- bzero the whole struct runq in runq_init just in case its not
  statically allocated.

23 years agoFix visibility of empty variable -- it should be static.
Alexey Zelkin [Sat, 24 Feb 2001 13:13:48 +0000 (13:13 +0000)]
Fix visibility of empty variable -- it should be static.

Submitted by: bde and Hartmut Brandt <brandt@fokus.gmd.de> (via PR)
PR: bin/25308

23 years agoBump FreeBSD version to correspond to addition of CPUTYPE make variable.
Kris Kennaway [Sat, 24 Feb 2001 10:44:03 +0000 (10:44 +0000)]
Bump FreeBSD version to correspond to addition of CPUTYPE make variable.

23 years agomdoc(7) police: restore correct order of references in the SEE ALSO.
Ruslan Ermilov [Sat, 24 Feb 2001 10:30:27 +0000 (10:30 +0000)]
mdoc(7) police: restore correct order of references in the SEE ALSO.

23 years agoRestrict -a to root only.
Ruslan Ermilov [Sat, 24 Feb 2001 10:16:54 +0000 (10:16 +0000)]
Restrict -a to root only.

PR: bin/25337

23 years agoIt turns out the kernel console works fine and thus doesn't need quite this
John Baldwin [Sat, 24 Feb 2001 03:40:23 +0000 (03:40 +0000)]
It turns out the kernel console works fine and thus doesn't need quite this
much extra testing.

23 years agoI thought it was a new CPU :)
Seigo Tanimura [Sat, 24 Feb 2001 02:59:32 +0000 (02:59 +0000)]
I thought it was a new CPU :)

s/i585/i586/

23 years agotry hard to make sure this does not get build as a shared library
Assar Westerlund [Sat, 24 Feb 2001 02:10:32 +0000 (02:10 +0000)]
try hard to make sure this does not get build as a shared library

23 years agoAdd an EV_SET() convenience macro for initializing struct kevent prior
Jonathan Lemon [Sat, 24 Feb 2001 01:44:03 +0000 (01:44 +0000)]
Add an EV_SET() convenience macro for initializing struct kevent prior
to the call to kevent().

Update the copyright notices as well.

23 years agoIntroduce a NOTE_LOWAT flag for use with the read/write filters, which
Jonathan Lemon [Sat, 24 Feb 2001 01:41:31 +0000 (01:41 +0000)]
Introduce a NOTE_LOWAT flag for use with the read/write filters, which
allow the watermark to be passed in via the data field during the EV_ADD
operation.

Hook this up to the socket read/write filters; if specified, it overrides
the so_{rcv|snd}.sb_lowat values in the filter.

Inspired by: "Ronald F. Guilmette" <rfg@monkeys.com>

23 years agoWhen returning EV_EOF for the socket read/write filters, also return
Jonathan Lemon [Sat, 24 Feb 2001 01:33:12 +0000 (01:33 +0000)]
When returning EV_EOF for the socket read/write filters, also return
the current socket error in fflags.  This may be useful for determining
why a connect() request fails.

Inspired by:  "Jonathan Graehl" <jonathan@graehl.org>

23 years agoForce TERM to be dumb when building termcap. ex in batch mode seems
Warner Losh [Sat, 24 Feb 2001 00:02:55 +0000 (00:02 +0000)]
Force TERM to be dumb when building termcap.  ex in batch mode seems
to care about the terminal setting.  In emacs, make buildworld was
broken because it sets TERM to emacs, which caused ex to fail.

23 years agoStricter style(9) conformance - remove unnecessary blank lines in previous
Peter Wemm [Fri, 23 Feb 2001 23:05:46 +0000 (23:05 +0000)]
Stricter style(9) conformance - remove unnecessary blank lines in previous
commit.

23 years agoCorrect CS20 section.
Wilko Bulte [Fri, 23 Feb 2001 22:08:35 +0000 (22:08 +0000)]
Correct CS20 section.

Reviewed by: Peter Petrakis <peter.petrakis@api-networks.com>

23 years agoispell-ify..
Wilko Bulte [Fri, 23 Feb 2001 21:47:30 +0000 (21:47 +0000)]
ispell-ify..

23 years agoWhen converting soft error into a hard error, drop the connection. The
Jonathan Lemon [Fri, 23 Feb 2001 21:07:06 +0000 (21:07 +0000)]
When converting soft error into a hard error, drop the connection.  The
error will be passed up to the user, who will close the connection, so
it does not appear to make a sense to leave the connection open.

This also fixes a bug with kqueue, where the filter does not set EOF
on the connection, because the connection is still open.

Also remove calls to so{rw}wakeup, as we aren't doing anything with
them at the moment anyway.

Reviewed by: alfred, jesper

23 years agoAllow ICMP unreachables which map into PRC_UNREACH_ADMIN_PROHIB to
Jonathan Lemon [Fri, 23 Feb 2001 20:51:46 +0000 (20:51 +0000)]
Allow ICMP unreachables which map into PRC_UNREACH_ADMIN_PROHIB to
reset TCP connections which are in the SYN_SENT state, if the sequence
number in the echoed ICMP reply is correct.  This behavior can be
controlled by the sysctl net.inet.tcp.icmp_may_rst.

Currently, only subtypes 2,3,10,11,12 are treated as such
(port, protocol and administrative unreachables).

Assocaiate an error code with these resets which is reported to the
user application: ENETRESET.

Disallow resetting TCP sessions which are not in a SYN_SENT state.

Reviewed by: jesper, -net

23 years agoFix typo in comment (knode -> knote).
Jonathan Lemon [Fri, 23 Feb 2001 20:32:42 +0000 (20:32 +0000)]
Fix typo in comment (knode -> knote).

23 years agoAdd a NOTE_REVOKE flag for vnodes, which is triggered from within vclean().
Jonathan Lemon [Fri, 23 Feb 2001 20:06:01 +0000 (20:06 +0000)]
Add a NOTE_REVOKE flag for vnodes, which is triggered from within vclean().
Use this to tell a filter attached to a vnode that the underlying vnode is
no longer valid, by returning EV_EOF.

PR: kern/25309, kern/25206

23 years agoFix typo that was causing a compiler warning.
Bill Paul [Fri, 23 Feb 2001 20:04:20 +0000 (20:04 +0000)]
Fix typo that was causing a compiler warning.

Submitted by: Alfred Perlstein

23 years agoTest out the kernel console just before launching the AP's.
John Baldwin [Fri, 23 Feb 2001 19:44:25 +0000 (19:44 +0000)]
Test out the kernel console just before launching the AP's.

23 years agoUse correct list pointer when detaching knote from list.
Jonathan Lemon [Fri, 23 Feb 2001 19:20:21 +0000 (19:20 +0000)]
Use correct list pointer when detaching knote from list.

23 years agoRemove directive to install top as group kmem. Remove directive to
Robert Watson [Fri, 23 Feb 2001 18:55:43 +0000 (18:55 +0000)]
Remove directive to install top as group kmem.  Remove directive to
install top with setgid bit.

23 years agoAdapt the top utility to not use kmem_read to retrieve variables now
Robert Watson [Fri, 23 Feb 2001 18:52:37 +0000 (18:52 +0000)]
Adapt the top utility to not use kmem_read to retrieve variables now
available via sysctl().  As a result, top should now be able to run without
setgid kmem.

Submitted by: Thomas Moestl <tmoestl@gmx.net>
Reviewed by: freebsd-audit

23 years agoAdapt libkvm_getswapinfo() to make use of recently committed vm and swap
Robert Watson [Fri, 23 Feb 2001 18:49:16 +0000 (18:49 +0000)]
Adapt libkvm_getswapinfo() to make use of recently committed vm and swap
sysctls exporting swap information.  When running on a live kernel,
the sysctl's will now be used instead of kvm_read, allowing consumers of
this interface to run without privilege (setgid kmem).  Retain the
ability to run on coredumps, or on a kernel using kmem if explicitly
pointed at one.

A side effect of this change is that kvm_getswapinfo() is faster now in
the general case. If the SWIF_DUMP_TREE flag is given (pstat -ss does
this), the radix tree walker, which still uses kvm_read in any case, is
invoked, and therefore does require privilege.

Submitted by: Thomas Moestl <tmoestl@gmx.net>
Reviewed by: freebsd-audit

23 years agoIntroduce per-swap area accounting in the VM system, and export
Robert Watson [Fri, 23 Feb 2001 18:46:21 +0000 (18:46 +0000)]
Introduce per-swap area accounting in the VM system, and export
this information via the vm.nswapdev sysctl (number of swap areas)
and vm.swapdevX nodes (where X is the device), which contain the MIBs
dev, blocks, used, and flags.  These changes are required to allow
top and other userland swap-monitoring utilities to run without
setgid kmem.

Submitted by: Thomas Moestl <tmoestl@gmx.net>
Reviewed by: freebsd-audit

23 years agoFix release. Just as in other kerberos5 libraries, we need to include
John Baldwin [Fri, 23 Feb 2001 18:31:26 +0000 (18:31 +0000)]
Fix release.  Just as in other kerberos5 libraries, we need to include
${.OBJDIR} in the includes list and generate a couple of headers from their
.et sources for beforedepend and all.