]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoSkip jails which are already running and inform why.
Pawel Jakub Dawidek [Sun, 7 Aug 2005 23:19:02 +0000 (23:19 +0000)]
Skip jails which are already running and inform why.
We're checking for /var/run/jail_<name>.id file and if it exists, we don't
start the jail. It should be also safe in case of reboot(8), because
rc.d/cleanvar script is going to remove /var/run/jail_* files.

It helps to avoid potential mess when the same jail is started twice,
because of an administrator mistake (been there, done that).

MFC after: 1 week

19 years agoOther changes to this driver preclude its use on 4.x, so remove 4.x compat
Warner Losh [Sun, 7 Aug 2005 23:16:22 +0000 (23:16 +0000)]
Other changes to this driver preclude its use on 4.x, so remove 4.x compat
code elsewhere in the driver.

19 years agoWe don't need to skip /var/run/log socket, as syslogd is always started
Pawel Jakub Dawidek [Sun, 7 Aug 2005 23:10:32 +0000 (23:10 +0000)]
We don't need to skip /var/run/log socket, as syslogd is always started
after rc.d/cleanvar. And if we wanted to skip /var/run/log we still needed
to skip /var/run/logpriv, which wasn't implemented.

19 years agoAllow to give more than one jail's name, eg.:
Pawel Jakub Dawidek [Sun, 7 Aug 2005 22:38:41 +0000 (22:38 +0000)]
Allow to give more than one jail's name, eg.:

# /etc/rc.d/jail start www mail

MFC after: 3 days

19 years agoWhen support for 2MB/4MB pages was added in revision 1.148 an error was
Alan Cox [Sun, 7 Aug 2005 22:00:47 +0000 (22:00 +0000)]
When support for 2MB/4MB pages was added in revision 1.148 an error was
made in pmap_protect(): The pmap's resident count should not be reduced
unless mappings are removed.

The errant change to the pmap's resident count could result in a later
pmap_remove() failing to remove any mappings if the errant change has set
the pmap's resident count to zero.

19 years agoSync libedit with recent NetBSD developments. Including improvements to the
Stefan Farfeleder [Sun, 7 Aug 2005 20:55:59 +0000 (20:55 +0000)]
Sync libedit with recent NetBSD developments.  Including improvements to the
vi-mode, removal of clause 3, cleanups and the export of the tokenization
functions.

Not included: config.h, filecomplete.{c,h}

19 years agoThe libedit update made a const cast necessary.
Stefan Farfeleder [Sun, 7 Aug 2005 20:53:33 +0000 (20:53 +0000)]
The libedit update made a const cast necessary.

19 years agoAdd some more info about jail startup and shutdown.
Christian Brueffer [Sun, 7 Aug 2005 20:53:29 +0000 (20:53 +0000)]
Add some more info about jail startup and shutdown.

Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
MFC after: 3 days

19 years agoRemove cat-pages without corresponding man-pages.
Alexander Leidinger [Sun, 7 Aug 2005 13:47:25 +0000 (13:47 +0000)]
Remove cat-pages without corresponding man-pages.

19 years agoAdd the recently removed old paper about pascal.
Alexander Leidinger [Sun, 7 Aug 2005 13:46:28 +0000 (13:46 +0000)]
Add the recently removed old paper about pascal.

19 years agoRecognize the SAB82532 in USIII machines.
Marius Strobl [Sun, 7 Aug 2005 13:37:25 +0000 (13:37 +0000)]
Recognize the SAB82532 in USIII machines.

19 years agoThe system tick _compare_ register of USIII CPUs and up is ASR25, not
Marius Strobl [Sun, 7 Aug 2005 13:21:00 +0000 (13:21 +0000)]
The system tick _compare_ register of USIII CPUs and up is ASR25, not
ASR24 (which is the system tick register).

19 years agoIt's actually 11 minutes when the machine is assumed to be down and removed
Suleiman Souhlal [Sun, 7 Aug 2005 11:48:44 +0000 (11:48 +0000)]
It's actually 11 minutes when the machine is assumed to be down and removed
from the output.

Obtained from: DragonFlyBSD

19 years agoAdd if_arl_load, if_axe_load, if_aue_load, if_cs_load, if_cue_load,
Kirill Ponomarev [Sun, 7 Aug 2005 09:41:53 +0000 (09:41 +0000)]
Add if_arl_load, if_axe_load, if_aue_load, if_cs_load, if_cue_load,
if_hme_load, if_nve_load, if_rue_load, if_udav_load to Networking
Drivers section.

