Commit Graph

61905 Commits

Author SHA1 Message Date
msmith
ec0a44c215 Vendor import of the Intel ACPI CA 20010615 snapshot. 2001-06-29 20:11:04 +00:00
green
a9b531b74d Use __unused for non-used variables.
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-29 20:06:47 +00:00
ume
07bc06593e stop sending echo packets whenever the upper limit is specified by the -c
option, regardless of the -f option.
based on a comment from Tomohide Nagashima <tomohide@japan-telecom.co.jp>.

Obtained from:	KAME
MFC after:	1 week
2001-06-29 20:05:48 +00:00
jhb
cbc88996c6 Move ast() and userret() to sys/kern/subr_trap.c now that they are MI. 2001-06-29 19:51:37 +00:00
dd
8d232144a3 Silence warnings on the Alpha: don't assume size_t is an int. 2001-06-29 19:46:29 +00:00
imp
7714b537e1 Remove cruft from old bus. 2001-06-29 18:13:30 +00:00
imp
c2d4833dd4 Remove file that hasn't been used since ze/zp. 2001-06-29 18:06:22 +00:00
deischen
5cd1eeb556 Clear the in thread scheduler flag after jumping to the start of
a signal handler from the scheduler.

MFC after:	1 week
2001-06-29 17:09:07 +00:00
roam
d093745462 Connect the new kldconfig(8) utility to the build. 2001-06-29 16:58:21 +00:00
roam
20caab2055 Add kldconfig(8), a utility to modify the kernel module search path.
Reviewed by:	-arch, -audit
2001-06-29 16:55:24 +00:00
green
93a6a41112 Also add a colon to "Bad passphrase, please try again ". 2001-06-29 16:43:13 +00:00
green
5d06029221 Put in a missing colon in the "Enter passphrase" message. 2001-06-29 16:34:14 +00:00
joerg
b983bae23b Use the new-born BIO_CMD1 instead of fudging a bio_flag value for reading
the sector ID.

Based on numerous comments made by Bruce, rewrite a good part of the
old fdformat() function, and merge it with fdreadid() into a single
unified fdmisccmd() function.  Various style and a couple of more
serious bugs fixed there.

While i was at it, i also fixed the long-standing "TODO: don't
allocate buffer on stack." in fdcioctl(), fixed a number of style bugs
there, and finally implemented the FD_DEBUG ioctl command that has
been advertised in <sys/fdcio.h> (formerly <machine/ioctl_fd.h>) for
almost seven years now. ;-)

Submitted by:	bde (a lot of fixes for fdformat())
2001-06-29 15:30:48 +00:00
joerg
ed192fbfa1 Two more "oops"es here: i didn't mean to turn on fdc debugging by
default in the KLD, and to turn off pccard support, so reverse each of
the flags.  Also, the flags should be overridable by /etc/make.conf.
2001-06-29 15:23:31 +00:00
joerg
c819119c5f Define BIO_CMD{1,2}, available for local hacks, similar to the already
existing BIO_FLAG{1,2}.  To be used in the fdc(4) driver soon.
2001-06-29 15:21:28 +00:00
obrien
9a602b2fd4 Fix editor'o where I lost the `+'. 2001-06-29 13:54:56 +00:00
yar
75f9f9392e Clarify the feature that -exec parameters won't get
shell-expanded when the specified utility is run.

