David Malone
db3cc2d09f
Don't dereference a NULL pointer if we fail to get a sendfilebuf.
2001-06-24 12:27:30 +00:00
David Malone
5386636d3e
Add prototypes and turn on WARNS=?2.
2001-06-24 12:23:54 +00:00
David Malone
7ce87f1205
Allow getcred sysctl to work in jailed root processes. Processes can
...
only do getcred calls for sockets which were created in the same jail.
This should allow the ident to work in a reasonable way within jails.
PR: 28107
Approved by: des, rwatson
2001-06-24 12:18:27 +00:00
David Malone
5e209ca776
Get rid of some constness warnings.
2001-06-24 12:08:47 +00:00
David Malone
a933327c4b
Don't add -Wall, as it's a compiler specific flag.
2001-06-24 09:20:42 +00:00
David Malone
b585f768e1
Fix most of the warnings given by WARNS=2.
2001-06-24 09:20:07 +00:00
Benno Rice
e2d53d7c4a
Fix asm constraints for atomic_cmpset_32. This fix may also be needed
...
elsewhere.
2001-06-24 06:36:28 +00:00
Matthew Dillon
c7503f60c4
After exhaustive discussions and some meandering and confusion, enough
...
people are on track with the cause and effect of this, and although
fixing this severely degenerate case appears to violate the letter of
POSIX.1-200x, Bruce and I (and enough others) agree that it should be
comitted.
So, this patch generates an ENOENT error for any attempt to do a path lookup
through an empty symlink (e.g. open(), stat()).
Submitted by: "Andrey A. Chernov" <ache@nagual.pp.ru>
Reviewed by: bde
Discussed exhaustively on: freebsd-current
Previously committed to: NetBSD 4 years ago
2001-06-24 05:24:41 +00:00
Mitsuru IWASAKI
6454a61bd7
Reset timestamps of battery info. and status by thier notify handler.
...
Suggested by: takawata
2001-06-24 02:39:08 +00:00
Mitsuru IWASAKI
a5d1879b32
- Swap order of "S4B" and "S5" in sleep_state_names. They already
...
changed in ACPICA actypes.h.
- Use ACPI_S_STATES_MAX instead of ACPI_STATE_S5.
2001-06-24 02:37:38 +00:00
Dima Dorfman
e0e97f0aab
Don't call exit(3) from a signal handler.
...
Obtained from: OpenBSD
2001-06-24 01:55:17 +00:00
Dima Dorfman
9e28aca5d2
mdoc(7) police: use the Fn macro where appropriate.
2001-06-24 01:38:20 +00:00
Dima Dorfman
a910f192bb
Remove duplicate words.
2001-06-24 01:34:38 +00:00
Dima Dorfman
bdd87f4f44
Correct a typo.
2001-06-24 01:30:38 +00:00
Dima Dorfman
5a203488e4
mdoc(7) police: sort xrefs.
2001-06-24 01:17:07 +00:00
Jason Evans
9a952e0dda
Add myself.
2001-06-24 00:45:03 +00:00
Ian Dowse
98f36a359d
Fix some return-value brain-damage in forward_register(). This
...
function has a return type of u_int32_t, into which it was somehow
supposed to encode:
* A valid 32-bit XID (which could be any value including 0).
* 0, meaning a duplicate request.
* -1, meaning a malloc failed (!);
We now ensure that all XIDs are non-zero, and pass the XID out via
a pointer argument.
In forward_find() and free_slot_by_xid(), remove an unnecessary
and confusing test for a negative result from an unsigned modulo
operation, but add an unnecessary cast to highlight why.
2001-06-23 21:54:47 +00:00
Ian Dowse
eca1c24e5a
Use the new CLSET_CONNECT clnt_control() request on UDP clients to
...
ensure that we never proceed with the mount() syscall if the server
is replying from the wrong source address. Previously the userland
RPC call to the remote nfsd would succeed, but the kernel uses
connect() so it would not see the replies, resulting in a hung
mount.
2001-06-23 19:57:20 +00:00
Ian Dowse
32de72d27f
Add a new clnt_control() request `CLSET_CONNECT' that controls
...
whether or not connect(2) is used for UDP client sockets. The default
is not to connect(), so existing clients will see no change in
behaviour.
The use of connect(2) for UDP clients has a number of advantages:
only replies from the intended address are received, and ICMP errors
pertaining to the connection are reported back to the application.
2001-06-23 19:43:21 +00:00
Semen Ustimenko
1d57ebcdbf
Add initializetion of NVCTL register with EEPROM stored value.
...
This fix hazardous very slow work for one of my cards.
MFC after: 1 week
2001-06-23 19:30:26 +00:00
Ben Smithurst
f1a1584029
remove -g -O0, that was only for debugging...
2001-06-23 19:24:18 +00:00
Ben Smithurst
b12f647365
Don't dereference a pointer after freeing that pointer.
...
PR: 27990
Reviewed by: dd, phk
Tested by: dd
MFC after: 2 weeks
2001-06-23 18:07:18 +00:00
Cameron Grant
8e81760b1a
the turtle beach santacruz implements ac97 eapd in an inverted sense -
...
inform the ac97 code of this.
2001-06-23 18:00:06 +00:00
Jens Schweikhardt
f40be3e157
Reduce field width for some columns so that the default output fits in <= 79
...
columns. 80 columns + newline is a problem for some terminals including syscons.
Requested by: bde
MFC after: 1 week
2001-06-23 17:52:10 +00:00
Jonathan Lemon
f962cba5c3
Replace bzero() of struct ip with explicit zeroing of structure members,
...
which is faster.
2001-06-23 17:44:27 +00:00
Cameron Grant
f00f162a5f
add defines and ifdefs so this code will compile on 4.x
...
add spls so this code will work on 4.x
2001-06-23 17:36:51 +00:00
Ruslan Ermilov
8c8e8f8013
Three people known to be born on December 18!
...
Submitted by: cwt
2001-06-23 17:34:26 +00:00
Cameron Grant
79bb7d52b3
move a private struct definition from ac97.h to ac97.c
...
add proper handling of cards which take eapd=1 to mean 'produce sound'
instead of 'external amplifier power down'
2001-06-23 17:32:40 +00:00
Ruslan Ermilov
c73d99b567
Add netstat(1) knob to reset net.inet.{ip|icmp|tcp|udp|igmp}.stats.
...
For example, ``netstat -s -p ip -z'' will show and reset IP stats.
PR: bin/17338
2001-06-23 17:17:59 +00:00
Cameron Grant
6fe615f6bb
add sndstat.c so module users have /dev/sndstat again
2001-06-23 17:09:38 +00:00
Bosko Milekic
f70f5dd367
- Fix space allocation for mbstat structure
...
- Make sure to try hw.ncpu if kern.smp.cpus doesn't exist (i.e. on UP) to
get number of CPUs.
2001-06-23 17:04:17 +00:00
Bosko Milekic
4edec6b79a
Make sure to try hw.ncpu if kern.smp.cpus doesn't exist (i.e. on UP) when
...
getting number of CPUs.
2001-06-23 17:03:27 +00:00
Maxim Sobolev
ab962c79ec
By default link statically (like we did in the port) - it provides 8-10%
...
faster comperssion, which in the bzip2's case could be a big win.
2001-06-23 12:29:14 +00:00
Mitsuru IWASAKI
4eb77744b5
Add sysctl interface (Read-only) for temprature, AC-line and Battery.
...
Patches for acpi_cmbat.c submitted by Munehiro Matsuda.
2001-06-23 10:38:25 +00:00
Ruslan Ermilov
aafccd6d93
Honor -s -s (don't show zero stats) with -r, untangle SYNOPSIS further.
...
(usage() still is not synchronized with SYNOPSIS, intentionally.)
2001-06-23 09:18:57 +00:00
Ralf S. Engelschall
c39435223d
Add myself.
2001-06-23 09:16:29 +00:00
Ruslan Ermilov
5548840306
Fixed DPADD.
...
Submitted by: bde
2001-06-23 09:10:48 +00:00
Ruslan Ermilov
10ae6ece36
Document "normalizing" behavior of mktime(3).
...
PR: bin/28313
Reviewed by: bde, wollman
MFC after: 1 week
2001-06-23 08:57:40 +00:00
KATO Takenori
b7494481a0
Merged from sys/i386/isa/npx.c revision 1.102.
2001-06-23 08:39:13 +00:00
Ruslan Ermilov
7b7a4c0417
Average age is 28 years and 11 months.
...
Submitted by: hrs, marko
2001-06-23 08:36:11 +00:00
KATO Takenori
a655f750be
Merged from sys/i386/i386/machdep.c revisions 1.456 and 1.457.
2001-06-23 08:30:13 +00:00
KATO Takenori
4f2114cb40
Removed pcm and sbc devices.
2001-06-23 08:18:55 +00:00
KATO Takenori
7bc0575ab0
Merged from sys/conf/files.i386 revisions 1.362 and 1.363.
2001-06-23 08:10:50 +00:00
KATO Takenori
b6da22604e
Merged from sys/boot/i386/btx/btx/btx.s revision 1.25.
2001-06-23 08:04:14 +00:00
Brian Feldman
668650045e
Make sure the average age keeps on decreasing down that slippery slope.
2001-06-23 07:24:18 +00:00
Dima Dorfman
7a95e9f2e1
Remove duplicate word.
2001-06-23 07:02:33 +00:00
Jonathan Lemon
4dd2af159e
Bring in fix from rev 1.32 that got lost during the conversion to kqueue.
...
This prevents an indefinte timeout in case the kevent call is interrupted
for some reason.
PR: 26665
MFC in: 2 weeks
2001-06-23 06:54:28 +00:00
Nicolas Souchu
3ae3f8b0be
Convert inb/outb to bus_space.
...
Submitted by: jcm@FreeBSD-uk.eu.org
2001-06-23 06:52:54 +00:00
Nicolas Souchu
334a17f09a
Translate various ppbus sequences into microsequences to limit
...
overhead of abstraction layers.
Submitted by: jcm@FreeBSD-uk.eu.org
2001-06-23 06:51:52 +00:00
Andrey A. Chernov
cd01c79119
Make the similar changes as in our keyinfo, i.e. allow user to get his own
...
sequence and allow root to get everybody's one. Before this change user
can't get his own sequence, root required.
2001-06-23 04:48:59 +00:00