]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoDon't generate syslog() statements which have format string vulnerabilities.
kris [Thu, 5 Jul 2001 08:17:41 +0000 (08:17 +0000)]
Don't generate syslog() statements which have format string vulnerabilities.

MFC after: 1 week

23 years agoMark some functions as __printflike()
kris [Thu, 5 Jul 2001 08:17:06 +0000 (08:17 +0000)]
Mark some functions as __printflike()

MFC After: 1 week

23 years agomdoc(7) police: sort xrefs.
ru [Thu, 5 Jul 2001 08:13:03 +0000 (08:13 +0000)]
mdoc(7) police: sort xrefs.

23 years agoFix a harmless format string bogon and mark a function as __printflike().
kris [Thu, 5 Jul 2001 08:01:15 +0000 (08:01 +0000)]
Fix a harmless format string bogon and mark a function as __printflike().
There is still one instance of non-constant format string use inside that
function, but it's hard to fix.

MFC after: 1 week

23 years agoMark a static function as __printflike()
kris [Thu, 5 Jul 2001 07:52:56 +0000 (07:52 +0000)]
Mark a static function as __printflike()

MFC After: 1 week

23 years agomdoc(7) police: fixed markup, sorted xrefs.
ru [Thu, 5 Jul 2001 07:37:33 +0000 (07:37 +0000)]
mdoc(7) police: fixed markup, sorted xrefs.

23 years agomdoc(7) police: fixed formatting bug in rev. 1.10.
ru [Thu, 5 Jul 2001 07:23:24 +0000 (07:23 +0000)]
mdoc(7) police: fixed formatting bug in rev. 1.10.

23 years agomdoc(7) police: use plain text parentheses with plain text blocks.
ru [Thu, 5 Jul 2001 07:21:28 +0000 (07:21 +0000)]
mdoc(7) police: use plain text parentheses with plain text blocks.

23 years agoImprove some error messages slightly.
msmith [Thu, 5 Jul 2001 07:21:12 +0000 (07:21 +0000)]
Improve some error messages slightly.

23 years agoImplement PCI interrupt routing using the ACPI data attached to the
msmith [Thu, 5 Jul 2001 07:20:51 +0000 (07:20 +0000)]
Implement PCI interrupt routing using the ACPI data attached to the
PCI bus object.  This should deal both with already-routed interrupts
as well as devices that need an interrupt routed.

Note that it *doesn't* deal with interlocked interrupt dependancies, nor
does it select between interrupt options in a smart way.  These are
optimisations that need further work.

23 years agoFix a couple of misunderstandings in the monitor code. Passive cooling
msmith [Thu, 5 Jul 2001 07:19:17 +0000 (07:19 +0000)]
Fix a couple of misunderstandings in the monitor code.  Passive cooling
is a parallel adjunct to active cooling, not a lesser evil.  The _ACx
levels sort from 0 being hottest, not coolest.

Sanity check the returned temperature values, since we are having
trouble reading them on some systems.

Rearrange sysctl nodes a bit; this is probably close to the final layout.

23 years agoAdd a new helper function for finding resources in resource buffers.
msmith [Thu, 5 Jul 2001 07:14:30 +0000 (07:14 +0000)]
Add a new helper function for finding resources in resource buffers.

Move the ACPI generic battery code into a new file.

23 years agomdoc(7) police: fixed markup in rev. 1.3.
ru [Thu, 5 Jul 2001 07:04:33 +0000 (07:04 +0000)]
mdoc(7) police: fixed markup in rev. 1.3.

23 years agomdoc(7) police: sort xrefs.
ru [Thu, 5 Jul 2001 06:40:06 +0000 (06:40 +0000)]
mdoc(7) police: sort xrefs.

23 years agomdoc(7) police: fixed formatting.
ru [Thu, 5 Jul 2001 06:35:03 +0000 (06:35 +0000)]
mdoc(7) police: fixed formatting.

23 years agomdoc(7) police: fixed formatting bugs in rev. 1.27.
ru [Thu, 5 Jul 2001 06:27:52 +0000 (06:27 +0000)]
mdoc(7) police: fixed formatting bugs in rev. 1.27.

