]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoUpdate for tcpdump 3.6.2
fenner [Tue, 3 Apr 2001 07:52:38 +0000 (07:52 +0000)]
Update for tcpdump 3.6.2

23 years agoMerge tcpdump 3.6.2
fenner [Tue, 3 Apr 2001 07:50:46 +0000 (07:50 +0000)]
Merge tcpdump 3.6.2

23 years agoThis commit was generated by cvs2svn to compensate for changes in r75115,
fenner [Tue, 3 Apr 2001 07:45:48 +0000 (07:45 +0000)]
This commit was generated by cvs2svn to compensate for changes in r75115,
which included commits to RCS files with non-trunk default branches.

23 years agoVirgin import of tcpdump.org tcpdump v3.6.2
fenner [Tue, 3 Apr 2001 07:45:48 +0000 (07:45 +0000)]
Virgin import of tcpdump.org tcpdump v3.6.2

23 years agoFix a spelling error.
dd [Tue, 3 Apr 2001 05:43:07 +0000 (05:43 +0000)]
Fix a spelling error.

PR: 26308

23 years agoAgain initialize a mutex well, then lock it.
tanimura [Tue, 3 Apr 2001 05:15:58 +0000 (05:15 +0000)]
Again initialize a mutex well, then lock it.

PR: kern/26188
Submitted by: Jim Bloom <bloom@acm.org>

23 years ago- Change the msleep()s to condition variables.
bmilekic [Tue, 3 Apr 2001 04:50:13 +0000 (04:50 +0000)]
- Change the msleep()s to condition variables.
  The mbuf and mcluster free lists now each "own" a condition variable,
  m_starved.

- Clean up minor indentention issues in sys/mbuf.h caused by previous
  commit.

23 years agoUpdate for libpcap 0.6.2
fenner [Tue, 3 Apr 2001 04:34:50 +0000 (04:34 +0000)]
Update for libpcap 0.6.2

23 years agoMerge libpcap 0.6.2
fenner [Tue, 3 Apr 2001 04:32:48 +0000 (04:32 +0000)]
Merge libpcap 0.6.2

23 years agoThis commit was generated by cvs2svn to compensate for changes in r75107,
fenner [Tue, 3 Apr 2001 04:18:09 +0000 (04:18 +0000)]
This commit was generated by cvs2svn to compensate for changes in r75107,
which included commits to RCS files with non-trunk default branches.

23 years agoVirgin import of tcpdump.org libpcap v0.6.2
fenner [Tue, 3 Apr 2001 04:18:09 +0000 (04:18 +0000)]
Virgin import of tcpdump.org libpcap v0.6.2

23 years agoo Change the default from using IO_SYNC on EA set and delete operations
rwatson [Tue, 3 Apr 2001 04:09:53 +0000 (04:09 +0000)]
o Change the default from using IO_SYNC on EA set and delete operations
  to not using IO_SYNC.  Expose a sysctl (debug.ufs_extattr_sync) for
  enabling the use of IO_SYNC.

    - Use of IO_SYNC substantially degrades ACL performance when a
      default ACL is set on a directory, as there are four synchronous
      writes initiated to define both supporting EAs for new
      sub-directories, and to set the data; two for new files.  Later, this
      may be optimized to two writes for sub-directories, one for new
      files.

    - IO_SYNC does not substantially improve consistency properties due
      to the poor consistency properties of existing permissions (which
      ACLs are a superset of), due to interaction with soft updates,
      and due to differences in handling consistency for data and file
      system meta-data.

    - In macro-benchmarks, this reduces the overhead of setting default
      ACLs down to the same overhead as enabling ACLs on a file system
      and not using them.  Enabling ACLs still introduces a small
      overhead (I measure 7% on a -j 2 buildworld with pre-allocated
      EA backing store, but this is not rigorous testing, nor in any way
      optimized).

    - The sysctl will probably change to another administration method
      (or at least, a better name) in the near future, but consistency
      properties of EAs are still being worked out.  The toggle is defined
      right now to allow easier performance analysis and exploration
      of possible guarantees.

Obtained from: TrustedBSD Project

23 years agoUse only one mutex for the entire mbuf subsystem.
alfred [Tue, 3 Apr 2001 03:15:11 +0000 (03:15 +0000)]
Use only one mutex for the entire mbuf subsystem.