MFC after:	5 days
2001-06-29 12:59:20 +00:00
ru
9a1f6416f4 Backout CSRG revision 7.22 to this file (if in_losing notices an
RTF_DYNAMIC route, it got freed twice).  I am not sure what was
the actual problem in 1992, but the current behavior is memory
leak if PCB holds a reference to a dynamically created/modified
routing table entry.  (rt_refcnt>0 and we don't call rtfree().)

My test bed was:

1.  Set net.inet.tcp.msl to a low value (for test purposes), e.g.,
    5 seconds, to speed up the transition of TCP connection to a
    "closed" state.
2.  Add a network route which causes ICMP redirect from the gateway.
3.  ping(8) host H that matches this route; this creates RTF_DYNAMIC
    RTF_HOST route to H.  (I was forced to use ICMP to cause gateway
    to generate ICMP host redirect, because gateway in question is a
    4.2-STABLE system vulnerable to a problem that was fixed later in
    ip_icmp.c,v 1.39.2.6, and TCP packets with DF bit set were
    triggering this bug.)
4.  telnet(1) to H
5.  Block access to H with ipfw(8)
6.  Send something in telnet(1) session; this causes EPERM, followed
    by an in_losing() call in a few seconds.
7.  Delete ipfw(8) rule blocking access to H, and wait for TCP
    connection moving to a CLOSED state; PCB is freed.
8.  Delete host route to H.
9.  Watch with netstat(1) that `rttrash' increased.
10. Repeat steps 3-9, and watch `rttrash' increases.

PR:		kern/25421
MFC after:	2 weeks
2001-06-29 12:07:29 +00:00
yar
d6f3122a76 Add a note on what happens if the "-p" option is specified
and a final directory already exists.

Reviewed by:	freebsd-audit
MFC after:	5 days
2001-06-29 11:45:14 +00:00
jhb
d82893e676 Add a new MI pointer to the process' trapframe p_frame instead of using
various differently named pointers buried under p_md.

Reviewed by:	jake (in principle)
2001-06-29 11:10:41 +00:00
jhb
11807e464b Enable interrupts again after disabling them in epson_{in,out}sw().
splx() doesn't do the equivalent of sti.
2001-06-29 10:44:45 +00:00
joerg
6099293af9 Duh-oh! When beautifying a comment right before my last commit, i
didn't realize that make considers a comment with just leading white
space only an ``unassociated shell command''.
2001-06-29 10:01:24 +00:00
ru
782892a71f - Added entry for Daniel C. Sobral.
- Fixed entry for Charlie Root.
2001-06-29 09:47:27 +00:00
ru
ada9cef5f6 Make `rttrash' variable (#routes not in table but not freed) visible
through ``netstat -rs''.
2001-06-29 09:08:24 +00:00
ru
ac2d37d7fe Fixed bogon in revision 1.37. Don't bogusly print a radix node's
duped key marker (``=>'') for routes with non-positive rmx_expire
metric, such as ethernet interface routes.

MFC after:	1 week
2001-06-29 08:37:12 +00:00
yokota
dfbd7cf88c Don't free buffers we didn't allocate.
MFC after:	2 weeks
2001-06-29 08:24:56 +00:00
joerg
a330d12ef9 This change slipped through hidden in a CVS conflict. Logically belongs
to the previous commit (fix resource deallocation).
2001-06-29 07:53:45 +00:00
obrien
0d05e55dec Upgrade to Binutils 2.11.2. 2001-06-29 07:49:41 +00:00
joerg
9906445194 First stab at fixing resource deallocation, and implementing fdc(4) as
a KLD.  Still doesn't work well except in the PCMCIA case (now if only
pccardd(8) could load and unload drivers dynamically...).  Mainly, it
tries to find fdc0 on the PCI bus for whatever obscure reasons, but i
need someone who understands driver(9) to fix this.  However, it's at least
already better than before, and i'm tired of maintaining too many private
changes in my tree, given the large patches bde submitted. :)

Idea of a KLD triggered by:	Michael Reifenberger <root@nihil.plaut.de>
2001-06-29 07:36:29 +00:00
yokota
d0edfde0be Quit the ioctl MOUSE_GETINFO as soon as we have gathered necessary
information.  There is no need to stick around any longer.
MFC after:	2 weeks
2001-06-29 07:17:14 +00:00
yokota
6a8e2fafa5 Test "sc->kbd != NULL" rather than "sc != NULL" before
accessing the keyboard in scopen().
MFC after:	2 weeks
2001-06-29 06:42:39 +00:00
des
caaabb45e0 Fix include ordering breakage from rev. 1.23.
Please-read-style(9):	dd
2001-06-29 06:21:57 +00:00
imp
a51b5ef63f pccard modem support fixed.
Update hints problems.

Add copyright and copying notice: Do what you want with this file.
2001-06-29 06:00:44 +00:00
jhb
3c7ad73470 Grab Giant around fault handling at the top level for now. 2001-06-29 04:18:59 +00:00
jhb
cc8833dfe9 Grab Giant around trap_pfault() for now. 2001-06-29 04:18:10 +00:00
jlemon
ac6b9aa8ec Fix up indentation. 2001-06-29 04:01:38 +00:00
rwatson
7c1e143aa8 Remove a fascinating but confusing construct involving chaining
conditional clauses in the following way:

	(0 || a || b);

No functional change.
2001-06-28 23:02:09 +00:00
rwatson
fc39072773 Add error checking for copyin() operations in posix4 scheduling code. 2001-06-28 22:53:42 +00:00
jhb
e2b1a6d10b Forced commit. Previous commit was:
Submitted by:	Alexander N. Kabaev <ak03@gte.com>
2001-06-28 22:23:06 +00:00
jhb
e77dfdc28f Don't check witness assertions if the lock doesn't use witness or witness
is dead.
2001-06-28 22:22:20 +00:00
jhb
1bc2ddffa0 Fix more mntvnode and vnode interlock order reversals. 2001-06-28 22:21:33 +00:00
dd
6854d0f52c Back out previous commit: it doesn't help anything since write_file(),
which is also called from handle_hup(), uses stdio(3).  Furthermore,
this means that calling exit(3) (via quit()) there is required to
flush the buffer write_file() was working on.

Submitted by:	bde
2001-06-28 22:06:27 +00:00
wilko
e2b9d0abef s/Netherlands/the Netherlands/g 2001-06-28 22:05:32 +00:00
guido
072728d905 Up the average age and hope I can still show my face next saturday. 2001-06-28 21:52:49 +00:00
dd
601dab0210 Fix a one-byte overrun.
PR:		28472
Submitted by:	David Xu <davidx@viasoft.com.cn>
Obtained from:	OpenBSD
2001-06-28 21:50:53 +00:00
ume
11cef0ec41 Change default of ipv6_default_interface to NO. This is meaningless
in most cases and rather harmful.

Reported by:	Kevin Oberman <oberman@es.net>
MFC after:	1 week
2001-06-28 21:45:47 +00:00
dd
bd3a809aec getcwd(3) is defined by POSIX, not ISO C.
Approved by:	bde
2001-06-28 19:27:02 +00:00
ume
111d276984 - create an entry of IPV6CTL_STATS sysctl.
- fix the problem that netstat doesn't show raw6 and icmp6 pcblist.
- make netstat use sysctl to retreive stats of ipv6 and icmpv6
  instead of kread.

Obtained from:	KAME
MFC after:	1 week
2001-06-28 18:06:15 +00:00
takawata
1fff29b6c6 Follow Mike's commit by adding acpi_powerres.c. 2001-06-28 17:07:37 +00:00
jhb
6f33ead4d3 Add acpi_powerres.c to fix the acpi build.
Pointy-hat to:	msmith
2001-06-28 17:02:31 +00:00