23 years agomdoc(7) police: add missing .Ar in SYNOPSIS.
ru [Thu, 5 Jul 2001 06:20:29 +0000 (06:20 +0000)]
mdoc(7) police: add missing .Ar in SYNOPSIS.

23 years agoApply field bandages to the includes so compiles happen on alpha.
mjacob [Thu, 5 Jul 2001 06:13:44 +0000 (06:13 +0000)]
Apply field bandages to the includes so compiles happen on alpha.

23 years agomdoc(7) police: add missing .Ar in SYNOPSIS.
ru [Thu, 5 Jul 2001 06:11:10 +0000 (06:11 +0000)]
mdoc(7) police: add missing .Ar in SYNOPSIS.

23 years agoSync to pccarddevs 1.12
imp [Thu, 5 Jul 2001 03:20:48 +0000 (03:20 +0000)]
Sync to pccarddevs 1.12

23 years agoMerge from NetBSD:
imp [Thu, 5 Jul 2001 03:19:43 +0000 (03:19 +0000)]
Merge from NetBSD:
1.131: crhistos; cn40bc ne clone
1.130: ichiro; COREGA FEther PCC-TXF
1.129: ichiro; nits
1.128: ichiro; National Instruments pcmcia GPIB
1.127: jhawk; Socket EA ethernet
1.126: ichiro; Intel PRO/Wireless 2001 LAN PC Card
1.125: ichiro; BUFFALO AirStation 11Mbps WLAN Card
1.124: ichiro; Corega FEther PCC-TXD
1.123: onoe; Cisco Aironet 350 Series
1.122: ichiro; I-O DATA WN-B11/PCM wlan
1.121: aymeric; Synergy 21 S21810+
1.120: thorpej; D-LINK DMF-560TX
1.119: ichiro; typo
1.118: ichiro; some wavelan card
1.117: ichiro; Contec FLEXLAN/FX-DS100-PCC wavelan
1.116: ichiro; COMPAQ Wireless CARD NC5004(Prism2)
1.114: thorpej; Xircom CreditCard Token Ring II

23 years agoClarify (I hope) smbfs support item.
bmah [Thu, 5 Jul 2001 02:50:19 +0000 (02:50 +0000)]
Clarify (I hope) smbfs support item.

MFCs noted:  ifconfig -m, OpenSSL 0.9.6a.

23 years agoMove vm_page_zero_idle() from machine-dependant sections to a
dillon [Thu, 5 Jul 2001 01:32:42 +0000 (01:32 +0000)]
Move vm_page_zero_idle() from machine-dependant sections to a
machine-independant source file, vm/vm_zeroidle.c.  It was exactly the
same for all platforms and updating them all was getting annoying.

23 years agoReorg vm_page.c into vm_page.c, vm_pageq.c, and vm_contig.c (for contigmalloc).
dillon [Wed, 4 Jul 2001 23:27:09 +0000 (23:27 +0000)]
Reorg vm_page.c into vm_page.c, vm_pageq.c, and vm_contig.c (for contigmalloc).
Also removed some spl's and added some VM mutexes, but they are not actually
used yet, so this commit does not really make any operational changes
to the system.

vm_page.c relates to vm_page_t manipulation, including high level deactivation,
activation, etc...  vm_pageq.c relates to finding free pages and aquiring
exclusive access to a page queue (exclusivity part not yet implemented).
And the world still builds... :-)

23 years agomdoc(7) police: sort xrefs.
dd [Wed, 4 Jul 2001 22:55:29 +0000 (22:55 +0000)]
mdoc(7) police: sort xrefs.

23 years agoMake the '-tn' flag combination print the major/minor numbers of the
dd [Wed, 4 Jul 2001 22:53:19 +0000 (22:53 +0000)]
Make the '-tn' flag combination print the major/minor numbers of the
line as documented intead of a full column of 0's.

23 years agoMore cleanup when detaching. Clone device entries will now be
joerg [Wed, 4 Jul 2001 22:10:33 +0000 (22:10 +0000)]
More cleanup when detaching.  Clone device entries will now be
destroyed properly (otherwise bad things would happen after a clone
dev had been created, and the module was kldunloaded).  Allocated
children that have not successfully probed are being deleted again
(otherwise fd0 and fd1 have always been allocated, even if only
fd0 was acutally present, and fd1 even survived kldunloading the
module).