Don't use atomic operations for the stats updating, instead protect
the counts with the mbuf mutex.  Most twiddling of the stats was
done right before or after releasing a mutex.  By doing this we
reduce the number of locked ops needed as well as allow a sysctl
to gain a consitant view of the entire stats structure.

In the future...

  This will allow us to chain common mbuf operations that would
  normally need to aquire/release 2 or 3 of the locks to build an
  mbuf with a cluster or external data attached into a single op
  requiring only one lock.

  Simplify the per-cpu locks that are planned.

There's also some if (1) code that should check if the "how"
operation specifies blocking/non-blocking behavior, we _could_ make
it so that we hold onto the mutex through calls into kmem_alloc
when non-blocking requests are made, but for safety reasons we
currently drop and reaquire the mutex around the calls.

Also, note that calling kmem_alloc is rare and only happens during
a shortage so drop/re-getting the mutex will not be a common
occurance.

Remove some #define's that seemed to obfuscate the code to me.

Remove an extranious comment.

Remove an XXX, including mutex.h isn't a crime.

Reviewed by: bmilekic

23 years agoChange stop() to require the sched_lock as well as p's process lock to
jhb [Tue, 3 Apr 2001 01:39:23 +0000 (01:39 +0000)]
Change stop() to require the sched_lock as well as p's process lock to
avoid silly lock contention on sched_lock since in 2 out of the 3 places
that we call stop(), we get sched_lock right after calling it and we were
locking sched_lock inside of stop() anyways.

23 years agoAllow MOD_UNLOADs of if_tun, and handle event handler registration
brian [Tue, 3 Apr 2001 01:22:15 +0000 (01:22 +0000)]
Allow MOD_UNLOADs of if_tun, and handle event handler registration
failures in MOD_LOAD.

Dodge duplicate make_dev() calls by (ab)using dev->si_drv2 to
remember if we created the device node via a dev_clone callback
before the d_open call.

23 years agoFix probing on the alpha. It still causes the alpha to panic during
ps [Tue, 3 Apr 2001 00:26:34 +0000 (00:26 +0000)]
Fix probing on the alpha.  It still causes the alpha to panic during
attach.

23 years agoChange the order in which /etc files are copied into place; copy
bsd [Tue, 3 Apr 2001 00:24:01 +0000 (00:24 +0000)]
Change the order in which /etc files are copied into place; copy
default first, then network-specific files, then host-specific files.
I think this was the original intent, as Matt indicated the previous
code appeared to be a bug.

23 years agoRemove bogus block device major now that bdev majors are gone.
jhb [Mon, 2 Apr 2001 23:36:36 +0000 (23:36 +0000)]
Remove bogus block device major now that bdev majors are gone.

23 years agoDocument the newfs.c rev 1.33 changing the default c/g from 16 to 22.
obrien [Mon, 2 Apr 2001 22:48:54 +0000 (22:48 +0000)]
Document the newfs.c rev 1.33 changing the default c/g from 16 to 22.

23 years agoFix patch merge braino.
obrien [Mon, 2 Apr 2001 22:46:02 +0000 (22:46 +0000)]
Fix patch merge braino.

23 years agoThere were a few error cases where the RPC code would return with
iedowse [Mon, 2 Apr 2001 22:14:13 +0000 (22:14 +0000)]
There were a few error cases where the RPC code would return with
all signals masked (whoops). Add the missing cleanup code.

Reviewed by: Martin Blapp <mb@imp.ch>, alfred

23 years agoIf ifpromisc() fails the SIOCSIFFLAGS ioctl, put ifp->if_flags
brian [Mon, 2 Apr 2001 21:49:40 +0000 (21:49 +0000)]
If ifpromisc() fails the SIOCSIFFLAGS ioctl, put ifp->if_flags
back the way we found them.

23 years agoReturn 0 and do nothing when we get a SIOCSIFFLAGS.
brian [Mon, 2 Apr 2001 21:49:18 +0000 (21:49 +0000)]
Return 0 and do nothing when we get a SIOCSIFFLAGS.

Without this, ifpromisc() always fails (after setting the IFF_PROMISC
bit in ifp->if_flags) and bpf never bothers to turn promiscuous mode off.

PR: 20188

23 years agoMove the #includes of reentrant.h to after the `#include "namespace.h"',
iedowse [Mon, 2 Apr 2001 21:41:44 +0000 (21:41 +0000)]
Move the #includes of reentrant.h to after the `#include "namespace.h"',
so that the underscored versions of the pthread functions get
declared.  This removes around 300 lines of 'implicit declaration
of XXX' warnings from the output of a libc build with -Wall.

