]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoAdd a KASSERT on unit2minor() so that we catch it if people try to pass
Poul-Henning Kamp [Tue, 20 Mar 2001 13:24:24 +0000 (13:24 +0000)]
Add a KASSERT on unit2minor() so that we catch it if people try to pass
us unit numbers which doesn't fit in 24 bits.

23 years agoFix a reference to the "vn" driver in a warning message.
Poul-Henning Kamp [Tue, 20 Mar 2001 12:31:53 +0000 (12:31 +0000)]
Fix a reference to the "vn" driver in a warning message.

23 years agomdoc(7) police: fixes to the previous revision:
Ruslan Ermilov [Tue, 20 Mar 2001 10:57:25 +0000 (10:57 +0000)]
mdoc(7) police: fixes to the previous revision:

- fixed bad formatting
- avoid using German
- removed hard sentence break

23 years agoFixed some typos.
Ruslan Ermilov [Tue, 20 Mar 2001 10:47:21 +0000 (10:47 +0000)]
Fixed some typos.

23 years agoThis manpage is heavily based on the old rpc.3 manpage, and
Ruslan Ermilov [Tue, 20 Mar 2001 10:46:22 +0000 (10:46 +0000)]
This manpage is heavily based on the old rpc.3 manpage, and
should have been repo-copied from it in the first place.

Apply all of our fixes up to and including revision 1.14 to
the original rpc.3 manpage, including conversion to mdoc(7).

23 years agoSilence some warnings
Alfred Perlstein [Tue, 20 Mar 2001 10:42:49 +0000 (10:42 +0000)]
Silence some warnings
Submitted by: LINT

23 years agoUnbreak LINT.
Alfred Perlstein [Tue, 20 Mar 2001 10:27:03 +0000 (10:27 +0000)]
Unbreak LINT.

because rpcb_clnt.h is generated during buildworld and only installed into
/usr/include/rpc (and not present in src/include/rpc) we can fix it
by simply not including it when _KERNEL is defined.

this isn't the most elegant, way and might deserve some revisiting later.

Pointed out by: bde

23 years agoFixed breakage of access() in rev.1.164. Wrong credentials were used for
Bruce Evans [Tue, 20 Mar 2001 09:38:05 +0000 (09:38 +0000)]
Fixed breakage of access() in rev.1.164.  Wrong credentials were used for
the final path component.

23 years agoRemoved the second copy of the manual page!
Ruslan Ermilov [Tue, 20 Mar 2001 09:02:32 +0000 (09:02 +0000)]
Removed the second copy of the manual page!

23 years agoRemoved duplicate $FreeBSD$.
Ruslan Ermilov [Tue, 20 Mar 2001 08:51:20 +0000 (08:51 +0000)]
Removed duplicate $FreeBSD$.

23 years agoThe TI-RPC spammed over a '#ifdef _KERNEL' hack for the xdrproc_t typedef
Alfred Perlstein [Tue, 20 Mar 2001 08:26:22 +0000 (08:26 +0000)]
The TI-RPC spammed over a '#ifdef _KERNEL' hack for the xdrproc_t typedef
revert the spammage

Pointed out by: bde

23 years agocomment out #pragma directive containing Sun SCM tags
Alfred Perlstein [Tue, 20 Mar 2001 08:20:50 +0000 (08:20 +0000)]
comment out #pragma directive containing Sun SCM tags

23 years agoNew release notes: Kerberos compatability with OpenSSH, dump(8)
Bruce A. Mah [Tue, 20 Mar 2001 06:08:45 +0000 (06:08 +0000)]
New release notes:  Kerberos compatability with OpenSSH, dump(8)
and nodump flag, ISC DHCP client update to 2.0pl5, split(1) support
for large files, units(1) update, netstat(1) per-address packet
counting, manpage updates.

Fix up notes on Adaptec SCSI RAID and DPT SmartRAID V/VI SCSI RAID
controllers (reviewed by scottl).

23 years agoThis is an MFC candidate.
Justin T. Gibbs [Tue, 20 Mar 2001 04:37:19 +0000 (04:37 +0000)]
This is an MFC candidate.

In our idle loop, use an or instruction to set PRELOADEN rather
than rewriting the contents of DMAPARAMS to DFCNTRL.  The later
may re-enable the DMA engine if the idle loop is called to complete
the preload of at least one segment when a target disconnects on
an S/G segment boundary but before we have completed fetching the
next segment.  This correts a hang, usually in message out phase,
when this situation occurs.  This bug has been here for a long
time, so the situation is rare, but not impossible to reproduce.
It only affected Ultra2/U160 controllers.

Correct a few comments.

Extra Sanity. Make sure that SCSIEN is also turned off, along with
HDMAEN, at the end of the data phase.

23 years agoRemove extra CFLAGS
Chris D. Faulhaber [Tue, 20 Mar 2001 02:55:43 +0000 (02:55 +0000)]
Remove extra CFLAGS
Add DPADD

Submitted by: bde

23 years agoRemove extra CFLAGS and redundant SRCS
Chris D. Faulhaber [Tue, 20 Mar 2001 02:54:41 +0000 (02:54 +0000)]
Remove extra CFLAGS and redundant SRCS
Add DPADD