Still, kldunloading leaves remnants of the previously existing devices
intact.  Why doesn't it destroy all the devices?  As a consequence,
since dev->descr now points into no longer allocated memory, the
system panics deep inside printf(9) when running devinfo(1) after
kldunloading the module.  Ideas sought...

Also, when kldloading the module on a hints-populated isab0, this bus
somehow has already created an fdc0 entry (a dummy) so the load
attempt fails and will register fdc1 instead.  What are those dummy
entries for?  Loading the module from the bootloader works, and it
can be unloaded an re-loaded then later.

23 years agoFix warnings on alpha and re-enable WARNS=2.
mikeh [Wed, 4 Jul 2001 21:35:15 +0000 (21:35 +0000)]
Fix warnings on alpha and re-enable WARNS=2.

Submitted by: Mike Barcroft <mike@q9media.com>

23 years agoRemove stale file.
kris [Wed, 4 Jul 2001 21:27:10 +0000 (21:27 +0000)]
Remove stale file.

23 years agoUnbreak "paranoid" host checking, which was broken with the IPv6 code
kris [Wed, 4 Jul 2001 20:16:18 +0000 (20:16 +0000)]
Unbreak "paranoid" host checking, which was broken with the IPv6 code
import.

Submitted by: Tony Finch <dot@dotat.at>

23 years agoChange inlines back into mainline code in preparation for mutexing. Also,
dillon [Wed, 4 Jul 2001 20:15:18 +0000 (20:15 +0000)]
Change inlines back into mainline code in preparation for mutexing.  Also,
most of these inlines had been bloated in -current far beyond their
original intent.  Normalize prototypes and function declarations to be ANSI
only (half already were).  And do some general cleanup.

