]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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.

23 years agouse print_version from lib/vers instead of lib/roken
assar [Mon, 14 May 2001 09:24:50 +0000 (09:24 +0000)]
use print_version from lib/vers instead of lib/roken

23 years agoUse the new ability to avoid practically all the gunk in this file.
phk [Mon, 14 May 2001 08:22:56 +0000 (08:22 +0000)]
Use the new ability to avoid practically all the gunk in this file.

When people access /dev/tty, locate their controlling tty and return
the dev_t of it to them.  This basically makes /dev/tty act like
a variant symlink sort of thing which is much simpler than all the
mucking about with vnodes.

23 years agoAfter a successfull poll of the cloning functions, match on the
phk [Mon, 14 May 2001 08:20:46 +0000 (08:20 +0000)]
After a successfull poll of the cloning functions, match on the
returned dev_t rather than the original name.

This allows cloning from one name to another which is useful for
/dev/tty and later for the pty's.

23 years agoMinor style(9) changes:
imp [Mon, 14 May 2001 06:15:24 +0000 (06:15 +0000)]
Minor style(9) changes:
return (VALUE);

23 years agoFix a possible segfault introduced in my previous commit.
sobomax [Mon, 14 May 2001 06:15:07 +0000 (06:15 +0000)]
Fix a possible segfault introduced in my previous commit.

23 years agoTake a stab at making this less dependent on having pcic as a parent.
imp [Mon, 14 May 2001 06:04:29 +0000 (06:04 +0000)]
Take a stab at making this less dependent on having pcic as a parent.
For memory for the pccard attribute/common memory mapping allocate on
the pccard.  For other allocations, use whatever is the parent of this
device.  There's no doubt other issues lurking, but this should make
things closer to being independent.

23 years agoChange machdep.pccard.pcic_mem_{start,end} to machdep.pccard.mem_{start,end}
imp [Mon, 14 May 2001 05:56:12 +0000 (05:56 +0000)]
Change machdep.pccard.pcic_mem_{start,end} to machdep.pccard.mem_{start,end}
since they have nothing to do with pcic and it makes grepping for pcic
infection in pccard harder.

MFC after: 3 days

23 years ago- Convert msleep(9) in select(2) and poll(2) to cv_*wait*(9).
tanimura [Mon, 14 May 2001 05:26:48 +0000 (05:26 +0000)]
- Convert msleep(9) in select(2) and poll(2) to cv_*wait*(9).

- Since polling should not involve sleeping, keep holding a
  process lock upon scanning file descriptors.

- Hold a reference to every file descriptor prior to entering
  polling loop in order to avoid lock order reversal between
  lockmgr and p_mtx upon calling fdrop() in fo_poll().
  (NOTE: this work has not been done for netncp and netsmb
  yet because a socket itself has no reference counts.)

Reviewed by: jhb

23 years agoDEVFS is opt in not opt out. Warn about July 1.
imp [Mon, 14 May 2001 05:11:31 +0000 (05:11 +0000)]
DEVFS is opt in not opt out.  Warn about July 1.

23 years agoAdd some clarification to the release note entry introducing the
bmah [Mon, 14 May 2001 05:08:09 +0000 (05:08 +0000)]
Add some clarification to the release note entry introducing the
sis(4) driver.

23 years agoGeneral corrections and fixings of the hardware list:
bmah [Mon, 14 May 2001 05:05:13 +0000 (05:05 +0000)]
General corrections and fixings of the hardware list:

1.  Everywhere I could figure out what driver supported a device or
class of device, there is now a cross-reference via a &man entity.
For cases where a driver has no manpage (and hence no &man entity),
we now at least give the name of the driver.  For the most part,
this was done by examining driver manpages.

2.  A number of devices which are i386-only are now marked as such,
determined by noting manpages or kernel source files in
architecture-specific directories.

3.  Added hardware supported by the vpo(4), wl(4), awi(4), and bktr(4)
drivers, based on a read of the manpages.

The manpages and source files in question were taken from 4-STABLE,
(which is what was running on my off-net laptop at the time)
but at this level of detail, I don't expect there to be any appreciable
differences between 4-STABLE and 5-CURRENT.