Submitted by: matteo

19 years agoFix a comment.
Stefan Farfeleder [Sun, 7 Aug 2005 09:11:38 +0000 (09:11 +0000)]
Fix a comment.

Submitted by: Liam J. Foy

19 years agoTell nls_setlocale() the very locale name from command line option,
R. Imura [Sun, 7 Aug 2005 08:46:56 +0000 (08:46 +0000)]
Tell nls_setlocale() the very locale name from command line option,
rather than using optarg variable which would be allways NULL.

19 years agoRevert the replacement of realloc() with reallocf() (el.h:1.2, map.c:1.5 and
Stefan Farfeleder [Sun, 7 Aug 2005 08:35:39 +0000 (08:35 +0000)]
Revert the replacement of realloc() with reallocf() (el.h:1.2, map.c:1.5 and
tokenizer.c:1.3).  Contrary to the commit log there were no memory leaks,
but the change introduced a bug because the free'd pointer was not zeroed
and calling the appropriate _end() function would call free() a second time.

19 years agoExport a routine, kobj_machdep_init(), that allows platforms
Peter Grehan [Sun, 7 Aug 2005 02:20:35 +0000 (02:20 +0000)]
Export a routine, kobj_machdep_init(), that allows platforms
to use the kobj subsystem as soon at mutex_init() has been called
instead of having to wait for the SI_SUB_LOCK sysinit.

Reviewed by: dfr

19 years agoRevert last change, I will turn ULE on as default after 6.0-R.
David Xu [Sat, 6 Aug 2005 23:05:48 +0000 (23:05 +0000)]
Revert last change, I will turn ULE on as default after 6.0-R.

Noticed by: scottl

19 years agoFresh dust.
Ruslan Ermilov [Sat, 6 Aug 2005 21:11:57 +0000 (21:11 +0000)]
Fresh dust.

19 years agoImprove SMP support:
Marcel Moolenaar [Sat, 6 Aug 2005 20:28:19 +0000 (20:28 +0000)]
Improve SMP support:
o  Allocate a VHPT per CPU. The VHPT is a hash table that the CPU
   uses to look up translations it can't find in the TLB. As such,
   the VHPT serves as a level 1 cache (the TLB being a level 0 cache)
   and best results are obtained when it's not shared between CPUs.
   The collision chain (i.e. the hash bucket) is shared between CPUs,
   as all buckets together constitute our collection of PTEs. To
   achieve this, the collision chain does not point to the first PTE
   in the list anymore, but to a hash bucket head structure. The
   head structure contains the pointer to the first PTE in the list,
   as well as a mutex to lock the bucket. Thus, each bucket is locked
   independently of each other. With at least 1024 buckets in the VHPT,
   this provides for sufficiently finei-grained locking to make the
   ssolution scalable to large SMP machines.
o  Add synchronisation to the lazy FP context switching. We do this
   with a seperate per-thread lock. On SMP machines the lazy high FP
   context switching without synchronisation caused inconsistent
   state, which resulted in a panic. Since the use of the high FP
   registers is not common, it's possible that races exist. The ia64
   package build has proven to be a good stress test, so this will
   get plenty of exercise in the near future.
o  Don't use the local ID of the processor we want to send the IPI to
   as the argument to ipi_send(). use the struct pcpu pointer instead.
   The reason for this is that IPI delivery is unreliable. It has been
   observed that sending an IPI to a CPU causes it to receive a stray
   external interrupt. As such, we need a way to make the delivery
   reliable. The intended solution is to queue requests in the target
   CPU's per-CPU structure and use a single IPI to inform the CPU that
   there's a new entry in the queue. If that IPI gets lost, the CPU
   can check it's queue at any convenient time (such as for each
   clock interrupt). This also allows us to send requests to a CPU
   without interrupting it, if such would be beneficial.

With these changes SMP is almost working. There are still some random
process crashes and the machine can hang due to having the IPI lost
that deals with the high FP context switch.

The overhead of introducing the hash bucket head structure results
in a performance degradation of about 1% for UP (extra pointer
indirection). This is surprisingly small and is offset by gaining
reasonably/good scalable SMP support.

19 years agoControl rcs inclusion with NO_RCS insted of NO_TOOLCHAIN
Poul-Henning Kamp [Sat, 6 Aug 2005 20:23:13 +0000 (20:23 +0000)]
Control rcs inclusion with NO_RCS insted of NO_TOOLCHAIN