Submitted by: bde

23 years agoAdd LIBPOSIX1E
Chris D. Faulhaber [Tue, 20 Mar 2001 02:52:56 +0000 (02:52 +0000)]
Add LIBPOSIX1E

23 years agoSuggested by kris, OpenSSH shall have a version designated to note that
Brian Feldman [Tue, 20 Mar 2001 02:11:25 +0000 (02:11 +0000)]
Suggested by kris, OpenSSH shall have a version designated to note that
it's not "plain" OpenSSH 2.3.0.

23 years agoUse the same API as the example code.
Peter Wemm [Tue, 20 Mar 2001 02:10:18 +0000 (02:10 +0000)]
Use the same API as the example code.
Allow the initial hash value to be passed in, as the examples do.
Incrementally hash in the dvp->v_id (using the official api) rather than
add it.  This seems to help power-of-two predictable filename trees
where the filenames repeat on a power-of-two cycle and the directory trees
have power-of-two components in it.  The simple add then mask was causing
things like 12000+ entry collision chains while most other entries have
between 0 and 3 entries each.  This way seems to improve things.

23 years agoMake password attacks based on traffic analysis harder by requiring that
Brian Feldman [Tue, 20 Mar 2001 02:06:40 +0000 (02:06 +0000)]
Make password attacks based on traffic analysis harder by requiring that
"non-echoed" characters are still echoed back in a null packet, as well
as pad passwords sent to not give hints to the length otherwise.

Obtained from: OpenBSD

23 years agoIncluded in the updated version of tirpc's sm_inter.x Sun added the
Alfred Perlstein [Tue, 20 Mar 2001 01:36:41 +0000 (01:36 +0000)]
Included in the updated version of tirpc's sm_inter.x Sun added the
SM_NOTIFY procedure.

Remove our hand-coded one as it was causing world breakage for
worlds compiled with NOSHARED=yes because the static linker is a
bit less forgiving (or not as broken as) our dynamic linker.

Add $FreeBSD$ while I'm here.

Pointed out by: bde

23 years agoMake it clear who can and can't set the UF_NODUMP, UF_OPAQUE, and
Dima Dorfman [Mon, 19 Mar 2001 23:51:09 +0000 (23:51 +0000)]
Make it clear who can and can't set the UF_NODUMP, UF_OPAQUE, and
SF_ARCHIVED file flags.

PR: 25227
Approved by: nik

23 years agoo Two changes made elsewhere relating to recent EA commits, but not
Robert Watson [Mon, 19 Mar 2001 23:27:37 +0000 (23:27 +0000)]
o Two changes made elsewhere relating to recent EA commits, but not
  committed to NOTES:
    - s/FFS_EXTATTR/UFS_EXTATTR/
    - add UFS_EXTATTR_AUTOSTART

Submitted by: bde

23 years agoMark 'going nowhere without my init' bug as MERGED.
Wilko Bulte [Mon, 19 Mar 2001 22:32:51 +0000 (22:32 +0000)]
Mark 'going nowhere without my init' bug as MERGED.

23 years agoAxe TCP_RESTRICT_RST. It was never a particularly good idea except for a few
Dag-Erling Smørgrav [Mon, 19 Mar 2001 22:09:00 +0000 (22:09 +0000)]
Axe TCP_RESTRICT_RST. It was never a particularly good idea except for a few
very specific scenarios, and now that we have had net.inet.tcp.blackhole for
quite some time there is really no reason to use it any more.

(last of three commits)

23 years agoAxe TCP_RESTRICT_RST. It was never a particularly good idea except for a few
Dag-Erling Smørgrav [Mon, 19 Mar 2001 22:07:32 +0000 (22:07 +0000)]
Axe TCP_RESTRICT_RST. It was never a particularly good idea except for a few
very specific scenarios, and now that we have had net.inet.tcp.blackhole for
quite some time there is really no reason to use it any more.

(second of three commits)

23 years agoAxe TCP_RESTRICT_RST. It was never a particularly good idea except for a few
Dag-Erling Smørgrav [Mon, 19 Mar 2001 22:03:11 +0000 (22:03 +0000)]
Axe TCP_RESTRICT_RST. It was never a particularly good idea except for a few
very specific scenarios, and now that we have had net.inet.tcp.blackhole for
quite some time there is really no reason to use it any more.

(first of three commits)

23 years agoRemove 'NOSHARED=yes' (../Makefile.inc already sets this)
Chris D. Faulhaber [Mon, 19 Mar 2001 21:18:48 +0000 (21:18 +0000)]
Remove 'NOSHARED=yes' (../Makefile.inc already sets this)

23 years agoThis commit was generated by cvs2svn to compensate for changes in r74485,
David E. O'Brien [Mon, 19 Mar 2001 20:56:11 +0000 (20:56 +0000)]
This commit was generated by cvs2svn to compensate for changes in r74485,
which included commits to RCS files with non-trunk default branches.

23 years agoVirgin import of GCC 2.95.3's libobjc
David E. O'Brien [Mon, 19 Mar 2001 20:56:11 +0000 (20:56 +0000)]
Virgin import of GCC 2.95.3's libobjc