Reviewed by: Martin Blapp <mb@imp.ch>, alfred

23 years agoNew release notes: fsck(8) and /etc/fstab passes, newfs(8) -U,
bmah [Mon, 2 Apr 2001 21:26:49 +0000 (21:26 +0000)]
New release notes:  fsck(8) and /etc/fstab passes, newfs(8) -U,
libcrypt Blowfish support.

Fix a typo:  newfs is section 8, not section 1.

23 years agoMFC candidate:
bmah [Mon, 2 Apr 2001 19:06:52 +0000 (19:06 +0000)]
MFC candidate:

Fix ABOUT.TXT to be consistent with LAYOUT.TXT with respect to
the size of an unpacked ports collection (the stated 100MB
is a bit of an overestimate, but better to be conservative).

PR: 22778
Submitted by: David <ddavid@ican.net>

23 years ago- Move the second stop() of process 'p' in issignal() to be after we send
jhb [Mon, 2 Apr 2001 17:26:51 +0000 (17:26 +0000)]
- Move the second stop() of process 'p' in issignal() to be after we send
  SIGCHLD to our parent process.  Otherwise, we could block while obtaining
  the process lock for our parent process and switch out while we were
  in SSTOP.  Even worse, when we try to resume from the mutex being blocked
  on our p_stat will be SRUN, not SSTOP.
- Fix a comment above stop() to indicate that it requires that the proc lock
  be held, not a proctree lock.

Reported by: markm
Sleuthing by: jake

23 years agoRegen.
n_hibma [Mon, 2 Apr 2001 13:12:15 +0000 (13:12 +0000)]
Regen.

23 years agoAdd Agate Q-Drive.
n_hibma [Mon, 2 Apr 2001 13:11:59 +0000 (13:11 +0000)]
Add Agate Q-Drive.

Submitted by: Ian Cartwright <ian351c@home.com>

23 years agoRegen.
n_hibma [Mon, 2 Apr 2001 13:02:36 +0000 (13:02 +0000)]
Regen.

23 years agoSync with NetBSD usbdevs
n_hibma [Mon, 2 Apr 2001 13:02:17 +0000 (13:02 +0000)]
Sync with NetBSD usbdevs

23 years agoDo not override `realinstall' target, use ${PROGNAME}.
ru [Mon, 2 Apr 2001 12:06:00 +0000 (12:06 +0000)]
Do not override `realinstall' target, use ${PROGNAME}.

23 years agoDo not override `realinstall' target, use ${PROGNAME}.
ru [Mon, 2 Apr 2001 11:54:59 +0000 (11:54 +0000)]
Do not override `realinstall' target, use ${PROGNAME}.

23 years agoIntroduce ${PROGNAME}, the name that the program will be installed as,
ru [Mon, 2 Apr 2001 11:44:20 +0000 (11:44 +0000)]
Introduce ${PROGNAME}, the name that the program will be installed as,
if different from ${PROG}.  (The name PROGNAME was stolen from NetBSD.)

Reviewed by: bde

23 years agoAdd support for MODULES_OVERRIDE. This is a list of modules to build
imp [Mon, 2 Apr 2001 08:52:05 +0000 (08:52 +0000)]
Add support for MODULES_OVERRIDE.  This is a list of modules to build
instead of all of them.  You can put this in /etc/make.conf or in
makeoptions.

Reviewed by: arch@

# docs to follow.

23 years agoBackout revision 1.6 (removed the NOSHARED bit.)
ru [Mon, 2 Apr 2001 08:47:25 +0000 (08:47 +0000)]
Backout revision 1.6 (removed the NOSHARED bit.)

These must be compiled static so that it is possible
to use them early in the boot process.

Requested by: imp

23 years agoRemoved the NOSHARED bit.
ru [Mon, 2 Apr 2001 07:27:46 +0000 (07:27 +0000)]
Removed the NOSHARED bit.

23 years agoFix a grammar bogon.
dd [Mon, 2 Apr 2001 06:21:13 +0000 (06:21 +0000)]
Fix a grammar bogon.

23 years agoAllow enabling soft updates (with -U) on a new filesystem.
obrien [Mon, 2 Apr 2001 01:25:55 +0000 (01:25 +0000)]
Allow enabling soft updates (with -U) on a new filesystem.