19 years agoReduce the default MAXCPU from 16 to 4. This is in preparation of
Marcel Moolenaar [Sat, 6 Aug 2005 19:59:23 +0000 (19:59 +0000)]
Reduce the default MAXCPU from 16 to 4. This is in preparation of
allocating a VHPT per CPU. Since we don't yet know how many CPUs
are actually in the system at the time we need to allocate the
VHPTs, we allocate for MAXCPU processors. This can result in a
lot of wasted space for 2-way machines. So, for now, limit MAXCPU
to something smaller until we have something more dynamic.

19 years agoFor ia64_ptc_{e,g,ga,l}(), use instruction serialization. We
Marcel Moolenaar [Sat, 6 Aug 2005 19:54:31 +0000 (19:54 +0000)]
For ia64_ptc_{e,g,ga,l}(), use instruction serialization. We
typically don't know what the TLB described and need to assume
that it affects the fetching of instructions.

19 years agoAdd hints for uart(4). These are the same as for sio(4) and make it
Marcel Moolenaar [Sat, 6 Aug 2005 19:24:22 +0000 (19:24 +0000)]
Add hints for uart(4). These are the same as for sio(4) and make it
easier to switch from sio(4) to uart(4).

19 years agoo Remove the obscure tid command, because it does what the thread
Marcel Moolenaar [Sat, 6 Aug 2005 19:22:27 +0000 (19:22 +0000)]
o  Remove the obscure tid command, because it does what the thread
   command does, but worse.
o  Remove the obscure proc command, because it does what the thread
   command does, but not unambigously.
o  Move the PID to the extra thread info, where it makes sense and
   where it doesn't confuse users. The extra thread info holds some
   process information, to which the PID belongs.
o  Implement the to_find_new_threads target method by having it call
   the target beneath us if we're not using KVM. This makes sure that
   new threads are found when using the remote target.

o  Fix various core dump scenarios:
   -  Implement the to_files_info target method. Previously the
      'info target' command would cause a NULL pointer dereference.
   -  Don't assume there's a current thread. We're not initialized
      in all cases. This prevents a NULL pointer dereference.
   -  When we're not ussing KVM, have the to_xfer_memory target
      method call the target beneath us. This avoids calling into
      KVM with a NULL pointer.

MFC after: 1 week

19 years agoo As mentioned in the previous commit: make the KVM error buffer
Marcel Moolenaar [Sat, 6 Aug 2005 19:07:07 +0000 (19:07 +0000)]
o  As mentioned in the previous commit: make the KVM error buffer
   static.
o  Register a function with atexit(3) to close the KVM object if
   we have one open.
o  Show the unread portion of the kernel's message buffer before
   presenting the prompt. It's bound to provide some useful info.
o  Don't call kgdb_target() twice. It results in having all threads
   listed twice.

MFC after: 1 week

19 years agosigh, sizeof the correct variable so we can match ifname's > 4 bytes
Sam Leffler [Sat, 6 Aug 2005 18:47:12 +0000 (18:47 +0000)]
sigh, sizeof the correct variable so we can match ifname's > 4 bytes

19 years agodestroy lock _before_ free'ing the structure it resides in
Sam Leffler [Sat, 6 Aug 2005 18:42:01 +0000 (18:42 +0000)]
destroy lock _before_ free'ing the structure it resides in

19 years agoAdd if_ath_load (default NO) in Networking Drivers section.
Kirill Ponomarev [Sat, 6 Aug 2005 18:32:25 +0000 (18:32 +0000)]
Add if_ath_load (default NO) in Networking Drivers section.

PR: conf/80870
Submitted by: Hasan Cana <vpb at albabsd dot org>

19 years agoFix locations of some links.
Kirill Ponomarev [Sat, 6 Aug 2005 18:13:30 +0000 (18:13 +0000)]
Fix locations of some links.
Word smithing.

PR: conf/81923
Submitted by: Gavin Atkinson <gavin dot atkinson at ury.york.ac.uk>

19 years agoRespect the YES_HESIOD build variable.
Poul-Henning Kamp [Sat, 6 Aug 2005 16:53:55 +0000 (16:53 +0000)]
Respect the YES_HESIOD build variable.

19 years agoRespect the YES_HESIOD build variable
Poul-Henning Kamp [Sat, 6 Aug 2005 16:52:30 +0000 (16:52 +0000)]
Respect the YES_HESIOD build variable

