]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoLink /etc/ssh/ssh_host_key to /etc/ssh/ssh_host_rsa_key to deal with
jesper [Wed, 16 May 2001 19:23:54 +0000 (19:23 +0000)]
Link /etc/ssh/ssh_host_key to /etc/ssh/ssh_host_rsa_key to deal with
gratutious changes in the latest SSH

Reviewed by: obrien
Approved by: obrien

23 years agoFix type noticed by jasone
imp [Wed, 16 May 2001 19:15:32 +0000 (19:15 +0000)]
Fix type noticed by jasone

23 years agoMigrate from using MAXPATHLEN to MAX_PATH. Use strlcpy to copy the
imp [Wed, 16 May 2001 19:10:40 +0000 (19:10 +0000)]
Migrate from using MAXPATHLEN to MAX_PATH.  Use strlcpy to copy the
strings.

23 years agoAdd entry for cygwin, the Cygnus Windows emulator.
imp [Wed, 16 May 2001 19:01:45 +0000 (19:01 +0000)]
Add entry for cygwin, the Cygnus Windows emulator.

Submitted by: "Karsten W. Rohrbach" <karsten@rohrbach.de>
Reviewed by: ache

23 years agosrandomdev() affords us the opportunity to radically improve, and at the
nsayer [Wed, 16 May 2001 18:32:46 +0000 (18:32 +0000)]
srandomdev() affords us the opportunity to radically improve, and at the
same time simplify, the random number selection code.

23 years agoCatch any attempted buffer overflows. The magic numbers in this code
nsayer [Wed, 16 May 2001 18:27:09 +0000 (18:27 +0000)]
Catch any attempted buffer overflows. The magic numbers in this code
(512) are a little distressing, but the method really needs to be
extended to allow server-supplied DH parameters anyway.

Submitted by: kris

23 years agoCatch malloc return failures. This should help avoid dereferencing NULL on
nsayer [Wed, 16 May 2001 18:17:55 +0000 (18:17 +0000)]
Catch malloc return failures. This should help avoid dereferencing NULL on
low-memory situations.

Submitted by: kris

23 years agoChange the second argument of vflush() to an integer that specifies
iedowse [Wed, 16 May 2001 18:04:37 +0000 (18:04 +0000)]
Change the second argument of vflush() to an integer that specifies
the number of references on the filesystem root vnode to be both
expected and released. Many filesystems hold an extra reference on
the filesystem root vnode, which must be accounted for when
determining if the filesystem is busy and then released if it isn't
busy. The old `skipvp' approach required individual filesystem
xxx_unmount functions to re-implement much of vflush()'s logic to
deal with the root vnode.

All 9 filesystems that hold an extra reference on the root vnode
got the logic wrong in the case of forced unmounts, so `umount -f'
would always fail if there were any extra root vnode references.
Fix this issue centrally in vflush(), now that we can.

This commit also fixes a vnode reference leak in devfs, which could
result in idle devfs filesystems that refuse to unmount.

Reviewed by: phk, bp

23 years agoAdd BUGS section describing the requirement to manually load the KLD.
archie [Wed, 16 May 2001 17:30:15 +0000 (17:30 +0000)]
Add BUGS section describing the requirement to manually load the KLD.

23 years agoFix man page markup.
joerg [Wed, 16 May 2001 17:09:00 +0000 (17:09 +0000)]
Fix man page markup.

Submitted by: ru

23 years agoUnbreak world; _DIAGASSERT macro is not available in FreeBSD.
ru [Wed, 16 May 2001 14:34:47 +0000 (14:34 +0000)]
Unbreak world; _DIAGASSERT macro is not available in FreeBSD.

23 years agomdoc(7) police: fix markup.
ru [Wed, 16 May 2001 13:53:19 +0000 (13:53 +0000)]
mdoc(7) police: fix markup.

23 years agoInstall wchar.h and wctype.h.
ru [Wed, 16 May 2001 11:38:18 +0000 (11:38 +0000)]
Install wchar.h and wctype.h.

Forgotten by: tshiozak

23 years agoRemove forgotten -Wall
brian [Wed, 16 May 2001 11:15:49 +0000 (11:15 +0000)]
Remove forgotten -Wall

Reminded by: ru

23 years agoFix an array which was too small.
phk [Wed, 16 May 2001 11:13:16 +0000 (11:13 +0000)]
Fix an array which was too small.

PR: 27380
Submitted by: Samuel Greear <sgreear@vsni.com>