23 years agoThis commit was generated by cvs2svn to compensate for changes in r74483,
David E. O'Brien [Mon, 19 Mar 2001 20:51:52 +0000 (20:51 +0000)]
This commit was generated by cvs2svn to compensate for changes in r74483,
which included commits to RCS files with non-trunk default branches.

23 years agoVirgin import of GCC 2.95.3's libstdc++
David E. O'Brien [Mon, 19 Mar 2001 20:51:52 +0000 (20:51 +0000)]
Virgin import of GCC 2.95.3's libstdc++

23 years agoThis commit was generated by cvs2svn to compensate for changes in r74481,
David E. O'Brien [Mon, 19 Mar 2001 20:49:58 +0000 (20:49 +0000)]
This commit was generated by cvs2svn to compensate for changes in r74481,
which included commits to RCS files with non-trunk default branches.

23 years agoVirgin import of GCC 2.95.3's libio -- the C++ iostream facility.
David E. O'Brien [Mon, 19 Mar 2001 20:49:58 +0000 (20:49 +0000)]
Virgin import of GCC 2.95.3's libio -- the C++ iostream facility.

23 years agoNew release notes: timed(8) fix (FreeBSD-SA-01:28), rwhod(8) fix
Bruce A. Mah [Mon, 19 Mar 2001 20:23:53 +0000 (20:23 +0000)]
New release notes:  timed(8) fix (FreeBSD-SA-01:28), rwhod(8) fix
(FreeBSD-SA-01:29), Heimdal 0.3 update, pkg_sign(1) and pkg_check(1)
added, BSD_daemon graphics.

Many MFCs for RELENG_4 noted as well.

23 years agoRemove some files that are no longer in the FSF branch.
David E. O'Brien [Mon, 19 Mar 2001 19:50:17 +0000 (19:50 +0000)]
Remove some files that are no longer in the FSF branch.

23 years agoMerge gcc-2.95.3 changes onto mainline. Update FreeBSD changes to converge
David E. O'Brien [Mon, 19 Mar 2001 19:50:16 +0000 (19:50 +0000)]
Merge gcc-2.95.3 changes onto mainline.  Update FreeBSD changes to converge
with changes made in the FSF tree.

23 years agoAllow LQR periods of 1 second and FSM retry periods of 1 second. This allows us
Roger Hardiman [Mon, 19 Mar 2001 19:47:54 +0000 (19:47 +0000)]
Allow LQR periods of 1 second and FSM retry periods of 1 second. This allows us
to run PPP over Radiocontact T-Link Radio Modems which run best when something
is transmitted at least every 1.5 seconds.

Tested by: Jennifer Clark <jen@telepresence.strath.ac.uk>
Approved by: Brian

23 years agoVirgin import of the GCC 2.95.3 compilers
David E. O'Brien [Mon, 19 Mar 2001 19:46:16 +0000 (19:46 +0000)]
Virgin import of the GCC 2.95.3 compilers

23 years agoThis commit was generated by cvs2svn to compensate for changes in r74473,
David E. O'Brien [Mon, 19 Mar 2001 19:46:16 +0000 (19:46 +0000)]
This commit was generated by cvs2svn to compensate for changes in r74473,
which included commits to RCS files with non-trunk default branches.

23 years agoAdd missing comma when KERBEROS is defined.
Alfred Perlstein [Mon, 19 Mar 2001 19:36:11 +0000 (19:36 +0000)]
Add missing comma when KERBEROS is defined.

23 years agoTeach ftpd about the new GLOB_MAXPATH flag.
Jonathan Lemon [Mon, 19 Mar 2001 19:11:00 +0000 (19:11 +0000)]
Teach ftpd about the new GLOB_MAXPATH flag.

23 years agoIntroduce the GLOB_MAXPATH flag, which allows the user to limit the
Jonathan Lemon [Mon, 19 Mar 2001 19:10:06 +0000 (19:10 +0000)]
Introduce the GLOB_MAXPATH flag, which allows the user to limit the
number of paths which glob(3) will return.  Remove the hardcoded limit
from the last commit, which restores the previous unbounded behavior.

Document the new flag in the manual page.

23 years agoo Missed in addition of setfacl.h in setfacl(1)
Robert Watson [Mon, 19 Mar 2001 18:59:36 +0000 (18:59 +0000)]
o Missed in addition of setfacl.h in setfacl(1)

23 years agoo Missed in prior commit: getfacl(1) Makefile
Robert Watson [Mon, 19 Mar 2001 18:58:16 +0000 (18:58 +0000)]
o Missed in prior commit: getfacl(1) Makefile

23 years agoo Enable getfacl(1) and setfacl(1)
Robert Watson [Mon, 19 Mar 2001 18:09:56 +0000 (18:09 +0000)]
o Enable getfacl(1) and setfacl(1)

Obtained from: TrustedBSD Project

23 years agoo POSIX.2c Userland tool support for POSIX.1e ACLs -- getfacl retrieves ACLs
Robert Watson [Mon, 19 Mar 2001 18:09:25 +0000 (18:09 +0000)]
o POSIX.2c Userland tool support for POSIX.1e ACLs -- getfacl retrieves ACLs
  from files and directories, and setfacl sets ACLs on files and directories.