23 years agoWhen activating or deactivating a resource, only attempt to deal with
imp [Mon, 14 May 2001 04:53:02 +0000 (04:53 +0000)]
When activating or deactivating a resource, only attempt to deal with
the resource activation if we're dealing with our grandchild.
Otherwise, we run into two problems.  One, if the pccard layer wanted
to allocate and activate something, we'd wind up trying to do the
wrong thing twice: the ivars are wrong and we don't want the bridge to
map the resource to the slot.  If we're more than a grandchild, then
who knows what kind of ivar is present.  In either of these cases, we
just pass it up the food chain.

23 years agoMinor SGML-ification...convert ASCII characters to <quote></quote> and
bmah [Mon, 14 May 2001 04:49:14 +0000 (04:49 +0000)]
Minor SGML-ification...convert ASCII characters to <quote></quote> and
<emphasis></emphasis>.  No content changes.

23 years agoIf the effective link count is zero when an NFS file handle request
mckusick [Sun, 13 May 2001 23:30:45 +0000 (23:30 +0000)]
If the effective link count is zero when an NFS file handle request
comes in for it, the file is really gone, so return ESTALE.

The problem arises when the last reference to an FFS file is
released because soft-updates may delay the actual freeing of the
inode for some time. Since there are no filesystem links or open
file descriptors referencing the inode, from the point of view of
the system, the file is inaccessible. However, if the filesystem
is NFS exported, then the remote client can still access the inode
via ufs_fhtovp() until the inode really goes away. To prevent this
anomoly, it is necessary to begin returning ESTALE at the same time
that the file ceases to be accessible to the local filesystem.

Obtained from: Ian Dowse <iedowse@maths.tcd.ie>

23 years agoinstall libroken and roken.h
assar [Sun, 13 May 2001 20:57:48 +0000 (20:57 +0000)]
install libroken and roken.h

23 years agoConvert DEVFS from an "opt-in" to an "opt-out" option.
phk [Sun, 13 May 2001 20:52:40 +0000 (20:52 +0000)]
Convert DEVFS from an "opt-in" to an "opt-out" option.

If for some reason DEVFS is undesired, the "NODEVFS" option is
needed now.

Pending any significant issues, DEVFS will be made mandatory in
-current on july 1st so that we can start reaping the full
benefits of having it.

23 years agoBack out rev 1.260. The 'streams' module is a registered dependency of
peter [Sun, 13 May 2001 20:43:30 +0000 (20:43 +0000)]
Back out rev 1.260.  The 'streams' module is a registered dependency of
the 'svr4' module already.  This was a 4.x-only problem and should not
have been MFS'ed.

23 years ago+ add u_long sector_size to struct disk (documented in libdisk.3)
jkh [Sun, 13 May 2001 20:08:54 +0000 (20:08 +0000)]
+ add u_long sector_size to struct disk (documented in libdisk.3)
+ make Open_Disk sense the sector size by trying 512, 1024 and 2048
  in this order. This makes the kernel note that
  dscheck(cd1): bio_bcount 512 is not on a sector boundary (ssize 2048)
  dscheck(cd1): bio_bcount 1024 is not on a sector boundary (ssize 2048)
  if 2048 is the sector size. If this worries anyone: the message is from
  /usr/src/sys/kern/subr_diskslice.c and shutups are to be placed there.
+ Have read_block and write_block use an additional parameter, the
  sector size.
+ replace all barfout calls with return NULL, 0, __LINE__, etc.
  Note that this does NOT emit diagnostics. More often than not,
  you don't want library functions to scribble on stderr -- it may
  not even be available. The right thing is to propagate the error
  condition to upper management. The app should take care of errors.
+ use d1->sector_size instead of 512 in various places. I've left many
  places untouched, especially those writing MBRs. I simply added
  another arg hardcoded as 512. This is because I would not know what
  I'm doing... I felt this approach would be reasonably backward
  compatible and not introduce any new bugs in critical software.
  Famous last words. Messing with MBRs might soon put me in the same
  screwup meister category as, uh, never mind.  :-)
+ bump the max no of disks from 20 to 32 (due to PR 24503).

