]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agopathconf() and acl_get_file() follow links so they cannot be used to
tjr [Thu, 19 Dec 2002 01:13:23 +0000 (01:13 +0000)]
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

21 years agoFix bug with 3c90xB cards and newer. We weren't trying to
mux [Wed, 18 Dec 2002 23:16:22 +0000 (23:16 +0000)]
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.

21 years agoDo not return(foo()) in void function.
semenu [Wed, 18 Dec 2002 22:53:24 +0000 (22:53 +0000)]
Do not return(foo()) in void function.

Submitted by: marius@alchemy.franken.de
MFC after: 3 days

21 years agoRefer to the now-existent `options MAC_BSDEXTENDED'.
chris [Wed, 18 Dec 2002 22:46:45 +0000 (22:46 +0000)]
Refer to the now-existent `options MAC_BSDEXTENDED'.

MFC Candidate.

Prompted by: dcs
Sponsored by: DARPA, Network Associates Laboratories

21 years agoFix the missspelt letter in DC_CTYPE_PUP_AUTOSENSe define.
semenu [Wed, 18 Dec 2002 22:45:43 +0000 (22:45 +0000)]
Fix the missspelt letter in DC_CTYPE_PUP_AUTOSENSe define.

Submitted by: marius@alchemy.franken.de
MFC after: 3 days

21 years agoSolve another bug in the mapping code: correctly skip lock sectors.
phk [Wed, 18 Dec 2002 22:11:54 +0000 (22:11 +0000)]
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.

21 years agoQuirk for Memorybird pen drive
njl [Wed, 18 Dec 2002 21:47:52 +0000 (21:47 +0000)]
Quirk for Memorybird pen drive

PR: kern/34712
Submitted by: Oliver Fromme <olli@lurza.secnetix.de>
MFC after: 3 days

21 years agoImprove handling of symlink targets when listing MAC labels: don't
rwatson [Wed, 18 Dec 2002 21:05:15 +0000 (21:05 +0000)]
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

21 years agoSync with up-stream version, including a number of bug-fixes:
fanf [Wed, 18 Dec 2002 20:50:44 +0000 (20:50 +0000)]
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

21 years agoHold the page queues lock when performing vm_page_busy().
alc [Wed, 18 Dec 2002 20:16:22 +0000 (20:16 +0000)]
Hold the page queues lock when performing vm_page_busy().

21 years agoFix two blunders in the mapping functions which can lead to corrupt data,
phk [Wed, 18 Dec 2002 19:57:27 +0000 (19:57 +0000)]
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>

21 years agoBalk at unaligned requests.
phk [Wed, 18 Dec 2002 19:53:59 +0000 (19:53 +0000)]
Balk at unaligned requests.

MFC candidate.

21 years agoFix corruption introduced in previous delta.
mckusick [Wed, 18 Dec 2002 19:50:28 +0000 (19:50 +0000)]
Fix corruption introduced in previous delta.

Reported by: Aurelien Nephtali <aurelien.nephtali@wanadoo.fr>
Sponsored by:   DARPA & NAI Labs.

21 years agoMore MFp4: DIG64 structures.
marcel [Wed, 18 Dec 2002 18:52:20 +0000 (18:52 +0000)]
More MFp4: DIG64 structures.

21 years agoo Add new types: msgqnum_t and msglen_t.
mike [Wed, 18 Dec 2002 18:22:06 +0000 (18:22 +0000)]
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.

21 years agoUpdate with the 4.7 libraries, and add libposix1e to the mix.
obrien [Wed, 18 Dec 2002 18:05:07 +0000 (18:05 +0000)]
Update with the 4.7 libraries, and add libposix1e to the mix.

21 years agoAdd regression test for strerror()/strerror_r().
mike [Wed, 18 Dec 2002 16:59:08 +0000 (16:59 +0000)]
Add regression test for strerror()/strerror_r().

Based on: src/lib/libc/string/strerror.c (rev 1.8)

