]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoBackout the previous revision due to objections.
John Birrell [Tue, 9 Mar 2004 04:51:58 +0000 (04:51 +0000)]
Backout the previous revision due to objections.

20 years agoReset the text attributes when initializing the console. The EFI
Marcel Moolenaar [Tue, 9 Mar 2004 04:00:33 +0000 (04:00 +0000)]
Reset the text attributes when initializing the console. The EFI
loader typically doesn't do this so that we end up booting the
with whatever the EFI loader has set it to last.

20 years agoHook CPUs up to newbus. CPUs will ultimately be a bus driver so that
Nate Lawson [Tue, 9 Mar 2004 03:37:21 +0000 (03:37 +0000)]
Hook CPUs up to newbus.  CPUs will ultimately be a bus driver so that
multiple CPU-specific drivers can attach.  This is a work in progress
so children aren't supported yet.

Help from: jhb

20 years agoAdd #ifdef CPU_SOEKRIS in the missing places around the led_* code
John Birrell [Tue, 9 Mar 2004 02:51:21 +0000 (02:51 +0000)]
Add #ifdef CPU_SOEKRIS in the missing places around the led_* code
that is specific to those boards.

This allows this file to compile again with CPU_ELAN enabled, but not
CPU_SOEKRIS, for a Compulab board.

20 years agoAMD's ELAN documentation says that you write to the SYS_RST register
John Birrell [Tue, 9 Mar 2004 02:49:24 +0000 (02:49 +0000)]
AMD's ELAN documentation says that you write to the SYS_RST register
in the Memory Mapped Configuration Region (MMCR) to reset the CPU.
If CPU_ELAN is set, try this first to reset the CPU before the
traditional way.

Without this change, my Compulab board powers down on 'reset' instead
of rebooting.

20 years agoOn 4.X it was possible for an application to initialise a local FILE
John Birrell [Tue, 9 Mar 2004 02:44:59 +0000 (02:44 +0000)]
On 4.X it was possible for an application to initialise a local FILE
structure and call stdio functions. In 5.X this was broken when FILE
locking was introduced into libc.

This change makes most (relevant) stdio functions work again when the
_extra file in FILE isn't initialised (and can't be without a libc
function to do it since the __sFILEX structure is private to libc).

20 years agoThese aren't all binary options.
Mike Heffner [Tue, 9 Mar 2004 01:20:24 +0000 (01:20 +0000)]
These aren't all binary options.

20 years agoFix typos.
Alex Dupre [Mon, 8 Mar 2004 23:18:50 +0000 (23:18 +0000)]
Fix typos.

Approved by: blackend (mentor/implicitly)

20 years agoBump __FreeBSD_version for the pf install and write comments to UPDATING.
Max Laier [Mon, 8 Mar 2004 22:26:46 +0000 (22:26 +0000)]
Bump __FreeBSD_version for the pf install and write comments to UPDATING.

Approved by: bms(mentor)

20 years agoLink pf to the build and install:
Max Laier [Mon, 8 Mar 2004 22:03:29 +0000 (22:03 +0000)]
Link pf to the build and install:
This adds the former ports registered groups: proxy and authpf as well as
the proxy user. Make sure to run mergemaster -p in oder to complete make
installworld without errors.

This also provides the passive OS fingerprints from OpenBSD (pf.os) and an
example pf.conf.

For those who want to go without pf; it provides a NO_PF knob to make.conf.

__FreeBSD_version will be bumped soon to reflect this and to be able to
change ports accordingly.

Approved by: bms(mentor)

20 years agoMark loadaverage callout as CALLOUT_MPSAFE.
Robert Watson [Mon, 8 Mar 2004 22:01:19 +0000 (22:01 +0000)]
Mark loadaverage callout as CALLOUT_MPSAFE.

Reviewed by: jhb

20 years agoAdd two new sysctls:
Pawel Jakub Dawidek [Mon, 8 Mar 2004 20:37:25 +0000 (20:37 +0000)]
Add two new sysctls:

- security.bsd.hardlink_check_uid, when set, means, that unprivileged
users are not permitted to create hard links to files not
owned by them,
- security.bsd.hardlink_check_gid, when set, means, that unprivileged
users are not permitted to create hard links to files owned
by group they don't belong to.

