Commit Graph

84255 Commits

Author SHA1 Message Date
dillon
8a472af487 The zalloc pool's size calculation breaks if sbrk() does not return
contiguous chunks of memory.  It happens to do so in the bootstrap
code, but not necessarily in other places.
MFC after:	7 days
2002-12-19 23:23:20 +00:00
bmilekic
334e3de936 o Untangle the confusion with the malloc flags {M_WAITOK, M_NOWAIT} and
the mbuf allocator flags {M_TRYWAIT, M_DONTWAIT}.
o Fix a bpf_compat issue where malloc() was defined to just call
  bpf_alloc() and pass the 'canwait' flag(s) along.  It's been changed
  to call bpf_alloc() but pass the corresponding M_TRYWAIT or M_DONTWAIT
  flag (and only one of those two).

Submitted by: Hiten Pandya <hiten@unixdaemons.com> (hiten->commit_count++)
2002-12-19 22:58:27 +00:00
trhodes
54b54c92cc Fix some grammar nits. Mainly the use of a' or an' where the opposite
is required.

PR:		33559
Submitted by:	Marc Olzheim <marcolz@ilse.nl>
2002-12-19 22:56:20 +00:00
ceri
0a01322c47 Grammatical fixup: s/be the -1/be -1/
MFC after: 1 day
2002-12-19 21:48:43 +00:00
alc
bd2eabf668 Remove the hash_rand field from struct vm_object. As of revision 1.215 of
vm/vm_page.c, it is unused.
2002-12-19 20:01:22 +00:00
jake
663105bbf1 Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c. 2002-12-19 19:34:59 +00:00
trhodes
5eedd5cf42 Remove reference to a non-existant manual page && add a cross-reference to
ulpt(4)
2002-12-19 19:00:51 +00:00
trhodes
5336919d52 Tweak the grammar in the device.hints(5) manual page.
PR:		45893
Submitted by:	Chris Pepper <pepper@rockefeller.edu> (Original Version)
2002-12-19 18:26:26 +00:00
phk
22d5ba8ad0 Don't forget our topology lock in the MBREXT case. 2002-12-19 12:01:19 +00:00
ru
79529ca165 Make accept(), connect(), recvfrom(), recvmsg(), sendmsg(),
and sendto() cancelation points, as required by POSIX.1-2001.

Reviewed by:	deischen
2002-12-19 11:39:20 +00:00
tjr
06b2e62cb8 Add back the Standards section claiming conformance to 1003.1-2001 and
C99 now that all known standards-related bugs have been fixed.
2002-12-19 10:24:52 +00:00
tjr
bff31eb78a Write the message to stderr, not file descriptor 2, so that perror()
writes to the correct stream if stderr has been redirected with freopen().
2002-12-19 09:53:26 +00:00
tjr
de9d9fe6f8 Use strerror_r() to format the error message so that strerror()'s static
buffer does not get clobbered.

ISO/IEC 9899:1999 7.21.6.2 3:
"The implementation shall behave as if no library function calls the
strerror function."
2002-12-19 09:50:10 +00:00
tjr
cd05aa475b Add a test program for perror() that demonstrates two bugs in the
current implementation.
2002-12-19 09:46:10 +00:00
ru
f229f0705f mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
ru
bca41a417f mdoc(7) police: Fixed a few .Fa abuses. 2002-12-19 09:33:34 +00:00
ru
ddbf7ab583 mdoc(7) police: excessive quotes. 2002-12-19 08:13:27 +00:00
marcel
d79d8a694d o Use sysctl machdep.acpi_root to get the physical address of the
RSDP. Scan the first 1MB on i386 if the sysctl fails,
o  Extend struct ACPIrsdp with the ACPI 2.0 fields which involves
   changing a prior reserved field into the ACPI revision,
o  Only calculate the RSDP checksum on the first 20 bytes to remain
   compatible with ACPI 1.0 tables; we don't check the extended
   checksum covering the whole table,
o  Use the length field in the RSDP to map the RSDP into the address
   space so that we don't have to know about future extensions here.