21 years agoRearrange strerror() so that its itoa procedure can be used with
mike [Wed, 18 Dec 2002 16:53:31 +0000 (16:53 +0000)]
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

21 years agoMove the agp driver to the third floppy to un-spill the mfsroot.
scottl [Wed, 18 Dec 2002 16:22:45 +0000 (16:22 +0000)]
Move the agp driver to the third floppy to un-spill the mfsroot.

21 years agoUnder some circumstances, the loopback interface will allocate a new
rwatson [Wed, 18 Dec 2002 15:34:17 +0000 (15:34 +0000)]
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

21 years agomdoc(7) police: Fixed abuses of the .Ar and .Em macros.
ru [Wed, 18 Dec 2002 13:33:04 +0000 (13:33 +0000)]
mdoc(7) police: Fixed abuses of the .Ar and .Em macros.

21 years agomdoc(7) police: "The .Fn function".
ru [Wed, 18 Dec 2002 12:45:11 +0000 (12:45 +0000)]
mdoc(7) police: "The .Fn function".

21 years agoSwitch to the conventional reference counting scheme.
hsu [Wed, 18 Dec 2002 12:41:03 +0000 (12:41 +0000)]
Switch to the conventional reference counting scheme.

21 years agomdoc(7) police: "The .Fn system call".
ru [Wed, 18 Dec 2002 12:39:25 +0000 (12:39 +0000)]
mdoc(7) police: "The .Fn system call".