Submitted by: jedgar
Obtained from: TrustedBSD Project

23 years agoTry not to engage to ATA channels that are disabled by the BIOS.
Søren Schmidt [Mon, 19 Mar 2001 13:31:58 +0000 (13:31 +0000)]
Try not to engage to ATA channels that are disabled by the BIOS.

23 years agoBring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and
Alfred Perlstein [Mon, 19 Mar 2001 12:50:13 +0000 (12:50 +0000)]
Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and
associated changes that had to happen to make this possible as well as
bugs fixed along the way.

  Bring in required TLI library routines to support this.

  Since we don't support TLI we've essentially copied what NetBSD
  has done, adding a thin layer to emulate direct the TLI calls
  into BSD socket calls.

  This is mostly from Sun's tirpc release that was made in 1994,
  however some fixes were backported from the 1999 release (supposedly
  only made available after this porting effort was underway).

  The submitter has agreed to continue on and bring us up to the
  1999 release.

  Several key features are introduced with this update:
    Client calls are thread safe. (1999 code has server side thread
    safe)
    Updated, a more modern interface.

  Many userland updates were done to bring the code up to par with
  the recent RPC API.

  There is an update to the pthreads library, a function
  pthread_main_np() was added to emulate a function of Sun's threads
  library.

  While we're at it, bring in NetBSD's lockd, it's been far too
  long of a wait.

  New rpcbind(8) replaces portmap(8) (supporting communication over
  an authenticated Unix-domain socket, and by default only allowing
  set and unset requests over that channel). It's much more secure
  than the old portmapper.

  Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded
  to support TI-RPC and to support IPV6.

  Umount(8) is also fixed to unmount pathnames longer than 80 chars,
  which are currently truncated by the Kernel statfs structure.

Submitted by: Martin Blapp <mb@imp.ch>
Manpage review: ru
Secure RPC implemented by: wpaul

23 years agoOn open create all the CD physical track devices according to the
Søren Schmidt [Mon, 19 Mar 2001 12:02:36 +0000 (12:02 +0000)]
On open create all the CD physical track devices according to the
TOC read from the CD, instead of cloning them when asked to.

23 years agoOnly allow root to attach/detach/etc ATA/ATAPI devices.
Søren Schmidt [Mon, 19 Mar 2001 11:55:13 +0000 (11:55 +0000)]
Only allow root to attach/detach/etc ATA/ATAPI devices.

23 years agoImplement D_MD_ORDER (local extension) to get month/day order from locale
Andrey A. Chernov [Mon, 19 Mar 2001 11:55:12 +0000 (11:55 +0000)]
Implement D_MD_ORDER (local extension) to get month/day order from locale

23 years agoAdd D_MD_ORDER (local extension) to get month/day order from locale
Andrey A. Chernov [Mon, 19 Mar 2001 11:53:34 +0000 (11:53 +0000)]
Add D_MD_ORDER (local extension) to get month/day order from locale

23 years agoUpdate obsolete history info.
Ruslan Ermilov [Mon, 19 Mar 2001 11:05:32 +0000 (11:05 +0000)]
Update obsolete history info.

23 years agoInvalidate cached forwarding route (ipforward_rt) whenever a new route
Ruslan Ermilov [Mon, 19 Mar 2001 09:16:16 +0000 (09:16 +0000)]
Invalidate cached forwarding route (ipforward_rt) whenever a new route
is added to the routing table, otherwise we may end up using the wrong
route when forwarding.

PR: kern/10778
Reviewed by: silence on -net

23 years agoAdd an example of a novel technique to the IPv6 code. This technique seems
Poul-Henning Kamp [Mon, 19 Mar 2001 08:51:56 +0000 (08:51 +0000)]
Add an example of a novel technique to the IPv6 code.  This technique seems
to have been developed after the IPv6 code was written, it's called "checking
for error returns".

Now netstat at least doesnt't go beserk in jails.

23 years agoFix minor mdoc(7) and spelling nits.
Ruslan Ermilov [Mon, 19 Mar 2001 08:20:34 +0000 (08:20 +0000)]
Fix minor mdoc(7) and spelling nits.

23 years agomdoc(7) police:
Ruslan Ermilov [Mon, 19 Mar 2001 08:08:22 +0000 (08:08 +0000)]
mdoc(7) police:

- lowercase Nd argument
- mark function arguments with Fa
- mark defined values with Dv
- simply copying POSIX text for RETURN VALUES and ERRORS sections is not
  always a good idea.  POSIX uses the word "shall" indicating the behavior
  the correct implementation should follow.

23 years agoAdd sysctls for reading the tunables as suggested by des.
Søren Schmidt [Mon, 19 Mar 2001 08:04:54 +0000 (08:04 +0000)]
Add sysctls for reading the tunables as suggested by des.
Minor cleanups plus checks of the ->active state.
Cosmetics.

23 years agoCleanup the alloc/release code a bit.
Søren Schmidt [Mon, 19 Mar 2001 08:02:42 +0000 (08:02 +0000)]
Cleanup the alloc/release code a bit.