OK'ed by: rwatson

20 years agoShift file locking to source file instead of temp file. This fixes
Ken Smith [Mon, 8 Mar 2004 20:31:37 +0000 (20:31 +0000)]
Shift file locking to source file instead of temp file.  This fixes
data buffering issue that corrupts files if two pw(8)'s run at the
same time as well as changing pw(8) so it uses the same locking
mechanism as PAM, vipw(8), pwd_mkdb(8), etc.

PR: bin/23501
Submitted by: Alex Kapranoff <alex (at) kapran (dot) bitmcnit (dot) bryansk (dot) su>
Approved by: rwatson (mentor)
MFC after: 5 days

20 years agoAdd a check for wtmp records which have invalid values for ut_time. Wtmp
Garance A Drosehn [Mon, 8 Mar 2004 20:02:23 +0000 (20:02 +0000)]
Add a check for wtmp records which have invalid values for ut_time.  Wtmp
records with time==0 get "the time of the last valid record", while records
where time goes backwards (compared to the previous record) are skipped.
Also prints a message saying how many records were changed or skipped due
to these checks. Check was inspired by a simpler check in OpenBSD's version.

This is all meant to sidestep problems that Tillman Hodgson noticed with 'ac'
when running sparc64 with 64-bit time_t's.  The real problem is whatever is
creating wtmp records with ut_time==0, of course, but I have not yet figured
out what is doing that.

Reviewed by: no screams from freebsd-sparc64 or bde
MFC after: 2 weeks

20 years agoCompile 'ac' with DEBUG when arch==sparc64.
Garance A Drosehn [Mon, 8 Mar 2004 20:01:34 +0000 (20:01 +0000)]
Compile 'ac' with DEBUG when arch==sparc64.

20 years agoAdd a debug-statement from NetBSD, and then rework all debug-statements
Garance A Drosehn [Mon, 8 Mar 2004 19:20:06 +0000 (19:20 +0000)]
Add a debug-statement from NetBSD, and then rework all debug-statements
so the program compiles without errors or warnings when DEBUG is defined on
sparc64 with 64-bit time_t's.  Also have debug statements include the year
when printing records from a different year than 'now'.  Also print out a
special timestamp in debug statements when ut_time==0.

Reviewed by: freebsd-sparc, bde
MFC after: 2 weeks

20 years agoRemove a.out at the end of 'make test'
Andrey A. Chernov [Mon, 8 Mar 2004 18:09:33 +0000 (18:09 +0000)]
Remove a.out at the end of 'make test'

20 years agoString the consumers into the list of the provider they are attached to.
Poul-Henning Kamp [Mon, 8 Mar 2004 16:37:08 +0000 (16:37 +0000)]
String the consumers into the list of the provider they are attached to.

Noticed by: jhb

20 years agoFix two instances of improper NULL/0 use idetified by the changes lately.
Max Laier [Mon, 8 Mar 2004 15:19:55 +0000 (15:19 +0000)]
Fix two instances of improper NULL/0 use idetified by the changes lately.

Submitted by: Patrick Marie
Approved by: bms(mentor)

20 years agoUpdate pmap_pinit(9) to reflect pmap_pinit2() removal by alc.
Bruce M Simpson [Mon, 8 Mar 2004 15:07:14 +0000 (15:07 +0000)]
Update pmap_pinit(9) to reflect pmap_pinit2() removal by alc.

20 years agoManual page for the ng_atmllc node type.
Benno Rice [Mon, 8 Mar 2004 13:46:52 +0000 (13:46 +0000)]
Manual page for the ng_atmllc node type.

Currently missing a history section.

20 years agoMark scripts as not usable inside a jail by adding keyword 'nojail'.
Pawel Jakub Dawidek [Mon, 8 Mar 2004 12:25:05 +0000 (12:25 +0000)]
Mark scripts as not usable inside a jail by adding keyword 'nojail'.

Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>

20 years agoFix skipping scripts with given keywords.
Pawel Jakub Dawidek [Mon, 8 Mar 2004 12:02:07 +0000 (12:02 +0000)]
Fix skipping scripts with given keywords.
Proper syntax is '-s keyword1 -s keyword2', not '-s keyword1 keyword2'.