21 years agoRemove undocumented behavior (return current work dir if no path
johan [Wed, 18 Dec 2002 11:50:28 +0000 (11:50 +0000)]
Remove undocumented behavior (return current work dir if no path
is given as argument) that is not present in 4-Stable.
It was introduced when realpath(1) was split out of pwd(1).
The removed behavior is provided by pwd(1).

Reviewed by: mike

21 years agoLock up ifaddr reference counts.
hsu [Wed, 18 Dec 2002 11:46:59 +0000 (11:46 +0000)]
Lock up ifaddr reference counts.

21 years ago- use MAXPATHLEN per realpath(3)
johan [Wed, 18 Dec 2002 10:20:40 +0000 (10:20 +0000)]
- use MAXPATHLEN per realpath(3)
- use the problematic part of the path, instead of the argument,
  when reporting an error.

Reviewed by: mike

21 years agoUse ${BINDIR} instead of hardcoded path.
johan [Wed, 18 Dec 2002 10:14:01 +0000 (10:14 +0000)]
Use ${BINDIR} instead of hardcoded path.

PR: 44582
Submitted by:  Jon Disnard <jon.disnard@ca.com>
Reviewed by: ru
MFC after: 3 weeks

21 years agomdoc(7) police: "The .Fn function".
ru [Wed, 18 Dec 2002 10:13:54 +0000 (10:13 +0000)]
mdoc(7) police: "The .Fn function".

21 years agomdoc(7) police: Fixed the .Nm abuse.
ru [Wed, 18 Dec 2002 10:10:32 +0000 (10:10 +0000)]
mdoc(7) police: Fixed the .Nm abuse.

21 years agomdoc(7) police: Tidy up the syscall language.
ru [Wed, 18 Dec 2002 09:22:32 +0000 (09:22 +0000)]
mdoc(7) police: Tidy up the syscall language.

Stop calling system calls "function calls".

Use "The .Fn system call" a-la "The .Nm utility".

When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.

21 years agomdoc(7) police: kill whitespace at EOL.
ru [Wed, 18 Dec 2002 09:19:11 +0000 (09:19 +0000)]
mdoc(7) police: kill whitespace at EOL.

21 years agoExport the physical address of the RSDP to userland by means
marcel [Wed, 18 Dec 2002 08:47:07 +0000 (08:47 +0000)]
Export the physical address of the RSDP to userland by means
of the `machdep.acpi_root' sysctl. This is required on ia64
because the root pointer hardly ever, if at all, lives in the
first MB of memory and also because scanning the first MB of
memory can cause machine checks.
This provides a save and reliable way for ACPI tools to work
with the tables if ACPI support is present in the kernel. On
ia64 ACPI is non-optional.

21 years agoAdd command `hcdp'. This command dumps the DIG64 HCDP table if one
marcel [Wed, 18 Dec 2002 08:13:03 +0000 (08:13 +0000)]
Add command `hcdp'. This command dumps the DIG64 HCDP table if one
exists.

21 years agoOn drives that returns 00 as 100% done, lower the criteria
sos [Wed, 18 Dec 2002 07:43:42 +0000 (07:43 +0000)]
On drives that returns 00 as 100% done, lower the criteria
for wraparound, 99 was too much for fast drives since they
do not give 99 as the last value, but instead something
in the 90's range.

21 years agoUntwist a twisty bit of logic which gcc for some reason cannot see
phk [Wed, 18 Dec 2002 07:25:33 +0000 (07:25 +0000)]
Untwist a twisty bit of logic which gcc for some reason cannot see
through on ia64.

21 years agoDelay an optional amount of time after booting before starting a
mckusick [Wed, 18 Dec 2002 07:21:31 +0000 (07:21 +0000)]
Delay an optional amount of time after booting before starting a
background fsck. The delay defaults to sixty seconds to allow
large applications such as the X server to start before disk I/O
bandwidth is monopolized by fsck.

Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
Sponsored by:   DARPA & NAI Labs.

21 years agoKeep comments consistent with the code. Minor optimization.
mckusick [Wed, 18 Dec 2002 07:19:41 +0000 (07:19 +0000)]
Keep comments consistent with the code. Minor optimization.

Sponsored by:   DARPA & NAI Labs.

21 years agoI didn't intend to delete this rm from the Makefile. It snuck in at
imp [Wed, 18 Dec 2002 07:13:53 +0000 (07:13 +0000)]
I didn't intend to delete this rm from the Makefile.  It snuck in at
the last second before the commit.

# likely we can remove this hack now that gcc generates better aligned code
# in the align to word case.

Noticed by: bde

21 years agoLatest snapshot of devd. This one adds re-matching and string
imp [Wed, 18 Dec 2002 07:08:01 +0000 (07:08 +0000)]
Latest snapshot of devd.  This one adds re-matching and string
expansion.

21 years agoDocument what happens when the format string contains insufficient
tjr [Wed, 18 Dec 2002 05:00:54 +0000 (05:00 +0000)]
Document what happens when the format string contains insufficient
conversion specifications to completely specify the resulting struct tm.

PR: 46331
Submitted by: Christian S.J. Peron
MFC after: 2 weeks

21 years ago - Hold the page queues lock when performing vm_page_busy().
alc [Wed, 18 Dec 2002 04:39:15 +0000 (04:39 +0000)]
 - Hold the page queues lock when performing vm_page_busy().
 - Replace vm_page_sleep_busy() with proper page queues locking
   and vm_page_sleep_if_busy().

21 years agoHold the page queues lock when performing vm_page_flag_set().
alc [Wed, 18 Dec 2002 04:02:02 +0000 (04:02 +0000)]
Hold the page queues lock when performing vm_page_flag_set().

21 years agoCosmetic cleanup of unsigned buglets.
mckusick [Wed, 18 Dec 2002 00:53:45 +0000 (00:53 +0000)]
Cosmetic cleanup of unsigned buglets.

Submitted by: Bruce Evans <bde@zeta.org.au>
Sponsored by:   DARPA & NAI Labs.

21 years agoBack out revision 1.38. disklabel now understands vinum volumes again.
grog [Wed, 18 Dec 2002 00:18:54 +0000 (00:18 +0000)]
Back out revision 1.38.  disklabel now understands vinum volumes again.

21 years agoAdd Web Objects.
eric [Tue, 17 Dec 2002 23:59:10 +0000 (23:59 +0000)]
Add Web Objects.

Obtained from: IANA
Sponsored by: Apple

21 years agoReduce diffs with Peter's expanded diffs:
imp [Tue, 17 Dec 2002 22:00:06 +0000 (22:00 +0000)]
Reduce diffs with Peter's expanded diffs:
1) Put back the keyboard printing printf, at the cost of 58 bytes.
2) Minor tweak to getstr at no apparent cost.

21 years agoAdd a check for negative offset locations and return EINVAL for them.
phk [Tue, 17 Dec 2002 21:31:58 +0000 (21:31 +0000)]
Add a check for negative offset locations and return EINVAL for them.

21 years agoBack out the previous commit, since there could be dire consequences if
green [Tue, 17 Dec 2002 21:23:36 +0000 (21:23 +0000)]
Back out the previous commit, since there could be dire consequences if
/etc/rc were accidentally executed (as requested by other committeers).

21 years agoRemove request for i386 boot[012] review. I didn't have time recently to
jhb [Tue, 17 Dec 2002 21:14:45 +0000 (21:14 +0000)]
Remove request for i386 boot[012] review.  I didn't have time recently to
work on the UFS2 stuff and people were committing patches w/o sending them
my way anyways, so it seems rather pointless for me to be in here. :)

21 years agoMake both UFS1 and UFS2 fit on the same boot blocks. These are a
imp [Tue, 17 Dec 2002 21:10:34 +0000 (21:10 +0000)]
Make both UFS1 and UFS2 fit on the same boot blocks.  These are a
subset of Peter's patchs that are believed to be safe.

Makefile tweaks:
o -fomit-frame-pointer
o Change default to building both UFS1 and UFS2 bootblocks.

Lots of boot2 tweaks:
o lookup is only ever called with kname, so use it directly.
o inline memsize
o getstr are only ever called with cmd, so hardware that.
o tweaks to the parsing code to test after the conversion rather than
  before since we tested after anyways.
o eliminate support for %x in printf.
o eliminate a few bytes in printfs.
o Tweak the boot banner.
o eliminate support for wd and "  " devices (I might add wd back to
  keep bde happy).
o eliminate support for a few arguments.

This takes us from -162 bytes free to 67 bytes free.

I've tested this only on a few systems, so be careful when updating to
this change.

Submitted by: peter, imp, ian

21 years agoMake /etc/rc and /etc/rc.shutdown executable, and execute them directly
green [Tue, 17 Dec 2002 20:45:07 +0000 (20:45 +0000)]
Make /etc/rc and /etc/rc.shutdown executable, and execute them directly
instead of via /bin/sh. They already have the proper #! lines, and
there is no new failure case (if execution fails, it still attempts to
execute indirectly via /bin/sh). This is necessary for SEBSD to function
properly.

21 years ago/home/green/tmp/cvsSFosXg
green [Tue, 17 Dec 2002 20:39:38 +0000 (20:39 +0000)]
/home/green/tmp/cvsSFosXg

21 years agoThe code uses trapsasync, however the manual page uses asynctraps. Fix the
trhodes [Tue, 17 Dec 2002 20:27:48 +0000 (20:27 +0000)]
The code uses trapsasync, however the manual page uses asynctraps.  Fix the
manual page to reflect the code.

PR: 45820
Submitted by: Marco Molteni <molter@tin.it>
Discussed with: tjr

21 years agoRemove unused lockcnt variable.
phk [Tue, 17 Dec 2002 20:23:51 +0000 (20:23 +0000)]
Remove unused lockcnt variable.

Approved by: mckusick

21 years agoSplit files into 1.44MB chunks rather than a tiny, high-ftp overhead size.
obrien [Tue, 17 Dec 2002 20:19:37 +0000 (20:19 +0000)]
Split files into 1.44MB chunks rather than a tiny, high-ftp overhead size.

Approved by: rwatson

21 years agoStrip out any .comment ELF sections from crunchgen'ed binaries.
obrien [Tue, 17 Dec 2002 20:18:13 +0000 (20:18 +0000)]
Strip out any .comment ELF sections from crunchgen'ed binaries.

21 years agoHold the page queues lock when performing vm_page_flag_set().
alc [Tue, 17 Dec 2002 19:55:28 +0000 (19:55 +0000)]
Hold the page queues lock when performing vm_page_flag_set().

21 years agoAdd IPP (Internet Printing Protocol) and remove blank lines.
eric [Tue, 17 Dec 2002 19:42:07 +0000 (19:42 +0000)]
Add IPP (Internet Printing Protocol) and remove blank lines.

Obtained from: IANA
Sponsored by: Apple

21 years agoStraighten out a compound if() to improve readability marginally.
phk [Tue, 17 Dec 2002 19:33:44 +0000 (19:33 +0000)]
Straighten out a compound if() to improve readability marginally.

21 years agoIndent properly.
phk [Tue, 17 Dec 2002 19:31:26 +0000 (19:31 +0000)]
Indent properly.

21 years agoRemove unused variable cn_devfsdev.
phk [Tue, 17 Dec 2002 19:30:50 +0000 (19:30 +0000)]
Remove unused variable cn_devfsdev.

21 years agoRemove unused and incorrectly maintained variable "in_interfaces"
phk [Tue, 17 Dec 2002 19:30:04 +0000 (19:30 +0000)]
Remove unused and incorrectly maintained variable "in_interfaces"

21 years agoA couple of stylistic improvements.
phk [Tue, 17 Dec 2002 19:16:10 +0000 (19:16 +0000)]
A couple of stylistic improvements.

21 years agoDon't cast a pointer to (intptr_t) and then on to (int) when we cannot
phk [Tue, 17 Dec 2002 19:13:03 +0000 (19:13 +0000)]
Don't cast a pointer to (intptr_t) and then on to (int) when we cannot
be sure that (int) is large enough.  Instead cast only to (intptr_t) and
cast the switch/case values to (intptr_t) as well.

21 years agoDocument `trap EXIT` and `trap SIGNAME`.
fanf [Tue, 17 Dec 2002 17:31:44 +0000 (17:31 +0000)]
Document `trap EXIT` and `trap SIGNAME`.

21 years agoTry to fix the problem with burncd blank not seeing the end of
sos [Tue, 17 Dec 2002 16:27:45 +0000 (16:27 +0000)]
Try to fix the problem with burncd blank not seeing the end of
the blank operation.

21 years agoThis should be the way PC98 ATA disks are seen geometry wise.
sos [Tue, 17 Dec 2002 16:26:22 +0000 (16:26 +0000)]
This should be the way PC98 ATA disks are seen geometry wise.

Should go into 5_0_RELEASE as well.

21 years agoDon't mangle geometry for pc98, this will happen in the ata driver.
phk [Tue, 17 Dec 2002 15:50:51 +0000 (15:50 +0000)]
Don't mangle geometry for pc98, this will happen in the ata driver.

21 years agoUnspam some experimental changes which should not have been committed.
phk [Tue, 17 Dec 2002 13:37:08 +0000 (13:37 +0000)]
Unspam some experimental changes which should not have been committed.

21 years agoRemember to hold topology lock when we change things.
phk [Tue, 17 Dec 2002 09:44:10 +0000 (09:44 +0000)]
Remember to hold topology lock when we change things.

Spotted by: kuriyama

21 years agoConstify the dumpconf() function.
phk [Tue, 17 Dec 2002 07:22:48 +0000 (07:22 +0000)]
Constify the dumpconf() function.

21 years agoAdd PERIPH and XPT debug options to camcontrol. This makes all CAM debug
njl [Tue, 17 Dec 2002 06:05:21 +0000 (06:05 +0000)]
Add PERIPH and XPT debug options to camcontrol. This makes all CAM debug
options tunable from userland.

Approved by: ken
MFC after: 3 days

21 years agoBack out 1.19 to rethink approach
njl [Tue, 17 Dec 2002 05:55:36 +0000 (05:55 +0000)]
Back out 1.19 to rethink approach

Requested by: julian@

21 years agoCheck the return status of chdir() when using the -C option.
seanc [Tue, 17 Dec 2002 04:26:22 +0000 (04:26 +0000)]
Check the return status of chdir() when using the -C option.

Reviewed by: bright && jmallet
MFC after: 1 day

21 years agoCheck that the dump device is large enough. Otherwise we could
marcel [Tue, 17 Dec 2002 02:51:56 +0000 (02:51 +0000)]
Check that the dump device is large enough. Otherwise we could
end up with a dump offset that's smaller than the start of the
dump device and either clobber data in preceding partitions or
try to write beyond the end of the medium (unsigned wrap).

Implement legacy behaviour to never write to the first 64KB as
that is where metadata (ie disklabels) may reside.

21 years agoAutomatically issue a "continue" along with the "detach" command. This
njl [Tue, 17 Dec 2002 01:32:11 +0000 (01:32 +0000)]
Automatically issue a "continue" along with the "detach" command.  This
fixes the problem of cleanly restarting a target after entering gdb mode.

Reviewed by: archie@

21 years agoFix syntax in last commit.
dillon [Tue, 17 Dec 2002 00:24:48 +0000 (00:24 +0000)]
Fix syntax in last commit.

21 years agoConvert the xl(4) driver to the busdma API. This should make
mux [Tue, 17 Dec 2002 00:08:49 +0000 (00:08 +0000)]
Convert the xl(4) driver to the busdma API.  This should make
it possible to use this driver under ia64, sparc64 (though
there may be endianness issues with this one) and other archs.

Tested on: i386, alpha (gallatin)

21 years agoReformat last change
julian [Mon, 16 Dec 2002 23:25:12 +0000 (23:25 +0000)]
Reformat last change
Requested by: nate@

21 years agoGet rid of g_slice_addslice() and use g_slice_config() instead.
phk [Mon, 16 Dec 2002 23:08:48 +0000 (23:08 +0000)]
Get rid of g_slice_addslice() and use g_slice_config() instead.

Tested with: i386 + src/tools/regression/geom

21 years agoDon't dump core into a partition that is too small for it.
julian [Mon, 16 Dec 2002 23:04:54 +0000 (23:04 +0000)]
Don't dump core into a partition that is too small for it.
If we do, we usually wrote backwareds into the proceeding partititon
which is usually the root partition.

21 years agoGoto WARNS 5 with assorted changes.
phk [Mon, 16 Dec 2002 22:35:56 +0000 (22:35 +0000)]
Goto WARNS 5 with assorted changes.

21 years agoConstification and some s/int/u_int/ changes.
phk [Mon, 16 Dec 2002 22:33:27 +0000 (22:33 +0000)]
Constification and some s/int/u_int/ changes.

21 years agoChange the name for the local unix-socket based protocol
mbr [Mon, 16 Dec 2002 22:24:26 +0000 (22:24 +0000)]
Change the name for the local unix-socket based protocol
from "unix" back to "local".  Add some compat stuff so both
ways work for some time.

Reviewed by:    phk
Approved by:    imp (UPDATING)
Requested by:   iedowse, lukem@netbsd.org

21 years agoUpdate this one too.
phk [Mon, 16 Dec 2002 22:01:25 +0000 (22:01 +0000)]
Update this one too.

21 years agoGet the test-suite into sync with the kernel again.
phk [Mon, 16 Dec 2002 21:39:16 +0000 (21:39 +0000)]
Get the test-suite into sync with the kernel again.

21 years agoSpelling: s/ingrity/integrity/
trhodes [Mon, 16 Dec 2002 21:13:25 +0000 (21:13 +0000)]
Spelling: s/ingrity/integrity/

21 years agoChange the way ELF coredumps are handled. Instead of unconditionally
dillon [Mon, 16 Dec 2002 19:24:43 +0000 (19:24 +0000)]
Change the way ELF coredumps are handled.  Instead of unconditionally
skipping read-only pages, which can result in valuable non-text-related
data not getting dumped, the ELF loader and the dynamic loader now mark
read-only text pages NOCORE and the coredump code only checks (primarily) for
complete inaccessibility of the page or NOCORE being set.

Certain applications which map large amounts of read-only data will
produce much larger cores.  A new sysctl has been added,
debug.elf_legacy_coredump, which will revert to the old behavior.

This commit represents collaborative work by all parties involved.
The PR contains a program demonstrating the problem.

PR: kern/45994
Submitted by: "Peter Edwards" <pmedwards@eircom.net>, Archie Cobbs <archie@dellroad.org>
Reviewed by: jdp, dillon
MFC after: 7 days

21 years agoAdd the trm(4) driver.
cognet [Mon, 16 Dec 2002 18:47:37 +0000 (18:47 +0000)]
Add the trm(4) driver.

MFC after: 1 day

21 years agoImport of a minimalist trm(4) man page.
cognet [Mon, 16 Dec 2002 18:44:24 +0000 (18:44 +0000)]
Import of a minimalist trm(4) man page.
Anyone with more man pages knowledge than I have should feel free to complete
it.

21 years agoThe HP DAT 40 tape drive should be able to handle variable block sizes.
trhodes [Mon, 16 Dec 2002 17:40:17 +0000 (17:40 +0000)]
The HP DAT 40 tape drive should be able to handle variable block sizes.
But for some reason the block size is different when a different type of
tape is placed in the drive.  This commit fixes that.

PR: 46209
Submitted by: Alex Wang <alex@alexwang.com>
Approved by: mjacob

21 years agoRemove the hto(be|le)[slq] and (be|le)toh[slq] macros defined in
robert [Mon, 16 Dec 2002 16:20:06 +0000 (16:20 +0000)]
Remove the hto(be|le)[slq] and (be|le)toh[slq] macros defined in
_KERNEL scope from "src/sys/sys/mchain.h".

Replace each occurrence of the above in _KERNEL scope with the
appropriate macro from the set of hto(be|le)(16|32|64) and
(be|le)toh(16|32|64) from "src/sys/sys/endian.h".

Tested by: tjr
Requested by: comment marked with XXX

21 years agoThis commit was generated by cvs2svn to compensate for changes in r107937,
des [Mon, 16 Dec 2002 15:28:05 +0000 (15:28 +0000)]
This commit was generated by cvs2svn to compensate for changes in r107937,
which included commits to RCS files with non-trunk default branches.

21 years agoVendor import of OpenPAM Cyclamen.
des [Mon, 16 Dec 2002 15:28:05 +0000 (15:28 +0000)]
Vendor import of OpenPAM Cyclamen.

21 years agoMerge in most non-style differences from Andrew Korty's pam_ssh 1.7.
des [Mon, 16 Dec 2002 14:33:18 +0000 (14:33 +0000)]
Merge in most non-style differences from Andrew Korty's pam_ssh 1.7.

21 years agoIgnore IEEE1284 descriptors when looking for bidirectional mode. We don't
des [Mon, 16 Dec 2002 14:22:59 +0000 (14:22 +0000)]
Ignore IEEE1284 descriptors when looking for bidirectional mode.  We don't
really know how to talk IEEE1284, so attaching to that interface makes the
printer unusable.

Approved by: joe

21 years agoMFNetBSD: 1.52-1.55
des [Mon, 16 Dec 2002 14:20:26 +0000 (14:20 +0000)]
MFNetBSD: 1.52-1.55

Mostly OpenBSD-related changes.  Remove newline from panic string.  Remove
an unreachable break statement.

21 years agoCatch up with the English version:
hrs [Mon, 16 Dec 2002 14:11:42 +0000 (14:11 +0000)]
Catch up with the English version:

1.115 -> 1.119 hardware/common/dev.sgml

21 years agoo getsockopt(2) 'level' argument should be 0, not SOCK_STREAM. It
maxim [Mon, 16 Dec 2002 13:42:13 +0000 (13:42 +0000)]
o getsockopt(2) 'level' argument should be 0, not SOCK_STREAM. It
does not hurt anything because uipc_ctloutput() does not check
sopt->sopt_level.

Pointed out by: ru
MFC after: 1 week