[I first added this functionality, and thought to check prior art.  Seeing
OpenBSD had already done this, I changed my addition to reduce the diffs
between the two and went with their option letter.]
Obtained from: OpenBSD

23 years agoo Correct an ACL implementation bug that could result in a system panic
rwatson [Mon, 2 Apr 2001 01:02:32 +0000 (01:02 +0000)]
o Correct an ACL implementation bug that could result in a system panic
  under heavy use when default ACLs were bgin inherited by new files
  or directories.  This is done by removing a bug in default ACL
  reading, and improving error handling for this failure case:

    - Move the setting of the buffer length (len) variable to above the
      ACL type (ap->a_type) switch rather than having it only for
      ACL_TYPE_ACCESS.  Otherwise, the len variable is unitialized in
      the ACL_TYPE_DEFAULT case, which generally worked right, but could
      result in failure.

    - Add a check for a short/long read of the ACL_TYPE_DEFAULT type from
      the underlying EA, resulting in EPERM rather than passing a
      potentially corrupted ACL back to the caller (resulting "cleaner"
      failures if the EA is damaged: right now, the caller will almost
      always panic in the presence of a corrupted EA).  This code is similar
      to code in the ACL_TYPE_ACCESS handling in the previous switch case.

    - While I'm fixing this code, remove a redundant bzero() of the ACL
      reader buffer; it need only be initialized above the acl_type
      switch.

Obtained from: TrustedBSD Project

23 years agoHook the extattr_get_file.2 manual page into the build. Add MLINKS
dd [Sun, 1 Apr 2001 23:46:56 +0000 (23:46 +0000)]
Hook the extattr_get_file.2 manual page into the build.  Add MLINKS
for extattr_set_file.2 and extattr_delete_file.2.

23 years agoA manual page for the extattr_get_file, extattr_set_file, and
dd [Sun, 1 Apr 2001 23:45:11 +0000 (23:45 +0000)]
A manual page for the extattr_get_file, extattr_set_file, and
extattr_delete_file system calls.

Reviewed by: rwatson, ru
Approved by: nik

23 years agoAllow users to override the default map type used for building maps.
gshapiro [Sun, 1 Apr 2001 22:54:15 +0000 (22:54 +0000)]
Allow users to override the default map type used for building maps.

23 years agoThe userdb database is different from the rest of the databases. It *must*
gshapiro [Sun, 1 Apr 2001 22:48:07 +0000 (22:48 +0000)]
The userdb database is different from the rest of the databases.  It *must*
be a btree.

PR: bin/26149

23 years agoDon't assume challenges and responses don't contain embedded '\0's.
brian [Sun, 1 Apr 2001 22:39:17 +0000 (22:39 +0000)]
Don't assume challenges and responses don't contain embedded '\0's.

Mschapv2 response generation may produce embedded NULs... causing
us to send a bogus response to the radius server and end up
failing the client's valid response.

Problem pointed out by: Eugene Vigovskiy <vigov@com2com.ru>

23 years agoRemove grep from the fixit floppy. This should free enough space to get
jhay [Sun, 1 Apr 2001 14:41:54 +0000 (14:41 +0000)]
Remove grep from the fixit floppy. This should free enough space to get
the snaps going again.

23 years agoAdd spaces around operators.
obrien [Sun, 1 Apr 2001 12:18:20 +0000 (12:18 +0000)]
Add spaces around operators.
It's OK, the Project and afford them now -- they aren't as expensive as
they used to be.

23 years agoCorrect a comment.
obrien [Sun, 1 Apr 2001 11:44:12 +0000 (11:44 +0000)]
Correct a comment.

23 years agoTry to untangle some of the #ifdef spaghetti.
obrien [Sun, 1 Apr 2001 11:37:31 +0000 (11:37 +0000)]
Try to untangle some of the #ifdef spaghetti.
Also, looking to the future, don't assume all the world is an i386 and all
its disk layout brain damage will be repeated by other platforms.  So all
the diking out if we are an Alpha, becomes adding in if we are an i386.

23 years agoAdd back <err.h> for warn().
obrien [Sun, 1 Apr 2001 11:32:56 +0000 (11:32 +0000)]
Add back <err.h> for warn().
(of course it's pretty stupid to call it, as printf doesn't work w/in
sysinstall, and sysinstall is the only consumer of libdisk)