23 years agoFix problem with static linking:
markm [Wed, 16 May 2001 11:05:03 +0000 (11:05 +0000)]
Fix problem with static linking:

> Script started on Sat May 12 22:18:47 2001
> ttyp1:bde@gamplex:/usr/src/libexec/rshd> rsh localhost ls
> rcmd: localhost: Undefined error: 0

Reported by: bde

23 years agomdoc(7) police: fix markup and spelling.
ru [Wed, 16 May 2001 10:39:42 +0000 (10:39 +0000)]
mdoc(7) police: fix markup and spelling.

23 years agomdoc(7) police: fix markup and spelling.
ru [Wed, 16 May 2001 10:29:51 +0000 (10:29 +0000)]
mdoc(7) police: fix markup and spelling.

23 years agomdoc(7) police: fix markup (demonstrates new -xwidth modifier).
ru [Wed, 16 May 2001 10:18:20 +0000 (10:18 +0000)]
mdoc(7) police: fix markup (demonstrates new -xwidth modifier).

23 years agomdoc(7) police: fix markup.
ru [Wed, 16 May 2001 09:50:12 +0000 (09:50 +0000)]
mdoc(7) police: fix markup.

23 years agomdoc(7) police: uppercase abbreviations in revision 1.34.
ru [Wed, 16 May 2001 09:43:48 +0000 (09:43 +0000)]
mdoc(7) police: uppercase abbreviations in revision 1.34.

23 years agomdoc(7) police: double spaces in plain text chunks aren't good.
ru [Wed, 16 May 2001 09:40:12 +0000 (09:40 +0000)]
mdoc(7) police: double spaces in plain text chunks aren't good.

23 years agoCatch up with some recent changes:
imp [Wed, 16 May 2001 07:35:54 +0000 (07:35 +0000)]
Catch up with some recent changes:
1) pcic_isa.c
2) For pc98, add mecia driver and -DPC98 to command line.
3) pcic_p.c -> pcic_pci.c

23 years agoSeparate out isa attachment to its own file. The pci attachment will
imp [Wed, 16 May 2001 07:32:04 +0000 (07:32 +0000)]
Separate out isa attachment to its own file.  The pci attachment will
soon attach directly to pcic rather than the kludge pci-pcic device we
have now.

In some ways, this is similar to the work PAO3 did to try to support
cardbus bridges.  In some ways different.  This and future commits
will be taking from the spirit of many of those changes.  pcicvar.h is
completely different from the pcicvar.h that appeared in PAO3, but
similar in concept.

23 years agoThis file is now obsolete. The #defines in it have never been used
imp [Wed, 16 May 2001 06:14:51 +0000 (06:14 +0000)]
This file is now obsolete.  The #defines in it have never been used
and the pcic_devclass no longer is used by pccard.c.

23 years agoNote recent windows of breakage.
imp [Wed, 16 May 2001 04:34:40 +0000 (04:34 +0000)]
Note recent windows of breakage.
Note new ata subsystem.
Add additional files for the portmap change.

23 years agoremove include of ipl.h because it no longer exists
alfred [Wed, 16 May 2001 02:52:06 +0000 (02:52 +0000)]
remove include of ipl.h because it no longer exists

23 years agoFix typo.
archie [Wed, 16 May 2001 01:25:29 +0000 (01:25 +0000)]
Fix typo.

Noticed by:     ade

23 years agoLock the procfs functions for doing a single step and reading/writing
jhb [Wed, 16 May 2001 00:47:27 +0000 (00:47 +0000)]
Lock the procfs functions for doing a single step and reading/writing
registers better.  Hold sched_lock not only for checking the flag but
also while performing the actual operation to ensure the process doesn't
get swapped out by another CPU while we the operation is being performed.

23 years agopcic98reg.h is now contained in meciareg.h.
imp [Tue, 15 May 2001 23:53:18 +0000 (23:53 +0000)]
pcic98reg.h is now contained in meciareg.h.

23 years agoThe mecia support has moved to the mecia driver, so remove the copy of
imp [Tue, 15 May 2001 23:50:58 +0000 (23:50 +0000)]
The mecia support has moved to the mecia driver, so remove the copy of
it here.

23 years agoAdd mecia driver definitions.
imp [Tue, 15 May 2001 23:47:17 +0000 (23:47 +0000)]
Add mecia driver definitions.

23 years agoRev 1.131 was missing:
imp [Tue, 15 May 2001 23:44:03 +0000 (23:44 +0000)]
Rev 1.131 was missing:

Submitted by: KATO Takenori-san <kato@nendai.nagoya-u.ac.jp>