(kernel size also reduced by 50-100K, but that isn't the prime intent)

23 years ago- Sort includes.
jhb [Wed, 4 Jul 2001 20:14:59 +0000 (20:14 +0000)]
- Sort includes.
- Update vmmeter statistics for vnode pagein/pageouts in getpages/putpages.

23 years agoSpelling fix in a KASSERT: runq_chose -> runq_choose.
jhb [Wed, 4 Jul 2001 20:00:48 +0000 (20:00 +0000)]
Spelling fix in a KASSERT: runq_chose -> runq_choose.

23 years ago- Update the vmmeter statistics for vnode pageins and pageouts in
jhb [Wed, 4 Jul 2001 19:55:01 +0000 (19:55 +0000)]
- Update the vmmeter statistics for vnode pageins and pageouts in
  getpages/putpages.
- Use vm_page_undirty() instead of messing with pages' dirty fields
  directly.

23 years agowhitespace / register cleanup
dillon [Wed, 4 Jul 2001 19:00:13 +0000 (19:00 +0000)]
whitespace / register cleanup

23 years agoAdd CAM_NEW_TRAN_CODE support. Use correct CAMLOCK_2_ISPLOCK macros.
mjacob [Wed, 4 Jul 2001 18:54:29 +0000 (18:54 +0000)]
Add CAM_NEW_TRAN_CODE support. Use correct CAMLOCK_2_ISPLOCK macros.

For fibre channel, start going for the gusto and using AC_FOUND_DEVICE
and AC_LOST_DEVICE calls to xpt_async when devices appear and disappear
as the loop or fabric changes.

ISPASYNC_FW_CRASH is the async event code where the platform layer
deals with a firmware crash.

23 years agoMacroize request/response in/out queue pointer access.
mjacob [Wed, 4 Jul 2001 18:52:23 +0000 (18:52 +0000)]
Macroize request/response in/out queue pointer access.

23 years agoSome possibly helpful casts.
mjacob [Wed, 4 Jul 2001 18:51:58 +0000 (18:51 +0000)]
Some possibly helpful casts.

23 years agoAdd a microcomment about how you'd use ispds64_t or ispdlist_t
mjacob [Wed, 4 Jul 2001 18:51:06 +0000 (18:51 +0000)]
Add a microcomment about how you'd use ispds64_t or ispdlist_t
for CTIO3/CTIO4 entries.

23 years agoAdd a bunch of additional defines for completion codes. Define
mjacob [Wed, 4 Jul 2001 18:49:00 +0000 (18:49 +0000)]
Add a bunch of additional defines for completion codes. Define
some of the RIO (reduced interrupt operation) stuff. Add 64 bit
data list (DSD type 1) and arbitrary data list (DSD type 2)
data structure defines.

Add macros that parameterize usage of the Request/Response in/out
queue pointers. When we finish 2300 support, different registers
will be accessed for the 2300.

23 years agoBring FILES section up to date.
imp [Wed, 4 Jul 2001 18:48:50 +0000 (18:48 +0000)]
Bring FILES section up to date.

submitted by: Mark Peek <mark-ml@whistle.com>

23 years agoFirmware crashes handled in platform specific code (isp_async call).
mjacob [Wed, 4 Jul 2001 18:46:50 +0000 (18:46 +0000)]
Firmware crashes handled in platform specific code (isp_async call).

Fix longstanding silly buglet that left a hole in the debug log defines.

23 years agoMore 2300 support prep- the Request/Response in/out pointers are
mjacob [Wed, 4 Jul 2001 18:42:41 +0000 (18:42 +0000)]
More 2300 support prep- the Request/Response in/out pointers are
part of the PCI block for the 2300- not software convention usage
of the mailbox registers- so we macrosize in/out pointer usage.

Only report that a LIP destroyed commands if it actually destroyed
commands. Get the chan/tgt/lun order correct.  Fix a longstanding
stupid bug that caused us to try and issue a command with a tag on
Channel B because we were checking the tagged capability for the
target against Channel A.

A firmware crash is now vectored out to platform specific code
as an async event.

Some minor formatting tweaks.

23 years agoAdd older CD types, matcd, mcd, scd.
ben [Wed, 4 Jul 2001 18:33:01 +0000 (18:33 +0000)]
Add older CD types, matcd, mcd, scd.

Submitted by: imp

23 years agoBack out 1.6->1.7 change; this wasn't supposed to get committed.
bmah [Wed, 4 Jul 2001 17:53:48 +0000 (17:53 +0000)]
Back out 1.6->1.7 change; this wasn't supposed to get committed.

23 years agoNew release notes: lpd(8) -c and -w, lpc(8) tclean, whois(1) recursive
bmah [Wed, 4 Jul 2001 17:52:46 +0000 (17:52 +0000)]
New release notes:  lpd(8) -c and -w, lpc(8) tclean, whois(1) recursive
lookups, moused(8) -a, binutils 2.11.2.

MFCs noted:  IPv6 update.

23 years agoExclude acd*, cd*, and md* from being checked by default.
ben [Wed, 4 Jul 2001 17:47:23 +0000 (17:47 +0000)]
Exclude acd*, cd*, and md* from being checked by default.

23 years ago* Read 64k at a time with variable length pauses between instead of
ben [Wed, 4 Jul 2001 17:43:43 +0000 (17:43 +0000)]
* Read 64k at a time with variable length pauses between instead of
  reading variable sized blocks of data every second.  This should be
  more efficient.

Suggested & tested by: se

* Add a syntax for excluding CD-ROM drives etc.

Suggested by: des, se, many others...

Manual page updates coming soon.

23 years agocleanup: GIANT macros, rename DEPRECIATE to DEPRECATE
dillon [Wed, 4 Jul 2001 17:11:03 +0000 (17:11 +0000)]
cleanup: GIANT macros, rename DEPRECIATE to DEPRECATE
Move p_giant_optional to proc zero'd section
Remove (old) XXX zfree comment in pipe code

23 years agoWith Alfred's permission, remove vm_mtx in favor of a fine-grained approach
dillon [Wed, 4 Jul 2001 16:20:28 +0000 (16:20 +0000)]
With Alfred's permission, remove vm_mtx in favor of a fine-grained approach
(this commit is just the first stage).  Also add various GIANT_ macros to
formalize the removal of Giant, making it easy to test in a more piecemeal
fashion. These macros will allow us to test fine-grained locks to a degree
before removing Giant, and also after, and to remove Giant in a piecemeal
fashion via sysctl's on those subsystems which the authors believe can
operate without Giant.

23 years agomdoc(7) police: mark type with .Vt, sort xrefs.
ru [Wed, 4 Jul 2001 15:37:13 +0000 (15:37 +0000)]
mdoc(7) police: mark type with .Vt, sort xrefs.

23 years agopostsig() currently requires Giant to be held. Giant is held properly at
dillon [Wed, 4 Jul 2001 15:36:30 +0000 (15:36 +0000)]
postsig() currently requires Giant to be held.  Giant is held properly at
the first postsig() call, but not always held at the second place,
resulting in an occassional panic.

23 years agomdoc(7) police: cosmetics.
ru [Wed, 4 Jul 2001 15:32:44 +0000 (15:32 +0000)]
mdoc(7) police: cosmetics.

23 years agomdoc(7) police: fixed markup.
ru [Wed, 4 Jul 2001 15:19:52 +0000 (15:19 +0000)]
mdoc(7) police: fixed markup.

23 years agomdoc(7) police: fixed markup in rev. 1.26.
ru [Wed, 4 Jul 2001 15:02:31 +0000 (15:02 +0000)]
mdoc(7) police: fixed markup in rev. 1.26.

23 years agomdoc(7) police: simplify the fix in rev. 1.25.
ru [Wed, 4 Jul 2001 14:54:38 +0000 (14:54 +0000)]
mdoc(7) police: simplify the fix in rev. 1.25.

23 years agomdoc(7) police: sort xrefs.
ru [Wed, 4 Jul 2001 14:52:23 +0000 (14:52 +0000)]
mdoc(7) police: sort xrefs.

23 years agomdoc(7) police: fixed markup and some typos.
ru [Wed, 4 Jul 2001 14:38:54 +0000 (14:38 +0000)]
mdoc(7) police: fixed markup and some typos.

23 years agomdoc(7) police:
ru [Wed, 4 Jul 2001 14:18:31 +0000 (14:18 +0000)]
mdoc(7) police:
Keep document title (.Dt) in CAPITALS, as required by the mdoc(7) manpage.

23 years agomdoc(7) police: don't xref to itself.
ru [Wed, 4 Jul 2001 14:04:16 +0000 (14:04 +0000)]
mdoc(7) police: don't xref to itself.

23 years agomdoc(7) police: cosmetics.
ru [Wed, 4 Jul 2001 13:57:34 +0000 (13:57 +0000)]
mdoc(7) police: cosmetics.

23 years agomdoc(7) police: sort xrefs.
ru [Wed, 4 Jul 2001 13:30:53 +0000 (13:30 +0000)]
mdoc(7) police: sort xrefs.

23 years agomdoc(7) police: removed hard sentence breaks.
ru [Wed, 4 Jul 2001 13:27:05 +0000 (13:27 +0000)]
mdoc(7) police: removed hard sentence breaks.

23 years agoUse the .Rv macro to describe the return value.
yar [Wed, 4 Jul 2001 13:07:38 +0000 (13:07 +0000)]
Use the .Rv macro to describe the return value.

Suggested by: ru
MFC after: 5 days

23 years ago- Don't overwrite inb, inw and outw.
nyan [Wed, 4 Jul 2001 13:00:21 +0000 (13:00 +0000)]
- Don't overwrite inb, inw and outw.
- Move the lance_probe function to if_lnc.c.
- Support C-NET(98)S again.

Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) and nyan
No response from: Paul Richards