23 years agoQuiet warnings on the Alpha.
obrien [Sun, 1 Apr 2001 11:22:40 +0000 (11:22 +0000)]
Quiet warnings on the Alpha.

23 years agoAdd back <err.h> for warn().
obrien [Sun, 1 Apr 2001 10:44:52 +0000 (10:44 +0000)]
Add back <err.h> for warn().
(of course it's pretty stupid to call it, as printf doesn't work w/in
sysinstall, and sysinstall is the only consumer of libdisk)

23 years agoGive a little more variety in the /etc/exports example.
obrien [Sun, 1 Apr 2001 09:19:23 +0000 (09:19 +0000)]
Give a little more variety in the /etc/exports example.

23 years agoMake an attempt to get the asr driver to compile on Alpha by fixing some i386
scottl [Sun, 1 Apr 2001 08:33:01 +0000 (08:33 +0000)]
Make an attempt to get the asr driver to compile on Alpha by fixing some i386
specific bogons.  Compile with -O0, as anything higher gives the compiler
a fit.  No idea if this driver will actually work on Alpha, though.

23 years agomake code use strxxx() calls
alfred [Sun, 1 Apr 2001 07:36:28 +0000 (07:36 +0000)]
make code use strxxx() calls

Glanced at by: imp

23 years agoCorrect typo.
nyan [Sun, 1 Apr 2001 07:15:16 +0000 (07:15 +0000)]
Correct typo.

23 years agoMerged from sys/i386/i386/bioscall.s revision 1.9 and 1.10.
nyan [Sun, 1 Apr 2001 07:08:13 +0000 (07:08 +0000)]
Merged from sys/i386/i386/bioscall.s revision 1.9 and 1.10.

23 years agoRemove NOSHARED.
iwasaki [Sun, 1 Apr 2001 07:00:35 +0000 (07:00 +0000)]
Remove NOSHARED.
The usr.sbin/acpi/ utilities should be compiled non-static.
It just followed the usr.sbin/pccard/Makefile.inc way last time.

Pointed out by: ru and msmith
Committed at:   BSD HANAMI in Japan 2001

23 years agoRegen after adding linux_sched_get_priority_max() and
alc [Sun, 1 Apr 2001 06:43:09 +0000 (06:43 +0000)]
Regen after adding linux_sched_get_priority_max() and
linux_sched_get_priority_min().

23 years agoMerged from sys/i386/isa/clock.c revision 1.171.
nyan [Sun, 1 Apr 2001 06:41:47 +0000 (06:41 +0000)]
Merged from sys/i386/isa/clock.c revision 1.171.

23 years agoMerged from sys/i386/i386/machdep.c revision 1.446.
nyan [Sun, 1 Apr 2001 06:40:45 +0000 (06:40 +0000)]
Merged from sys/i386/i386/machdep.c revision 1.446.

23 years agoMerged from sys/dev/aic/aic_isa.c revision 1.7.
nyan [Sun, 1 Apr 2001 06:37:59 +0000 (06:37 +0000)]
Merged from sys/dev/aic/aic_isa.c revision 1.7.

23 years agoAdd linux_sched_get_priority_max() and linux_sched_get_priority_min(): The
alc [Sun, 1 Apr 2001 06:37:40 +0000 (06:37 +0000)]
Add linux_sched_get_priority_max() and linux_sched_get_priority_min(): The
 policy parameter requires translation.

23 years agoMerged from sys/i386/apm/apm.c revision 1.121.
nyan [Sun, 1 Apr 2001 06:34:12 +0000 (06:34 +0000)]
Merged from sys/i386/apm/apm.c revision 1.121.

23 years agoMerged from sys/conf/options.i386 revision 1.144.
nyan [Sun, 1 Apr 2001 06:31:25 +0000 (06:31 +0000)]
Merged from sys/conf/options.i386 revision 1.144.

23 years agoMerged from sys/conf/files.i386 revision 1.350 and 1.354.
nyan [Sun, 1 Apr 2001 06:30:28 +0000 (06:30 +0000)]
Merged from sys/conf/files.i386 revision 1.350 and 1.354.

23 years agoIndicate that sh(1) has an 'if' builtin command.
dd [Sun, 1 Apr 2001 01:08:33 +0000 (01:08 +0000)]
Indicate that sh(1) has an 'if' builtin command.