19 years agoUse libmemstat(3)'s kvm support for malloc(9) rather than hand-extracting
Robert Watson [Sat, 6 Aug 2005 13:56:21 +0000 (13:56 +0000)]
Use libmemstat(3)'s kvm support for malloc(9) rather than hand-extracting
this information from the core dump.

19 years agoTeach libmemstat(3) how to extract malloc(9) statistics using kvm(3),
Robert Watson [Sat, 6 Aug 2005 13:54:03 +0000 (13:54 +0000)]
Teach libmemstat(3) how to extract malloc(9) statistics using kvm(3),
so that libmemstat can be used to view full memory statistics from
kernel core dumps and /dev/mem.  This is provided via a new query
function, memstat_kvm_malloc(), which is also automatically invoked
by memstat_kvm_all().  A kvm handle must be passed in.

This will allow malloc(9)-specific code to be removed from vmstat(8).

19 years agoGive credit to Vinod Kashyap and Paul Saab for their work on the
Hiten Pandya [Sat, 6 Aug 2005 13:05:45 +0000 (13:05 +0000)]
Give credit to Vinod Kashyap and Paul Saab for their work on the
twe(4) driver.

19 years agoMore tcpdump 8->1 cleanup.
Christian Brueffer [Sat, 6 Aug 2005 13:03:03 +0000 (13:03 +0000)]
More tcpdump 8->1 cleanup.

Approved by: mlaier
MFC after: 3 days

19 years agoMake ULE as default scheduler, allow it to be tested more widely.
David Xu [Sat, 6 Aug 2005 10:31:27 +0000 (10:31 +0000)]
Make ULE as default scheduler, allow it to be tested more widely.

19 years agoOld habits die hard: Make that .if defined(YES_HESIOD) not .if !defined
Poul-Henning Kamp [Sat, 6 Aug 2005 07:41:36 +0000 (07:41 +0000)]
Old habits die hard:  Make that .if defined(YES_HESIOD) not .if !defined

19 years agoChange the data type of the upper shared memory limits from a signed
Christian S.J. Peron [Sat, 6 Aug 2005 07:20:18 +0000 (07:20 +0000)]
Change the data type of the upper shared memory limits from a signed
integer to an unsigned long. This lifts variables like the maximum
number of pages available for shared memory from 2^31 to 2^32 on 32
bit architectures, and from 2^31 to 2^64 on 64 bit architectures.

It should be noted that this changes breaks ABI on 64 bit architectures
because the size of the shmmax, shmmin, shmmni, shmseg and shmall members
of the shminfo structure has changed.

Silence on: current@

19 years agoPut hesiod.conf(5) under build option YES_HESIOD
Poul-Henning Kamp [Sat, 6 Aug 2005 06:57:25 +0000 (06:57 +0000)]
Put hesiod.conf(5) under build option YES_HESIOD

19 years agoPut hesinfo(1) under buildoption "YES_HESIOD"
Poul-Henning Kamp [Sat, 6 Aug 2005 06:56:39 +0000 (06:56 +0000)]
Put hesinfo(1) under buildoption "YES_HESIOD"

19 years agoAdd myself as a maintainer of GELI and GZERO classes.
Pawel Jakub Dawidek [Sat, 6 Aug 2005 06:46:29 +0000 (06:46 +0000)]
Add myself as a maintainer of GELI and GZERO classes.

19 years agofix debug msg typo
Sam Leffler [Sat, 6 Aug 2005 04:57:27 +0000 (04:57 +0000)]
fix debug msg typo

MFC after: 3 days

19 years agoFix handling of frames sent prior to a station being authorized
Sam Leffler [Sat, 6 Aug 2005 04:56:49 +0000 (04:56 +0000)]
Fix handling of frames sent prior to a station being authorized
when operating in ap mode.  Previously we allocated a node from the
station table, sent the frame (using the node), then released the
reference that "held the frame in the table".  But while the frame
was in flight the node might be reclaimed which could lead to
problems.  The solution is to add an ieee80211_tmp_node routine
that crafts a node that does exist in a table and so isn't ever
reclaimed; it exists only so long as the associated frame is in flight.

MFC after: 5 days

19 years agoInclude ../Makefile.inc, since without it programs get installed in the
Colin Percival [Sat, 6 Aug 2005 02:37:21 +0000 (02:37 +0000)]
Include ../Makefile.inc, since without it programs get installed in the
wrong place.

