]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoAdd GEOM_MIRROR class which provide RAID1 functionality and has many useful
pjd [Fri, 30 Jul 2004 23:13:45 +0000 (23:13 +0000)]
Add GEOM_MIRROR class which provide RAID1 functionality and has many useful
features. The gmirror(8) utility should be used for control of this class.
There is no manual page yet, but I'm working on it with keramida@.

Many useful tests provided by: simon (thank you!)
Some ideas from: scottl, simon, phk

19 years agoRemove the old geom_mirror class.
pjd [Fri, 30 Jul 2004 22:50:21 +0000 (22:50 +0000)]
Remove the old geom_mirror class.

Approved by: phk

19 years agoPut a version element in the VFS filesystem configuration structure
phk [Fri, 30 Jul 2004 22:08:52 +0000 (22:08 +0000)]
Put a version element in the VFS filesystem configuration structure
and refuse initializing filesystems with a wrong version.  This will
aid maintenance activites on the 5-stable branch.

s/vfs_mount/vfs_omount/

s/vfs_nmount/vfs_mount/

Name our filesystems mount function consistently.

Eliminate the namiedata argument to both vfs_mount and vfs_omount.
It was originally there to save stack space.  A few places abused
it to get hold of some credentials to pass around.  Effectively
it is unused.

Reorganize the root filesystem selection code.

19 years agoDrop WARNS down to 3 since sparc64 still has justified complaints about
njl [Fri, 30 Jul 2004 21:43:21 +0000 (21:43 +0000)]
Drop WARNS down to 3 since sparc64 still has justified complaints about
bad casts.

Noticed by: johan

19 years agoClean up some more casts. Note that the an_fudge alignment hack for
njl [Fri, 30 Jul 2004 21:42:39 +0000 (21:42 +0000)]
Clean up some more casts.  Note that the an_fudge alignment hack for
struct an_ltv_stats needs to be fixed.  It has been here since this was
imported.

19 years ago - Push down the acquisition and release of Giant into pmap_protect() on
alc [Fri, 30 Jul 2004 20:38:30 +0000 (20:38 +0000)]
 - Push down the acquisition and release of Giant into pmap_protect() on
   those architectures without pmap locking.
 - Eliminate the acquisition and release of Giant from vm_map_protect().

(Translation: mprotect(2) runs to completion without touching Giant on
alpha, amd64, i386 and ia64.)

19 years agoGiant is no longer required by vm_waitproc() and vmspace_exitfree().
alc [Fri, 30 Jul 2004 20:31:02 +0000 (20:31 +0000)]
Giant is no longer required by vm_waitproc() and vmspace_exitfree().
Eliminate it acquisition and release around vm_waitproc() in kern_wait().

19 years ago - Add pmap locking to ia64's pmap_enter() and pmap_enter_quick(). (This
alc [Fri, 30 Jul 2004 20:25:12 +0000 (20:25 +0000)]
 - Add pmap locking to ia64's pmap_enter() and pmap_enter_quick().  (This
   brings ia64 to parity with alpha, amd64, and i386 in this area.)
 - Prevent a race in pmap_find_pte(): If pmap_find_pte() sleeps in
   uma_zalloc(), another thread could allocate a pte at the same address.
   Instead, sleep at a higher level and retry the lookup before retrying
   the allocation.

Reviewed and tested by: marcel@

19 years agoNuke geom_mirror class. New geom_mirror class is in the way.
pjd [Fri, 30 Jul 2004 19:59:36 +0000 (19:59 +0000)]
Nuke geom_mirror class. New geom_mirror class is in the way.

Approved by: phk

19 years agoAllow to create slices on providers from class LABEL and class NOP.
pjd [Fri, 30 Jul 2004 19:55:12 +0000 (19:55 +0000)]
Allow to create slices on providers from class LABEL and class NOP.
This is really ugly way to do this, but there is no other way for now.
It allows to mount root file system from providers which belong to
those classes.

Approved by: phk

19 years agoDitto for (gid_t).
yar [Fri, 30 Jul 2004 17:30:07 +0000 (17:30 +0000)]
Ditto for (gid_t).