PR: 26193

23 years agoChange ahc_update_pending_scbs() so that it safe to be called
gibbs [Sun, 1 Apr 2001 00:00:09 +0000 (00:00 +0000)]
Change ahc_update_pending_scbs() so that it safe to be called
even if the controller is not paused.  This prevents SCB list
corruption that was introduced in the last checkin.

23 years agoUse fs->fs_ipg rather than cg->cg_niblk as the latter is only
mckusick [Sat, 31 Mar 2001 22:17:38 +0000 (22:17 +0000)]
Use fs->fs_ipg rather than cg->cg_niblk as the latter is only
16-bits and may overflow.

Obtained from: Bruce Evans <bde@zeta.org.au>

23 years ago- Back out the last (wrong) commit, and readd a modified version
ache [Sat, 31 Mar 2001 20:45:21 +0000 (20:45 +0000)]
- Back out the last (wrong) commit, and readd a modified version
  of pingnfsserver(). The pingnfsport() function is now called everytime.
  If we don't get RPC_SUCCESS or RPC_PROGVERSMISMATCH back, there's
  something wrong with the NFS server and we just exit.

- Fix cfs mount on IPv4-only machines

- Fixed the looping when we did not run background mode.

- Fixed a getnameinfo() call with uninitialized adress.
  This is a NetBSD bug I didn't notified :-( Thanks Ian !

- Added some #ifdef NFSKERB

- Removed some unused variables.

- Fixed idention

- Remove unnecessary ":" in openlog ident

Submitted by: Martin Blapp <mb@imp.ch>
Reviewed by: Ian Dowse <iedowse@maths.tcd.ie>

23 years agoReduce the libiberty sources we build to those we actually need.
obrien [Sat, 31 Mar 2001 20:00:18 +0000 (20:00 +0000)]
Reduce the libiberty sources we build to those we actually need.

23 years agoUse -r rather than -R to get "reasonable permissions and ownership".
obrien [Sat, 31 Mar 2001 18:38:05 +0000 (18:38 +0000)]
Use -r rather than -R to get "reasonable permissions and ownership".

23 years ago-DRELEASE_CRUNCH moved into crunchgen(1) config files for
ru [Sat, 31 Mar 2001 17:07:55 +0000 (17:07 +0000)]
-DRELEASE_CRUNCH moved into crunchgen(1) config files for
release building.  Remove a hack that is no longer needed.

23 years agolibtelnet.a is gone; add a special hack for `make release' fixit floppy.
ru [Sat, 31 Mar 2001 17:04:49 +0000 (17:04 +0000)]
libtelnet.a is gone; add a special hack for `make release' fixit floppy.

23 years agoMoved -DRELEASE_CRUNCH into crunchgen(1) config files.
ru [Sat, 31 Mar 2001 17:03:12 +0000 (17:03 +0000)]
Moved -DRELEASE_CRUNCH into crunchgen(1) config files.
Record libtelnet.a death.

23 years agoMoved -DRELEASE_CRUNCH into crunchgen(1) config files.
ru [Sat, 31 Mar 2001 17:02:37 +0000 (17:02 +0000)]
Moved -DRELEASE_CRUNCH into crunchgen(1) config files.

23 years agoo Part two of introduction of extattr_{delete,get,set}_fd() system calls,
rwatson [Sat, 31 Mar 2001 16:21:19 +0000 (16:21 +0000)]
o Part two of introduction of extattr_{delete,get,set}_fd() system calls,
  regenerate necessary automatically-generated code.

Obtained from: TrustedBSD Project

23 years agoo Introduce extattr_{delete,get,set}_fd() to allow extended attribute
rwatson [Sat, 31 Mar 2001 16:20:05 +0000 (16:20 +0000)]
o Introduce extattr_{delete,get,set}_fd() to allow extended attribute
  operations on file descriptors, which complement the existing set of
  calls, extattr_{delete,get,set}_file() which act on paths.  In doing
  so, restructure the system call implementation such that the two sets
  of functions share most of the relevant code, rather than duplicating
  it.  This pushes the vnode locking into the shared code, but keeps
  the copying in of some arguments in the system call code.  Allowing
  access via file descriptors reduces the opportunity for race
  conditions when managing extended attributes.

Obtained from: TrustedBSD Project