Pointy hat to: cperciva

19 years agoMention that I'd like to review commits to bsdiff and bspatch.
Colin Percival [Sat, 6 Aug 2005 02:06:43 +0000 (02:06 +0000)]
Mention that I'd like to review commits to bsdiff and bspatch.

19 years agoAdd bsdiff and bspatch to the base system. These are tools for
Colin Percival [Sat, 6 Aug 2005 01:59:06 +0000 (01:59 +0000)]
Add bsdiff and bspatch to the base system.  These are tools for
constructing and applying binary patches; in particular, they perform
well (in the sense of constructing small patches) for executable code.
Both portsnap (coming to the base system Real Soon Now) and FreeBSD
Update (coming to the base system a bit later) use bspatch.

This is the same code as the bsdiff-4.2 which has been in the ports
tree (misc/bsdiff) for the past year, with the following exceptions:
1. The license is now the traditional 2-clause BSD;
2. Instead of forking and execing bzip2, the code now uses libbz2; and
3. Some minor changes have been made to fit this code into the base
system (adding $FreeBSD$ tags, putting bsdiff and bspatch into separate
directories, etc.)

This code is rather ugly and has lots of style bugs (mostly because I
wrote it before I had ever heard of style(9)).  Some day I'll come
back and clean it up.

Discussed on: freebsd-arch
MFC before: 5.5-RELEASE
Tested by: Several million users (earlier version).

19 years agoHolding a vnode doesn't prevent v_mount from disappearing (when the
Suleiman Souhlal [Sat, 6 Aug 2005 01:42:04 +0000 (01:42 +0000)]
Holding a vnode doesn't prevent v_mount from disappearing (when the
vnode is inactivated), possibly leading to a NULL dereference when
checking if the mount wants knotes to be activated in the VOP hooks.
So, we add a new vnode flag VV_NOKNOTE that is only set in getnewvnode(),
if necessary, and check it when activating knotes.
Since the flags are not erased when a vnode is being held, we can safely
read them.

Reviewed by: kris@
MFC after: 3 days

19 years agoThe kernel is usually at /boot/kernel/kernel nowadays.
Suleiman Souhlal [Sat, 6 Aug 2005 00:33:42 +0000 (00:33 +0000)]
The kernel is usually at /boot/kernel/kernel nowadays.

PR: i386/81756
Submitted by: trasz <trasz@buziaczek.pl>

19 years ago- clean ${LIB32TMP} in _worldtmp
Ruslan Ermilov [Fri, 5 Aug 2005 23:48:58 +0000 (23:48 +0000)]
- clean ${LIB32TMP} in _worldtmp
- clean ${OBJTREE}/lib32 in _cleanobj
- ensure that ${WORLDTMP} exists in build32

19 years agoTeach rc.d/encswap script how to use geli(8) for swap encryption.
Pawel Jakub Dawidek [Fri, 5 Aug 2005 23:38:51 +0000 (23:38 +0000)]
Teach rc.d/encswap script how to use geli(8) for swap encryption.

MFC after: 3 days

19 years agogbde_swap has been repo-copied to encswap.
Pawel Jakub Dawidek [Fri, 5 Aug 2005 21:23:08 +0000 (21:23 +0000)]
gbde_swap has been repo-copied to encswap.

Repo-copy made by: markm

19 years agoDon't include -lipx twice.
Poul-Henning Kamp [Fri, 5 Aug 2005 20:13:09 +0000 (20:13 +0000)]
Don't include -lipx twice.

19 years agoMake IPX support depend on NO_IPX
Poul-Henning Kamp [Fri, 5 Aug 2005 18:45:49 +0000 (18:45 +0000)]
Make IPX support depend on NO_IPX

19 years agoWhen summing capacities, skip info from batteries that weren't present.
Nate Lawson [Fri, 5 Aug 2005 17:00:58 +0000 (17:00 +0000)]
When summing capacities, skip info from batteries that weren't present.
Previously, we used all info (including -1 or "not present") which would
keep the system from reaching 100% when charging.

Reported by: Eric Anderson
MFC after: 2 days

19 years agoLet NO_MAN control catman
Poul-Henning Kamp [Fri, 5 Aug 2005 16:09:34 +0000 (16:09 +0000)]
Let NO_MAN control catman

19 years agolet NO_MAN control man
Poul-Henning Kamp [Fri, 5 Aug 2005 16:08:53 +0000 (16:08 +0000)]
let NO_MAN control man
let NO_TOOLCHAIN control rcs
let NO_INFO control texinfo