Fix length error on the bmio resource.

Fix the irq release code, zero out free'd irq.

23 years agoActivate atacontrol
Søren Schmidt [Mon, 19 Mar 2001 07:59:38 +0000 (07:59 +0000)]
Activate atacontrol

23 years agoSome minor cleanups to the code, no new functionality.
Søren Schmidt [Mon, 19 Mar 2001 07:58:47 +0000 (07:58 +0000)]
Some minor cleanups to the code, no new functionality.

23 years agoIncorporate most of Ruslans changes plus minor addtion by me
Søren Schmidt [Mon, 19 Mar 2001 07:57:25 +0000 (07:57 +0000)]
Incorporate most of Ruslans changes plus minor addtion by me

23 years agoCosmetic changes.
Søren Schmidt [Mon, 19 Mar 2001 07:48:19 +0000 (07:48 +0000)]
Cosmetic changes.

23 years agoLots of minor cleanup, plus a couple of interesting things.
Warner Losh [Mon, 19 Mar 2001 07:10:38 +0000 (07:10 +0000)]
Lots of minor cleanup, plus a couple of interesting things.
o Attempt to disable the slot when we detect that there are problems with
  it in our ISR.  This should make polling mode work better for more cards,
  but more work may be needed.  This "disabling" sets the card interrupt
  register to 0.  This worked for me for lots of tests in polling mode.
o Now that I've found datasheets, fix a boatload of magic numbers in the
  source to make it easier to understand.
o Use a table of names rather than a big case statement.
o Cull a few of the "unused" controller types that we map to other times
  that were a vestiage of PAO code that we never merged in the same way.
o Enforce legal IRQs.  You are no longer allowed to try to use IRQs that
  will fail on all known ISA/PCI <-> PCMCIA bridges.  The bridges do not
  have pins for these illegal interrupts, and all of them are listed as
  reserved and/or illegeal in the datasheets depending on which one you
  look at.
o Add comments about how IBM-AT based computers and NEC PC-98 based computers
  map these interrupts and which ones are valid.
o Always clear the bit that steers the management interrupt either to the
  value listed in the PCIC_STAT_INT register.  I've seen this bit get set
  on suspend/resume and after windows boot, and it does't hurt to clear it.
  NOTE: this might mean we can share this interrupt in the future.

23 years agoo Adding UFS_EXTATTR support in MFS required the inclusion of opt_ufs.h.
Robert Watson [Mon, 19 Mar 2001 07:04:17 +0000 (07:04 +0000)]
o Adding UFS_EXTATTR support in MFS required the inclusion of opt_ufs.h.
  I didn't realize we had an MFS module, so didn't update the
  dependencies there to reflect opt_ufs.h.

Obtained from: TrustedBSD Project

23 years agoo Enable UFS-based extended attribute support on MFS. Note that this change
Robert Watson [Mon, 19 Mar 2001 06:44:18 +0000 (06:44 +0000)]
o Enable UFS-based extended attribute support on MFS.  Note that this change
  is under-tested, and that MFS appears to be in the process of being
  deprecated in favor of FFS over md.  Note also that UFS_EXTATTR_AUTOSTART
  doesn't make much sense on MFS unless the MFSROOT is compiled in, so
  manual configuration is generally required.

Obtained from: TrustedBSD Project

23 years agoo Rename "namespace" argument to "attrnamespace" as namespace is a C++
Robert Watson [Mon, 19 Mar 2001 06:00:41 +0000 (06:00 +0000)]
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
  reserved word.

Submitted by: jkh
Obtained from: TrustedBSD Project

23 years agoo Rename "namespace" argument to "attrnamespace" as namespace is a C++
Robert Watson [Mon, 19 Mar 2001 05:56:02 +0000 (05:56 +0000)]
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
  reserved word.

Submitted by: jkh
Obtained from: TrustedBSD Project

23 years agoo Rename "namespace" argument to "attrnamespace" as namespace is a C++
Robert Watson [Mon, 19 Mar 2001 05:53:39 +0000 (05:53 +0000)]
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
  reserved word

Submitted by: jkh
Obtained from: TrustedBSD Project

23 years agoo Rename "namespace" argument to "attrnamespace" as namespace is a C++
Robert Watson [Mon, 19 Mar 2001 05:48:58 +0000 (05:48 +0000)]
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
  reserved word.  Part 2 of syscalls.master commit to catch rebuilt
  files.

Submitted by: jkh
Obtained from: TrustedBSD Project

23 years agoo Rename "namespace" argument to "attrnamespace" as namespace is a C++
Robert Watson [Mon, 19 Mar 2001 05:44:15 +0000 (05:44 +0000)]
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
  reserved word.

Submitted by: jkh
Obtained from: TrustedBSD Project

23 years agoo Rename "namespace" argument to "attrnamespace" as namespace is a C++
Robert Watson [Mon, 19 Mar 2001 05:05:41 +0000 (05:05 +0000)]
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
  reserved word.

Submitted by: jkh
Obtained from: TrustedBSD Project