23 years agoShow IPv6 denied packets.
ume [Wed, 4 Jul 2001 12:49:17 +0000 (12:49 +0000)]
Show IPv6 denied packets.

MFC after: 1 week

23 years agomdoc(7) police: added missing newline after .Dv macro call,
ru [Wed, 4 Jul 2001 12:39:22 +0000 (12:39 +0000)]
mdoc(7) police: added missing newline after .Dv macro call,
removed hard sentence breaks.

23 years agomdoc(7) police: use .Rv -std.
ru [Wed, 4 Jul 2001 12:32:43 +0000 (12:32 +0000)]
mdoc(7) police: use .Rv -std.

23 years agomdoc(7) police: mark NULL with .Dv.
ru [Wed, 4 Jul 2001 12:04:25 +0000 (12:04 +0000)]
mdoc(7) police: mark NULL with .Dv.

23 years agomdoc(7) police: fixed/simplified formatting.
ru [Wed, 4 Jul 2001 11:59:14 +0000 (11:59 +0000)]
mdoc(7) police: fixed/simplified formatting.

23 years agoadjust mbuf length right in route_output().
ume [Wed, 4 Jul 2001 11:29:55 +0000 (11:29 +0000)]
adjust mbuf length right in route_output().

Obtained from: KAME
MFC after: 1 week