PR: 8434 / 8436 / 24503
Submitted by: Jens Schweikhardt <schweikh@schweikhardt.net>

23 years agoAdd sk_SK
ache [Sun, 13 May 2001 16:32:45 +0000 (16:32 +0000)]
Add sk_SK

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

23 years agoAdd sk_SK
ache [Sun, 13 May 2001 16:28:38 +0000 (16:28 +0000)]
Add sk_SK

PR: 27290
Submitted by: Juraj Bednar <juraj@bednar.sk>
Reviewed by:
Approved by:
Obtained from:

23 years agoAdd sk_SK
ache [Sun, 13 May 2001 16:18:56 +0000 (16:18 +0000)]
Add sk_SK

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

23 years agoAdd sk_SK
ache [Sun, 13 May 2001 16:13:49 +0000 (16:13 +0000)]
Add sk_SK

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

23 years agoUse a critical region to protect pushing of the parent's npx state to the
bde [Sun, 13 May 2001 07:44:14 +0000 (07:44 +0000)]
Use a critical region to protect pushing of the parent's npx state to the
pcb for fork().  It was possible for the state to be saved twice when an
interrupt handler saved it concurrently.  This corrupted (reset) the state
because fnsave has the (in)convenient side effect of doing an implicit
fninit.  Mundane null pointer bugs were not possible, because we save to
an "arbitrary" process's pcb and not to the "right" place (npxproc).

Push the parent's %gs to the pcb for fork().  Changes to %gs before
fork() were not preserved in the child unless an accidental context
switch did the pushing.  Updated the list of pcb contents which is
supposed to inhibit bugs like this.  pcb_dr*, pcb_gs and pcb_ext were
missing.  Copying is correct for pcb_dr*, and pcb_ext is already
handled specially (although XXX'ly).

Reducing the savectx() call to an npxsave() call in rev.1.80 was a
mistake.  The above bugs are duplicated in many places, including in
savectx() itself.

The arbitraryness of the parent process pointer for the fork()
subroutines, the pcb pointer for savectx(), and the save87 pointer
for npxsave(), is illusory.  These functions don't work "right" unless
the pointers are precisely curproc, curpcb, and the address of npxproc's
save87 area, respectively, although the special context in which they
are called allows savectx(&dumppcb) to sort of work and npxsave(&dummy)
to work.  cpu_fork() just doesn't work unless the parent process
pointer is curproc, or the caller has pushed %gs to the pcb, or %gs
happens to already be in the pcb.

23 years agoRemove safety belt that checks for miibus in the config file. This
jlemon [Sun, 13 May 2001 05:38:59 +0000 (05:38 +0000)]
Remove safety belt that checks for miibus in the config file.  This
was only intended for -stable, not -current.

23 years agoReturn errors for unsupported operations on pcic_get_res_flags rather
imp [Sun, 13 May 2001 04:44:45 +0000 (04:44 +0000)]
Return errors for unsupported operations on pcic_get_res_flags rather
than 0.

23 years agoChange #ifdef PC98 to #ifdef MECIA_SUPPORT and define MECIA_SUPPORT
imp [Sun, 13 May 2001 04:16:09 +0000 (04:16 +0000)]
Change #ifdef PC98 to #ifdef MECIA_SUPPORT and define MECIA_SUPPORT
when PC98 is defined.  This is in perparation for a mecia driver
separate from pcic, assuming that all goes well with that effort.
MECIA_SUPPORT won't be removed until after that support is working.

23 years agoI'll be making some rather substantial changes to the pci attachment
imp [Sun, 13 May 2001 01:52:55 +0000 (01:52 +0000)]
I'll be making some rather substantial changes to the pci attachment
of the pcic class of devices.  Go ahead and move it to the "usual"
place.  I say "usual" in quotes since it isn't exactly right (not in
dev/blah), but it is closer than before.

23 years agoo Get rid of static array of slots in pccard layer. Move this to the
imp [Sun, 13 May 2001 01:44:27 +0000 (01:44 +0000)]
o Get rid of static array of slots in pccard layer.  Move this to the
  softc.
o Store pointers to softc in dev_t in si_drv1.
o Change 'kludge version' to 'classic version' since things are getting less
  kludgy.