23 years agoThis code touches MD code inappropriately. So we have to include pc98
imp [Tue, 15 May 2001 23:43:02 +0000 (23:43 +0000)]
This code touches MD code inappropriately.  So we have to include pc98
specific file for pc98.

23 years agoIntroduce getprogname(3) and setprogname(3) library calls. These get
dd [Tue, 15 May 2001 23:41:01 +0000 (23:41 +0000)]
Introduce getprogname(3) and setprogname(3) library calls.  These get
and set __progname, respectively.

Discussed on: -arch (Feb 2001), -audit
Reviewed by: -audit
Approved by: kris
Obtained from: (mostly) NetBSD

23 years agoA new driver for the MECIA. This is the NEC Original PCMCIA
imp [Tue, 15 May 2001 23:34:42 +0000 (23:34 +0000)]
A new driver for the MECIA.  This is the NEC Original PCMCIA
controller found in many of the early NOTE98 machines that were
produced.  This controller is completely unlike the intel 82365, so
I've separated it out from the main pcic driver.

23 years ago"Sir, the deorbit burn completed succesfully."
jhb [Tue, 15 May 2001 23:30:37 +0000 (23:30 +0000)]
"Sir, the deorbit burn completed succesfully."

RIP {sys/machine}/ipl.h.

23 years agoRemove unneeded includes of sys/ipl.h and machine/ipl.h.
jhb [Tue, 15 May 2001 23:22:29 +0000 (23:22 +0000)]
Remove unneeded includes of sys/ipl.h and machine/ipl.h.

23 years agoAdd a PROC_TRYLOCK() macro to perform a mtx_trylock() on the process lock.
jhb [Tue, 15 May 2001 23:19:52 +0000 (23:19 +0000)]
Add a PROC_TRYLOCK() macro to perform a mtx_trylock() on the process lock.

23 years agoRemove unneeded includes in the i386 case.
jhb [Tue, 15 May 2001 23:16:18 +0000 (23:16 +0000)]
Remove unneeded includes in the i386 case.

23 years ago- Remove unneeded include of sys/ipl.h.
jhb [Tue, 15 May 2001 23:15:06 +0000 (23:15 +0000)]
- Remove unneeded include of sys/ipl.h.
- Lock the process before calling killproc() to kill it for exceeding the
  maximum CPU limit.

23 years ago- Remove unneeded include of sys/ipl.h.
jhb [Tue, 15 May 2001 23:13:58 +0000 (23:13 +0000)]
- Remove unneeded include of sys/ipl.h.
- Require the proc lock be held for killproc() to allow for the vmdaemon to
  kill a process when memory is exhausted while holding the lock of the
  process to kill.

23 years agoMove the definition of HWI_MASK to the i386/isa/icu.h header right next to
jhb [Tue, 15 May 2001 23:11:48 +0000 (23:11 +0000)]
Move the definition of HWI_MASK to the i386/isa/icu.h header right next to
the definition of ICU_LEN.

23 years agoSave one fork on a buildworld. env FOO=foo bar -> FOO=foo bar.
imp [Tue, 15 May 2001 22:54:15 +0000 (22:54 +0000)]
Save one fork on a buildworld.  env FOO=foo bar -> FOO=foo bar.

23 years agoIf PASTE isn't defined, define it as a transitional measure. This
imp [Tue, 15 May 2001 22:53:05 +0000 (22:53 +0000)]
If PASTE isn't defined, define it as a transitional measure.  This
allows me to complete make buildworld on my stable machine.

Also change termination case to be clearer what is going on while
searching for map files.

23 years ago- Use ICU_LEN rather than NHWI for the size of the array of ithreads.
jhb [Tue, 15 May 2001 22:31:08 +0000 (22:31 +0000)]
- Use ICU_LEN rather than NHWI for the size of the array of ithreads.
- Remove unneeded include of sys/ipl.h.

23 years ago- Use PROC_LOCK_ASSERT instead of a direct mtx_assert.
jhb [Tue, 15 May 2001 22:20:44 +0000 (22:20 +0000)]
- Use PROC_LOCK_ASSERT instead of a direct mtx_assert.
- Don't hold Giant in the swapper daemon while we walk the list of
  processes looking for a process to swap back in.
- Don't bother grabbing the sched_lock while checking a process' sleep
  time in swapout_procs() to ensure that a process has been idle for at
  least swap_idle_threshold2 before swapping it out.  If we lose the race
  we just let a process stay in memory until the next call of
  swapout_procs().