20 years agoAdd a netgraph node to handle ATM LLC encapsulation. This currently handles
Benno Rice [Mon, 8 Mar 2004 10:54:35 +0000 (10:54 +0000)]
Add a netgraph node to handle ATM LLC encapsulation.  This currently handles
ethernet (tested) and FDDI (not tested).  The main use for this is on ADSL (or
other ATM) connections where bridged ethernet is used, PPPoE being a prime
example.

There is no manual page as yet, I will write one shortly.

Reviewed by: harti

20 years agoTo comply with the spec, do not copy the TOS from the outer IP
Jeffrey Hsu [Mon, 8 Mar 2004 07:47:27 +0000 (07:47 +0000)]
To comply with the spec, do not copy the TOS from the outer IP
header to the inner IP header of the PIM Register if this is a PIM
Null-Register message.

Submitted by: Pavlin Radoslavov <pavlin@icir.org>

20 years agoInclude <sys/types.h> for autoconf/automake detection.
Jeffrey Hsu [Mon, 8 Mar 2004 07:45:32 +0000 (07:45 +0000)]
Include <sys/types.h> for autoconf/automake detection.

Submitted by: Pavlin Radoslavov <pavlin@icir.org>

20 years agoImplement a work around for the deadlock avoidance case in
Alan Cox [Mon, 8 Mar 2004 03:54:36 +0000 (03:54 +0000)]
Implement a work around for the deadlock avoidance case in
vm_object_deallocate() so that it doesn't spin forever either.

Submitted by: bde

20 years agoAdd back Giant locks around kmem_free() call from user_ldt cleanup path
Peter Wemm [Mon, 8 Mar 2004 01:55:34 +0000 (01:55 +0000)]
Add back Giant locks around kmem_free() call from user_ldt cleanup path
during exit.  Apparently it isn't safe after all.  See uma_large_free().

Pointed out by:  alc

20 years agoMove a vref call outside of proc locks and Giant. By virtue of the fact
Peter Wemm [Mon, 8 Mar 2004 00:32:34 +0000 (00:32 +0000)]
Move a vref call outside of proc locks and Giant.  By virtue of the fact
that we (p1) are currently running, we hold a reference on p_textvp which
means the vnode cannot go away.  p2 cannot run yet (and hence cannot exit)
so this should be safe to do at this point.  As a bonus, it removes a
block of under-Giant code that was there to support the vref.

20 years agoOther parts of the tree do not protect calls to kmem_free() with Giant,
Peter Wemm [Mon, 8 Mar 2004 00:27:33 +0000 (00:27 +0000)]
Other parts of the tree do not protect calls to kmem_free() with Giant,
so remove it from here.  The most notable examples include vm_mmap().
This removes one more Giant event from exit(2).

20 years agoStop depending on #include pollution from cpufunc.h
Peter Wemm [Mon, 8 Mar 2004 00:25:03 +0000 (00:25 +0000)]
Stop depending on #include pollution from cpufunc.h

20 years agoMFi386: re-sort non-gcc function prototypes, trim includes
Peter Wemm [Mon, 8 Mar 2004 00:24:15 +0000 (00:24 +0000)]
MFi386: re-sort non-gcc function prototypes, trim includes

20 years agoMFi386: curpcb is no longer null anymore, so do not test for it.
Peter Wemm [Mon, 8 Mar 2004 00:17:27 +0000 (00:17 +0000)]
MFi386: curpcb is no longer null anymore, so do not test for it.

20 years agoMFi386: set initial curpcb pcpu variable at startup time rather than
Peter Wemm [Mon, 8 Mar 2004 00:16:52 +0000 (00:16 +0000)]
MFi386: set initial curpcb pcpu variable at startup time rather than
waiting for a context switch

20 years agoMFi386: wait for local apic to become free before using it
Peter Wemm [Mon, 8 Mar 2004 00:15:29 +0000 (00:15 +0000)]
MFi386: wait for local apic to become free before using it

20 years agoImplemented the "getifindex" control message.
Ruslan Ermilov [Sun, 7 Mar 2004 23:00:44 +0000 (23:00 +0000)]
Implemented the "getifindex" control message.

PR: kern/63864
Submitted by: Gleb Smirnoff