23 years agoo Rename "namespace" argument to "attrnamespace" as namespace is a C++
Robert Watson [Mon, 19 Mar 2001 05:04:30 +0000 (05:04 +0000)]
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
  reserved word, causing breakage when a C++ program included libutil.h
  This change will be propagated elsewhere shortly.

Submitted by: jkh
Obtained from: TrustedBSD Project

23 years agoThis is an MFC candidate.
Justin T. Gibbs [Mon, 19 Mar 2001 04:40:35 +0000 (04:40 +0000)]
This is an MFC candidate.

aic7xxx.c:
Correct code that traverses the phase table.  A much too quick
push to staticize this structure resulted in non-functional
lookup code.  This corrects the printing of the phase where
a timeout occurred.

aic7xxx.reg:
Use FIFOQWDEMP as the name for bit 5 of DFSTATUS just like
the Adaptec data books.

aic7xxx.seq:
Refine the 2.1 PCI retry bug workaround for certain, non-ULTRA2,
controllers.  When the DMA of an SCB completes, it can take
some time for HDONE to come true after MREQPEN (PCI memory request
pending) falls.  If HDONE never comes true, we are in the hung
state and must manually drain the FIFO.  We used to test HDONE for
3 clock cycles to detect this condition.  This works on all of the
hardware I can personally test.  Some controllers were reported
to take 4 clock cycles, so the last version of this code waited
4 clock cycles.  This still didn't work for everyone.  To fix this,
I've adjusted the work around so that even if the hardware hasn't
hung, but we run the work-around code, the result is a long winded
way to complete the transfer, rather than a hang.

23 years agoo Change options FFS_EXTATTR and options FFS_EXTATTR_AUTOSTART to
Robert Watson [Mon, 19 Mar 2001 04:35:40 +0000 (04:35 +0000)]
o Change options FFS_EXTATTR and options FFS_EXTATTR_AUTOSTART to
  options UFS_EXTATTR and UFS_EXTATTR_AUTOSTART respectively.  This change
  reflects the fact that our EA support is implemented entirely at the
  UFS layer (modulo FFS start/stop/autostart hooks for mount and unmount
  events).  This also better reflects the fact that [shortly] MFS will also
  support EAs, as well as possibly IFS.

o Consumers of the EA support in FFS are reminded that as a result, they
  must change kernel config files to reflect the new option names.

Obtained from: TrustedBSD Project

23 years agoAdd the following POSIX 1003.1e functions and man pages:
Chris D. Faulhaber [Mon, 19 Mar 2001 03:19:51 +0000 (03:19 +0000)]
Add the following POSIX 1003.1e functions and man pages:
  o acl_calc_mask(): calculates the ACL mask entry associated with
    the given ACL.
  o acl_delete_entry(): remove a specified ACL entry from the given
    ACL.

Approved by: rwatson

23 years agoShow the bzero() bandwidth in kBps instead of Bps; use u_int32_t instead
Dag-Erling Smørgrav [Mon, 19 Mar 2001 00:28:04 +0000 (00:28 +0000)]
Show the bzero() bandwidth in kBps instead of Bps; use u_int32_t instead
of long and int64_t; and print the result as an unsigned long. This should
make the output from the bzero() test more readable, and avoid printing a
negative bandwidth. Note that this doesn't change the decision process,
since that is based on time elapsed, not on computed bandwidth.

23 years agopcm driver for S3 Sonicvibes chipset.
Orion Hodson [Mon, 19 Mar 2001 00:26:41 +0000 (00:26 +0000)]
pcm driver for S3 Sonicvibes chipset.

Reviewed by: Cameron Grant

23 years agoDocument fix for 'going nowhere without my init' install bug.
Wilko Bulte [Sun, 18 Mar 2001 22:28:10 +0000 (22:28 +0000)]
Document fix for 'going nowhere without my init' install bug.

Thanks to: jkh / obrien