2002-12-19 08:06:53 +00:00
alc
703e22f0ba - Remove vm_page_sleep_busy(). The transition to vm_page_sleep_if_busy(),
which incorporates page queue and field locking, is complete.
 - Assert that the page queue lock rather than Giant is held in
   vm_page_flag_set().
2002-12-19 07:23:46 +00:00
grog
38e453bd67 Clarify dates and place of Konrad Zuse's birth and death. Despite
calculations reportedly made by Intel Pentium processors, he died
exactly one time.
2002-12-19 05:14:35 +00:00
obrien
7386382337 Embellish the manpage.
Obtained from:	NetBSD
2002-12-19 04:41:54 +00:00
obrien
e4d81d1f2c Update for the 20021213 version. 2002-12-19 04:34:00 +00:00
obrien
2303de1336 This commit was generated by cvs2svn to compensate for changes in r108072,
which included commits to RCS files with non-trunk default branches.
2002-12-19 04:33:15 +00:00
obrien
bf37c5ab93 Vendor import of bwk's 13-Dec-2002 release. 2002-12-19 04:33:15 +00:00
wollman
78c8ad8701 Spell `unsigned short' in a way which does not depend on namespace pollution.
Note that this is still the wrong type, but we are not ready to break the
ABI; this change simply allows programs which specify a strict SUSv3
namespace to compile.  (They may still have semantic errors, since SUSv3
specifies correct types.)
2002-12-19 02:52:23 +00:00
tjr
fcbcd6f1fb Test that if the buffer argument (`s') to wcrtomb() is NULL then
the value of the supplied wide character is ignored and L'\0' is used
instead. Remove incorrect comments about "internal buffer" since wcrtomb()
does not have one (wctomb() does).
2002-12-19 02:01:39 +00:00
alc
3d63bf5029 - Hold the page queues lock when performing vm_page_busy() or
vm_page_flag_set().
 - Replace vm_page_sleep_busy() with proper page queues locking
   and vm_page_sleep_if_busy().
2002-12-19 01:20:24 +00:00
davidxu
2ba8ad8240 Add some linux keys 2002-12-19 01:17:07 +00:00
tjr
dce4d1c218 pathconf() and acl_get_file() follow links so they cannot be used to
determine whether a symlink has an ACL. Instead, assume that symbolic
links don't have ACLs and don't bother checking. Avoids spurious
ENOENT warnings when listing directories containing broken symlinks
on filesystems with ACLs enabled.

