]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoCorrectly call THREAD_UNLOCK() if the recursive call trap is sprung.
phk [Fri, 16 Nov 2001 18:15:33 +0000 (18:15 +0000)]
Correctly call THREAD_UNLOCK() if the recursive call trap is sprung.

Pointed out by: knu

22 years agoExcept for a comment in zone.tab (about the location of the ISO 3166 table),
wollman [Fri, 16 Nov 2001 17:23:23 +0000 (17:23 +0000)]
Except for a comment in zone.tab (about the location of the ISO 3166 table),
we are now using the vendor files verbatim.

22 years agoBack out the previous fix to the leading zero problem, I hadn't
phk [Fri, 16 Nov 2001 17:07:47 +0000 (17:07 +0000)]
Back out the previous fix to the leading zero problem, I hadn't
noticed it in there already.  That should teach me to check exit
code from cvsup.

22 years agoReject leading zeros in dev_stdclone().
phk [Fri, 16 Nov 2001 17:05:07 +0000 (17:05 +0000)]
Reject leading zeros in dev_stdclone().

PR: 32019
Submitted by: fenner

22 years agoo Allow rarpd to accept an additional '-t directory' argument, specifying
rwatson [Fri, 16 Nov 2001 16:49:21 +0000 (16:49 +0000)]
o Allow rarpd to accept an additional '-t directory' argument, specifying
  an alternative to /tftpboot.  This is useful it you're using tftpd
  with an alternative root (using -s), and would like rarpd to respond
  selectively to RARP requests using the same criteria as tftp.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoo Update licenses, comments.
rwatson [Fri, 16 Nov 2001 15:59:46 +0000 (15:59 +0000)]
o Update licenses, comments.

Obtained from: TrustedBSD Project

22 years agoCreate link from directory.3 to readdir_r.3.
dd [Fri, 16 Nov 2001 15:49:38 +0000 (15:49 +0000)]
Create link from directory.3 to readdir_r.3.

PR: 32028
Submitted by: andrew@ugh.net.au

22 years agoRegenerate with 1.19 of pccarddevs
imp [Fri, 16 Nov 2001 06:59:27 +0000 (06:59 +0000)]
Regenerate with 1.19 of pccarddevs

22 years agoMerge in most (hopefully all) of the devices that OpenBSD has that
imp [Fri, 16 Nov 2001 06:58:47 +0000 (06:58 +0000)]
Merge in most (hopefully all) of the devices that OpenBSD has that
NetBSD/FreeBSD doesn't have listed.

22 years agoo Reflect moving of extattr_namespace calls to libc from libutil; no
rwatson [Fri, 16 Nov 2001 05:10:35 +0000 (05:10 +0000)]
o Reflect moving of extattr_namespace calls to libc from libutil; no
  longer need to link libutil into command-line extended attribute
  utilities.

Obtained from: TrustedBSD Project

22 years agoo Reflect repo-copy of extattr.[c3] from libutil to libc, moving
rwatson [Fri, 16 Nov 2001 05:09:45 +0000 (05:09 +0000)]
o Reflect repo-copy of extattr.[c3] from libutil to libc, moving
  extattr namespace routines to the libc/posix1e directory.  While
  the extattr calls are not strictly POSIX.1e, POSIX.1e wasn't
  strictly ever approved, so I think that's OK.

Obtained from: TrustedBSD Project

22 years agoo Document 'nocheckmail' login capability.
rwatson [Fri, 16 Nov 2001 04:39:43 +0000 (04:39 +0000)]
o Document 'nocheckmail' login capability.

22 years agoo Add support for a 'nocheckmail' capability, which (if true) prevents
rwatson [Fri, 16 Nov 2001 04:39:16 +0000 (04:39 +0000)]
o Add support for a 'nocheckmail' capability, which (if true) prevents
  the 'You have mail.' check.  This is useful for sites that rely on
  remote mail access, rather than a local mail spool.  Due to the
  behavior of login_getcapbool(), the negated form is required so as
  to have appropriate results.
o This behavior may have to be independently added to sshd due to
  redundant implementation.