- Remove some unneeded spl's, sched_lock does all the locking needed in
  this case.

23 years agoFix instance of (struct ti_softc *) that should have been
wpaul [Tue, 15 May 2001 22:19:50 +0000 (22:19 +0000)]
Fix instance of (struct ti_softc *) that should have been
(struct nge_softc *), which the compiler never complained about.
I guess it doesn't matter, a pointer is a pointer, but looked weird
to me.

23 years agoInclude sys/lock.h and sys/mutex.h so that this compiles.
jhb [Tue, 15 May 2001 22:02:46 +0000 (22:02 +0000)]
Include sys/lock.h and sys/mutex.h so that this compiles.

23 years agoAdjust the descriptor structures a little by making the software parts
wpaul [Tue, 15 May 2001 21:42:43 +0000 (21:42 +0000)]
Adjust the descriptor structures a little by making the software parts
be unions with enough padding to make sure they always end up being
a multiple of 8 bytes in size, since the 83820/83821 chips require
descriptors to be aligned on 64-bit boundaries. I happened to get it
right for the 32-bit descriptor/x86 case, but botched everything else.
Things should work properle on 32-bit/64-bit platforms now.

Note that the 64-bit descriptor format isn't being used currently.

23 years agoadapt to FreeBSD.
tshiozak [Tue, 15 May 2001 20:34:20 +0000 (20:34 +0000)]
adapt to FreeBSD.
- enable locale-insensitive functions of wchar.h:
wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c
        wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c
wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c
XXX: wcswidth.c is not enabled yet.
- enable wmemchr(3) man page.
XXX: FreeBSD lacks .St -isoC99 and .St -isoC-amd1.

23 years agoadapt to FreeBSD.
tshiozak [Tue, 15 May 2001 20:28:48 +0000 (20:28 +0000)]
adapt to FreeBSD.
- add #define NULL 0 instead of sys/null.h.
- enable locale-insensitive functions:
wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c
        wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c
wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c
- disable some locale-sensitive functions defined in wchar.h temporarily:
mbrlen mbrtowc mbsinit mbsrtowcs wcrtomb wcsrtombs wcwidth wcswidth
- disable all functions defined in wctype.h temporarily:
is* tow*

23 years agoRemove a bogus comment which I forgot to get rid of after testing
greid [Tue, 15 May 2001 20:05:19 +0000 (20:05 +0000)]
Remove a bogus comment which I forgot to get rid of after testing

23 years agoahc_eisa.c:
gibbs [Tue, 15 May 2001 19:41:12 +0000 (19:41 +0000)]
ahc_eisa.c:
ahc_pci.c:
Prepare for making ahc a module by adding module dependency
and version info.