Pointed out by:	rwatson, bde
2002-12-19 01:13:23 +00:00
mux
7b9071ccff Fix bug with 3c90xB cards and newer. We weren't trying to
copy the mbuf chain into an mbuf cluster when there is
more than 63 mbufs in the chain.  We were trying with older
cards though.
2002-12-18 23:16:22 +00:00
semenu
11f08f68dc Do not return(foo()) in void function.
Submitted by:	marius@alchemy.franken.de
MFC after:	3 days
2002-12-18 22:53:24 +00:00
chris
dbfbbd3ba6 Refer to the now-existent `options MAC_BSDEXTENDED'.
MFC Candidate.

Prompted by:	dcs
Sponsored by:	DARPA, Network Associates Laboratories
2002-12-18 22:46:45 +00:00
semenu
efb3f46580 Fix the missspelt letter in DC_CTYPE_PUP_AUTOSENSe define.
Submitted by:	marius@alchemy.franken.de
MFC after:	3 days
2002-12-18 22:45:43 +00:00
phk
6e40d66401 Solve another bug in the mapping code: correctly skip lock sectors.
Make sure sector zero is protected if it contains metadata.

Lower WARNS for gbde to 3 on non-i386 archs.  rijndael-fst is evil
but appearntly does the right thing and passes the test-vectors.

MFC Candidate.
2002-12-18 22:11:54 +00:00
njl
516643c954 Quirk for Memorybird pen drive
PR:		kern/34712
Submitted by:	Oliver Fromme <olli@lurza.secnetix.de>
MFC after:	3 days
2002-12-18 21:47:52 +00:00
rwatson
3af1e9d7e7 Improve handling of symlink targets when listing MAC labels: don't
do the wrong thing when the symlink doesn't have a target, by
considering !f_label in the construction of ch_options.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-12-18 21:05:15 +00:00
fanf
2fa100e3dc Sync with up-stream version, including a number of bug-fixes:
* The partial-evaluation of #elif sequences was broken and the
spaghetti logic of its implementation was too hard to understand.
I've re-done it using a straight-forward table-driven push-down
automaton.

* The pre-processor line parser did not allow for all of the weird
places that people might put comments, which could have caused it
to add syntax-errors to the output by removing a #if line containing
the start- or end-marker of a comment.

* The lexer didn't need to special-case the handling of string-literals
or character-constants, but it did need to learn about line-continuations
(backslash-newline).

* The input routine was buggy and bit-rotten and trivially replacable
with fgets(). I've also made the program static- and const-safe and
improved the presentation-order. The formatting of the state-transition
tables remains non-stylish.

This commit-messsage was brought to you by code-point 45.

MFC-after: one-week
2002-12-18 20:50:44 +00:00
alc
7dbe87a279 Hold the page queues lock when performing vm_page_busy(). 2002-12-18 20:16:22 +00:00
phk
1655cee838 Fix two blunders in the mapping functions which can lead to corrupt data,
for request sizes larger than the sectorsize or for multi-key setups.

See warning mailed to current@ for details of recovery.

Found by:	Marcus Reid <marcus@blazingdot.com>
2002-12-18 19:57:27 +00:00
phk
1a8721a8b3 Balk at unaligned requests.
MFC candidate.
2002-12-18 19:53:59 +00:00
mckusick
7cb5f30273 Fix corruption introduced in previous delta.
Reported by:	Aurelien Nephtali <aurelien.nephtali@wanadoo.fr>
Sponsored by:   DARPA & NAI Labs.
2002-12-18 19:50:28 +00:00
marcel
cefd7b189a More MFp4: DIG64 structures. 2002-12-18 18:52:20 +00:00
mike
b5df081ffe o Add new types: msgqnum_t and msglen_t.
o Add typedefs for pid_t, time_t, size_t and ssize_t.
o Hide struct mymsg and msgsys() in the standards case.
o Add some comments about conformance bugs.
o Sort prototypes.
2002-12-18 18:22:06 +00:00
obrien
4fe55e9344 Update with the 4.7 libraries, and add libposix1e to the mix. 2002-12-18 18:05:07 +00:00
mike
1ee4dcc5f1 Add regression test for strerror()/strerror_r().
Based on:	src/lib/libc/string/strerror.c (rev 1.8)
2002-12-18 16:59:08 +00:00
mike
900ff36ca2 Rearrange strerror() so that its itoa procedure can be used with
strerror_r().  Doing this allows us to ensure that strerror_r() always
fills the supplied buffer regardless of EINVAL or ERANGE errors.

strerror()'s semantics have changed slightly such that an argument of
0 is now considered invalid and errno is set to EINVAL.

Remove internal regression test for strerror() and strerror_r().  This
will be reincarnated in src/tools/regression/lib/libc/string.

In strerror(3), add a comment about strerror()'s bogus return type.

PR:	44356
2002-12-18 16:53:31 +00:00
scottl
2aa022079e Move the agp driver to the third floppy to un-spill the mfsroot. 2002-12-18 16:22:45 +00:00
rwatson
f4c9c90889 Under some circumstances, the loopback interface will allocate a new
mbuf for a packet looping back to provide alignment guarantees for
KAME.  Unfortunately, this code performs a direct copy of the header
rather than using a header copying primitive (largely because we have
sucky header copying primitives).  This results in a multiple free
of the MAC label in the header when the same label data is freed
twice when the two mbufs with that header are freed.  As a temporary
work-around, clear the initialized flag on the label to prevent the
duplicate free, which prevents panics on large unaligned loopback
IP and IPv6 data.  The real fix is to improve and make use of proper
packet header copying routines here.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-12-18 15:34:17 +00:00
ru
b7ef44c09a mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
ru
5151e61327 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00