22 years agoDon't cleandir also if MODULES_WITH_WORLD.
matusita [Fri, 16 Nov 2001 03:02:34 +0000 (03:02 +0000)]
Don't cleandir also if MODULES_WITH_WORLD.

MFC after: 3 days

22 years agoUse the md device not olny a version of the system is 5 but 5 and over.
nyan [Fri, 16 Nov 2001 03:01:50 +0000 (03:01 +0000)]
Use the md device not olny a version of the system is 5 but 5 and over.

Requested by: matusita
MFC after: 1 day

22 years agoCosmetic tweak to eliminate some diffs
peter [Fri, 16 Nov 2001 02:44:55 +0000 (02:44 +0000)]
Cosmetic tweak to eliminate some diffs

22 years agoMerge another missing part of i386/pmap.c rev 1.220. Dont blindly clear
peter [Fri, 16 Nov 2001 02:41:31 +0000 (02:41 +0000)]
Merge another missing part of i386/pmap.c rev 1.220.  Dont blindly clear
the PG_BUSY flag without using the code that wakes up something else that
may be sleeping on it.

22 years agoAlthough the 'bool' type is referenced in the list of capabilities, it
rwatson [Fri, 16 Nov 2001 02:40:09 +0000 (02:40 +0000)]
Although the 'bool' type is referenced in the list of capabilities, it
is not defined in the capability type list.  Provide a definition for
'bool', if a slightly less than elegant one.  Note that this definition
does not include the complete scope of available behavior defined
in cgetcap(3), and could probably be improved.

22 years agoOops, I accidently merged a whitespace error from the original commit.
peter [Fri, 16 Nov 2001 02:31:20 +0000 (02:31 +0000)]
Oops, I accidently merged a whitespace error from the original commit.
(whitespace at end of line in rev 1.264 pmap.c).  Fix them all.

22 years agoMerge rev 1.264 from i386/pmap.c (tegge via alfred):
peter [Fri, 16 Nov 2001 02:28:33 +0000 (02:28 +0000)]
Merge rev 1.264 from i386/pmap.c (tegge via alfred):
Protect against an infinite loop when prefaulting pages.  This can
happen when the vm system maps past the end of an object or tries
to map a zero length object, the pmap layer misses the fact that
offsets wrap into negative numbers and we get stuck.

22 years agoMerge rev 1.202 from i386/pmap.c (back in 1998 by John Dyson):
peter [Fri, 16 Nov 2001 02:25:29 +0000 (02:25 +0000)]
Merge rev 1.202 from i386/pmap.c (back in 1998 by John Dyson):
Make flushing dirty pages work correctly on filesystems that
unexpectedly do not complete writes even with sync I/O requests.
This should help the behavior of mmaped files when using
softupdates (and perhaps in other circumstances also.)

22 years agoMerge rev 1.293 of i386/pmap.c - skip PG_UNMANAGED in pmap_collect()
peter [Fri, 16 Nov 2001 02:20:40 +0000 (02:20 +0000)]
Merge rev 1.293 of i386/pmap.c - skip PG_UNMANAGED in pmap_collect()