19 years agoRespect NO_EXAMPLES
Poul-Henning Kamp [Fri, 5 Aug 2005 16:04:54 +0000 (16:04 +0000)]
Respect NO_EXAMPLES

19 years agoFix up the locking in pcn(4) and mark it MPSAFE.
John Baldwin [Fri, 5 Aug 2005 16:03:16 +0000 (16:03 +0000)]
Fix up the locking in pcn(4) and mark it MPSAFE.
- Add locked versions of the init() and start() methods.
- Use callout_*() rather than timeout().
- Make the driver lock non-recursive.
- Push down locking in detach() and ioctl().
- Fix the tick routine to bail if the interface has been stopped and use
  callout_drain() in detach() after the call to stop().
- Lock the driver lock in the ifmedia handlers.

Tested by: Ketrien I. Saihr-Kesenchedra ketrien at error404.nls.net
MFC after: 1 week

19 years agoAllow the array number to be read back on atacontrol create
Søren Schmidt [Fri, 5 Aug 2005 15:08:17 +0000 (15:08 +0000)]
Allow the array number to be read back on atacontrol create

19 years agoIntroduce NO_LOCALES build option.
Poul-Henning Kamp [Fri, 5 Aug 2005 14:59:50 +0000 (14:59 +0000)]
Introduce NO_LOCALES build option.

19 years agoDocument ITE IT8211F support.
Christian Brueffer [Fri, 5 Aug 2005 14:07:39 +0000 (14:07 +0000)]
Document ITE IT8211F support.

19 years agoThe /stand directory now disappears out from under sysinstall while
Ken Smith [Fri, 5 Aug 2005 13:39:08 +0000 (13:39 +0000)]
The /stand directory now disappears out from under sysinstall while
it is running during installations.  The vsystem() function does get
used after this happens (e.g. if you manually configure the network
interface and ask it to enable the interface) so it needs to be a
little smarter about whether it uses /stand/sh or /bin/sh.

MFC after: 3 days

19 years agoMention D-Link DGE-528(T) Gigabit Ethernet.
Anton Berezin [Fri, 5 Aug 2005 13:21:11 +0000 (13:21 +0000)]
Mention D-Link DGE-528(T) Gigabit Ethernet.

Reminded by: sem, simon

19 years agoAdd support for the ITE IT8211F controller.
Søren Schmidt [Fri, 5 Aug 2005 13:14:00 +0000 (13:14 +0000)]
Add support for the ITE IT8211F controller.

19 years agoFix status to report status from the given array.
Søren Schmidt [Fri, 5 Aug 2005 13:08:02 +0000 (13:08 +0000)]
Fix status to report status from the given array.

19 years agoMake IOCATARAIDSTATUS IOWR so status can be gotten correctly
Søren Schmidt [Fri, 5 Aug 2005 13:05:45 +0000 (13:05 +0000)]
Make IOCATARAIDSTATUS IOWR so status can be gotten correctly

19 years agoUse socklen_t where appropriate.
Stefan Farfeleder [Fri, 5 Aug 2005 09:58:49 +0000 (09:58 +0000)]
Use socklen_t where appropriate.

19 years agoDon't install ${LIB}_pic.a if NO_TOOLCHAIN
Poul-Henning Kamp [Fri, 5 Aug 2005 09:55:04 +0000 (09:55 +0000)]
Don't install ${LIB}_pic.a if NO_TOOLCHAIN

19 years agoRemove the map3270 file, tn3270 was retired long ago.
Poul-Henning Kamp [Fri, 5 Aug 2005 09:52:25 +0000 (09:52 +0000)]
Remove the map3270 file, tn3270 was retired long ago.

19 years agoInclude <err.h> where needed. Add $FreeBSD$ where missing.
Stefan Farfeleder [Fri, 5 Aug 2005 09:07:42 +0000 (09:07 +0000)]
Include <err.h> where needed.  Add $FreeBSD$ where missing.

19 years agoRecognize D-Link DGE-528(T) Gigabit as an re(4) device.
Anton Berezin [Fri, 5 Aug 2005 08:19:12 +0000 (08:19 +0000)]
Recognize D-Link DGE-528(T) Gigabit as an re(4) device.

Submitted by: Andrus Nomm <andrus@members.ee>
PR: 76780
MFC After: 1 week