23 years agoQuoting from the email thrown around between kirk, bde and iedowse@..
adrian [Sat, 31 Mar 2001 15:19:58 +0000 (15:19 +0000)]
Quoting from the email thrown around between kirk, bde and iedowse@..

<QUOTE>
Overflow of cg_niblk causes spurious "SUMMARY INFORMATION BAD" warnings
prompts in fsck_ffs.  cg_niblk has type int16_t, but it is (ab)used
to hold the number of inodes per group (it has nothing to do with the
number of inode blocks in the cg as claimed in ffs/fs.h), and there
can be lots of inodes per group.  E.g.,

    newfs -i 8192 -b 16384 -f 16384 -c 255 ...

gives 0xA900 inodes/group.  Assignment of this to cg_niblk gives
-0x5700.  This is mostly harmless (ufs/ffs doesn't use cg_niblk, and
bug-for-bug compatible overflow occurs in newfs), but in
fsck_ffs/pass5.c, negative values of cg_niblk limit cg_irotor to 0
and the summary info appears to be bad.
</QUOTE>

Submitted by: Bruce Evans <bde@zeta.org.au>
Obtained from: Kirk McKusick <mckusick@mckusick.com>

23 years agoConsistently space the output.
obrien [Sat, 31 Mar 2001 09:26:03 +0000 (09:26 +0000)]
Consistently space the output.

23 years agoMinor style cleanup.
obrien [Sat, 31 Mar 2001 07:50:30 +0000 (07:50 +0000)]
Minor style cleanup.

23 years agoIt's not CUT (the french would accept that back in 1879) and TUC wasn't
phk [Sat, 31 Mar 2001 07:24:35 +0000 (07:24 +0000)]
It's not CUT (the french would accept that back in 1879) and TUC wasn't
palatable to the rest of the world.  UTC was the compromise.

PR: 26238
Submitted by: Ying-Chieh Liao <ijliao@terry.dragon2.net>

23 years agoAdd libiberty. This is needed on the Alpha by the iprobe port.
obrien [Sat, 31 Mar 2001 07:02:02 +0000 (07:02 +0000)]
Add libiberty.  This is needed on the Alpha by the iprobe port.
I have held this back for over a year, as we will always have to wrestle
with the question of "*which* libiberty sources to use".  Sigh, if only
the GNU people would treat it as a totally separate library from GCC, et al.
and release it as such...

23 years agoNote in the comments that it is possible, but not recommended to use
murray [Sat, 31 Mar 2001 04:41:24 +0000 (04:41 +0000)]
Note in the comments that it is possible, but not recommended to use
spaces instead of tabs in this file.  This matches the description in
the manpage.

PR: 25945
Submitted by: T. William Wells <bill@twwells.com>

23 years agocomment typo: subsytem -> subsystem
murray [Sat, 31 Mar 2001 04:34:15 +0000 (04:34 +0000)]
comment typo: subsytem -> subsystem

PR: 26219
Submitted by: Andre <andre@akademie3000.de>, chern@osd.bsdi.com

23 years agoCorrect the MLINKS for mutex.9 to reflect the API change and add a new
jhb [Fri, 30 Mar 2001 23:00:00 +0000 (23:00 +0000)]
Correct the MLINKS for mutex.9 to reflect the API change and add a new
MLINK for mtx_initialized.

Reminded by: rwatson

23 years ago- Document mtx_initialized().
jhb [Fri, 30 Mar 2001 22:59:02 +0000 (22:59 +0000)]
- Document mtx_initialized().
- Document that MTX_QUIET can be passed to mtx_init() and the new flag
  MTX_NOWITNESS.

23 years agoRecognize a few newer cpus (pca57, ev67 & ev68) and update systypes to
gallatin [Fri, 30 Mar 2001 22:04:08 +0000 (22:04 +0000)]
Recognize a few newer cpus (pca57, ev67 & ev68) and update systypes to
include "CUSCO" and "Eiger" while I'm at it.

23 years agoFix typo.
archie [Fri, 30 Mar 2001 20:32:05 +0000 (20:32 +0000)]
Fix typo.

23 years agoDon't core dump when given "-i -a". Problem caused by a mistaken
phk [Fri, 30 Mar 2001 19:16:04 +0000 (19:16 +0000)]
Don't core dump when given "-i -a".  Problem caused by a mistaken
dereference of a kernel-pointer in userland.

PR: 26168
Submitted by: Peter Pentchev <roam@orbitel.bg>

