]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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.

23 years agoCorrectly handle the race itself, too (don't leave it locked).
Brian Feldman [Fri, 23 Feb 2001 17:55:01 +0000 (17:55 +0000)]
Correctly handle the race itself, too (don't leave it locked).
This is about to be replaced anyway by initialization explicitly
instead of lazily, and reducing the complexity of it.  As it is
now, this will work fine, however.

23 years agoShuffle sysctls a bit (thankyou whoever made them dynamic for modules)
Julian Elischer [Fri, 23 Feb 2001 16:34:22 +0000 (16:34 +0000)]
Shuffle sysctls a bit (thankyou whoever made them dynamic for modules)
and add a sysctl to pppoe to activate non standard ethertypes
so that idiot ISPs (apparently in France) who use
equipment from idiot suppliers (rumour says 3com)
who use nonstandard ethertypes can still connect.

 "yep, sure we do pppoe, we use a different identifier to that dictated in
 the standard, but sure it's pppoe!"

sysctl -w net.graph.stupid_isp=1 enables the changeover.

23 years agoImplement the following options and primaries:
Akinori MUSHA [Fri, 23 Feb 2001 16:20:55 +0000 (16:20 +0000)]
Implement the following options and primaries:

     -E      Interpret regular expressions followed by -regex and -iregex op-
             tions as extended (modern) regular expressions rather than basic
             regular expressions (BRE's).  The re_format(7) manual page fully
             describes both formats.

     -iname pattern
             Like -name, but the match is case insensitive.

     -ipath pattern
             Like -path, but the match is case insensitive.

     -regex pattern
             True if the whole path of the file matches pattern using regular
             expression.  To match a file named ``./foo/xyzzy'', you can use
             the regular expression ``.*/[xyz]*'' or ``.*/foo/.*'', but not
             ``xyzzy'' or ``/foo/''.

     -iregex pattern
             Like -regex, but the match is case insensitive.

These are meant to be compatible with other find(1) implementations
such as GNU's or NetBSD's except regexp library differences.

Reviewed by: sobomax, dcs, and some other people on -current

23 years agoMake ``groff -man'' work again for both man(7) and mdoc(7) manpages.
Ruslan Ermilov [Fri, 23 Feb 2001 09:35:33 +0000 (09:35 +0000)]
Make ``groff -man'' work again for both man(7) and mdoc(7) manpages.
The new Groff release will support this feature.

Requested by: peter

23 years agoFree lock before calling panic so that subsequent attempt to write out
Kirk McKusick [Fri, 23 Feb 2001 09:01:31 +0000 (09:01 +0000)]
Free lock before calling panic so that subsequent attempt to write out
buffers does not re-panic with `locking against myself'. This change
should not affect normal operations of soft updates in any way.

23 years agoAdditional enhancments to allow IBM Etherjet cards to be probed,
Warner Losh [Fri, 23 Feb 2001 08:08:21 +0000 (08:08 +0000)]
Additional enhancments to allow IBM Etherjet cards to be probed,
attached and ifconfigable.  The card doesn't interrupt yet.

Also, move towards bus space by introducing new macros/inline
functions which make such a move much easier than before.

These inline functions are setup now to work around an IBM EtherJet
pccard cardbus bridge incompatibility.  The card works in 8 bit mode,
but not in 16-bit mode when it is connected to a cardbus bridge for
reasons unknown.  The Linux driver also has a similar workaround in
it.

Future work will include making the above workaround runtime
conditional rather than compile time conditional, as well as fixing
the interrupts in pccards and converting it to bus space.

23 years agoUse the right names to call pthread_mutex_{,un}lock so that things
Brian Feldman [Fri, 23 Feb 2001 06:26:22 +0000 (06:26 +0000)]
Use the right names to call pthread_mutex_{,un}lock so that things
work in both the libc only and libc/libc_r case.

23 years agoFix a longstanding bug- we had the sense of what bit 14
Matt Jacob [Fri, 23 Feb 2001 05:35:50 +0000 (05:35 +0000)]
Fix a longstanding bug- we had the sense of what bit 14
for the ICB firmware options meant- *I* had taken it to
mean that if you set it, Node Name would be ignored and
derived from Port Name. Actually, it meant the opposite.
As a consequence- change ICBOPT_USE_PORTNAME to the
define ICBOPT_BOTH_WWNS- makes more sense.

Fix wrong input bitmap for MBOX_DUMP_RAM command. Call
ISP_DUMPREGS if we get a f/w crash. Add ISPCTL_RUN_MBOXCMD
control command (so outer layers can run a mailbox command
directly) and add a ISPASYNC_UNHANDLED_RESPONSE hook so
outer layers can understand response queue entries we
might not know about.

23 years agoFix the problems I (and others, undoubtedly) have been having for a
Brian Feldman [Fri, 23 Feb 2001 04:59:12 +0000 (04:59 +0000)]
Fix the problems I (and others, undoubtedly) have been having for a
while with threaded software in -CURRENT acting very "weird".  It has
seemed, for example, in Mozilla that threads attempting to do host
lookups have been locking up.  That's exactly the case.

There was a race condition in the implementation of the initialization
of the mutex used to protect FILE operations, first of all: multiple
instances of FLOCKFILE() in libc could occur on the same FILE at
the same time and cause strange behavior by overwriting eachothers'
creation of the mutex and the rest of the file lock.

Secondly, it's not appropriate to test the "validity" of the file
descriptor referenced by the FILE; if the code is calling FLOCKFILE()
or FUNLOCKFILE(), it wants the FILE to be locked or unlocked, not
to be locked or unlocked on the condition that _file is >= 0.  This
also could quite easily cause leaks by failing to perform the lock or
unlock operation when it actually is needed.

Mozilla now works again on -CURRENT when linked to libc_r.so.5 and
libc.so.5.

23 years agoFlip the default for CVS_RSH to "ssh". I am tired of getting asked this
Peter Wemm [Fri, 23 Feb 2001 04:52:30 +0000 (04:52 +0000)]
Flip the default for CVS_RSH to "ssh".  I am tired of getting asked this
all the time, and IMHO it is long overdue.

23 years agoIf the symbolic links @ or machine exist, do not depend on them.
Warner Losh [Fri, 23 Feb 2001 04:49:31 +0000 (04:49 +0000)]
If the symbolic links @ or machine exist, do not depend on them.

This fixes the problem where if src/sys or src/sys/$MACHINE_ARCH/include
changed at all, all the modules would be rebuilt.

Reviewed by: bde

23 years agoDisplay the Joliet Extension 'level' in the log message.
Alfred Perlstein [Fri, 23 Feb 2001 03:43:05 +0000 (03:43 +0000)]
Display the Joliet Extension 'level' in the log message.

PR: kern/24998

23 years agoRemove the camcontrol rescan $device insert events for the aic driver,
Peter Wemm [Fri, 23 Feb 2001 02:45:15 +0000 (02:45 +0000)]
Remove the camcontrol rescan $device insert events for the aic driver,
which does it itself now.  Although CAM should do the rescan itself
if the initial boot-time rescan has already been done.

23 years agoSigh, nobody ever got back to me about this. So, here it is..
Peter Wemm [Fri, 23 Feb 2001 02:32:31 +0000 (02:32 +0000)]
Sigh, nobody ever got back to me about this.  So, here it is..
Implement auto scsi scan at insert time for the aic driver.

23 years agoActivate USER_LDT by default. The new thread libraries are going to
Peter Wemm [Fri, 23 Feb 2001 01:25:02 +0000 (01:25 +0000)]
Activate USER_LDT by default.  The new thread libraries are going to
depend on this.  The linux ABI emulator tries to use it for some linux
binaries too.  VM86 had a bigger cost than this and it was made default
a while ago.

Reviewed by: jhb, imp

23 years agoTypo: "interrupt" -> "harvest_interrupt"
Brian Feldman [Fri, 23 Feb 2001 01:12:44 +0000 (01:12 +0000)]
Typo: "interrupt" -> "harvest_interrupt"

23 years agoRemove undefined and unreferenced doreti_syscall_ret globl. While I'm
John Baldwin [Fri, 23 Feb 2001 00:41:05 +0000 (00:41 +0000)]
Remove undefined and unreferenced doreti_syscall_ret globl.  While I'm
here, adjust comment block above doreti.  We don't have the old MP lock
anymore.

23 years agoMove the 'dont forget "make depend"' to be the last thing that people see,
Peter Wemm [Fri, 23 Feb 2001 00:22:04 +0000 (00:22 +0000)]
Move the 'dont forget "make depend"' to be the last thing that people see,
after the warnings.

23 years agoChange the 120 second timeout to 180 seconds to reflect the real default
Brian Somers [Thu, 22 Feb 2001 23:28:12 +0000 (23:28 +0000)]
Change the 120 second timeout to 180 seconds to reflect the real default

23 years agoMACHINE_ARCH is the target arch to crossbuild to, not TARGET_ARCH.
John Baldwin [Thu, 22 Feb 2001 22:58:24 +0000 (22:58 +0000)]
MACHINE_ARCH is the target arch to crossbuild to, not TARGET_ARCH.

Requested by: marcel

23 years agoElminate common declaration.
Paul Saab [Thu, 22 Feb 2001 21:53:39 +0000 (21:53 +0000)]
Elminate common declaration.

Reviewed by: peter

23 years agoRedo the security update done in rev 1.54 of src/sys/netinet/tcp_subr.c
Jesper Skriver [Thu, 22 Feb 2001 21:23:45 +0000 (21:23 +0000)]
Redo the security update done in rev 1.54 of src/sys/netinet/tcp_subr.c
and 1.84 of src/sys/netinet/udp_usrreq.c

The changes broken down:

- remove 0 as a wildcard for addresses and port numbers in
  src/sys/netinet/in_pcb.c:in_pcbnotify()
- add src/sys/netinet/in_pcb.c:in_pcbnotifyall() used to notify
  all sessions with the specific remote address.
- change
  - src/sys/netinet/udp_usrreq.c:udp_ctlinput()
  - src/sys/netinet/tcp_subr.c:tcp_ctlinput()
  to use in_pcbnotifyall() to notify multiple sessions, instead of
  using in_pcbnotify() with 0 as src address and as port numbers.
- remove check for src port == 0 in
  - src/sys/netinet/tcp_subr.c:tcp_ctlinput()
  - src/sys/netinet/udp_usrreq.c:udp_ctlinput()
  as they are no longer needed.
- move handling of redirects and host dead from in_pcbnotify() to
  udp_ctlinput() and tcp_ctlinput(), so they will call
  in_pcbnotifyall() to notify all sessions with the specific
  remote address.

Approved by: jlemon
Inspired by:    NetBSD

23 years agoStreamline updating of switchtime (don't copy code from kern_sync.c).
Tor Egge [Thu, 22 Feb 2001 20:16:51 +0000 (20:16 +0000)]
Streamline updating of switchtime (don't copy code from kern_sync.c).

Submitted by: jhb

23 years agoBackout previous commit. sched_lock is held, thus interrupts are prevented
Tor Egge [Thu, 22 Feb 2001 20:12:52 +0000 (20:12 +0000)]
Backout previous commit.  sched_lock is held, thus interrupts are prevented
here.

Submitted by: jhb

23 years agoProtect update of the per processor switchtime variable against
Tor Egge [Thu, 22 Feb 2001 19:50:37 +0000 (19:50 +0000)]
Protect update of the per processor switchtime variable against
interrupts.

Protect usage of the per processor switchtime variable against
interrupts in calcru().

This seem to eliminate the "microuptime() went backwards" warnings.

23 years agoNeed one additional make.conf knob, SENDMAIL_ADDITIONAL_MC to satisfy bug
Gregory Neil Shapiro [Thu, 22 Feb 2001 19:44:16 +0000 (19:44 +0000)]
Need one additional make.conf knob, SENDMAIL_ADDITIONAL_MC to satisfy bug
report.  It allows building multiple .cf files at build time.

PR: bin/19897

23 years agoThe p_md.md_regs member of proc is used in signal handling to reference
John Baldwin [Thu, 22 Feb 2001 19:35:20 +0000 (19:35 +0000)]
The p_md.md_regs member of proc is used in signal handling to reference
the the original trapframe of the syscall, trap, or interrupt that entered
the kernel.  Before SMPng, ast's were handled via a psuedo trap at the
end of doerti.  With the SMPng commit, ast's were broken out into a
separate ast() function that was called from doreti to match the behavior
of other architectures.  Unfortunately, when this was done, the
p_md.md_regs member of curproc was not updateda in ast(), thus when
signals are handled by userret() after an interrupt that returns to
userland, we end up using a stale trapframe that will result in the
registers from the old trapframe overwriting the real trapframe and
smashing all the registers right before we return to usermode.  The saved
%cs:%eip from where we were in usermode are saved in the trapframe for
example.

23 years agoAdd a note indicating that SENDMAIL_MC should include the path. This is
Gregory Neil Shapiro [Thu, 22 Feb 2001 19:34:13 +0000 (19:34 +0000)]
Add a note indicating that SENDMAIL_MC should include the path.  This is
necessary if you expect to be able to use this setting in both /etc/mail
and etc/sendmail.

23 years agoApply patch to allow TX underrun handling without issuing a complete
Bill Paul [Thu, 22 Feb 2001 19:26:55 +0000 (19:26 +0000)]
Apply patch to allow TX underrun handling without issuing a complete
chip reset. Just temporarily turn off the transmitter instead.

Submitted by: Stephen McKay <mckay@freebsd.org>

23 years agosome reasoning why we separated ping(8) and ping6(8)
Hajimu UMEMOTO [Thu, 22 Feb 2001 19:00:51 +0000 (19:00 +0000)]
some reasoning why we separated ping(8) and ping6(8)
comments/additions/corrections are welcome.

Obtained from: KAME

23 years agoSince the PC is a pointer to a code address, change the second parameter of
John Baldwin [Thu, 22 Feb 2001 18:07:31 +0000 (18:07 +0000)]
Since the PC is a pointer to a code address, change the second parameter of
addupc_task() and addupc_intr() to be a uintptr_t instead of a u_long.

23 years ago- Change ast() to take a pointer to a trapframe like other architectures.
John Baldwin [Thu, 22 Feb 2001 18:05:15 +0000 (18:05 +0000)]
- Change ast() to take a pointer to a trapframe like other architectures.
- Don't use an atomic operation to update cnt.v_soft in ast().  This is
  the only place the variable is written to, and sched_lock is always
  held when it is written, so it is already protected and the mutex release
  of sched_lock asserts a memory barrier that ensures the value will be
  updated in a timely fashion.