o Minor code shuffling so that we probe and attach the pccard slots.
o Minor style(9) changes.

23 years ago- Split out the {family,socktype}->netid conversion into a separate
iedowse [Sun, 13 May 2001 00:07:03 +0000 (00:07 +0000)]
- Split out the {family,socktype}->netid conversion into a separate
  function; we now handle unknown protocols more gracefully.

- Cache the return from getnetconfigent() so that we don't have to
  remember to call freenetconfigent() each time. This fixes a memory
  leak that would cause retrying background mount_nfs processes to
  slowly increase their memory usage.

23 years agoUpdate makefile to reflect vlan support.
jlemon [Sun, 13 May 2001 00:04:02 +0000 (00:04 +0000)]
Update makefile to reflect vlan support.

23 years agoAdd few cosmetic style fixes, and some debug information for SCB timeouts.
jlemon [Sun, 13 May 2001 00:03:39 +0000 (00:03 +0000)]
Add few cosmetic style fixes, and some debug information for SCB timeouts.
Add VLAN support, obtained from Pedro J. Lobo (through Mike Tancsa).

23 years agoAdd a few more register definitions.
jlemon [Sat, 12 May 2001 23:59:48 +0000 (23:59 +0000)]
Add a few more register definitions.

23 years agoRevert part of last commit. Instead of using %fs for KSD/TSD, we'll
deischen [Sat, 12 May 2001 22:54:53 +0000 (22:54 +0000)]
Revert part of last commit.  Instead of using %fs for KSD/TSD, we'll
follow Linux' convention and use %gs.  This adds back the setting of
%fs to a sane value in sendsig().  The value of %gs remains preserved
to whatever it was in user context.

23 years agoAdd some gravitational values.
eric [Sat, 12 May 2001 21:21:38 +0000 (21:21 +0000)]
Add some gravitational values.

Approved by: murray

23 years agoExtract the path from an AF_LOCAL sockaddr_un in a way that correctly
iedowse [Sat, 12 May 2001 20:05:26 +0000 (20:05 +0000)]
Extract the path from an AF_LOCAL sockaddr_un in a way that correctly
terminates the string in all cases, based on code from netstat(1).
The path in a sockaddr_un is terminated either by a '\0', or by
the end of the sockaddr as defined by sun_len.

Previously, the code could write the "safety" '\0' beyond the end
of the sockaddr (sockaddr_un's need only be large enough to store
sun_len bytes), and writing into the the supplied sockaddr is bad
anyway.

23 years agoUnbreak release. *sigh*
wpaul [Sat, 12 May 2001 19:51:40 +0000 (19:51 +0000)]
Unbreak release. *sigh*

23 years agoCheck for both hint files in /var/run (elf and aout) and eventually create
olgeni [Sat, 12 May 2001 19:39:13 +0000 (19:39 +0000)]
Check for both hint files in /var/run (elf and aout) and eventually create
them.

Sysinstall used to check /var/run/ld.so.hints (aout related) and create
hints with the ldconfig command, but the ldconfig command alone will
generate elf hints only. The correct behavior is:

* If /var/run/ld-elf.so.hints does not exist, generate elf hints

* If /var/run/ld.so.hints does not exist, generate aout hints
  (using ldconfig with the -aout option)

This will help ports that check for aout libraries using ldconfig in their
pkg-req scripts.

Approved by: jkh
MFC after: 1 weeks

23 years agoclarify comment about MAKE_KERBEROS5. noticed by Peter Pentchev
assar [Sat, 12 May 2001 14:38:00 +0000 (14:38 +0000)]
clarify comment about MAKE_KERBEROS5.  noticed by Peter Pentchev
<roam@orbitel.bg>

23 years agoFixed a missing library in DPADD.
bde [Sat, 12 May 2001 14:37:53 +0000 (14:37 +0000)]
Fixed a missing library in DPADD.

Fixed some style bugs.

23 years agoFixed missing DPADD.
bde [Sat, 12 May 2001 14:34:46 +0000 (14:34 +0000)]
Fixed missing DPADD.

Don't clobber CFLAGS by assigning to it using "=".

Fixed some style bugs.