22 years agoConverge/fix some debug code (#if 0'ed on alpha, but whatever)
peter [Fri, 16 Nov 2001 02:17:18 +0000 (02:17 +0000)]
Converge/fix some debug code (#if 0'ed on alpha, but whatever)
- use NPTEPG/NPDEPG instead of magic 1024 (important for PAE)
- use pt_entry_t instead of unsigned (important for PAE)
- use vm_offset_t instead of unsigned for va's (important for x86-64)

22 years agoConverge with i386/pmap.c - dont refer to curproc, use curthread.
peter [Fri, 16 Nov 2001 02:06:06 +0000 (02:06 +0000)]
Converge with i386/pmap.c - dont refer to curproc, use curthread.

22 years agoSwitch warnings and strict back on again in a way that's compatible
joe [Fri, 16 Nov 2001 02:02:42 +0000 (02:02 +0000)]
Switch warnings and strict back on again in a way that's compatible
with -stable as well as -current.

Reviewed by: imp

22 years agoMerge part of i386/pmap.c rev 1.220 that got missed in alpha/pmap.c
peter [Fri, 16 Nov 2001 02:02:21 +0000 (02:02 +0000)]
Merge part of i386/pmap.c rev 1.220 that got missed in alpha/pmap.c
rev 1.10

22 years agoAs part of a general cleanup and reconvergence of related pmap code,
peter [Fri, 16 Nov 2001 01:56:34 +0000 (01:56 +0000)]
As part of a general cleanup and reconvergence of related pmap code,
start tidying up some loose ends.  The DEBUG_VA stuff has long since
passed its use-by date.  It wasn't used on ia64 but got cut/pasted there.

22 years agoNew release notes: IPFilter supports IPv6, ipfs(8).
bmah [Fri, 16 Nov 2001 01:48:31 +0000 (01:48 +0000)]
New release notes:  IPFilter supports IPv6, ipfs(8).

Reminded by: devet@devet.org (Arjan de Vet)

22 years agoFix a leftover client comment, long line fix.
peter [Thu, 15 Nov 2001 23:49:02 +0000 (23:49 +0000)]
Fix a leftover client comment, long line fix.

22 years agoDo not allow leading zeros on device names in dev_stdclone().
fenner [Thu, 15 Nov 2001 23:27:46 +0000 (23:27 +0000)]
Do not allow leading zeros on device names in dev_stdclone().

PR: kern/32019
Reviewed by: phk

22 years agoAllow bit 21 of EFLAGS register (PSL_ID) be changed in the use-mode without
sobomax [Thu, 15 Nov 2001 23:01:29 +0000 (23:01 +0000)]
Allow bit 21 of EFLAGS register (PSL_ID) be changed in the use-mode without
ill effects. This should fix problems threaded programs are having with
auto-detecting CPU type.

Reported by: Joe Clarke <marcus@marcuscom.com>
Tested by: Joe Clarke <marcus@marcuscom.com>
Reviewed by: jhb
MFC after: 1 week

22 years agoo Update copyright dates, comments...
rwatson [Thu, 15 Nov 2001 22:56:40 +0000 (22:56 +0000)]
o Update copyright dates, comments...

Obtained from: TrustedBSD Project

22 years agoo extattrctl initattr, when pre-allocating store for extended attributes,
rwatson [Thu, 15 Nov 2001 22:50:06 +0000 (22:50 +0000)]
o extattrctl initattr, when pre-allocating store for extended attributes,
  computed a a chunksize that didn't include the extended attribute
  header.  This was a non-fatal error, in that it was just writing out
  zeros anyway, but did have the effect of not pre-allocating the
  right amount of disk space.  This fix calculates chunksize to include
  the attribute header.

Submitted by: Dale Rahn
Sponsored by: DARPA, UPenn POSSE Project
Obtained from: OpenBSD

22 years agoUse MTX_QUIET for the lock operations during clock interrupts so their logs
jhb [Thu, 15 Nov 2001 19:54:48 +0000 (19:54 +0000)]
Use MTX_QUIET for the lock operations during clock interrupts so their logs
don't drown out more useful log messages.

22 years agoAdd a couple of returns to making recovering from a failed witness_assert()
jhb [Thu, 15 Nov 2001 19:46:36 +0000 (19:46 +0000)]
Add a couple of returns to making recovering from a failed witness_assert()
more sane in the RESTARTABLE_PANICS case.

22 years ago'error' is now unused, since its only purpose was to catch the
rwatson [Thu, 15 Nov 2001 19:42:08 +0000 (19:42 +0000)]
'error' is now unused, since its only purpose was to catch the
results of suser_td().

22 years agoDocument the atkbd flags of 0x03 and be explicit to mention this might
asmodai [Thu, 15 Nov 2001 19:42:07 +0000 (19:42 +0000)]
Document the atkbd flags of 0x03 and be explicit to mention this might
fit some dockingstation keyboard probing.

PR: 23681
Submitted by: yokota [PR issued by:
Claude Lefrancois <lmcclef@lmc.ericsson.se>]

22 years agoTemporarily disable unloading, as it appears to be broken (read: causes
rwatson [Thu, 15 Nov 2001 19:41:14 +0000 (19:41 +0000)]
Temporarily disable unloading, as it appears to be broken (read: causes
panics)

22 years agoNew release notes: Jitter in load average computation, newsyslog(8)
bmah [Thu, 15 Nov 2001 19:32:57 +0000 (19:32 +0000)]
New release notes:  Jitter in load average computation, newsyslog(8)
support for bzip2(1).

MFCs noted:  gx(4), edquota(8) -f.

22 years agoo Rely on /dev/snp* permissions, rather than using suser() in snpopen()
rwatson [Thu, 15 Nov 2001 19:28:49 +0000 (19:28 +0000)]
o Rely on /dev/snp* permissions, rather than using suser() in snpopen()
  to prevent inappropriate use of the snoop device.  This means that,
  with appropriate chmod'ing, arbitrary users may make use of the snoop
  device.

22 years agoRemove definition of witness and comment stating that this file implements
jhb [Thu, 15 Nov 2001 19:08:55 +0000 (19:08 +0000)]
Remove definition of witness and comment stating that this file implements
witness.  Witness moved off to subr_witness.c a while ago.

22 years agoAdd card_if.h to SRCS.
matusita [Thu, 15 Nov 2001 18:59:04 +0000 (18:59 +0000)]
Add card_if.h to SRCS.

src/sys/dev/an/if_an_pccard.c rev 1.10 change requires to include
"card_if.h" but Makefile doesn't know about this file.  Without this,
kernel build will fail at this driver.

22 years agoRemove clkrun_hack for ThinkPad 570.
asmodai [Thu, 15 Nov 2001 18:51:08 +0000 (18:51 +0000)]
Remove clkrun_hack for ThinkPad 570.

PR: 28031
Submitted by: Tan Koan-Sin <freedom@csie.nctu.edu.tw>
MFC after: 2 weeks

22 years ago- Don't enable interrupts in trap() if we trapped while holding a spin
jhb [Thu, 15 Nov 2001 17:29:36 +0000 (17:29 +0000)]
- Don't enable interrupts in trap() if we trapped while holding a spin
  lock as this usually makes the problem worse.
- If we get a page fault while holding a spin lock, treat it as a fatal
  trap and don't even bother calling into the VM since calling into the
  VM will panic when trying to lock Giant before we can get a useful
  message anyways.

22 years agoBack out previous commit.
asmodai [Thu, 15 Nov 2001 16:55:39 +0000 (16:55 +0000)]
Back out previous commit.
This works for wi(4), but apparantly other wireless drivers seem to do
the right thing.

Submitter and yours truly both got Mislead(tm).

Submitted by: udp <udp@sneakerz.org>

22 years agoAxe NFS_NOSERVER since it doesn't do anything anymore. Remove NFSSERVER
jhb [Thu, 15 Nov 2001 16:03:24 +0000 (16:03 +0000)]
Axe NFS_NOSERVER since it doesn't do anything anymore.  Remove NFSSERVER
from your config file instead.

22 years agoNFS_NOSERVER doesn't do anything anymore and is about to get axed so don't
jhb [Thu, 15 Nov 2001 15:58:01 +0000 (15:58 +0000)]
NFS_NOSERVER doesn't do anything anymore and is about to get axed so don't
use it.  Instead, remove NFSSERVER.  This was already done on i386, but
the alpha still needed the fix.

22 years agoDeuglify the usage message by putting the program name after the
dd [Thu, 15 Nov 2001 15:46:45 +0000 (15:46 +0000)]
Deuglify the usage message by putting the program name after the
"usage:" string.  This is how most (all?) other programs in the system
do it.

PR: 31596
Submitted by: Cyrille Lefevre <clefevre@citeweb.net>

22 years agoReport ad hoc mode correctly.
asmodai [Thu, 15 Nov 2001 15:31:51 +0000 (15:31 +0000)]
Report ad hoc mode correctly.

Submitted by: udp <udp@sneakerz.org>

22 years agoImprove recently committed fix for -t bug.
sobomax [Thu, 15 Nov 2001 15:13:24 +0000 (15:13 +0000)]
Improve recently committed fix for -t bug.

Submitted by: "Andrew L. Neporada" <andr@dgap.mipt.ru>
MFC after: 3 days

22 years agoFix re-enabling ACPI on wakeup from hibernation. The problem was that
iwasaki [Thu, 15 Nov 2001 15:12:08 +0000 (15:12 +0000)]
Fix re-enabling ACPI on wakeup from hibernation.  The problem was that
acpi_Disable() cleared all GPE events.
Some old ACPI implementaions still need current re-enabling code.

22 years agoMy final rite of FreeBSD is now complete.
cy [Thu, 15 Nov 2001 14:28:03 +0000 (14:28 +0000)]
My final rite of FreeBSD is now complete.

Reviewed by: nectar
Approved by: nectar

22 years agoTwo minor changes.
iwasaki [Thu, 15 Nov 2001 12:00:48 +0000 (12:00 +0000)]
Two minor changes.
 - Change _ACx sysctl oid from ten of _AC[0-9] to one _ACx.
 - Better error printing on _TMP evaluation.

Reviewed by:    msmith

22 years agoRemove "S4B" from sleep_state_names and add "NONE" instead.
iwasaki [Thu, 15 Nov 2001 11:59:25 +0000 (11:59 +0000)]
Remove "S4B" from sleep_state_names and add "NONE" instead.
Now you can say;
 # sysctl hw.acpi.lid_switch_state=NONE
instead of specifying unsupported _Sx object in the system.

Actually, S4B is going to disappear in ACPICA and we already have
hw.acpi.s4bios to distinguish BIOS hibernation or OS hibernation.

22 years agoMF NetBSD's if_ne_pcmcia.c rev 1.82's list of devices
imp [Thu, 15 Nov 2001 08:15:44 +0000 (08:15 +0000)]
MF NetBSD's if_ne_pcmcia.c rev 1.82's list of devices

22 years agoMore devices. Obtained from NetBSD.
imp [Thu, 15 Nov 2001 07:57:38 +0000 (07:57 +0000)]
More devices.  Obtained from NetBSD.

22 years agoMigrate to PCMCIA_CARD() macros
imp [Thu, 15 Nov 2001 07:52:49 +0000 (07:52 +0000)]
Migrate to PCMCIA_CARD() macros

22 years agoSync to 1.18 of pccarddevs
imp [Thu, 15 Nov 2001 07:50:38 +0000 (07:50 +0000)]
Sync to 1.18 of pccarddevs

22 years agoAdd vendor for NDC.
imp [Thu, 15 Nov 2001 07:50:09 +0000 (07:50 +0000)]
Add vendor for NDC.

22 years agoUse the vn driver on a stable system.
nyan [Thu, 15 Nov 2001 07:27:25 +0000 (07:27 +0000)]
Use the vn driver on a stable system.

22 years agoTypo fix (my test version doesn't have this...)
matusita [Thu, 15 Nov 2001 07:09:00 +0000 (07:09 +0000)]
Typo fix (my test version doesn't have this...)

22 years agoRun "make cleandir" if NO_MODULES are set, or there is no sys/modules
matusita [Thu, 15 Nov 2001 07:04:23 +0000 (07:04 +0000)]
Run "make cleandir" if NO_MODULES are set, or there is no sys/modules
directory.  Previous commit breaks buildkernel if NO_MODULES was set.
Sorry...

Noticed by: mike

22 years agoMinor style problem I introduced recently
imp [Thu, 15 Nov 2001 06:44:43 +0000 (06:44 +0000)]
Minor style problem I introduced recently

22 years agoHoist the Card/Card2 macros that I invented for the wi driver into
imp [Thu, 15 Nov 2001 06:37:13 +0000 (06:37 +0000)]
Hoist the Card/Card2 macros that I invented for the wi driver into
pccard layer and rename them PCMCIA_CARD and PCMCIA_CARD2 respectively
(note, this is being done with an eye towards NetBSD integreation so
it is easier to keep lists of cards between us and them in sync).

Use this in the an and wi drivers.

22 years agoAdd PC4500 and 350 for newer cards in this line.
imp [Thu, 15 Nov 2001 06:26:24 +0000 (06:26 +0000)]
Add PC4500 and 350 for newer cards in this line.

Obtained from: NetBSD's an driver (and FreeBSD's /etc/defaults/pccard.conf)

22 years agonewcard support for an, from pr 24854
imp [Thu, 15 Nov 2001 06:18:58 +0000 (06:18 +0000)]
newcard support for an, from pr 24854

22 years agoAdd NEWCARD support for aironet stuff.
imp [Thu, 15 Nov 2001 06:18:06 +0000 (06:18 +0000)]
Add NEWCARD support for aironet stuff.

PR: 24854
Submitted by: "Sam Habash" <the+xp@llama.com>
(with the mtx fix by Jonathan Chen)

22 years agoFix comments about 'current' state of hardware/software
imp [Thu, 15 Nov 2001 06:17:05 +0000 (06:17 +0000)]
Fix comments about 'current' state of hardware/software

22 years agoGVC 10Mbps Ethernet Card
imp [Thu, 15 Nov 2001 05:54:25 +0000 (05:54 +0000)]
GVC 10Mbps Ethernet Card

PR: 30329
Submitted by: David Xu <davidx@viasoft.com.cn>

22 years agoAdd Compaq WL110 PC Card to the list.
imp [Thu, 15 Nov 2001 05:49:18 +0000 (05:49 +0000)]
Add Compaq WL110 PC Card to the list.

PR: 31023
Submitted by: wilko

22 years agoRemove accidentally included NZ holidays.
grog [Thu, 15 Nov 2001 03:53:57 +0000 (03:53 +0000)]
Remove accidentally included NZ holidays.

Get floating holidays right.

Add the richness of NT holidays.

Submitted by: Conrad Parker <conrad@vergenet.net>

22 years agoAdd public holidays in Australia and New Zealand.
grog [Thu, 15 Nov 2001 02:35:14 +0000 (02:35 +0000)]
Add public holidays in Australia and New Zealand.

Submitted by: Conrad Parker <conrad@vergenet.net>

22 years agoFollow tradition and add myself
pat [Thu, 15 Nov 2001 02:27:48 +0000 (02:27 +0000)]
Follow tradition and add myself

Approved by: lioux

22 years agoo Implement imaxabs(), imaxdiv(), llabs(), lldiv().
mike [Thu, 15 Nov 2001 02:05:03 +0000 (02:05 +0000)]
o Implement imaxabs(), imaxdiv(), llabs(), lldiv().
o Update abs(3), div(3), labs(3), ldiv(3) to reflect standards
  conformance and add additional references.

Reviewed by: bde, wollman

22 years agoAdd support for entering the Ukrainian letter GHE with upturn and for Russian
sobomax [Wed, 14 Nov 2001 21:28:10 +0000 (21:28 +0000)]
Add support for entering the Ukrainian letter GHE with upturn and for Russian
YO (`e' with two dots).

PR: 28573
Submitted by: Alexey Klimov <klim@unique.kiev.ua>
MFC after: 2 weeks

22 years agoStyle: don't mix decimal and hex values in the same file (convert all to
sobomax [Wed, 14 Nov 2001 21:14:39 +0000 (21:14 +0000)]
Style: don't mix decimal and hex values in the same file (convert all to
decimal).

MFC after: 2 weeks

22 years agofix ukrainian translation of 'Norwegian' word
phantom [Wed, 14 Nov 2001 18:52:43 +0000 (18:52 +0000)]
fix ukrainian translation of 'Norwegian' word

PR: misc/28605
Submitted by: Alexey Klimov <klim@unique.kiev.ua>

22 years agoRemove ifnet.if_mpsafe for now. If this is needed, it won't be needed
jhb [Wed, 14 Nov 2001 18:36:37 +0000 (18:36 +0000)]
Remove ifnet.if_mpsafe for now.  If this is needed, it won't be needed
until much later when the network stack locking is farther along.

Approved by: jlemon

22 years agoo Modify nfslockdans() to accept a thread reference instead of a proc
rwatson [Wed, 14 Nov 2001 18:20:45 +0000 (18:20 +0000)]
o Modify nfslockdans() to accept a thread reference instead of a proc
  reference: with td->td_ucred, it will be desirable to authorize
  based on td->td_ucred, rather than p->p_ucred.
o Since the same variable 'p' was later used with pfind() on the target
  process for the wakeup, introduce a new local variable 'targetp'
  to use instead.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoThe new libedit from a while back depends on ncurses, so put -ledit before
jhb [Wed, 14 Nov 2001 17:48:55 +0000 (17:48 +0000)]
The new libedit from a while back depends on ncurses, so put -ledit before
-lncurses so the fixit crunch binary links.

Tested on: alpha

22 years agoFix the type of the NULL arg to execl().
obrien [Wed, 14 Nov 2001 17:00:58 +0000 (17:00 +0000)]
Fix the type of the NULL arg to execl().

22 years ago"make cleandir" before building a kernel and modules.
matusita [Wed, 14 Nov 2001 16:48:47 +0000 (16:48 +0000)]
"make cleandir" before building a kernel and modules.

This will hopefully fix the recent 'I cannot compile linux module with
buildworld' problem.  MFC will come shortly.

Submitted by: imura@ryu16.org

22 years agoCross-reference the fdopen and fileno manpages.
murray [Wed, 14 Nov 2001 16:24:51 +0000 (16:24 +0000)]
Cross-reference the fdopen and fileno manpages.

PR: docs/31866
Submitted by: W. Campbell <wcampbel@botbay.net>

22 years agoOops, when trying the dirhash sequential-access optimisation,
iedowse [Wed, 14 Nov 2001 15:08:07 +0000 (15:08 +0000)]
Oops, when trying the dirhash sequential-access optimisation,
compare the slot offset against the predicted offset, not a boolean
flag. This typo effectively disabled the sequential optimisation,
but was otherwise harmless.

Not surprisingly, fixing this improves performance in the sequential
access case. I am seeing a 7% speedup on one machine here; using
dirhash when sequentially looking up directory entries is now about
5% faster instead of 2% slower than the non-dirhash case.

Submitted by: KOIE Hidetaka <koie@suri.co.jp>
MFC after: 1 week

22 years agoAfter further discussion on -CURRENT, some people (jhb) do not like
cjc [Wed, 14 Nov 2001 09:30:01 +0000 (09:30 +0000)]
After further discussion on -CURRENT, some people (jhb) do not like
the idea of not masking passwords on comments in case the
administrator comments out an entry without clearing the
password. Instead completely ignore comments (since they have no
security impact) when doing the diff of the old and new passwd file.

Suggested by: rwatson

22 years agoIf the mask length is zero, there is no need to convert it to a
ps [Wed, 14 Nov 2001 09:20:24 +0000 (09:20 +0000)]
If the mask length is zero, there is no need to convert it to a
netmask.

PR: 31947
Submitted by: Aaron Scarisbrick <aaronsca@hotmail.com>
MFC after: 1 week

22 years agoAvoid unnecessary calls to expr(1) by using standard shell arithmetic
sheldonh [Wed, 14 Nov 2001 06:35:43 +0000 (06:35 +0000)]
Avoid unnecessary calls to expr(1) by using standard shell arithmetic
expansion instead.

22 years agoremove holdfp()
dillon [Wed, 14 Nov 2001 06:30:36 +0000 (06:30 +0000)]
remove holdfp()

Replace uses of holdfp() with fget*() or fgetvp*() calls as appropriate

introduce fget(), fget_read(), fget_write() - these functions will take
a thread and file descriptor and return a file pointer with its ref
count bumped.

introduce fgetvp(), fgetvp_read(), fgetvp_write() - these functions will
take a thread and file descriptor and return a vref()'d vnode.

*_read() requires that the file pointer be FREAD, *_write that it be
FWRITE.

This continues the cleanup of struct filedesc and struct file access
routines which, when are all through with it, will allow us to then
make the API calls MP safe and be able to move Giant down into the fo_*
functions.

22 years agoRework the utmp(5) page:
yar [Wed, 14 Nov 2001 05:03:37 +0000 (05:03 +0000)]
Rework the utmp(5) page:
o Fix a number of wrong statements
o Clarify the structure of the files and the C structures theirselves
o Add cross-references to login(3), logout(3), logwtmp(3)

MFC after: 1 month

22 years agoThe interrupt nesting level is per-thread not per-CPU on FreeBSD.
jhb [Wed, 14 Nov 2001 01:00:40 +0000 (01:00 +0000)]
The interrupt nesting level is per-thread not per-CPU on FreeBSD.

22 years agoFix a typo in rev 1.30 that broke the release: s/-dlint/-Dlint/
jhb [Wed, 14 Nov 2001 00:12:27 +0000 (00:12 +0000)]
Fix a typo in rev 1.30 that broke the release: s/-dlint/-Dlint/

22 years agoCreate a mutex pool API for short term leaf mutexes.
dillon [Tue, 13 Nov 2001 21:55:13 +0000 (21:55 +0000)]
Create a mutex pool API for short term leaf mutexes.
Replace the manual mutex pool in kern_lock.c (lockmgr locks) with the new API.
Replace the mutexes embedded in sxlocks with the new API.

22 years agoReplace use of "0" constraints in inline asm with "+" constraints,
keramida [Tue, 13 Nov 2001 19:55:20 +0000 (19:55 +0000)]
Replace use of "0" constraints in inline asm with "+" constraints,
when an operand is used both for input and output.

Reviewed by: jhb

22 years agosysinstall complains about creating acd0t* devices while all dists are
matusita [Tue, 13 Nov 2001 18:07:14 +0000 (18:07 +0000)]
sysinstall complains about creating acd0t* devices while all dists are
extracted and recreating device files.

Without this, you'll see following messages when 'MAKEDEV all':
[:  : out of range
[:  : out of range
acd0t is invalid -- can't have more than 32 devices or 169 tracks

Reported by: David Syphers <dsyphers@uchicago.edu> (at current@FreeBSD.org)

22 years ago- Modify to make the generated device driver code work with current.
arr [Tue, 13 Nov 2001 17:58:14 +0000 (17:58 +0000)]
- Modify to make the generated device driver code work with current.
- Use M_ZERO instead of another call to bzero().

Inspired by: misc/31905

22 years agoNever added my entry which the committers guide says is a
arr [Tue, 13 Nov 2001 17:44:40 +0000 (17:44 +0000)]
Never added my entry which the committers guide says is a
tradition.

22 years agoCleanups after previous change:
jhb [Tue, 13 Nov 2001 16:58:43 +0000 (16:58 +0000)]
Cleanups after previous change:
- Renumber labels since the previous revision removed one.
- Remove useless and wrong comment.
  - Repeating the function name is just redundant.
  - The previous revision made the comment about %edx useless.
  - The comment about %eax was wrong (but did explain why %eax used to be
    fixed up).

Submitted by: bde

22 years agoAs a followup to the previous fixes to inferior, revert some of the
jhb [Tue, 13 Nov 2001 16:55:54 +0000 (16:55 +0000)]
As a followup to the previous fixes to inferior, revert some of the
changes in 1.80 that were needed for locking that are no longer needed now
that a lock is simply asserted.

Submitted by: bde

22 years agoSet full-path of cvsup.
matusita [Tue, 13 Nov 2001 15:47:40 +0000 (15:47 +0000)]
Set full-path of cvsup.

In src/Makefile rev 1.232, environment variable PATH is set explicitly
to /sbin:/bin:/usr/sbin:/usr/bin.  As a result, binaries located on
non-standard path cannot be executed without full-path (it's the change
of this revision).

However, cvsup is not in our base system -- you lose if you try to
"make update" without setting SUP in make.conf or command line argument.
I think it is safe to assume that cvsup is located at /usr/local/bin,
and it would help other people who first try to do "make update".

PR: 31932
MFC after: 1 day

22 years agoAdd yet another VIA ATA100 southbridge.
sos [Tue, 13 Nov 2001 11:37:23 +0000 (11:37 +0000)]
Add yet another VIA ATA100 southbridge.