23 years agoRemove two lint directives that aren't needed since rev 1.5.
obrien [Fri, 30 Mar 2001 16:51:51 +0000 (16:51 +0000)]
Remove two lint directives that aren't needed since rev 1.5.

23 years agoMFC candidate
jesper [Fri, 30 Mar 2001 16:32:52 +0000 (16:32 +0000)]
MFC candidate

Change the default mode from ad-hoc to
infrastructure, as noted in

src/share/man/man4/an.4 rev 1.8

23 years agoChange the previous commit to be in style(9)
jesper [Fri, 30 Mar 2001 16:05:50 +0000 (16:05 +0000)]
Change the previous commit to be in style(9)

Reviewed by: jhb

23 years agoBackout rev 2.3 (-fno-for-scope); problem fixed in Groff 1.12.
ru [Fri, 30 Mar 2001 13:40:51 +0000 (13:40 +0000)]
Backout rev 2.3 (-fno-for-scope); problem fixed in Groff 1.12.

23 years agospace typo in last commit
wosch [Fri, 30 Mar 2001 10:44:29 +0000 (10:44 +0000)]
space typo in last commit

23 years ago * A comment in apropos.sh contains the misspelled word
wosch [Fri, 30 Mar 2001 10:31:46 +0000 (10:31 +0000)]
    *  A comment in apropos.sh contains the misspelled word
           "locailzed"; it should read "localized".

        *  The "test" operator can be a bit dangerous (e.g., if
           a newbie writes a script named "test" and has it call
           "apropos", which calls "test, ...).

        *  In its use as "whatis", apropos formats the first
           line of the output differently than the following
           lines.  Specifically, it leaves out all but one of
           the spaces that precede the dash in the first line.

Submitted by: Rich Morin <rdm@cfcl.com>
PR: 25126

23 years agoIntegrate the IPv6 entries with the rest of them to avoid things getting
peter [Fri, 30 Mar 2001 10:25:40 +0000 (10:25 +0000)]
Integrate the IPv6 entries with the rest of them to avoid things getting
out of sync.  A similar change was made by itojun on the OpenBSD tree
a few weeks ago.  This should stop people disabling one server and
forgetting the other one (eg: ftp and/or telnet)

23 years ago`buildopts' may affect the selection of object files.
ru [Fri, 30 Mar 2001 08:04:25 +0000 (08:04 +0000)]
`buildopts' may affect the selection of object files.
Make sure we pass $(BUILDOPTS) to the `clean' target
so that `make clean' works on the same set of object
files.  Otherwise, we may end up with an incorrectly
built and up-to-date object file.

23 years agoThis change sanitizes the way fsck deals with pass numbers.
phk [Fri, 30 Mar 2001 08:01:34 +0000 (08:01 +0000)]
This change sanitizes the way fsck deals with pass numbers.

Consider this /etc/fstab:

# Device         Mountpoint      FStype  Options    Dump    Pass#
/dev/ad1s1b      none            swap    sw         0       0
/dev/ad0s1b      none            swap    sw         0       0
/dev/ad0s1a      /               ufs     rw         1       1
/dev/ad0s1e      /home           ufs     rw         2       2
/dev/ad1s1e      /tmp            ufs     rw         2       2
/dev/ad1s1f      /usr            ufs     rw         2       2
/dev/ccd0c       /syv            ufs     rw         2       11
proc             /proc           procfs  rw         0       0

ccd0c is striped over /dev/ad0f and /dev/ad1g

Without this pass, fsck in preen mode will check ad0s1a first,
and then issue three processes in parallel:

One process doing ad0s1e
One process doing ad1s1e and ad1s1f
One process doing ccd0c

There is no way to tell it that ccd0c overlaps ad0 and ad1.

With the patch, it will do it this way:

pass 2:
One process doing ad0s1e
One process doing ad1s1e and ad1s1f

and when they are complete:

pass 11:
One process doing ccd0c

This is much faster and more sane.

Valid pass numbers are anything from 1 to INTMAX-1.

I retired the '-l' option which tried to allow people to do
something like this, but which didn't work and which complicated
the code an awful lot.

23 years agoEliminate some things from the fixit crunch image so that it actually
jkh [Fri, 30 Mar 2001 07:50:29 +0000 (07:50 +0000)]
Eliminate some things from the fixit crunch image so that it actually
builds again.