20 years agoMake it possible for the %[eEfgG] formats to not result in an error
Colin Percival [Sun, 7 Mar 2004 22:22:13 +0000 (22:22 +0000)]
Make it possible for the %[eEfgG] formats to not result in an error
being reported by /usr/bin/printf.

This bug has been around for 22 months... either nobody uses printf
with floating-point values, or people are forgetting to check their
return codes.

Approved by: rwatson (mentor)

20 years agoRetire pmap_pinit2(). Alpha was the last platform that used it. However,
Alan Cox [Sun, 7 Mar 2004 21:06:48 +0000 (21:06 +0000)]
Retire pmap_pinit2().  Alpha was the last platform that used it.  However,
ever since alpha/alpha/pmap.c revision 1.81 introduced the list allpmaps,
there has been no reason for having this function on Alpha.  Briefly,
when pmap_growkernel() relied upon the list of all processes to find and
update the various pmaps to reflect a growth in the kernel's valid
address space, pmap_init2() served to avoid a race between pmap
initialization and pmap_growkernel().  Specifically, pmap_pinit2() was
responsible for initializing the kernel portions of the pmap and
pmap_pinit2() was called after the process structure contained a pointer
to the new pmap for use by pmap_growkernel().  Thus, an update to the
kernel's address space might be applied to the new pmap unnecessarily,
but an update would never be lost.

20 years agoRearrange (centralize) initialization of mallocs internals to always be
Poul-Henning Kamp [Sun, 7 Mar 2004 20:41:27 +0000 (20:41 +0000)]
Rearrange (centralize) initialization of mallocs internals to always be
done before the first call, even if this is a malloc(0) call.

PR: 62859

20 years agoDon't panic on providers already withered when we wither a geom.
Poul-Henning Kamp [Sun, 7 Mar 2004 17:33:15 +0000 (17:33 +0000)]
Don't panic on providers already withered when we wither a geom.

20 years agoUse one bus_dma_tag_t for all pSRB instead of creating one for each.
Olivier Houchard [Sun, 7 Mar 2004 17:23:39 +0000 (17:23 +0000)]
Use one bus_dma_tag_t for all pSRB instead of creating one for each.
Free what is allocated for pSRBs at unload time or if something bad happens,
thanks to scottl for spotting this out.

20 years agoAdd final version of BSD/OS, BSD/OS 5.1 ISE.
Wolfram Schneider [Sun, 7 Mar 2004 16:44:10 +0000 (16:44 +0000)]
Add final version of BSD/OS, BSD/OS 5.1 ISE.

20 years agoConvert from timeout to callout API.
Alexander Kabaev [Sun, 7 Mar 2004 16:28:31 +0000 (16:28 +0000)]
Convert from timeout to callout API.

Submitted by: rwatson

20 years agoConvert from timeout to callout API.
Alexander Kabaev [Sun, 7 Mar 2004 16:23:03 +0000 (16:23 +0000)]
Convert from timeout to callout API.

20 years agoAdd manpages for the gctl API.
Poul-Henning Kamp [Sun, 7 Mar 2004 16:07:57 +0000 (16:07 +0000)]
Add manpages for the gctl API.

Submitted by: le
Tweaks by: phk

20 years agoDocument kernel functions securelevel_gt and securelevel_ge.
Josef El-Rayes [Sun, 7 Mar 2004 15:22:08 +0000 (15:22 +0000)]
Document kernel functions securelevel_gt and securelevel_ge.

Approved by:            simon(mentor)
Submitted by:           Christian S.J. Peron <maneo@bsdpro.com>
PR:                     docs/62331
mdoc(7) cleanup by:     ru

20 years agoRestore CDIOCREADAUDIO ioctl.
Yoshihiro Takahashi [Sun, 7 Mar 2004 14:16:42 +0000 (14:16 +0000)]
Restore CDIOCREADAUDIO ioctl.

Pointed out by: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>

20 years agoIn the case where /etc/rc.d/ is empty, do not bogusly ask the user if
Doug Barton [Sun, 7 Mar 2004 10:10:19 +0000 (10:10 +0000)]
In the case where /etc/rc.d/ is empty, do not bogusly ask the user if
they want to delete '*'. It turns out that there is one valid case where
this might happen, installing to an empty DESTDIR.