aic7770.c:
Remove linux header ifdefs.  The headers are handled differently
in Linux where local includes (those using "'s instead of <>'s)
are allowed.

Don't map our interrupt until after we are fully setup to
handle interrupts.  Our interrupt line may be shared so
an interrupt could occur at any time.

aic7xxx.c:
Remove linux header ifdefs.

current->curr to avoid Linux's use of current as a
#define for the current task on some architectures.

Add a helper function, ahc_assert_atn(), for use in
message phases we handle manually.  This hides the fact
that U160 chips with the expected phase matching disabled
need to have SCSISIGO updated differently.

if (ahc_check_residual(scb) != 0)
ahc_calc_residual(scb);
else
ahc_set_residual(scb, 0);

        becomes:

ahc_update_residual(scb);

Modify scsi parity error (or CRC error) handling to
reflect expected phase being disabled on U160 chips.

Move SELTO handling above BUSFREE handling so we can
use the new busfree interrupt behavior on U160 chips.

In ahc_build_transfer_msg() filter the period and ppr_options
prior to deciding whether a PPR message is required.
ppr_options may be forced to zero which will effect our
decision.

Correct a long standing but latent bug in ahc_find_syncrate().
We could choose a DT only rate even though DT transfers were
disabled.  In the CAM environment this was unlikely as CAM
filters our rate to a non-DT value if the device does not
support such rates.

When displaing controller characteristics, include the
speed of the chip.  This way we can modify the transfer
speed based on optional features that are enabled/disabled
in a particular application.

Add support for switching from fully blown tagged queing
to just using simple queue tags should the device reject
an ordered tag.

Remove per-target "current" disconnect and tag queuing
enable flags.  These should be per-device and are not
referenced internally be the driver, so we let the OSM
track this state if it needs to.

Use SCSI-3 message terminology.

aic7xxx.h:
The real 7850 does not support Ultra modes, but there are
several cards that use the generic 7850 PCI ID even though
they are using an Ultra capable chip (7859/7860).  We start
out with the AHC_ULTRA feature set and then check the
DEVSTATUS register to determine if the capability is really
present.

current -> curr

ahc_calc_residual() is no longer static allowing it to
be called from ahc_update_residual() in aic7xxx_inline.h.

Update some serial eeprom definitions for the latest
BIOS versions.

aic7xxx.reg:
Add a combined DATA_PHASE mask to the SCSIPHASE register
definition to simplify some sequencer code.

aic7xxx.seq:
Take advantage of some performance features available only
on the U160 chips.  The auto-ack feature allows us to ack
data-in phases up to the data-fifo size while the sequencer
is still setting up the DMA engine.  This greatly reduces
read transfer latency and simplifies testing for transfer
complete (check SCSIEN only).  We also disable the expected
phase feature, and enable the new bus free interrupt behavior,
to avoid a few instructions.

Re-arrange the Ultra2+ data phase handling to allow us to
do more work in parallel with the data fifo flushing on a
read.

On an SDTR, ack the message immediately so the target can
prepare the next phase or message byte in parallel with
our work to honor the message.

aic7xxx_93cx6.c:
Remove linux header ifdefs.

aic7xxx_freebsd.c:
current -> curr

Add a module event handler.

Handle tag downgrades in our ahc_send_async() handler.
We won't be able to downgrade to "basic queuing" until
CAM is made aware of this queuing type.

aic7xxx_freebsd.h:
Include cleanups.

Define offsetof if required.

Correct a few comments.

Update prototype of ahc_send_async().

aic7xxx_inline.h:
Implement ahc_update_residual().

aic7xxx_pci.c:
Remove linux header ifdefs.

Correct a few product strings.

Enable several U160 performance enhancing features.

Modify Ultra capability determination so we will enable
Ultra speeds on devices with a 7850 PCI id that happen
to really be a 7859 or 7860.

Don't map our interrupt until after we are fully setup to
handle interrupts.  Our interrupt line may be shared so
an interrupt could occur at any time.

23 years agoinitial import of wchar.h and wctype.h
tshiozak [Tue, 15 May 2001 19:35:57 +0000 (19:35 +0000)]
initial import of wchar.h and wctype.h

Obtained from: NetBSD and Citrus XPG4DL

23 years agoUse " |= " to enable special media handling for fxp with no MII, instead
jlemon [Tue, 15 May 2001 18:52:40 +0000 (18:52 +0000)]
Use " |= " to enable special media handling for fxp with no MII, instead
of " &= ".  Also change the MII PHY device mask to check the correct bits.

Cookie to: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Pointy hat to: me

23 years agoPrint longer package names. Some of them were running off the right
bmah [Tue, 15 May 2001 18:37:23 +0000 (18:37 +0000)]
Print longer package names.  Some of them were running off the right
edge of Perl field specifications.

PR: bin/26664
Submitted by: philip@eilio.com
MFC after: 3 days

23 years agoSupport /dev/ctty again
brian [Tue, 15 May 2001 18:12:38 +0000 (18:12 +0000)]
Support /dev/ctty again

Submitted by: peter

23 years agoAdd support for FreeBSD 4.4.
ru [Tue, 15 May 2001 17:04:26 +0000 (17:04 +0000)]
Add support for FreeBSD 4.4.

23 years agoRemoved duplilcate $FreeBSD$ tag.
ru [Tue, 15 May 2001 16:32:18 +0000 (16:32 +0000)]
Removed duplilcate $FreeBSD$ tag.

23 years agomdoc(7) police: FreeBSD -> .Fx.
ru [Tue, 15 May 2001 16:17:39 +0000 (16:17 +0000)]
mdoc(7) police: FreeBSD -> .Fx.

23 years agomdoc(7) police: fix markup in revision 1.27.
ru [Tue, 15 May 2001 16:03:59 +0000 (16:03 +0000)]
mdoc(7) police: fix markup in revision 1.27.

23 years agoAllow users to add local Makefile targets.
gshapiro [Tue, 15 May 2001 16:03:54 +0000 (16:03 +0000)]
Allow users to add local Makefile targets.

Submitted by: dinoex
MFC after: 7 days

23 years agoMake the default .mc file be `hostname`.mc if SENDMAIL_MC make.conf knob
gshapiro [Tue, 15 May 2001 16:01:40 +0000 (16:01 +0000)]
Make the default .mc file be `hostname`.mc if SENDMAIL_MC make.conf knob
is not set.  This allows admins to create a per-machine configuration file
while leaving the freebsd.mc template pristine.  Provide a rule to create
`hostname`.mc from freebsd.mc if it doesn't exist.

PR: misc/26299
MFC after: 8 days

23 years agoThe aliases file now lives in /etc/mail/.
gshapiro [Tue, 15 May 2001 15:58:30 +0000 (15:58 +0000)]
The aliases file now lives in /etc/mail/.

PR: misc/26648
MFC after: 3 days

23 years agomdoc(7) police: sort xrefs.
ru [Tue, 15 May 2001 15:57:05 +0000 (15:57 +0000)]
mdoc(7) police: sort xrefs.

23 years agoBack out scanning file descriptors with holding a process lock.
tanimura [Tue, 15 May 2001 10:19:57 +0000 (10:19 +0000)]
Back out scanning file descriptors with holding a process lock.
selrecord() requires allproc sx in pfind(), resulting in lock order
reversal between allproc and a process lock.

23 years agoHack to work around braindeath in libtelnet:sra.c. The sra.o file
peter [Tue, 15 May 2001 09:52:03 +0000 (09:52 +0000)]
Hack to work around braindeath in libtelnet:sra.c.  The sra.o file
references global variables from telnetd, but is also linked into
telnet as well. I was tempted to back out the last sra.c change
as it is 100% bogus and should be taken out and shot, but for now
this bandaid should get world working again. :-(

23 years agoMerged from sys/isa/fd.c revision 1.197.
kato [Tue, 15 May 2001 08:55:30 +0000 (08:55 +0000)]
Merged from sys/isa/fd.c revision 1.197.

23 years agoMerged from sys/i386/i386/machdep.c revision 1.450.
kato [Tue, 15 May 2001 08:32:01 +0000 (08:32 +0000)]
Merged from sys/i386/i386/machdep.c revision 1.450.

23 years agoAdd new, from scratch implementation of hsearch() et al that actually works.
ru [Tue, 15 May 2001 07:08:20 +0000 (07:08 +0000)]
Add new, from scratch implementation of hsearch() et al that actually works.

Obtained from: NetBSD
MFC after: 1 month

23 years agoinitial import of locale insensitive wcs* and wmem* functions.
tshiozak [Tue, 15 May 2001 06:01:19 +0000 (06:01 +0000)]
initial import of locale insensitive wcs* and wmem* functions.

Obtained from: NetBSD and Citrus.

23 years agoAdd battery state monitoring to apmd.
nsayer [Tue, 15 May 2001 05:13:45 +0000 (05:13 +0000)]
Add battery state monitoring to apmd.

The new syntax available in the config file is:

apm_battery [0-9]+(%|[Mm) (dis|)charging { ... }

The stuff in the braces is the same as the existing case. nn% checks for
a certain percentage of life remaining and nnM checks for a cerain
number of minutes remaining. Specifying "discharge" means that you're
interested in knowing when the battery reaches a certain level while AC
power is off, "charging" the opposite.

The man page needs to be updated.

The code can be fooled. If you SIGHUP the daemon and the battery level
matches a rule it will be performed once per SIGHUP. If the battery
level matches a rule and you repeatedly apply and take away AC power,
the rule will be run once per occurance. This, however, is a feature.
:-) The code also only runs when select() times out, so getting APM
events more often than the timeout interval will result in the rules not
being run. These are things that remain to be overcome.

23 years agoIf the uid of the attempted authentication is 0 and if the pty is
nsayer [Tue, 15 May 2001 04:47:14 +0000 (04:47 +0000)]
If the uid of the attempted authentication is 0 and if the pty is
insecure, do not succeed. Copied from login.c. This functionality really
should be a PAM module.

23 years ago{G,S}ET_UNIT are now unused, gc them
imp [Tue, 15 May 2001 03:32:45 +0000 (03:32 +0000)]
{G,S}ET_UNIT are now unused, gc them

23 years agoIf a host would exceed 16 characters in the utmp entry, record only
green [Tue, 15 May 2001 01:50:40 +0000 (01:50 +0000)]
If a host would exceed 16 characters in the utmp entry, record only
it's IP address/base host instead.

Submitted by: brian

23 years agoAdd a -J replstr option that allows the user to tell xargs to insert
dd [Tue, 15 May 2001 00:31:19 +0000 (00:31 +0000)]
Add a -J replstr option that allows the user to tell xargs to insert
the data read from standard input at a specific point in the command
line arguments rather than at the end.

Submitted by: dd, gad
Reviewed by: gad, brian

23 years agoClarify the currently used partition types.
grog [Mon, 14 May 2001 23:26:40 +0000 (23:26 +0000)]
Clarify the currently used partition types.

Add cross-references to ccd(4) and vinum(8).

23 years agoIt turns out that pcic_slot::slotnum was really unused, so don't set
imp [Mon, 14 May 2001 23:14:23 +0000 (23:14 +0000)]
It turns out that pcic_slot::slotnum was really unused, so don't set
it.

23 years agoRemove static array of slots. We now have state information for each
imp [Mon, 14 May 2001 23:08:58 +0000 (23:08 +0000)]
Remove static array of slots.  We now have state information for each
slot in a softc for each unit that we probe.  Also remove validunits
static, since it is no longer necessary.

23 years agoMake it easy for people to use define DWARF2 exceptions unwinding.
obrien [Mon, 14 May 2001 22:45:26 +0000 (22:45 +0000)]
Make it easy for people to use define DWARF2 exceptions unwinding.
If "WANT_DWARF2_UNWIND" you get it.  Note that this is a different C++ ABI
than the FreeBSD default.  So you will need to recompile all your C++ apps
that uses exceptions if you turn this on.  I am adding it here for Yahoo!'s
use and for those that want to be early adopters to what I will make as the
default with the GCC 3.0 import.

23 years agoIn some cases, there are some <sect1></sect1> elements that will have
bmah [Mon, 14 May 2001 22:31:51 +0000 (22:31 +0000)]
In some cases, there are some <sect1></sect1> elements that will have
version control information that is different from the rest of their
containing document (or at least other sections).  For release notes
only, allow output of <sect1info><pubdate></pubdate></sect1info>
text, and add it to three sections of RELNOTESng where it's kind of
important ("What's New" in the release notes, "Supported Device" in
the arch-independent hardware list, and the processors section of the
alpha hardware list).

23 years agoAdd RIO500/urio(4) to supported devices list.
bmah [Mon, 14 May 2001 22:03:11 +0000 (22:03 +0000)]
Add RIO500/urio(4) to supported devices list.

23 years agoNew release notes: devfs(5) on by default, new PAM modules, fdread(1).
bmah [Mon, 14 May 2001 21:58:49 +0000 (21:58 +0000)]
New release notes:  devfs(5) on by default, new PAM modules, fdread(1).

MFCs noted:  fxp(4) requires miibus.

23 years agoFix the so called "static bug" in polling mode. Some desktop cards
imp [Mon, 14 May 2001 21:08:20 +0000 (21:08 +0000)]
Fix the so called "static bug" in polling mode.  Some desktop cards
have bad grounding characteristics which allow small static discharges
(or sunspots, we're not 100% sure which) to reach the bridge chip.
This causes the bridge chip to wedge/reset itself.  There's no known
cure short of rebooting.

The bug manifests itself by the STAT_CHG return 0xff when read.  This
is impossible because the upper bits are reserved (and therefore
zero).  In addition, some of the lower bits are one only for memory
cards, which OLDCARD doesn't support, so if they are set, something
seriously foobar'd is going on.

So far we've seen this in exactly one brand of pcmcia <-> isa bridge
which plug and play identifies only as "VIA PCMCIA CARD".  This card
just has buffers on the isa card and the actual bridge chip on the
remote slot, which is connected by long ribbon cables.  We think this
long cable run, coupled with the lack of coupling capacitors is a
major reason why it is so static sensitive while its bretheren aren't.

Work Supported by: Timing Solutions, Inc.

MFC After: 3 days

23 years agoInclude fdread(1) into the parent Makefile.
joerg [Mon, 14 May 2001 21:00:14 +0000 (21:00 +0000)]
Include fdread(1) into the parent Makefile.

23 years agoNew option isdn_screenflags to set the syscons screen params for isdnd,
schweikh [Mon, 14 May 2001 20:51:10 +0000 (20:51 +0000)]
New option isdn_screenflags to set the syscons screen params for isdnd,
plus documentation.

Submitted by: Alexander Leidinger <Alexander@Leidinger.net>
Not objected to by: hm
MFC after: 1 week

23 years agoThis commit was generated by cvs2svn to compensate for changes in r76589,
joerg [Mon, 14 May 2001 20:22:49 +0000 (20:22 +0000)]
This commit was generated by cvs2svn to compensate for changes in r76589,
which included commits to RCS files with non-trunk default branches.

23 years agoInitial import of fdread(1), a logical counterpart to fdwrite(1).
joerg [Mon, 14 May 2001 20:22:49 +0000 (20:22 +0000)]
Initial import of fdread(1), a logical counterpart to fdwrite(1).

Its main purpose is to adapt automatically to the floppy parameters
(in particular the track size for efficient reading), and to allow a
simple error recovery for CRC-errored sectors.  Requires the newly
added fdc(4) options.

23 years agoImplement a few more floppy ioctl commands and IO options, namely:
joerg [Mon, 14 May 2001 20:20:11 +0000 (20:20 +0000)]
Implement a few more floppy ioctl commands and IO options, namely:

. FD_CLRERR clears the error counter, thus re-enables kernel error
  printf()s,

. FD_GSTAT obtains the last FDC operation state, if any,

. FDOPT_NOERRLOG (temporarily) turns off kernel printf() floppy
  error logging,

. FDOPT_NOERROR makes the kernel ignore an FDC error, thus can
  enable the transfer of an erroneous sector to the user application

All options are being cleared on (last) close.

Prime consumer of the last features will be fdread(1), to be committed
shortly.

(FD_CLRERR should be wired into fdcontrol(8), but then fdcontrol(8)
needs a major rewrite anyway.)

23 years agoClose PR 22208: bring chip out of suspend mode, because Windows might
wpaul [Mon, 14 May 2001 19:13:02 +0000 (19:13 +0000)]
Close PR 22208: bring chip out of suspend mode, because Windows might
have put the chip to sleep at shutdown. This is really only for the
VT6102, but it doesn't hurt the older chips.

23 years agoAdd support for the AMD 766 southbridge incl ATA100 support
sos [Mon, 14 May 2001 18:38:22 +0000 (18:38 +0000)]
Add support for the AMD 766 southbridge incl ATA100 support

Fix ATA66 mode for the AMD756, the timing was way to slow

23 years agomdoc(7) police: add RETURN VALUES section.
ru [Mon, 14 May 2001 18:38:05 +0000 (18:38 +0000)]
mdoc(7) police: add RETURN VALUES section.

PR: docs/27161
Submitted by: Kazuhiro KONDOU <k-fuji@za2.so-net.ne.jp>

23 years agomdoc(7) police: finished fixing conflicts in revision 1.18.
ru [Mon, 14 May 2001 18:13:34 +0000 (18:13 +0000)]
mdoc(7) police: finished fixing conflicts in revision 1.18.

23 years agoAdd kbdcontrol(1) to bootstrap-tools.
ru [Mon, 14 May 2001 17:21:02 +0000 (17:21 +0000)]
Add kbdcontrol(1) to bootstrap-tools.
This fixes the upgrade path breakage in usr.sbin/sysinstall.

23 years agoFurther fixes for deadlock in the presence of multiple snapshots.
mckusick [Mon, 14 May 2001 17:16:49 +0000 (17:16 +0000)]
Further fixes for deadlock in the presence of multiple snapshots.
There are still more to find, but this fix should cover the
common cases that folks are hitting.

23 years agoReplace functional bugs of ctypish functions in libstand with style
dcs [Mon, 14 May 2001 16:49:20 +0000 (16:49 +0000)]
Replace functional bugs of ctypish functions in libstand with style
bugs.

reviewed by: bde
MFC after: 1 week

23 years agoWhen calling poll() on a fd associated with a filesystem, let POLLIN/POLLOUT
jlemon [Mon, 14 May 2001 14:37:25 +0000 (14:37 +0000)]
When calling poll() on a fd associated with a filesystem, let POLLIN/POLLOUT
behave identically to POLLRDNORM/POLLWRNORM.

Submitted by: bde
PR: 27287
merge after: 1 week

23 years agoKerberos updates for PAM.
markm [Mon, 14 May 2001 11:45:16 +0000 (11:45 +0000)]
Kerberos updates for PAM.

23 years agoBring in a few useful PAM modules.
markm [Mon, 14 May 2001 11:23:58 +0000 (11:23 +0000)]
Bring in a few useful PAM modules.

pam_krb5 is a Kerberos 5 (Heimdal) authentication module.

pam_nologin checks for /etc/nologin and does the "usual stuff"
if it is found, otherwise it silently succeeds.

pam_rootok silently succeeds if the user is root, otherwise
it fails.

pam_wheel silently succeeds if the user is a member of group
"wheel" (or another nominated group), and fails
otherwise.

There is an issue with kerberosIV and kerberos5 - if both are
being built, then static linking fails with duplicate symbols.
This will take a bit of work to sort out in the kerberii.