19 years agoKill casts to (uid_t) obviously left from the K&R era.
yar [Fri, 30 Jul 2004 17:27:23 +0000 (17:27 +0000)]
Kill casts to (uid_t) obviously left from the K&R era.
Prototyping library functions in header files has rendered
them superfluous.

19 years agoFinish cleanup of rc.d/netif. It's now possible to start/stop more
mtm [Fri, 30 Jul 2004 17:19:35 +0000 (17:19 +0000)]
Finish cleanup of rc.d/netif. It's now possible to start/stop more
than one interface from the command line:
# /etc/rc.d/netif start bfe0 xl0
It's also possible to restart an interface(s):
# /etc/rc.d/netif restart bfe0

This required some changes to rc.subr(8) so that if the start/stop commands
are overidden the rest of the command line (after the start/stop/etc... cmd)
is passed through to the subroutines.

19 years agoAdd a comment to explain that the loop around the call to bind(2)
yar [Fri, 30 Jul 2004 17:18:57 +0000 (17:18 +0000)]
Add a comment to explain that the loop around the call to bind(2)
is not a hack, but it has a clear purpose.

19 years agoo Assertions to catch that stuff that shouldn't happen is not happening.
mtm [Fri, 30 Jul 2004 17:13:00 +0000 (17:13 +0000)]
o Assertions to catch that stuff that shouldn't happen is not happening.
o In the rwlock code: move a duplicated check inside an if..else to after
  the if...else clause.
o When initializing a static rwlock move the initialization check
  inside the lock.
o In thr_setschedparam.c: When breaking out of the trylock...retry if busy
  loop make sure to reset the mtx pointer to null if the mutex is nolonger
  in a queue.

19 years agoOpen a socket for a data transfer in active mode using euid
yar [Fri, 30 Jul 2004 16:57:42 +0000 (16:57 +0000)]
Open a socket for a data transfer in active mode using euid
of the current user, not root.  This will allow neat things
like matching anonymous FTP data traffic with a single ipfw(8)
rule:
ipfw add ... tcp from any to any uid ftp

Note that the control connection socket still belongs to the
user ftpd(8) was started from, usually root.

PR: bin/65928
Submitted by: Eugene Grosbein <eugen at grosbein.pp.ru>
MFC after: 1 month

19 years agoMFia64:
ps [Fri, 30 Jul 2004 16:44:29 +0000 (16:44 +0000)]
MFia64:
Fix -O builds with gcc 3.4 by defining ffs as __builtin_ffs instead
of creating an inline function that just calls __builtin_ffs.

19 years agoFix a copy and paste error. Do not include errors.c in libgcc_int.a,
kan [Fri, 30 Jul 2004 14:50:52 +0000 (14:50 +0000)]
Fix a copy and paste error. Do not include errors.c in libgcc_int.a,
it is only used by build tools.

Submitted by: grehan

19 years agoFix the reset sequence for sx4/sx4000 type controllers, it could hang the
sos [Fri, 30 Jul 2004 13:33:09 +0000 (13:33 +0000)]
Fix the reset sequence for sx4/sx4000 type controllers, it could hang the
chip in an indefinite state.

19 years agoFix mdoc(7) and grammar errors from previous commit.
glebius [Fri, 30 Jul 2004 11:33:52 +0000 (11:33 +0000)]
Fix mdoc(7) and grammar errors from previous commit.

Requested, submitted and reviewed by: ru

19 years agoFix a memory leak in the device pager which is exposed by the NVIDIA
dfr [Fri, 30 Jul 2004 11:09:18 +0000 (11:09 +0000)]
Fix a memory leak in the device pager which is exposed by the NVIDIA
OpenGL driver.

Submitted by: nvidia (possibly also tegge)

19 years agoFix handling of msync(2) for character special files.
dfr [Fri, 30 Jul 2004 11:08:02 +0000 (11:08 +0000)]
Fix handling of msync(2) for character special files.

Submitted by: nvidia

19 years agoCheck for read errors.
tjr [Fri, 30 Jul 2004 10:58:06 +0000 (10:58 +0000)]
Check for read errors.