19 years agoPrefer {u,}intmax_t over the deprecated {u_,}quad_t.
Stefan Farfeleder [Fri, 5 Aug 2005 08:18:00 +0000 (08:18 +0000)]
Prefer {u,}intmax_t over the deprecated {u_,}quad_t.

19 years agoDon't throw away the adjusted `runtimer' value.
Stefan Farfeleder [Fri, 5 Aug 2005 08:07:02 +0000 (08:07 +0000)]
Don't throw away the adjusted `runtimer' value.

19 years agoGarbage collect useless variables.
Stefan Farfeleder [Fri, 5 Aug 2005 07:39:39 +0000 (07:39 +0000)]
Garbage collect useless variables.

19 years agoUse the C99 syntax for designated initialisers.
Stefan Farfeleder [Fri, 5 Aug 2005 07:33:50 +0000 (07:33 +0000)]
Use the C99 syntax for designated initialisers.

19 years agoUse char * when doing pointer arithmetics.
Stefan Farfeleder [Fri, 5 Aug 2005 07:28:26 +0000 (07:28 +0000)]
Use char * when doing pointer arithmetics.

19 years agoDeclare iftraceinit() at file scope.
Stefan Farfeleder [Fri, 5 Aug 2005 07:17:23 +0000 (07:17 +0000)]
Declare iftraceinit() at file scope.

19 years agorc.conf(5) update - gbde_swap_enable variable has been removed.
Pawel Jakub Dawidek [Fri, 5 Aug 2005 07:09:53 +0000 (07:09 +0000)]
rc.conf(5) update - gbde_swap_enable variable has been removed.

Reminded by: dougb

19 years agoWhen the MAC address is reported all zeros, then error is necessarily
Warner Losh [Fri, 5 Aug 2005 04:56:14 +0000 (04:56 +0000)]
When the MAC address is reported all zeros, then error is necessarily
0.  This means that we 'succeed' the attach, even after we've freed
the internal data bits.  This leads to a panic when you eject the card
with this problem.

Set error = ENXIO in the mac read zeros case.

19 years agoCall usage() instead of being insolent.
Juli Mallett [Fri, 5 Aug 2005 01:04:36 +0000 (01:04 +0000)]
Call usage() instead of being insolent.

19 years agoDon't lock when holding led_mtx, instead use AcpiOsQueueForExecution to defer
Markus Brueffer [Thu, 4 Aug 2005 22:48:36 +0000 (22:48 +0000)]
Don't lock when holding led_mtx, instead use AcpiOsQueueForExecution to defer
the locking.

Idea taken from: acpi_asus(4)

Approved by: philip
Reported by: avatar
Gordon Bergling <gbergling@0xfce3.net>
MFC after: 1 week

19 years agoRemove Xref to non-existant usb(3) manpage.
Christian Brueffer [Thu, 4 Aug 2005 21:26:38 +0000 (21:26 +0000)]
Remove Xref to non-existant usb(3) manpage.

Obtained from: DragonFly BSD (swildner)
MFC after: 3 days

19 years agoFixed typo.
Ruslan Ermilov [Thu, 4 Aug 2005 21:23:50 +0000 (21:23 +0000)]
Fixed typo.

19 years agoDont limit all transfers to DEV_BSIZE (stale dbug code)
Søren Schmidt [Thu, 4 Aug 2005 18:39:36 +0000 (18:39 +0000)]
Dont limit all transfers to DEV_BSIZE (stale dbug code)
Hide the loaded/unloaded message behind bootverbose

19 years agodon't do mutex locking around kthread_create() call.
Hajimu UMEMOTO [Thu, 4 Aug 2005 18:34:26 +0000 (18:34 +0000)]
don't do mutex locking around kthread_create() call.

Reported by: Maxim Maximov <mcsi__at__mcsi.pp.ru>

19 years agoInitialize the if_addr mutex in if_alloc() rather than waiting until
John Baldwin [Thu, 4 Aug 2005 14:39:47 +0000 (14:39 +0000)]
Initialize the if_addr mutex in if_alloc() rather than waiting until
if_attach().  This allows ethernet drivers to use it in their routines
to program their MAC filters before ether_ifattach() is called (de(4) is
one such driver).  Also, the if_addr mutex is destroyed in if_free()
rather than if_detach(), so there was another potential bug in that a
driver that failed during attach and called if_free() without having
called ether_ifattach() would have tried to destroy an uninitialized mutex.