23 years agoWhen the link-layer address of a router changes, select the
ume [Wed, 4 Jul 2001 11:27:24 +0000 (11:27 +0000)]
When the link-layer address of a router changes, select the
best router again.  In particular, when the neighbor entry is newly
created, it might affect the selection policy.

Obtained from: KAME
MFC after: 1 week

23 years agomdoc(7) police: sort xrefs.
ru [Wed, 4 Jul 2001 11:02:10 +0000 (11:02 +0000)]
mdoc(7) police: sort xrefs.

23 years agomdoc(7) police: print some example text with literal font.
ru [Wed, 4 Jul 2001 10:59:30 +0000 (10:59 +0000)]
mdoc(7) police: print some example text with literal font.

23 years agomdoc(7) police: fixed bugs in rev. 1.19, split section headers names.
ru [Wed, 4 Jul 2001 10:53:15 +0000 (10:53 +0000)]
mdoc(7) police: fixed bugs in rev. 1.19, split section headers names.

23 years agomdoc(7) police: compact VFCF_ list.
ru [Wed, 4 Jul 2001 10:42:03 +0000 (10:42 +0000)]
mdoc(7) police: compact VFCF_ list.

23 years agomdoc(7) police: removed extraneous .Pp call.
ru [Wed, 4 Jul 2001 10:19:02 +0000 (10:19 +0000)]
mdoc(7) police: removed extraneous .Pp call.

23 years agoMake the last fix work properly on descriptors 1 and 2 (not just 0)
brian [Wed, 4 Jul 2001 09:32:34 +0000 (09:32 +0000)]
Make the last fix work properly on descriptors 1 and 2 (not just 0)

23 years agoMake sure you don't have a file descriptor leak for the 'real'
mjacob [Wed, 4 Jul 2001 07:43:10 +0000 (07:43 +0000)]
Make sure you don't have a file descriptor leak for the 'real'
underlying CAM device. This needs to be checked not only in
the open routine, but the device->fd has to be initialized
as well.

PR: 28688
Submitted (partially) by: T. William Wells <bill@twwells.com>
MFC after: 2 weeks

23 years agoInstall it with mode 550, and with default group ${BINGRP}.
ru [Wed, 4 Jul 2001 07:20:11 +0000 (07:20 +0000)]
Install it with mode 550, and with default group ${BINGRP}.

23 years ago- Document that this program is available to root only.
ru [Wed, 4 Jul 2001 07:17:24 +0000 (07:17 +0000)]
- Document that this program is available to root only.
- Document alternate way to fetch multicast info.
- Add RFC2080 reference.

Obtained from: OpenBSD (with mods)

23 years agoDescribe the condition when EACCES is returned more explicitly.
dd [Wed, 4 Jul 2001 06:29:36 +0000 (06:29 +0000)]
Describe the condition when EACCES is returned more explicitly.

Submitted by: bde

23 years agoMFCs noted: ALS4000 driver, ifconfig(8) support for IEEE 802.11
bmah [Wed, 4 Jul 2001 05:34:20 +0000 (05:34 +0000)]
MFCs noted:  ALS4000 driver, ifconfig(8) support for IEEE 802.11
devices, traceroute(8) default TTL from sysctl MIB.

23 years agoCheck the void * argument in the AC_FOUND_DEV case against NULL. Whether
mjacob [Wed, 4 Jul 2001 05:22:42 +0000 (05:22 +0000)]
Check the void * argument in the AC_FOUND_DEV case against NULL. Whether
correctly or not, this sometimes is propagated up via XPT.

23 years agoFollow Bruce's suggestions. They're probably wrong, but better than before.
mjacob [Wed, 4 Jul 2001 05:16:56 +0000 (05:16 +0000)]
Follow Bruce's suggestions. They're probably wrong, but better than before.