19 years agoFix new compiler error (s/bcopy/memcpy/).
nyan [Fri, 30 Jul 2004 09:42:04 +0000 (09:42 +0000)]
Fix new compiler error (s/bcopy/memcpy/).

19 years agoGet rid of another lockmgr(9) consumer by using sx locks for the user
mux [Fri, 30 Jul 2004 09:10:28 +0000 (09:10 +0000)]
Get rid of another lockmgr(9) consumer by using sx locks for the user
maps.  We always acquire the sx lock exclusively here, but we can't
use a mutex because we want to be able to sleep while holding the
lock.  This is completely equivalent to what we were doing with the
lockmgr(9) locks before.

Approved by: alc

19 years agoDocument the behaviour of the "-o file" option when "file" is a directory
cperciva [Fri, 30 Jul 2004 08:43:16 +0000 (08:43 +0000)]
Document the behaviour of the "-o file" option when "file" is a directory
(downloaded file(s) are created inside the directory).

MFC after: 3 days

19 years agoUpdate to the 2004 Edition of POSIX.
ru [Fri, 30 Jul 2004 08:31:29 +0000 (08:31 +0000)]
Update to the 2004 Edition of POSIX.

19 years ago- Add '-S' option, which allow to specify sector size for transparent
pjd [Fri, 30 Jul 2004 08:19:22 +0000 (08:19 +0000)]
- Add '-S' option, which allow to specify sector size for transparent
  provider.
- Bump version number.

This allows for a quite interesting trick. One can setup a stripe with
stripe size of 512 bytes and create transparent provider on top of it
with sector size equal to <ndisks> * 512. The result will be something
like RAID3 without parity disk (every access will touch all disks).

19 years agoSync with FSF.
ru [Fri, 30 Jul 2004 08:14:00 +0000 (08:14 +0000)]
Sync with FSF.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r132873,
ru [Fri, 30 Jul 2004 08:12:09 +0000 (08:12 +0000)]
This commit was generated by cvs2svn to compensate for changes in r132873,
which included commits to RCS files with non-trunk default branches.

19 years agoPull up latest mdoc(7) changes:
ru [Fri, 30 Jul 2004 08:12:09 +0000 (08:12 +0000)]
Pull up latest mdoc(7) changes:

: 2004-05-10  Werner LEMBERG  <wl@gnu.org>
:
:  * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
:  doc-str-Lb-librt): Reset font.
:  (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
:  Provide `doc-str-Lb' to reset font.
:  * tmac/groff_mdoc.man: Updated.

: 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
:
:  * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
:  * tmac/groff_mdoc.man: Updated.

19 years agoFix typo.
pjd [Fri, 30 Jul 2004 08:03:46 +0000 (08:03 +0000)]
Fix typo.

19 years agoFix -O builds with gcc 3.4 by defining ffs as __builtin_ffs instead of
marcel [Fri, 30 Jul 2004 07:56:53 +0000 (07:56 +0000)]
Fix -O builds with gcc 3.4 by defining ffs as __builtin_ffs instead of
creating an inline function that just calls __builtin_ffs.

19 years agoCompile boot2 with -fno-unit-at-a-time. GCCs aggressive optimization
kan [Fri, 30 Jul 2004 04:27:20 +0000 (04:27 +0000)]
Compile boot2 with -fno-unit-at-a-time. GCCs aggressive optimization
breaks boot in spectacular ways otherwise.

19 years agoConditionalize the bzip2/gzip compression/decompression
kientzle [Fri, 30 Jul 2004 04:14:47 +0000 (04:14 +0000)]
Conditionalize the bzip2/gzip compression/decompression
code on the existence of the relevant libraries (actually,
the existence of the include files).

This will allow the library to be easily ported to systems
that don't have these libraries.  (Of course, it also means
that clients using the library on such systems will not be
able to take advantage of the automatic compression format
detection.)

19 years agoImprove portability to FreeBSD 4.
kientzle [Fri, 30 Jul 2004 02:59:58 +0000 (02:59 +0000)]
Improve portability to FreeBSD 4.
Thanks to: Barry Bouwsma

19 years agoFix comment.
kientzle [Fri, 30 Jul 2004 02:46:12 +0000 (02:46 +0000)]
Fix comment.

Thanks to: Johan Karlsson

19 years agoMinor message cleanup.
njl [Fri, 30 Jul 2004 01:30:05 +0000 (01:30 +0000)]
Minor message cleanup.

19 years agoAdd support for the Synaptics Touchpad mouse driver. I reworked the
njl [Fri, 30 Jul 2004 00:59:40 +0000 (00:59 +0000)]
Add support for the Synaptics Touchpad mouse driver.  I reworked the
submitted version with style cleanups and changes to comments.  I also
modified the ioctl interface.  This version only has one ioctl (to get
the Synaptics-specific config parameters) since this is the only
information a user might want.

Submitted by: Arne Schwabe <arne -at- rfc2549.org>

19 years agoClean up local memcpy implementation to take void * parameters.
kan [Fri, 30 Jul 2004 00:33:09 +0000 (00:33 +0000)]
Clean up local memcpy implementation to take void * parameters.

19 years agoDocument incorrect handling of multibyte characters.
tjr [Fri, 30 Jul 2004 00:10:52 +0000 (00:10 +0000)]
Document incorrect handling of multibyte characters.

19 years agoStop the practice of installing external headers into GCC-specific directory.
kan [Fri, 30 Jul 2004 00:08:15 +0000 (00:08 +0000)]
Stop the practice of installing external headers into GCC-specific directory.
Install FlexLexer.h into /usr/include directly.

19 years agoMark as WARNS 6 now that sign cleanups are done.
njl [Fri, 30 Jul 2004 00:02:42 +0000 (00:02 +0000)]
Mark as WARNS 6 now that sign cleanups are done.

19 years agoFix printing of stats by printing an unsigned value as unsigned. ANSIfy
njl [Fri, 30 Jul 2004 00:02:20 +0000 (00:02 +0000)]
Fix printing of stats by printing an unsigned value as unsigned.  ANSIfy
function prototypes.  Remove unnecessary returns.

Submitted by: David Hill <davidh -at- wmis.net>

19 years agoRe-word the COMPATIBILITY section, taking care to use the word "deprecated"
tjr [Thu, 29 Jul 2004 23:32:41 +0000 (23:32 +0000)]
Re-word the COMPATIBILITY section, taking care to use the word "deprecated"
to describe the 4.4BSD extension of accepting arguments outside the range
of unsigned char. This gives us freedom to remove this extension when we
remove the <rune.h> interface in FreeBSD 6.

19 years agoAdd support for multibyte characters, based on Bruno Haible's work
tjr [Thu, 29 Jul 2004 22:51:54 +0000 (22:51 +0000)]
Add support for multibyte characters, based on Bruno Haible's work
in the util-linux package.

19 years agoRemove obsolete ASM_FINAL_SPEC definition.
kan [Thu, 29 Jul 2004 21:49:34 +0000 (21:49 +0000)]
Remove obsolete ASM_FINAL_SPEC definition.

Reported by: green

19 years agoSyscall kill(2) called for a zombie process should return 0.
pjd [Thu, 29 Jul 2004 20:38:19 +0000 (20:38 +0000)]
Syscall kill(2) called for a zombie process should return 0.

Obtained from: Darwin

19 years agoFill some informations about zombie processes as well.
pjd [Thu, 29 Jul 2004 20:27:59 +0000 (20:27 +0000)]
Fill some informations about zombie processes as well.
Before this change every zombie process were reported as an owner of PID 0 in
ps(1) output.

Reviewed by: julian

19 years agoCorrect a documentation bug.
ceri [Thu, 29 Jul 2004 20:09:25 +0000 (20:09 +0000)]
Correct a documentation bug.

Approved by: jhb

19 years agoCorrect typo in a comment.
ceri [Thu, 29 Jul 2004 20:08:40 +0000 (20:08 +0000)]
Correct typo in a comment.

Approved by: jhb

19 years agoAdvance the state of pmap locking on alpha, amd64, and i386.
alc [Thu, 29 Jul 2004 18:56:31 +0000 (18:56 +0000)]
Advance the state of pmap locking on alpha, amd64, and i386.

 - Enable recursion on the page queues lock.  This allows calls to
   vm_page_alloc(VM_ALLOC_NORMAL) and UMA's obj_alloc() with the page
   queues lock held.  Such calls are made to allocate page table pages
   and pv entries.
 - The previous change enables a partial reversion of vm/vm_page.c
   revision 1.216, i.e., the call to vm_page_alloc() by vm_page_cowfault()
   now specifies VM_ALLOC_NORMAL rather than VM_ALLOC_INTERRUPT.
 - Add partial locking to pmap_copy().  (As a side-effect, pmap_copy()
   should now be faster on i386 SMP because it no longer generates IPIs
   for TLB shootdown on the other processors.)
 - Complete the locking of pmap_enter() and pmap_enter_quick().  (As of now,
   all changes to a user-level pmap on alpha, amd64, and i386 are performed
   with appropriate locking.)

19 years agoThe signal number has to be less than NSIG strictly.
maxim [Thu, 29 Jul 2004 18:36:35 +0000 (18:36 +0000)]
The signal number has to be less than NSIG strictly.

PR: misc/69768
Submitted by: bronek
MFC after: 1 week

19 years agoDocument new control messages NGM_PPPOE_GETMODE, NGM_PPPOE_SETMODE.
glebius [Thu, 29 Jul 2004 18:18:26 +0000 (18:18 +0000)]
Document new control messages NGM_PPPOE_GETMODE, NGM_PPPOE_SETMODE.
Note that sysctl net.graph.nonstandard_pppoe is deprecated.

Approved by: julian (mentor)

19 years agoUse newly added __used attribute to keep static function symbols from being
kan [Thu, 29 Jul 2004 18:07:08 +0000 (18:07 +0000)]
Use newly added __used attribute to keep static function symbols from being
eliminated by compiler optimizer.

19 years agoCall nmatch function with parameters casted to types the function actually
kan [Thu, 29 Jul 2004 18:05:20 +0000 (18:05 +0000)]
Call nmatch function with parameters casted to types the function actually
expects.

19 years agoMake lookup_host function invocation parameter match its prototype.
kan [Thu, 29 Jul 2004 18:04:06 +0000 (18:04 +0000)]
Make lookup_host function invocation parameter match its prototype.

19 years agoUse newly added __used attribute to keep static function symbol from
kan [Thu, 29 Jul 2004 18:02:28 +0000 (18:02 +0000)]
Use newly added __used attribute to keep static function symbol from
being eliminated.

19 years agoGet the current year number straight and remove one instance of trailing
kan [Thu, 29 Jul 2004 17:51:32 +0000 (17:51 +0000)]
Get the current year number straight and remove one instance of trailing
whitespace.

Time travel spoiled by: ru

19 years agoBump the date in .Dd for the recent '+' flag commit.
harti [Thu, 29 Jul 2004 16:54:42 +0000 (16:54 +0000)]
Bump the date in .Dd for the recent '+' flag commit.

Requested by: ru

19 years agoChange a couple of comments so that GCC doesn't think that they contain
scottl [Thu, 29 Jul 2004 15:35:45 +0000 (15:35 +0000)]
Change a couple of comments so that GCC doesn't think that they contain
tri-graphs.

19 years agoRework the way slab header storage space is calculated in UMA.
bmilekic [Thu, 29 Jul 2004 15:25:40 +0000 (15:25 +0000)]
Rework the way slab header storage space is calculated in UMA.

- zone_large_init() stays pretty much the same.
- zone_small_init() will try to stash the slab header in the slab page
  being allocated if the amount of calculated wasted space is less
  than UMA_MAX_WASTE (for both the UMA_ZONE_REFCNT case and regular
  case).  If the amount of wasted space is >= UMA_MAX_WASTE, then
  UMA_ZONE_OFFPAGE will be set and the slab header will be allocated
  separately for better use of space.
- uma_startup() calculates the maximum ipers required in offpage slabs
  (so that the offpage slab header zone(s) can be sized accordingly).
  The algorithm used to calculate this replaces the old calculation
  (which only happened to work coincidentally).  We now iterate over
  possible object sizes, starting from the smallest one, until we
  determine that wastedspace calculated in zone_small_init() might
  end up being greater than UMA_MAX_WASTE, at which point we use the
  found object size to compute the maximum possible ipers.  The
  reason this works is because:
      - wastedspace versus objectsize is a see-saw function with
        local minima all equal to zero and local maxima growing
        directly proportioned to objectsize.  This implies that
        for objects up to or equal a certain objectsize, the see-saw
        remains entirely below UMA_MAX_WASTE, so for those objectsizes
        it is impossible to ever go OFFPAGE for slab headers.
      - ipers (items-per-slab) versus objectsize is an inversely
        proportional function which falls off very quickly (very large
        for small objectsizes).
      - To determine the maximum ipers we'll ever need from OFFPAGE
        slab headers we first find the largest objectsize for which
        we are guaranteed to not go offpage for and use it to compute
        ipers (as though we were offpage).  Since the only objectsizes
        allowed to go offpage are bigger than the found objectsize,
        and since ipers vs objectsize is inversely proportional (and
        monotonically decreasing), then we are guaranteed that the
        ipers computed is always >= what we will ever need in offpage
        slab headers.
- Define UMA_FRITM_SZ and UMA_FRITMREF_SZ to be the actual (possibly
  padded) size of each freelist index so that offset calculations are
  fixed.

This might fix weird data corruption problems and certainly allows
ARM to now boot to at least single-user (via simulator).

Tested on i386 UP by me.
Tested on sparc64 SMP by fenner.
Tested on ARM simulator to single-user by cognet.

19 years agoDocument /usr/ports/UPDATING and have a brief pointer re x11
imp [Thu, 29 Jul 2004 15:06:19 +0000 (15:06 +0000)]
Document /usr/ports/UPDATING and have a brief pointer re x11

19 years agoAdd a note about recent GCC import.
kan [Thu, 29 Jul 2004 14:49:57 +0000 (14:49 +0000)]
Add a note about recent GCC import.

19 years agoImplement POSIX's '+' flag for command lines. This flag causes a line
harti [Thu, 29 Jul 2004 14:29:23 +0000 (14:29 +0000)]
Implement POSIX's '+' flag for command lines. This flag causes a line
to be executed even when -n is given on the command line to make. This is
very handy for calls to submakes.

This is slightly changed from the original patch as obtained from NetBSD.
The NetBSD variant prints lines which have both '+' and '@' when -n
is specified. The commited version always obeys '@'.

Bump MAKE_VERSION so Makefiles can use this conditionally.

PR: standards/66357 (partly)
Submitted by: Mark Baushke <mdb@juniper.net>
Obtained from: NetBSD

19 years agoAdd comment explaining struct reg and struct fpreg must match the trapframe.
ssouhlal [Thu, 29 Jul 2004 13:39:27 +0000 (13:39 +0000)]
Add comment explaining struct reg and struct fpreg must match the trapframe.

Approved by: grehan (mentor)

19 years agoImplement MD parts of ptrace.
ssouhlal [Thu, 29 Jul 2004 13:34:50 +0000 (13:34 +0000)]
Implement MD parts of ptrace.

Approved by: grehan (mentor)

19 years agoAdd support for multibyte characters.
tjr [Thu, 29 Jul 2004 13:22:56 +0000 (13:22 +0000)]
Add support for multibyte characters.

19 years agoDon't use cast as lvalue.
cognet [Thu, 29 Jul 2004 12:33:54 +0000 (12:33 +0000)]
Don't use cast as lvalue.

19 years agoShut up the compiler and temporarily '#if 0' gv_destroy_geom(),
le [Thu, 29 Jul 2004 11:32:09 +0000 (11:32 +0000)]
Shut up the compiler and temporarily '#if 0' gv_destroy_geom(),
until we need it again.

19 years agoCatch up with recent gcc changes and introduce a DIP_SET macro
le [Thu, 29 Jul 2004 11:28:24 +0000 (11:28 +0000)]
Catch up with recent gcc changes and introduce a DIP_SET macro
to use when setting values that depend on the UFS version.
Raise WARNS again.

19 years agoAdd support for multibyte characters. The output is questionable when a
tjr [Thu, 29 Jul 2004 09:09:22 +0000 (09:09 +0000)]
Add support for multibyte characters. The output is questionable when a
character straddles the "start" or "stop" columns, but this should be
quite uncommon.

19 years agoRemoved remnants of ports-related knobs from here.
ru [Thu, 29 Jul 2004 08:43:33 +0000 (08:43 +0000)]
Removed remnants of ports-related knobs from here.

19 years agoClean up structure packing.
ps [Thu, 29 Jul 2004 08:06:22 +0000 (08:06 +0000)]
Clean up structure packing.

19 years agoAddress node in a less complex way.
glebius [Thu, 29 Jul 2004 08:05:02 +0000 (08:05 +0000)]
Address node in a less complex way.

Approved by: julian (mentor)

19 years agoAdd a cross-reference to colcrt(1).
tjr [Thu, 29 Jul 2004 07:41:43 +0000 (07:41 +0000)]
Add a cross-reference to colcrt(1).

19 years agoSort #include directives and remove one duplicate that crept in to the
tjr [Thu, 29 Jul 2004 07:28:26 +0000 (07:28 +0000)]
Sort #include directives and remove one duplicate that crept in to the
previous commit.

19 years agoAdd support for multibyte characters, loosely based on Bruno Haible's
tjr [Thu, 29 Jul 2004 07:23:37 +0000 (07:23 +0000)]
Add support for multibyte characters, loosely based on Bruno Haible's
work in the util-linux package.

19 years agoRemove unnecessary #include directives.
tjr [Thu, 29 Jul 2004 06:18:40 +0000 (06:18 +0000)]
Remove unnecessary #include directives.

19 years agoPrefer <runetype.h> to <rune.h>, since the latter is going away soon.
tjr [Thu, 29 Jul 2004 06:16:19 +0000 (06:16 +0000)]
Prefer <runetype.h> to <rune.h>, since the latter is going away soon.

19 years agoRemove useless checks for characters longer than INT_MAX bytes.
tjr [Thu, 29 Jul 2004 06:08:31 +0000 (06:08 +0000)]
Remove useless checks for characters longer than INT_MAX bytes.

19 years agoAdd configuration option "set pppoe [standard|3Com]" which allows
glebius [Thu, 29 Jul 2004 05:59:43 +0000 (05:59 +0000)]
Add configuration option "set pppoe [standard|3Com]" which allows
to configure mode for ng_pppoe(4) node under control.

Reviewed by: brian
Approved by: julian (mentor)

19 years agoAdd support for multibyte characters.
tjr [Thu, 29 Jul 2004 03:48:52 +0000 (03:48 +0000)]
Add support for multibyte characters.

19 years agoAdd a paragraph break in the STANDARDS section to improve readability.
tjr [Thu, 29 Jul 2004 03:41:24 +0000 (03:41 +0000)]
Add a paragraph break in the STANDARDS section to improve readability.

19 years agoChange the 'no terminating ";"' error message to 'no terminating ";" or "+"'
tjr [Thu, 29 Jul 2004 03:33:55 +0000 (03:33 +0000)]
Change the 'no terminating ";"' error message to 'no terminating ";" or "+"'
since + is also a valid way to terminate -exec.

19 years agoRemove partial support for building this on NetBSD.
tjr [Thu, 29 Jul 2004 03:29:44 +0000 (03:29 +0000)]
Remove partial support for building this on NetBSD.

19 years agoNow that fnmatch() supports multibyte characters, find does too; remove
tjr [Thu, 29 Jul 2004 03:24:30 +0000 (03:24 +0000)]
Now that fnmatch() supports multibyte characters, find does too; remove
entry from BUGS section that said otherwise.

19 years agoAdd support for multibyte characters.
tjr [Thu, 29 Jul 2004 03:13:10 +0000 (03:13 +0000)]
Add support for multibyte characters.

19 years agoAllow GCC to recognize -fformat-extensions flag.
kan [Thu, 29 Jul 2004 02:04:58 +0000 (02:04 +0000)]
Allow GCC to recognize -fformat-extensions flag.

19 years agoFix ACPI floppy enumeration for three types of divergent behavior.
njl [Wed, 28 Jul 2004 22:35:41 +0000 (22:35 +0000)]
Fix ACPI floppy enumeration for three types of divergent behavior.
* Some systems have _FDE and child floppy devices, but no _FDI.  This seems
  to be compatible with the standard.  Don't error out if there is no _FDI.
  Instead, continue on to the next device.  The normal fd probe will take
  care of this device.
* Some systems have _FDE but no child devices in AML.  For these, add a
  second pass that compares the results of _FDE to the presence of devices.
  If not present, add the missing device.
* Some BIOS authors didn't read the spec.  They use tape drive values for
  all fdc(4) devices.  Since this isn't grossly incompatible with the
  required boolean value, use them.  They also define the _FDE items as a
  package instead of buffer.  Regenerate the buffer from the package if it
  is present.

Tested by: tjr, marcel

19 years agoDisable memory locking that could keep watchdogd from deadlocking itself
green [Wed, 28 Jul 2004 22:13:04 +0000 (22:13 +0000)]
Disable memory locking that could keep watchdogd from deadlocking itself
if the swap subsystem failed.

Requested by: phk

19 years agoMove a relic to its correct location(s): Put nfs diskless initialization
phk [Wed, 28 Jul 2004 21:54:57 +0000 (21:54 +0000)]
Move a relic to its correct location(s):  Put nfs diskless initialization
calls with the code they call.  (Yet another example of mindless copy&paste).

19 years agoLeaving the '.Pp' before '.Sh' is a style bug. This should have been
trhodes [Wed, 28 Jul 2004 21:43:43 +0000 (21:43 +0000)]
Leaving the '.Pp' before '.Sh' is a style bug.  This should have been
removed in my previous commit.

19 years agoRemove buggy (root filesystems may not have cdev) and pointless
phk [Wed, 28 Jul 2004 21:06:13 +0000 (21:06 +0000)]
Remove buggy (root filesystems may not have cdev) and pointless
customization of an error message.

19 years agoRemove global variable rootdevs and rootvp, they are unused as such.
phk [Wed, 28 Jul 2004 20:21:04 +0000 (20:21 +0000)]
Remove global variable rootdevs and rootvp, they are unused as such.

Add local rootvp variables as needed.

Remove checks for miniroot's in the swappartition.  We never did that
and most of the filesystems could never be used for that, but it had
still been copy&pasted all over the place.

19 years agoCorrect a very old error in both vm_object_madvise() (originating in
alc [Wed, 28 Jul 2004 18:23:08 +0000 (18:23 +0000)]
Correct a very old error in both vm_object_madvise() (originating in
vm/vm_object.c revision 1.88) and vm_object_sync() (originating in
vm/vm_map.c revision 1.36): When descending a chain of backing objects,
both use the wrong object's backing offset.  Consequently, both may
operate on the wrong pages.

Quoting Matt, "This could be responsible for all of the sporatic madvise
oddness that has been reported over the years."

Reviewed by: Matt Dillon

19 years agoPrint link level address on vlan interfaces using ether_ntoa(), to make
glebius [Wed, 28 Jul 2004 18:18:47 +0000 (18:18 +0000)]
Print link level address on vlan interfaces using ether_ntoa(), to make
output on bare ethernet and vlan interfaces the same.

PR: bin/69674
Submitted by: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl>
Reviewed by: ru
Approved by: julian (mentor)
MFC after: 1 week

19 years agoRemove the ERRORS section in favor of a DIAGNOSTICS section.
trhodes [Wed, 28 Jul 2004 18:13:28 +0000 (18:13 +0000)]
Remove the ERRORS section in favor of a DIAGNOSTICS section.

Requested by: ru

19 years agoNo need to include if_var.h.
harti [Wed, 28 Jul 2004 16:34:42 +0000 (16:34 +0000)]
No need to include if_var.h.

19 years agoGet rid of several unneeded includes (if.h, if_var.h, if_mib.h).
harti [Wed, 28 Jul 2004 16:32:17 +0000 (16:32 +0000)]
Get rid of several unneeded includes (if.h, if_var.h, if_mib.h).