23 years agoLibraries should _never_ call exit() themselves (or its alternate spelling
David E. O'Brien [Sun, 18 Mar 2001 21:30:11 +0000 (21:30 +0000)]
Libraries should _never_ call exit() themselves (or its alternate spelling
`err()').  libdisk does! and additionally libdisk gets confused on Alpha
disks with foreign disklabels, throws up its hands and exits.  This is
the cause of the "going no where without my init" install bug on the Alpha.

So now on the Alpha, rather than call err(), we print the error string and
continue processing.

Submitted by: jkh

23 years agoCorrect typo in usage.
Hajimu UMEMOTO [Sun, 18 Mar 2001 18:45:43 +0000 (18:45 +0000)]
Correct typo in usage.

Submitted by: David Malone <dwmalone@maths.tcd.ie>

23 years agoUse a module name of 'if_lnc' in both the PCI and ISA sections of
Ian Dowse [Sun, 18 Mar 2001 17:44:23 +0000 (17:44 +0000)]
Use a module name of 'if_lnc' in both the PCI and ISA sections of
the driver. Doing this breaks the ability to unload the unneeded
parts of the driver (e.g unload the PCI section when using an ISA
card), but currently ifconfig(8) expects an interface `XXX' to have
a driver name of `if_XXX'.

PR: kern/25582
Submitted by: Alexander N. Kabaev <kabaev@mail.ru>, imp (apparently
Warner suggested a similar fix some time ago).
Reviewed by: paul (who would prefer to see ifconfig changed instead)

23 years agoFix typo: s/DRIVERMODULE/DRIVER_MODULE/
Alexander Langer [Sun, 18 Mar 2001 16:54:39 +0000 (16:54 +0000)]
Fix typo: s/DRIVERMODULE/DRIVER_MODULE/

PR: 25901
Submitted by: Maxime Henrion <mux@qualys.com>

23 years agoAdd `ipv6_ifconfig_IFN_aliasN' directive to allow multiple aliases.
Hajimu UMEMOTO [Sun, 18 Mar 2001 16:07:21 +0000 (16:07 +0000)]
Add `ipv6_ifconfig_IFN_aliasN' directive to allow multiple aliases.

PR: conf/24239

23 years agos/protocol-cloned/cloned/ I have missed in 1.24 -> 1.25.
Ruslan Ermilov [Sun, 18 Mar 2001 13:50:58 +0000 (13:50 +0000)]
s/protocol-cloned/cloned/ I have missed in 1.24 -> 1.25.

23 years agoMake sure the cached forwarding route (ipforward_rt) is still up before
Ruslan Ermilov [Sun, 18 Mar 2001 13:04:07 +0000 (13:04 +0000)]
Make sure the cached forwarding route (ipforward_rt) is still up before
using it.  Not checking this may have caused the wrong IP address to be
used when processing certain IP options (see example below).  This also
caused the wrong route to be passed to ip_output() when forwarding, but
fortunately ip_output() is smart enough to detect this.

This example demonstrates the wrong behavior of the Record Route option
observed with this bug.  Host ``freebsd'' is acting as the gateway for
the ``sysv''.

1. On the gateway, we add the route to the destination.  The new route
   will use the primary address of the loopback interface, 127.0.0.1:

:  freebsd# route add 10.0.0.66 -iface lo0 -reject
:  add host 10.0.0.66: gateway lo0

2. From the client, we ping the destination.  We see the correct replies.
   Please note that this also causes the relevant route on the ``freebsd''
   gateway to be cached in ipforward_rt variable:

:  sysv# ping -snv 10.0.0.66
:  PING 10.0.0.66: 56 data bytes
:  ICMP Host Unreachable from gateway 192.168.0.115
:  ICMP Host Unreachable from gateway 192.168.0.115
:  ICMP Host Unreachable from gateway 192.168.0.115
:
:  ----10.0.0.66 PING Statistics----
:  3 packets transmitted, 0 packets received, 100% packet loss

3. On the gateway, we delete the route to the destination, thus making
   the destination reachable through the `default' route:

:  freebsd# route delete 10.0.0.66
:  delete host 10.0.0.66

4. From the client, we ping destination again, now with the RR option
   turned on.  The surprise here is the 127.0.0.1 in the first reply.
   This is caused by the bug in ip_rtaddr() not checking the cached
   route is still up befor use.  The debug code also shows that the
   wrong (down) route is further passed to ip_output().  The latter
   detects that the route is down, and replaces the bogus route with
   the valid one, so we see the correct replies (192.168.0.115) on
   further probes:

:  sysv# ping -snRv 10.0.0.66
:  PING 10.0.0.66: 56 data bytes
:  64 bytes from 10.0.0.66: icmp_seq=0. time=10. ms
:    IP options:  <record route> 127.0.0.1, 10.0.0.65, 10.0.0.66,
:                                192.168.0.65, 192.168.0.115, 192.168.0.120,
:                                0.0.0.0(Current), 0.0.0.0, 0.0.0.0
:  64 bytes from 10.0.0.66: icmp_seq=1. time=0. ms
:    IP options:  <record route> 192.168.0.115, 10.0.0.65, 10.0.0.66,
:                                192.168.0.65, 192.168.0.115, 192.168.0.120,
:                                0.0.0.0(Current), 0.0.0.0, 0.0.0.0
:  64 bytes from 10.0.0.66: icmp_seq=2. time=0. ms
:    IP options:  <record route> 192.168.0.115, 10.0.0.65, 10.0.0.66,
:                                192.168.0.65, 192.168.0.115, 192.168.0.120,
:                                0.0.0.0(Current), 0.0.0.0, 0.0.0.0
:
:  ----10.0.0.66 PING Statistics----
:  3 packets transmitted, 3 packets received, 0% packet loss
:  round-trip (ms)  min/avg/max = 0/3/10

23 years agoFix typo in the comment
Andrey A. Chernov [Sun, 18 Mar 2001 12:20:38 +0000 (12:20 +0000)]
Fix typo in the comment

23 years agoConvert to new locale format with md_order and without E[Ff]_fmt
Andrey A. Chernov [Sun, 18 Mar 2001 12:17:46 +0000 (12:17 +0000)]
Convert to new locale format with md_order and without E[Ff]_fmt
Add ampm_fmt to all locales

23 years agoRelax local FreeBSD restrictions on 3 chars abbrev. name length and %c format
Andrey A. Chernov [Sun, 18 Mar 2001 11:58:15 +0000 (11:58 +0000)]
Relax local FreeBSD restrictions on 3 chars abbrev. name length and %c format
since they not allows POSIXly legal locale data. Currently, if relaxed form
POSIXly legal locale data will be used right now, some programs will be broken,
but it means that either locale data or programs must be fixed, not the library.

Introduce non-standard md_order (month/day order) locale field to be used later
via nl_langinfo(). Currently %EF and %Ef emulated using this field, but they
planned for remove in future in favour of nl_langinfo() test field.

Implement %F per POSIX

23 years agoFix core noted in -stable with 'auth disable SRA'.
Nick Sayer [Sun, 18 Mar 2001 09:44:25 +0000 (09:44 +0000)]
Fix core noted in -stable with 'auth disable SRA'.

I just mistakenly commited this to RELENG_4. I have contacted Jordan to see
about how to fix this. Pass the pointy hat.

23 years agoMake 'A' and 'a', 'B' and 'b' the same, per POSIX
Andrey A. Chernov [Sun, 18 Mar 2001 08:41:06 +0000 (08:41 +0000)]
Make 'A' and 'a', 'B' and 'b' the same, per POSIX

23 years ago- Add iso88025_ifdetach().
Matthew N. Dodd [Sun, 18 Mar 2001 05:43:25 +0000 (05:43 +0000)]
- Add iso88025_ifdetach().
- Add support for 802.2 type IPX frames.
- Cleanup iso88025_output() and iso88025_output() a bit.

23 years ago- Define payload length constants for 4Mbps and 16Mbps.
Matthew N. Dodd [Sun, 18 Mar 2001 05:41:07 +0000 (05:41 +0000)]
- Define payload length constants for 4Mbps and 16Mbps.
- Use explicit sizes for header structure fields.
- Use __attribute__ ((__packed__)) for header structures.
- Define struct iso88025_rif; for future use.
- Prototype upcoming iso88025_ifdetach()
- Get rid of __P() constructs in prototypes.

23 years agoproperly document the loadConfig option
Jordan K. Hubbard [Sun, 18 Mar 2001 05:38:11 +0000 (05:38 +0000)]
properly document the loadConfig option

23 years agoo Caused FFS_EXTATTR_AUTOSTART to scan two sub-directories of ".attribute"
Robert Watson [Sun, 18 Mar 2001 04:04:23 +0000 (04:04 +0000)]
o Caused FFS_EXTATTR_AUTOSTART to scan two sub-directories of ".attribute"
  off of the file system root: "user" for user attributes, and "system"
  for system attributes.  When the scan occurs, attribute backing files
  discovered in those directories will be started in the respective
  namespaces.  This re-introduces support for auto-starting of user
  attributes, which was removed when the "$" prefix for system attributes
  was replaced with explicit namespacing.

  For users of the TrustedBSD UFS POSIX.1e ACL code, you'll need to:
    mv ${FSROOT}/'$posix1e.acl_access' ${FSROOT}/system/posix1e.acl_access
    mv ${FSROOT}/'$posix1e.acl_default' ${FSROOT}/system/posix1e.acl_default

  For users of the TrustedBSD POSIX.1e Capability code, you'll need to:
    mv ${FSROOT}/'$posix1e.cap' ${FSROOT}/system/posix1e.cap

  For users of the TrustedBSD MAC code, you'll need to:
    mv ${FSROOT}/'$freebsd.mac' ${FSROOT}/system/freebsd.mac

  Updated versions of relevant patches will be released in the near
  future.

Obtained from: TrustedBSD Project

23 years agoFix a couple of things in the internal mbuf allocation interface:
Bosko Milekic [Sat, 17 Mar 2001 23:23:24 +0000 (23:23 +0000)]
Fix a couple of things in the internal mbuf allocation interface:

- Make sure that m_mballoc() really doesn't allow over nmbufs mbufs to
  be allocated from mb_map. In the case where nmbufs-reserved space is not
  an exact multiple of PAGE_SIZE (which it should be, but anyway...), we
  hold nmbufs as an absolute maximum which need not ever be reached.

- Clean up m_clalloc(); make it more consistent in the sense that the first
  argument `ncl' really means "the number of clusters ensured to be allocated"
  and not "the number of pages worth of clusters to be allocated," as was
  previously the case. This also makes it consistent with m_mballoc() as well
  as the comment that preceeds it.

Reviewed by: jlemon

23 years agoIgnore comments in /etc/passwd
Brian Somers [Sat, 17 Mar 2001 21:22:29 +0000 (21:22 +0000)]
Ignore comments in /etc/passwd

PR: 25845
Submitted by: Udo Schweigert <ust@cert.siemens.de>

23 years agoRemove unused locale/nls directories.
Andrey A. Chernov [Sat, 17 Mar 2001 21:14:52 +0000 (21:14 +0000)]
Remove unused locale/nls directories.
Corresponding fixes for "make release" already commited elsewhere.

23 years agoDon't link et_EE with 8859-1
Andrey A. Chernov [Sat, 17 Mar 2001 21:02:17 +0000 (21:02 +0000)]
Don't link et_EE with 8859-1