Reported by: Holm Tiffe holm at freibergnet dot de
Discussed with: rwatson

19 years agoThe check for invalid characters introduced in 1.9 incorrectly
Ollivier Robert [Thu, 4 Aug 2005 12:44:36 +0000 (12:44 +0000)]
The check for invalid characters introduced in 1.9 incorrectly
flags NIS entries as invalid.

MFC6 candidate

Submitted by: Bob Willcox <bob@immure.com>
PR: bin/82325 (but I used the patch from Bob).

19 years agoMake kernel build suceed when with "options CPU_DISABLE_SSE".
Anton Berezin [Thu, 4 Aug 2005 12:39:43 +0000 (12:39 +0000)]
Make kernel build suceed when with "options CPU_DISABLE_SSE".

PR: 84010
Submitted by: Sergey Gluschenko <deen@freebsd.org.ua>
MFC after: 1 week

19 years agoDefine LIBMEMSTAT so that vm_page.h won't perform a nested include of
Robert Watson [Thu, 4 Aug 2005 10:06:39 +0000 (10:06 +0000)]
Define LIBMEMSTAT so that vm_page.h won't perform a nested include of
opt_vmpage.h.

Remove definition of _KERNEL, it is no longer required in order to
include uma_int.h, as the sensitive parts of uma_int.h (a number of
inlines depending on kernel-only constants) are now protected by
_KERNEL.

19 years agoBug fix: a numeric flag specification in the substitute command would
Diomidis Spinellis [Thu, 4 Aug 2005 10:05:12 +0000 (10:05 +0000)]
Bug fix: a numeric flag specification in the substitute command would
cause the next substitute flag to be ignored.
While working at it, detect and report overflows.

Reported by: Jingsong Liu
MFC after: 1 week

19 years agoDon't perform a nested include of opt_vmpage.h if LIBMEMSTAT is defined,
Robert Watson [Thu, 4 Aug 2005 10:05:11 +0000 (10:05 +0000)]
Don't perform a nested include of opt_vmpage.h if LIBMEMSTAT is defined,
as opt_vmpage.h will not be available to user space library builds.  A
similar existing check is present for KLD_MODULE for similar reasons.

MFC after: 3 days

19 years agoWrap inlines in uma_int.h in #ifdef _KERNEL so that uma_int.h can be
Robert Watson [Thu, 4 Aug 2005 10:03:53 +0000 (10:03 +0000)]
Wrap inlines in uma_int.h in #ifdef _KERNEL so that uma_int.h can be
used from memstat_uma.c for the purposes of kvm access without lots
of additional unsafe includes.

MFC after: 3 days

19 years agoRemove gbde_swap_enable option which doesn't work and doesn't really have to
Pawel Jakub Dawidek [Thu, 4 Aug 2005 08:19:13 +0000 (08:19 +0000)]
Remove gbde_swap_enable option which doesn't work and doesn't really have to
work, as one still needs to put <device>.bde into /etc/fstab.

19 years agoCorrectly print system-wide PMC counts for short-lived command lines.
Joseph Koshy [Thu, 4 Aug 2005 03:12:55 +0000 (03:12 +0000)]
Correctly print system-wide PMC counts for short-lived command lines.

Reported by: cracauer
MFC after: 3 days

19 years agoFix two bugs that interacted to cause page faults in softclock()
Ian Dowse [Thu, 4 Aug 2005 02:21:37 +0000 (02:21 +0000)]
Fix two bugs that interacted to cause page faults in softclock()
when using mice containing a tilt movement: there was a missing
usb_callout_init() for the UMS_SPUR_BUT_UP quirk code, and UMS_T
was defined to the same flag value as UMS_SPUR_BUT_UP.

Reported by: flz
MFC after: 3 days

19 years agoFix commen typos.
Stefan Farfeleder [Wed, 3 Aug 2005 20:57:33 +0000 (20:57 +0000)]
Fix commen typos.

19 years ago- Remove duplicate setting from LIB32MAKE definition.
Ruslan Ermilov [Wed, 3 Aug 2005 20:27:06 +0000 (20:27 +0000)]
- Remove duplicate setting from LIB32MAKE definition.
- Install lib32 bits using the real install(1) program.

19 years agoAdd missing "not" in rev. 1.34.
Ruslan Ermilov [Wed, 3 Aug 2005 20:11:39 +0000 (20:11 +0000)]
Add missing "not" in rev. 1.34.

Submitted by: Jeremie Le Hen