Patch submitted by: schweikh

20 years agoIntegrate the code from pmap_pinit2() into pmap_pinit(), leaving
Alan Cox [Sun, 7 Mar 2004 07:43:13 +0000 (07:43 +0000)]
Integrate the code from pmap_pinit2() into pmap_pinit(), leaving
pmap_pinit2() empty.

Approved by: marcel

20 years agoRemove unused declarations. (Some time ago, these variables became fields
Alan Cox [Sun, 7 Mar 2004 07:13:15 +0000 (07:13 +0000)]
Remove unused declarations.  (Some time ago, these variables became fields
of vm/vm.h's struct kva_md_info.)

20 years agoMark uma_callout as CALLOUT_MPSAFE, as uma_timeout can run MPSAFE.
Robert Watson [Sun, 7 Mar 2004 07:00:46 +0000 (07:00 +0000)]
Mark uma_callout as CALLOUT_MPSAFE, as uma_timeout can run MPSAFE.

Reviewed by: jeff

20 years agoRemove '#include <machine/bus_pio.h>'. This is meaningless.
Yoshihiro Takahashi [Sun, 7 Mar 2004 05:39:38 +0000 (05:39 +0000)]
Remove '#include <machine/bus_pio.h>'.  This is meaningless.

20 years agoRemove unneeded devices.
Yoshihiro Takahashi [Sun, 7 Mar 2004 05:38:20 +0000 (05:38 +0000)]
Remove unneeded devices.

20 years agoSync to 1.166 of usbdevs
MIHIRA Sanpei Yoshiro [Sun, 7 Mar 2004 05:34:36 +0000 (05:34 +0000)]
Sync to 1.166 of usbdevs

20 years agoAdd support 2 devices(USB-DVD-R drives)
MIHIRA Sanpei Yoshiro [Sun, 7 Mar 2004 05:33:09 +0000 (05:33 +0000)]
Add support 2 devices(USB-DVD-R drives)
- Logitec LDR-H443SU2
- IO-DATA DVR-UEH8

PR: kern/63793
Submitted by: Ryuji MATSUMOTO <matumoto@pluto.ai.kyutech.ac.jp>
MFC after: 1 week

20 years agoConst-poison ip_stf_ttl to make it clear that the variable is not
Robert Watson [Sun, 7 Mar 2004 05:15:42 +0000 (05:15 +0000)]
Const-poison ip_stf_ttl to make it clear that the variable is not
modified at run-time.

20 years agoMFi386: revisions from 1.1127 to 1.1131.
Yoshihiro Takahashi [Sun, 7 Mar 2004 04:09:18 +0000 (04:09 +0000)]
MFi386: revisions from 1.1127 to 1.1131.

20 years agoAdd the agp, bfe, sk and ti devices. (the agp is disabled by default).
Yoshihiro Takahashi [Sun, 7 Mar 2004 04:07:57 +0000 (04:07 +0000)]
Add the agp, bfe, sk and ti devices. (the agp is disabled by default).
Remove obsolete compat_atdisk device.

20 years agoAdd preliminary support for PCMCIA devices in addition to PCI/cardbus.
Bill Paul [Sun, 7 Mar 2004 02:49:06 +0000 (02:49 +0000)]
Add preliminary support for PCMCIA devices in addition to PCI/cardbus.
if_ndis.c has been split into if_ndis_pci.c and if_ndis_pccard.c.
The ndiscvt(8) utility should be able to parse device info for PCMCIA
devices now. The ndis_alloc_amem() has moved from kern_ndis.c to
if_ndis_pccard.c so that kern_ndis.c no longer depends on pccard.

NOTE: this stuff is not guaranteed to work 100% correctly yet. So
far I have been able to load/init my PCMCIA Cisco Aironet 340 card,
but it crashes in the interrupt handler. The existing support for
PCI/cardbus devices should still work as before.

20 years agoRecognize hardlinks when reading cpio files.
Tim Kientzle [Sun, 7 Mar 2004 00:57:43 +0000 (00:57 +0000)]
Recognize hardlinks when reading cpio files.

This doesn't yet address the issue of selective restore
of hardlinked files.  With cpio format, it's possible to correctly
restore any linked file; the API doesn't yet fully support this.
(There's no way for the library to inform a client whether or not
there's a file body associated with this entry.  The assumption
right now is that "hardlink" entries have no file body.)

20 years agoRemove GIANT_REQUIRED from vunmapbuf().
Alan Cox [Sun, 7 Mar 2004 00:37:18 +0000 (00:37 +0000)]
Remove GIANT_REQUIRED from vunmapbuf().

20 years agoGiant is not required for vm_thread_new_altkstack().
Alan Cox [Sun, 7 Mar 2004 00:06:32 +0000 (00:06 +0000)]
Giant is not required for vm_thread_new_altkstack().

20 years agoFix markup.
Dag-Erling Smørgrav [Sat, 6 Mar 2004 23:36:41 +0000 (23:36 +0000)]
Fix markup.

Submitted by: ru

20 years agoHook logins(1) up to the build.
Dag-Erling Smørgrav [Sat, 6 Mar 2004 21:57:47 +0000 (21:57 +0000)]
Hook logins(1) up to the build.

20 years agoAdd a logins(1) utility similar to that found in SVr4 derivatives. This
Dag-Erling Smørgrav [Sat, 6 Mar 2004 21:57:29 +0000 (21:57 +0000)]
Add a logins(1) utility similar to that found in SVr4 derivatives.  This
particular implementation is based on the Solaris logins(1) man page.

20 years agoOverdue reversion of revision 1.143.
Ruslan Ermilov [Sat, 6 Mar 2004 21:23:56 +0000 (21:23 +0000)]
Overdue reversion of revision 1.143.

OK'ed by: imp

20 years agoLuigi was polled for additional documentation about polling(4).
Ruslan Ermilov [Sat, 6 Mar 2004 21:20:47 +0000 (21:20 +0000)]
Luigi was polled for additional documentation about polling(4).

20 years agoMerge some fixes from NetBSD's getopt.3 v1.31:
Andrey A. Chernov [Sat, 6 Mar 2004 17:09:10 +0000 (17:09 +0000)]
Merge some fixes from NetBSD's getopt.3 v1.31:
cleanup, add more sections, better explanation, declaration

20 years agoMerge some fixes from NetBSD's getopt.c v1.26:
Andrey A. Chernov [Sat, 6 Mar 2004 17:05:45 +0000 (17:05 +0000)]
Merge some fixes from NetBSD's getopt.c v1.26:
cleanups, handling 'ls -l-', handling '--*'

Note this is in the same time back out of our v1.3
"Don't print an error message if the bad option is '?'"
because it directly violates POSIX.

20 years agoAugment /dev/sndstat with the module names, if applicable.
Mathew Kanner [Sat, 6 Mar 2004 15:52:42 +0000 (15:52 +0000)]
Augment /dev/sndstat with the module names, if applicable.

Approved by:   tanimura (mentor)

20 years agoSet MAKEOBJDIRPREFIX in the environment, like God intended. This
Ruslan Ermilov [Sat, 6 Mar 2004 15:03:21 +0000 (15:03 +0000)]
Set MAKEOBJDIRPREFIX in the environment, like God intended.  This
only worked because src/Makefile.inc1 is wrapped by src/Makefile.

Silence from: dougb

20 years agoFix typo, was 'W'; instead of `W;'
Andrey A. Chernov [Sat, 6 Mar 2004 14:47:49 +0000 (14:47 +0000)]
Fix typo, was 'W'; instead of `W;'

20 years agoMake GNU-compatible following case:
Andrey A. Chernov [Sat, 6 Mar 2004 14:24:10 +0000 (14:24 +0000)]
Make GNU-compatible following case:
single '-' in command line and '-' (non-first) in options

20 years agoAssign checkmode boolean earlier to handle the goto jump.
Mike Heffner [Sat, 6 Mar 2004 13:27:59 +0000 (13:27 +0000)]
Assign checkmode boolean earlier to handle the goto jump.

Might fix PR bin/63769.

20 years agoFixed some style bugs (mainly unsorting and tab lossage in previous commit).
Bruce Evans [Sat, 6 Mar 2004 08:21:32 +0000 (08:21 +0000)]
Fixed some style bugs (mainly unsorting and tab lossage in previous commit).

20 years agoLink in contigmalloc(9) to the build.
Joseph Koshy [Sat, 6 Mar 2004 08:01:16 +0000 (08:01 +0000)]
Link in contigmalloc(9) to the build.

20 years agoJust pass -DCRT_BEGIN as an option to mkdep(1), no need to override
Ruslan Ermilov [Sat, 6 Mar 2004 07:34:51 +0000 (07:34 +0000)]
Just pass -DCRT_BEGIN as an option to mkdep(1), no need to override
the entire command.

20 years agoAdd a.out to CLEANFILES
Andrey A. Chernov [Sat, 6 Mar 2004 06:54:58 +0000 (06:54 +0000)]
Add a.out to CLEANFILES

20 years agoRemove the phantom 'nv' driver again.
Scott Long [Sat, 6 Mar 2004 06:54:54 +0000 (06:54 +0000)]
Remove the phantom 'nv' driver again.

20 years agoChange locale name from non-existent ASCII to en_US.US-ASCII
Andrey A. Chernov [Sat, 6 Mar 2004 06:10:16 +0000 (06:10 +0000)]
Change locale name from non-existent ASCII to en_US.US-ASCII

20 years agoMinor API tweak: The format-specific write_header function now sets
Tim Kientzle [Sat, 6 Mar 2004 05:44:13 +0000 (05:44 +0000)]
Minor API tweak: The format-specific write_header function now sets
the size in the archive_entry object to zero if that format doesn't
store a body for that file type.  This allows the client to determine
whether or not it should feed the file body to the archive.  In
particular, cpio stores the file body for hardlinks, tar and shar
don't.  With this change, bsdtar now correctly archives hardlinks in all
supported formats.

While I'm here, make shar output be more aggressive about creating directories.
Before this, commands such as:
    bsdtar -cv -F shar  some/explicit/path/to/a/file
wouldn't create the directory.  Some simple logic to remember the last
directory creation helps reduce unnecessary mkdirs here.

At this point, I think the only flaw in libarchive's cpio support is
the failure to recognize hardlinks when reading.

20 years agoAlways call vn_finished_write after vn_start_write was called. All
Alexander Kabaev [Sat, 6 Mar 2004 04:09:54 +0000 (04:09 +0000)]
Always call vn_finished_write after vn_start_write was called. All
occurences of 'goto done' after vn_start_write invocation were cleaning
up incompletely.

20 years agoCross-reference contigmalloc(9).
Joseph Koshy [Sat, 6 Mar 2004 02:13:03 +0000 (02:13 +0000)]
Cross-reference contigmalloc(9).

20 years agoA manual page for contigmalloc(9).
Joseph Koshy [Sat, 6 Mar 2004 02:09:17 +0000 (02:09 +0000)]
A manual page for contigmalloc(9).

Reviewed by: ru

20 years agoRemove last evidence of a long-dead function.
Tim Kientzle [Sat, 6 Mar 2004 01:06:49 +0000 (01:06 +0000)]
Remove last evidence of a long-dead function.

20 years agoAdd ARCHIVE_EXTRACT_UNLINK option to permit clients to
Tim Kientzle [Sat, 6 Mar 2004 01:05:32 +0000 (01:05 +0000)]
Add ARCHIVE_EXTRACT_UNLINK option to permit clients to
control how archive_extract handles pre-existing files.
(Not implemented yet, but documented.)

20 years agoCorrectly read symlinks from cpio files.
Tim Kientzle [Sat, 6 Mar 2004 00:59:08 +0000 (00:59 +0000)]
Correctly read symlinks from cpio files.

While I'm here, fix a bug in reading filenames from
cpio files.  (Copy should count the length of the name,
not the number of bytes available for input.)

20 years agoWhen faced with a "GenuineIntel", we know what they call it now. Replace
Peter Wemm [Sat, 6 Mar 2004 00:51:30 +0000 (00:51 +0000)]
When faced with a "GenuineIntel", we know what they call it now.  Replace
snide comment with a different one.

20 years agoAdd a missing part of jhb's previous commit. It looks like he had a
Peter Wemm [Sat, 6 Mar 2004 00:44:59 +0000 (00:44 +0000)]
Add a missing part of jhb's previous commit.  It looks like he had a
patch chunk rejected that he missed.  This would manifest as a lock
assertion panic at boot (Giant not locked in kern_fork.c).

Obtained from:  jhb

20 years agoHave these instructions tell users to 'sh installworld_newk' instead
Garance A Drosehn [Fri, 5 Mar 2004 23:10:49 +0000 (23:10 +0000)]
Have these instructions tell users to 'sh installworld_newk' instead
of './installworld_newk', because the scripts might not show up with
the +x bit set.

20 years agokthread_exit() no longer requires Giant, so don't force callers to acquire
John Baldwin [Fri, 5 Mar 2004 22:42:17 +0000 (22:42 +0000)]
kthread_exit() no longer requires Giant, so don't force callers to acquire
Giant just to call kthread_exit().

Requested by: many

20 years agoLock Giant around the body of the adlink_loran() function used by the
John Baldwin [Fri, 5 Mar 2004 22:41:22 +0000 (22:41 +0000)]
Lock Giant around the body of the adlink_loran() function used by the
adlink device kthreads.

20 years ago- Push down Giant in exit() and wait().
John Baldwin [Fri, 5 Mar 2004 22:39:53 +0000 (22:39 +0000)]
- Push down Giant in exit() and wait().
- Push Giant down a bit in coredump() and call coredump() with the proc
  lock already held rather than unlocking it only to turn around and
  relock it.

Requested by: peter

20 years agoLock Giant around the single threading code in exec() to satisfy an
John Baldwin [Fri, 5 Mar 2004 22:38:26 +0000 (22:38 +0000)]
Lock Giant around the single threading code in exec() to satisfy an
assertion in the single threading code.

20 years ago- Grab a share lock of the proctree lock while looking for a pid due to the
John Baldwin [Fri, 5 Mar 2004 22:37:32 +0000 (22:37 +0000)]
- Grab a share lock of the proctree lock while looking for a pid due to the
  process group and session dereferences.  Also, check that p_pgrp and
  p_sesssion are NULL before dereferencing them.
- Push down Giant in fork1().

Requested by: peter

20 years agoAdd warning about loading/unloading drivers and identify
Warner Losh [Fri, 5 Mar 2004 22:21:18 +0000 (22:21 +0000)]
Add warning about loading/unloading drivers and identify

20 years agoUndo the merger of mlock()/vslock and munlock()/vsunlock() and the
Don Lewis [Fri, 5 Mar 2004 22:03:11 +0000 (22:03 +0000)]
Undo the merger of mlock()/vslock and munlock()/vsunlock() and the
introduction of kern_mlock() and kern_munlock() in
        src/sys/kern/kern_sysctl.c      1.150
        src/sys/vm/vm_extern.h          1.69
        src/sys/vm/vm_glue.c            1.190
        src/sys/vm/vm_mmap.c            1.179
because different resource limits are appropriate for transient and
"permanent" page wiring requests.

Retain the kern_mlock() and kern_munlock() API in the revived
vslock() and vsunlock() functions.

Combine the best parts of each of the original sets of implementations
with further code cleanup.  Make the mclock() and vslock()
implementations as similar as possible.

Retain the RLIMIT_MEMLOCK check in mlock().  Move the most strigent
test, which can return EAGAIN, last so that requests that have no
hope of ever being satisfied will not be retried unnecessarily.

Disable the test that can return EAGAIN in the vslock() implementation
because it will cause the sysctl code to wedge.

Tested by: Cy Schubert <Cy.Schubert AT komquats.com>

20 years agoTeach dd(1) about parity bits.
Poul-Henning Kamp [Fri, 5 Mar 2004 19:35:51 +0000 (19:35 +0000)]
Teach dd(1) about parity bits.

20 years agoAdd a test-target and reference vectors for the character converions.
Poul-Henning Kamp [Fri, 5 Mar 2004 19:30:13 +0000 (19:30 +0000)]
Add a test-target and reference vectors for the character converions.

20 years agoThe roundrobin callout from sched_4bsd is MPSAFE, so set up the
Robert Watson [Fri, 5 Mar 2004 19:27:04 +0000 (19:27 +0000)]
The roundrobin callout from sched_4bsd is MPSAFE, so set up the
callout as MPSAFE to avoid grabbing Giant.

Reviewed by: jhb