23 years agoAdd code, imperfect though it may be, for CAM_NEW_TRAN_CODE compilation.
mjacob [Wed, 4 Jul 2001 05:01:21 +0000 (05:01 +0000)]
Add code, imperfect though it may be, for CAM_NEW_TRAN_CODE compilation.

23 years agoHandle any of descriptors 0, 1 or 2 being closed when we're
brian [Wed, 4 Jul 2001 03:34:20 +0000 (03:34 +0000)]
Handle any of descriptors 0, 1 or 2 being closed when we're
envoked -- don't use them (as return values from open()), then
(say) close(STDIN_FILENO) when daemonising.

This is done by grabbing 3 descriptors to /dev/null at startup and
releasing them after we've daemonised.

MFC after: 1 week

23 years agoImplement mwakeup, mwakeup_one, cv_signal_drop and cv_broadcast_drop.
jake [Wed, 4 Jul 2001 00:32:50 +0000 (00:32 +0000)]
Implement mwakeup, mwakeup_one, cv_signal_drop and cv_broadcast_drop.
These take an additional mutex argument, which is dropped before any
processes are made runnable.  This can avoid contention on the mutex
if the processes would immediately acquire it, and is done in such a
way that wakeups will not be lost.

Reviewed by: jhb

23 years agoReduce the interface MTU by 2 when MPPE has been successfully negotiated.
brian [Tue, 3 Jul 2001 22:20:19 +0000 (22:20 +0000)]
Reduce the interface MTU by 2 when MPPE has been successfully negotiated.

This is necessary because MPPE will combine the protocol id with the
payload received on the tun interface, encrypt it, then prepend its
own protocol id, effectively increasing the payload by two bytes.

23 years agoDon't accept chap80lm by default - it doesn't work.
brian [Tue, 3 Jul 2001 22:20:11 +0000 (22:20 +0000)]
Don't accept chap80lm by default - it doesn't work.

MFC after: 1 week

23 years agoSilence some gcc warnings
brian [Tue, 3 Jul 2001 22:20:06 +0000 (22:20 +0000)]
Silence some gcc warnings

23 years agoConstify the format string.
des [Tue, 3 Jul 2001 21:46:43 +0000 (21:46 +0000)]
Constify the format string.

Submitted by: Mike Barcroft <mike@q9media.com>

23 years agoMake fdformat WARN=2 ready.
joerg [Tue, 3 Jul 2001 21:43:41 +0000 (21:43 +0000)]
Make fdformat WARN=2 ready.

23 years agoUse correct type of argument to fgetln.
mjacob [Tue, 3 Jul 2001 21:40:34 +0000 (21:40 +0000)]
Use correct type of argument to fgetln.

MFC after: 1 week

23 years agomdoc(7) police: fix spacing and punctuation issues.
dd [Tue, 3 Jul 2001 21:22:09 +0000 (21:22 +0000)]
mdoc(7) police: fix spacing and punctuation issues.

23 years agomdoc(7) police: fix spacing issues.
dd [Tue, 3 Jul 2001 21:20:06 +0000 (21:20 +0000)]
mdoc(7) police: fix spacing issues.

23 years agomdoc(7) police: fix spacing issue
dd [Tue, 3 Jul 2001 21:16:34 +0000 (21:16 +0000)]
mdoc(7) police: fix spacing issue

Submitted by: ru

23 years agoAccount for the machdep.msgbuf -> kern.msgbuf renaming.
tmm [Tue, 3 Jul 2001 19:51:53 +0000 (19:51 +0000)]
Account for the machdep.msgbuf -> kern.msgbuf renaming.

23 years agoUse the kern.msgbuf sysctl to get the message buffer on a running
tmm [Tue, 3 Jul 2001 19:49:31 +0000 (19:49 +0000)]
Use the kern.msgbuf sysctl to get the message buffer on a running
kernel, and remove setgid kmem, which is not needed any more.

23 years agoMake the code to read the kernel message buffer via sysctl machine-
tmm [Tue, 3 Jul 2001 19:44:07 +0000 (19:44 +0000)]
Make the code to read the kernel message buffer via sysctl machine-
independent and rename the corresponding sysctls from machdep.msgbuf and
machdep.msgbuf_clear (i386 only) to kern.msgbuf and kern.msgbuf_clear.