]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoMFp4:
imp [Thu, 10 Aug 2006 18:14:35 +0000 (18:14 +0000)]
MFp4:
Remove obsolete files in list
Add spi flash reading routines

17 years agoMFp4: Numerous changes from p4 to try to improve tftp downloading,
imp [Thu, 10 Aug 2006 18:11:22 +0000 (18:11 +0000)]
MFp4: Numerous changes from p4 to try to improve tftp downloading,
reduce code footprint, etc.  While some problems still remain, the
reliability of tftp is much improved.

17 years agoMFp4: consolidate #include files down to lib.h
imp [Thu, 10 Aug 2006 18:07:49 +0000 (18:07 +0000)]
MFp4: consolidate #include files down to lib.h

17 years agoMFp4: These will migrate to the boot specific directories because they
imp [Thu, 10 Aug 2006 18:07:01 +0000 (18:07 +0000)]
MFp4: These will migrate to the boot specific directories because they
are too hard to share between the different boot loaders.

17 years agoMFp4: Make it clearer that the address passed to the eeprom routines is
imp [Thu, 10 Aug 2006 18:03:50 +0000 (18:03 +0000)]
MFp4: Make it clearer that the address passed to the eeprom routines is
really an offset within the eeprom device, and not a IIC address.

17 years agoMFp4: Catchup with migration of some defines.
imp [Thu, 10 Aug 2006 18:02:27 +0000 (18:02 +0000)]
MFp4: Catchup with migration of some defines.

17 years agoMFp4: Tweaks for our board.
imp [Thu, 10 Aug 2006 17:59:22 +0000 (17:59 +0000)]
MFp4: Tweaks for our board.

17 years agoMFp4: Increase character timeout to 10. Make it a #define for easier
imp [Thu, 10 Aug 2006 17:54:51 +0000 (17:54 +0000)]
MFp4: Increase character timeout to 10.  Make it a #define for easier
changes in the future.  This helps with getting started and to
overcome the really sucky level of granuality this timeout has in
getc.  A timeout of 1 means 'wait until top of next second' rather
than 'wait for at least a second'.

17 years agoAdd libcrypto.so.4 and libssl.so.4 to OLD_LIBS since they are obsoleted
simon [Thu, 10 Aug 2006 16:50:50 +0000 (16:50 +0000)]
Add libcrypto.so.4 and libssl.so.4 to OLD_LIBS since they are obsoleted
by the OpenSSL 0.9.8b import.

Reminded by: kris

17 years agoFix typo.
obrien [Thu, 10 Aug 2006 16:39:55 +0000 (16:39 +0000)]
Fix typo.

Submitted by: kevlo

17 years agoo add noise floor to stats
sam [Thu, 10 Aug 2006 16:31:37 +0000 (16:31 +0000)]
o add noise floor to stats
o include current tx rate in stats so athstats gets a consistent
  snapshot and doesn't have to make an extra ioctl
o record tx rate for raw frames

MFC after: 3 weeks

17 years agoImprove the way we'll detect video devices as per ACPI 3.0.
bruno [Thu, 10 Aug 2006 13:18:02 +0000 (13:18 +0000)]
Improve the way we'll detect video devices as per ACPI 3.0.

PR: 100271
Requested by: john AT utzweb DOT net
Submitted by: hrs
Reviewed by: njl
Approved by: njl
MFC after: 3 days

17 years agoSome perfectionizm against last revision.
glebius [Thu, 10 Aug 2006 11:07:11 +0000 (11:07 +0000)]
Some perfectionizm against last revision.

Submitted by: ru

17 years agoAdd support for splitting at gigabyte boundaries. [1]
keramida [Thu, 10 Aug 2006 10:41:47 +0000 (10:41 +0000)]
Add support for splitting at gigabyte boundaries. [1]

Also make both lowercase and uppercase suffix letters work
as byte-count suffixes, i.e. the following two commands are
equivalent now:

    % split -b 4m foo
    % split -b 4M foo

Submitted by: Roman Divacky [1]
Lots of help by: cperciva
Reviewed by: cperciva
MFC after: 1 week

17 years agogetnewvnode() can be called with NULL mp.
pjd [Thu, 10 Aug 2006 08:56:03 +0000 (08:56 +0000)]
getnewvnode() can be called with NULL mp.

Found by: Coverity Prevent (tm)
Coverity ID: 1521
Confirmed by: phk

17 years agoThe acpi module is no different from others. If it is loaded while the kernel
njl [Thu, 10 Aug 2006 06:32:16 +0000 (06:32 +0000)]
The acpi module is no different from others.  If it is loaded while the kernel
has it compiled in, it will be rejected with "module acpi already present!"
and no strange behavior.

MFC after: 1 day

17 years agoDon't need to special case arm here anymore
imp [Thu, 10 Aug 2006 06:29:43 +0000 (06:29 +0000)]
Don't need to special case arm here anymore

17 years agoAdd a dummy makefile to keep build happy
imp [Thu, 10 Aug 2006 06:29:15 +0000 (06:29 +0000)]
Add a dummy makefile to keep build happy

17 years agofixup list station support:
sam [Thu, 10 Aug 2006 06:06:13 +0000 (06:06 +0000)]
fixup list station support:
o add sanity check to avoid possible looping
o use intended api for IEEE80211_IOC_STA_INFO
o when operating in sta mode get the sta info for the ap

17 years agoMore statistics fixups:
sam [Thu, 10 Aug 2006 06:04:00 +0000 (06:04 +0000)]
More statistics fixups:
o change rssi to be signed in ieee80211_nodestats
o add noise floor in ieee80211_nodestats (use an implicit hole to
  preserve layout); return it as zero until we can update the api's
  so the driver can provide noise floor data
o add a bandaid so IEEE80211_IOC_STA_STATS works for sta mode; when
  all nodes are in the station table this will no longer be needed
o fix braino in IEEE80211_IOC_STA_INFO implementation; was supposed
  to take a mac address and return info for that sta or all stations
  if ff:ff:ff:ff:ff was supplied--but somehow this didn't get implemented;
  implement the intended semantics and leave a compat shim at the old
  ioctl number for the previous api

Reviewed by: mlaier
MFC after: 3 weeks

17 years agominor fixups:
sam [Thu, 10 Aug 2006 05:54:36 +0000 (05:54 +0000)]
minor fixups:
o add some missing stats to the global stat structure
o move accounting work for data frame rx into ieee80211_deliver_data
o add per-sta stats for rx ucast/mcast frames
o set rcvif in ieee80211_deliver_data so callers don't need to

MFC after: 2 weeks

17 years agoadd per-sta ucast/mcast stats
sam [Thu, 10 Aug 2006 05:37:49 +0000 (05:37 +0000)]
add per-sta ucast/mcast stats

MFC after: 1 week

17 years agoChange vm_page_cowfault() so that it doesn't allocate a pre-busied page.
alc [Thu, 10 Aug 2006 04:48:29 +0000 (04:48 +0000)]
Change vm_page_cowfault() so that it doesn't allocate a pre-busied page.

17 years agoo Spell.
maxim [Thu, 10 Aug 2006 01:13:38 +0000 (01:13 +0000)]
o Spell.

Submitted by: ru

17 years agoEliminate one set of XBOX #ifdefs. The Xbox code just needs to set a
imp [Wed, 9 Aug 2006 23:47:38 +0000 (23:47 +0000)]
Eliminate one set of XBOX #ifdefs.  The Xbox code just needs to set a
different TIMER_FREQ value than default.  Accomplish this via the
config file rather than via an #ifdef.

17 years agoMinor style(9) nit.
imp [Wed, 9 Aug 2006 23:37:30 +0000 (23:37 +0000)]
Minor style(9) nit.

17 years ago- Added ability to provide (optional) path to the kernel sources
rik [Wed, 9 Aug 2006 21:23:42 +0000 (21:23 +0000)]
- Added ability to provide (optional) path to the kernel sources
- Added check of dirs used by example generator
- Fixed path for ${s}/conf/files.FOO and include it via files
  directive from config file
- Changed kernel configuration example with the driver: it is
  not produced by copying Generic but by including it
- KDB is added to config (for DDB)
- Added module building instead and fixed kernel building

Reviewed by: julian@

17 years agoHook into the watchdog device, if present. Also, turn off the
imp [Wed, 9 Aug 2006 20:58:55 +0000 (20:58 +0000)]
Hook into the watchdog device, if present.  Also, turn off the
watchdog timer stuff when we boot because the boot blocks are turning
it on...

17 years agoAdded copyright templete
rik [Wed, 9 Aug 2006 20:57:24 +0000 (20:57 +0000)]
Added copyright templete
Fixed compilation

Reviewed by: julian@

17 years agoStrengthen the check for a PMBR:
marcel [Wed, 9 Aug 2006 20:53:01 +0000 (20:53 +0000)]
Strengthen the check for a PMBR:
o PMBR partitions count to the number of partitions on the disk, which
  means that if a PMBR entry is invalid we will not treat the MBR as a
  PMBR by virtue of it not describing any partitions.
  Previously the checks were inconsistent in that an invalid PMBR entry
  would be harmless when no other partitions exist (we would treat the
  MBR as a PMBR by virtue of it being empty), but it would be fatal when
  there is at least one other partition.
o The partition size of a PMBR partition is one less than the media size
  because the GPT starts at the second sector (LBA 1) and extends to
  the end of the media. For backward bug-compatibility we accept a size
  that's exactly the media size (FreeBSD bug).
  Also, when the partition size can not be represented in a 32-bit
  integral, the partition size in the MBR is to be set to 0xFFFFFFFF.
  Accept this as a valid size, even if the size can be represented.

17 years agoFix a bug in the size of the PMBR partition. Since the partition starts
marcel [Wed, 9 Aug 2006 20:19:15 +0000 (20:19 +0000)]
Fix a bug in the size of the PMBR partition. Since the partition starts
at LBA 1, the size is not the mediasize in sectors, but one less.

17 years ago10/100 PHY shouldn't support gigabit media types.
pdeuskar [Wed, 9 Aug 2006 20:10:35 +0000 (20:10 +0000)]
10/100 PHY shouldn't support gigabit media types.

Submitted by: brad (brad@comstyle.com)
Obtained from: OpenBSD
MFC after: 1 week

17 years agoo Strip eol whitespaces.
maxim [Wed, 9 Aug 2006 19:41:34 +0000 (19:41 +0000)]
o Strip eol whitespaces.

17 years agoo Simple strcpy/strcat replacement.
maxim [Wed, 9 Aug 2006 19:12:10 +0000 (19:12 +0000)]
o Simple strcpy/strcat replacement.

PR: bin/101575
Founded by: Dan Lukes
Obtained from: OpenBSD, rev. 1.11 by deraadt
MFC after: 2 weeks

17 years agoDefine NO_TLS on PowerPC.
marcel [Wed, 9 Aug 2006 19:01:27 +0000 (19:01 +0000)]
Define NO_TLS on PowerPC.

See also: PR ia64/91846

17 years agoo New sentence, new line.
maxim [Wed, 9 Aug 2006 18:35:31 +0000 (18:35 +0000)]
o New sentence, new line.
o Touch Dd for -r.

17 years agoAdd pc98 specific code to adjust the firmware geometry when it differs
imp [Wed, 9 Aug 2006 18:25:07 +0000 (18:25 +0000)]
Add pc98 specific code to adjust the firmware geometry when it differs
from the actual geometry.  This enables support of disks larger than
~120GB on pc98 boxes.  They make great little network appliances.
I've been using these changes for the past year or so on my network
storage pc98 box :-).

17 years agoMost platforms map the actual drive geometry to the firmware's notion
imp [Wed, 9 Aug 2006 18:23:47 +0000 (18:23 +0000)]
Most platforms map the actual drive geometry to the firmware's notion
of geometry.  However, some platforms have a more complicated mapping
of the firmware values to the actual values.  pc98 is the only
platform that currently does this.  This mapping is necessary for
large disks connected to pc98 boxes, as the firmware labels require do
special hacks to the actual geometry for interoperability.  We cannot
do this all in the geom layer because of initialization issues (geom
looks for an already initialized pc98 label, but we need the geometry
information prior to initialization, classic chicken and egg problem).
We pass the disk and the device_t to this function because the
geometry mapping depends on what kind of controller is used.

This hook allows platforms that want to override things to do so, and
has 0 overhead on all other platforms.  These patches have been in use
locally for a long time, and received good feedback from the pc98
community and sos@ at various times during their development.

MFC After: 1 week

17 years agoAllow geli to operate on read-only providers.
pjd [Wed, 9 Aug 2006 18:11:14 +0000 (18:11 +0000)]
Allow geli to operate on read-only providers.

Initial patch from: vd
MFC after: 2 weeks

17 years agoo It speaks about struct msqid_ds not struct shmid_ds.
maxim [Wed, 9 Aug 2006 18:05:44 +0000 (18:05 +0000)]
o It speaks about struct msqid_ds not struct shmid_ds.

PR: docs/101314
Submitted by: Vasil Dimov
MFC after: 1 week

17 years agoIntroduce a field to struct vm_page for storing flags that are
alc [Wed, 9 Aug 2006 17:43:27 +0000 (17:43 +0000)]
Introduce a field to struct vm_page for storing flags that are
synchronized by the lock on the object containing the page.

Transition PG_WANTED and PG_SWAPINPROG to use the new field,
eliminating the need for holding the page queues lock when setting
or clearing these flags.  Rename PG_WANTED and PG_SWAPINPROG to
VPO_WANTED and VPO_SWAPINPROG, respectively.

Eliminate the assertion that the page queues lock is held in
vm_page_io_finish().

Eliminate the acquisition and release of the page queues lock
around calls to vm_page_io_finish() in kern_sendfile() and
vfs_unbusy_pages().

17 years agoSince bpf_allocbufs() uses malloc() with M_WAITOK, don't check return
rwatson [Wed, 9 Aug 2006 16:30:26 +0000 (16:30 +0000)]
Since bpf_allocbufs() uses malloc() with M_WAITOK, don't check return
values for NULL or return an error state.  Assert that all three bpf
buffer pointers are NULL before starting.

MFC after: 1 week

17 years agoAdd a bandaid to avoid a deadlock in a situation, when we are trying to suspend
pjd [Wed, 9 Aug 2006 12:47:30 +0000 (12:47 +0000)]
Add a bandaid to avoid a deadlock in a situation, when we are trying to suspend
a file system, but need to obtain a vnode. We may not be able to do it, because
all vnodes could be already in use and other processes cannot release them,
because they are waiting in "suspfs" state.

In such situation, we allow to allocate a vnode anyway.

This is a temporary fix - there is no backpressure to free vnodes allocated in
those circumstances.

MFC after: 1 week
Reviewed by: tegge

17 years agoReadd sade, the problem should be fixed.
netchild [Wed, 9 Aug 2006 11:26:11 +0000 (11:26 +0000)]
Readd sade, the problem should be fixed.

17 years agoRemove the keymap stuff too, it is not needed in sade.
netchild [Wed, 9 Aug 2006 11:25:10 +0000 (11:25 +0000)]
Remove the keymap stuff too, it is not needed in sade.

17 years agoRemove sade from build-tools, the tinderbox problem should be fixed now.
netchild [Wed, 9 Aug 2006 11:03:06 +0000 (11:03 +0000)]
Remove sade from build-tools, the tinderbox problem should be fixed now.

17 years ago- Added 'files "files.FOO"' to config for inclusion of user specific files.
rik [Wed, 9 Aug 2006 10:53:26 +0000 (10:53 +0000)]
- Added 'files "files.FOO"' to config for inclusion of user specific files.
- Added KDB option to config file (for DDB).
- Added ability to compile custom kernel.

Discussed with: julian@

17 years agoFix ng_pppoe(4) after turning off "autosrc feature" on ng_ether(4).
glebius [Wed, 9 Aug 2006 09:56:58 +0000 (09:56 +0000)]
Fix ng_pppoe(4) after turning off "autosrc feature" on ng_ether(4).

- Store the Ethernet header in node softc.
- Initialize header with dst addr and ethertype in node
  constructor method.
- In node connect method send NGM_ETHER_GET_ENADDR message
  downwards.
- If received reply from ng_ether(4) store the src addr
  in softc.
- Add NGM_PPPOE_SETENDADDR message that allows user to
  override the address with whatever he/she wants.

17 years agoNot only a request from us can be passed to g_{mirror,raid3}_worker()
pjd [Wed, 9 Aug 2006 09:41:53 +0000 (09:41 +0000)]
Not only a request from us can be passed to g_{mirror,raid3}_worker()
function, but also a request to us, in which case checking bio_cflags
is wrong, because the class above us is controling it, not we.

MFC after: 1 week

17 years agoGet rid of the rtermcap stuff (embedding termcaps into the program). This
netchild [Wed, 9 Aug 2006 09:12:01 +0000 (09:12 +0000)]
Get rid of the rtermcap stuff (embedding termcaps into the program). This
is needed in sysinstall on boot, but not in sade on a fully working system.

After this change I noticed no change in behavior on a vty when TERM is not
set.

17 years agoBump WARNS level to 3.
delphij [Wed, 9 Aug 2006 08:25:21 +0000 (08:25 +0000)]
Bump WARNS level to 3.

Tested with: make universe

17 years agoUnbreak sparc64 build.
delphij [Wed, 9 Aug 2006 08:24:46 +0000 (08:24 +0000)]
Unbreak sparc64 build.

Reported by: tinderbox

17 years agoFix PC98 build.
delphij [Wed, 9 Aug 2006 05:33:45 +0000 (05:33 +0000)]
Fix PC98 build.

Spotted by: make universe

17 years agodisconnect sade until someone fixes tinderbox builds
sam [Wed, 9 Aug 2006 05:26:19 +0000 (05:26 +0000)]
disconnect sade until someone fixes tinderbox builds

17 years agoAdd the sade to build-tools list. This fixes a tinderbox.
nyan [Wed, 9 Aug 2006 02:27:31 +0000 (02:27 +0000)]
Add the sade to build-tools list.  This fixes a tinderbox.

17 years agoAdd a new kernel environment variable "boot.netif.mtu" which is used to
brooks [Wed, 9 Aug 2006 01:56:17 +0000 (01:56 +0000)]
Add a new kernel environment variable "boot.netif.mtu" which is used to
set the MTU prior to mounting root via NFS.  This is required if the
server supports a higher than default MTU because the client will not
see the responses otherwise.

MFC after: 3 weeks

17 years agoThomas Wintergerst reports that when this tsleep went away, certain
imp [Wed, 9 Aug 2006 00:05:54 +0000 (00:05 +0000)]
Thomas Wintergerst reports that when this tsleep went away, certain
cards stopped working.  Specifically the AVM B1 PCMCIA Card no longer
detected.  Its CIS chain read back as all FF's.  Putting the delay
back solves those problems.  I've opted to put in a much shorter delay
because as far as I can tell, no delay is really needed here.  We'll
see how well this works in practice.

17 years agoFix a phase-ordering bug: check the mediasize and sectorsize after
marcel [Tue, 8 Aug 2006 21:33:26 +0000 (21:33 +0000)]
Fix a phase-ordering bug: check the mediasize and sectorsize after
we obtained access. It is possible that GPT gets to taste a disk
first, which means the disk has not been opened before and it will
not get opened until after we checked the mediasize and sectorsize.
However, since the mediasize and sectorsize are determined at open
and that happens when access is optained, checking the mediasize
and sectorsize before obtaining access may result in GPT rejecting
the disk.

17 years agoUpdate usage & SYNOPSIS and clarify that input files are not removed.
keramida [Tue, 8 Aug 2006 21:25:22 +0000 (21:25 +0000)]
Update usage & SYNOPSIS and clarify that input files are not removed.
Sort getopt option handling of -p too, while here.

The changes are adapted from a patch by Ruslan Ermilov, posted as
followup to docs/33852.

PR:             docs/33852
Submitted by:   Gary W. Swearingen <swear@blarg.net>
MFC after:      1 week

17 years agoRewrite ARM_USE_SMALL_ALLOC so that instead of the current behavior, it maps
cognet [Tue, 8 Aug 2006 20:59:38 +0000 (20:59 +0000)]
Rewrite ARM_USE_SMALL_ALLOC so that instead of the current behavior, it maps
whole the physical memory, cached, using 1MB section mappings. This reduces
the address space available for user processes a bit, but given the amount of
memory a typical arm machine has, it is not (yet) a big issue.
It then provides a uma_small_alloc() that works as it does for architectures
which have a direct mapping.

17 years agoAdd FreeBSD 6.2 to the list of known versions.
ru [Tue, 8 Aug 2006 19:47:10 +0000 (19:47 +0000)]
Add FreeBSD 6.2 to the list of known versions.

17 years agoAdd kqueue support to if_tun. Loosely based on if_tap changes.
rwatson [Tue, 8 Aug 2006 19:22:25 +0000 (19:22 +0000)]
Add kqueue support to if_tun.  Loosely based on if_tap changes.

Two almost identical patches based on the if_tap work were submitted
via GNATS; I started out with the patch in 100796 from David Gilbert,
but could have easily started with the patch from Vilmos Nebehaj which
I found only later.

MFC after: 1 week
PR: 93976, 100796

17 years agocheck return value of ath_tx_dmasetup
sam [Tue, 8 Aug 2006 16:42:01 +0000 (16:42 +0000)]
check return value of ath_tx_dmasetup

Noticed by: yongari

17 years agoAdd Epson Stylus CX3650.
bms [Tue, 8 Aug 2006 15:42:31 +0000 (15:42 +0000)]
Add Epson Stylus CX3650.
Update Dd.

Requested by: brueffer

17 years agoPartitions are only meaningful for i386 and amd64 architectures, so disable
delphij [Tue, 8 Aug 2006 14:28:03 +0000 (14:28 +0000)]
Partitions are only meaningful for i386 and amd64 architectures, so disable
these code on other architectures.

17 years agoMake sade(8) WARNS=3 clean.
delphij [Tue, 8 Aug 2006 13:45:46 +0000 (13:45 +0000)]
Make sade(8) WARNS=3 clean.

17 years agoLock the vnode around the call to VOP_GETATTR. Move the locked code
kib [Tue, 8 Aug 2006 12:29:26 +0000 (12:29 +0000)]
Lock the vnode around the call to VOP_GETATTR. Move the locked code
and vn_fullpath (that call malloc(..., M_WAITOK)) from under the
vm object lock, since sleep is not allowed while holding the mutex.

Being there, wrap VOP_GETATTR call with conditional Giant aquire.
Currently this is (almost) noop because pseudofs is Giant-locked.

Tested by: kris
Approved by: pjd (mentor)
MFC after: 2 weeks

17 years agoTypo (favour -> favor).
delphij [Tue, 8 Aug 2006 08:51:37 +0000 (08:51 +0000)]
Typo (favour -> favor).

17 years agoShutdown curses when exit. While I am there, remove a stale
delphij [Tue, 8 Aug 2006 07:51:58 +0000 (07:51 +0000)]
Shutdown curses when exit.  While I am there, remove a stale
comment which does not apply to sade(8).

17 years ago- Pass pointer to fd_set in ReadSockets.
glebius [Tue, 8 Aug 2006 07:04:40 +0000 (07:04 +0000)]
- Pass pointer to fd_set in ReadSockets.
- style(9) nits.

Submitted by: ru

17 years agoReduce the scope of the page queues lock in vfs_busy_pages() now that
alc [Tue, 8 Aug 2006 06:00:49 +0000 (06:00 +0000)]
Reduce the scope of the page queues lock in vfs_busy_pages() now that
vm_page_sleep_if_busy() no longer requires the caller to hold the page
queues lock.

17 years agoAxe unused member field.
davidxu [Tue, 8 Aug 2006 05:04:43 +0000 (05:04 +0000)]
Axe unused member field.

17 years agoGet number of CPUs and ignore spin count on single processor machine.
davidxu [Tue, 8 Aug 2006 04:42:41 +0000 (04:42 +0000)]
Get number of CPUs and ignore spin count on single processor machine.

17 years agoPass VM_PROT_EXECUTE to vm_fault() instead of VM_PROT_READ if the page
alc [Tue, 8 Aug 2006 04:01:29 +0000 (04:01 +0000)]
Pass VM_PROT_EXECUTE to vm_fault() instead of VM_PROT_READ if the page
fault was caused by an instruction fetch.

17 years agoRemove the global dock variable. Each dock device should be able to
njl [Tue, 8 Aug 2006 01:33:03 +0000 (01:33 +0000)]
Remove the global dock variable.  Each dock device should be able to
function independently.  This change is not only load-tested since I don't
have hardware that supports acpi_dock.  Clean up comments and a name a
few constants.

17 years agoIf a beep was enabled, turn it off 3 seconds after resume.
njl [Tue, 8 Aug 2006 01:30:54 +0000 (01:30 +0000)]
If a beep was enabled, turn it off 3 seconds after resume.

MFC after: 3 days

17 years agoRemove a bogus i = 0.
kevlo [Tue, 8 Aug 2006 01:18:18 +0000 (01:18 +0000)]
Remove a bogus i = 0.
Approved by: cognet

17 years agoConnect sade to the build.
netchild [Mon, 7 Aug 2006 23:37:51 +0000 (23:37 +0000)]
Connect sade to the build.

17 years agoSay welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and disklabel part
netchild [Mon, 7 Aug 2006 23:35:49 +0000 (23:35 +0000)]
Say welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and disklabel part
of sysinstall. So sysinstall may retire now, we have the important non-install part
of it covered.

ATM it doesn't understand GEOM stuff (like mirror, stripe, raid, ...), but patches
to change this and to clean it up internally are more than welcome.

Submitted by: mami@nyitolap.hu

17 years agoForced commit to note repo copy from sysinstall.
netchild [Mon, 7 Aug 2006 23:20:23 +0000 (23:20 +0000)]
Forced commit to note repo copy from sysinstall.

Repo copy by: markm

17 years agoUse a low probe-priority to ensure that the emu10kx driver has a higher
netchild [Mon, 7 Aug 2006 23:00:36 +0000 (23:00 +0000)]
Use a low probe-priority to ensure that the emu10kx driver has a higher
priority than this one when both are available.

17 years ago"Fix typos in volume control DSP code."
netchild [Mon, 7 Aug 2006 22:56:41 +0000 (22:56 +0000)]
"Fix typos in volume control DSP code."

Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>

17 years ago"Fixe playback of mono files on stereo outputs. In previous version
netchild [Mon, 7 Aug 2006 22:55:21 +0000 (22:55 +0000)]
"Fixe playback of mono files on stereo outputs. In previous version
 mono files are played only on left channel."

Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>

17 years ago"Change type for flags bitmap to let use 1 as flag value without
netchild [Mon, 7 Aug 2006 22:50:26 +0000 (22:50 +0000)]
"Change type for flags bitmap to let use 1 as flag value without
 overflow (to -1)."

Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>

17 years ago"Workaround for sound lag in current snd_emu10kx driver. Real problem
netchild [Mon, 7 Aug 2006 22:44:01 +0000 (22:44 +0000)]
"Workaround for sound lag in current snd_emu10kx driver. Real problem
 is interaction between in-kernel sound buffer handling and hardware.
 With small buffer, there are times when both harwdare reads and
 kernel writes to the same buffer (it is only visible on slow machines, i
 think). I'm digging in channel.c and buffer.c to find a solution that
 allow use of large hardware buffers without sound lags - hardware can
 handle buffers up to 32Mb."

Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>

17 years agoReturn length from fwopen() file callback instead of zero.
phk [Mon, 7 Aug 2006 20:12:18 +0000 (20:12 +0000)]
Return length from fwopen() file callback instead of zero.

The symptom is that syslog() fails to log anything but the "ident"
string if LOG_PERROR is specified to openlog(3) and the extensible
printf is in action.

For unclear, likely quaint historical reasons, syslog uses fwopen()
on a stack buffer, rather than using the more straightforward
and faster snprintf().

Along the way, fflush(3) is called, and since the callback writer
function returns zero instead of the length "written", __SERR
naturally gets set on the filedescriptor.

The extensible printf, in difference from the normal printf refuses
to output anything to an __SERR marked filedescriptor, and thus
the actual syslog message is supressed.

MFC: after 2 weeks

17 years agoAdd missing #.
pjd [Mon, 7 Aug 2006 20:09:09 +0000 (20:09 +0000)]
Add missing #.

17 years agoWhen a user uses a hint to specify the IRQ for a link device, accept IRQs
jhb [Mon, 7 Aug 2006 19:52:30 +0000 (19:52 +0000)]
When a user uses a hint to specify the IRQ for a link device, accept IRQs
that aren't listed as valid in the link device's set of possible IRQs.
This allows the hints to be used to work around broken BIOSes that don't
specify the correct ste of possible IRQs.  A warning is issued in the
dmesg in this case to be consistent with the $PIR handling code.

MFC after: 1 week

17 years agoFix some minor nits in the README file of wesside
keramida [Mon, 7 Aug 2006 17:08:05 +0000 (17:08 +0000)]
Fix some minor nits in the README file of wesside

Reviewed by:   sam, Andrea Bittau <a.bittau@cs.ucl.ac.uk>

17 years ago- Improve and extend mark-up.
yar [Mon, 7 Aug 2006 16:05:55 +0000 (16:05 +0000)]
- Improve and extend mark-up.
- Don't use full path in .Nm (we just don't do that).
- Correct some frivolous and poorly rendering language,
  such as using possessive case for .Nm or .Fl .
- Use the same capitalization for "user ID" as in setuid(2) and getuid(2).
- Bring SEE ALSO in accord with the text.

MFC after: 5 days

17 years agoAdd line edit and history support to ngctl(8) via editline(3).
glebius [Mon, 7 Aug 2006 14:17:05 +0000 (14:17 +0000)]
Add line edit and history support to ngctl(8) via editline(3).

Details:
- The main thread runs editline(3) functions, that can block.
- A separate thread is launched to monitor netgraph sockets.
- The access to the descriptors is protected by a mutex. At
  runtime the monitoring thread owns the mutex. When the main
  thread reads a command from el_gets() it asks the monitoring
  thread to release a mutex and sleep until the main thread
  processes the command.

This makes ngctl(8) depend on libedit, and libpthread. Thus, the
new functionality isn't compiled in if release is being built
with -DRELEASE_CRUNCH.

PR: bin/87352
Reviewed by: ru, Nuno Antunes <nuno.antunes gmail.com>

17 years agoRecognize the 5750 C2.
glebius [Mon, 7 Aug 2006 12:51:50 +0000 (12:51 +0000)]
Recognize the 5750 C2.

Obtained from: OpenBSD (brad)

17 years agoMove definition of UNIX domain socket protosw and domain entries from
rwatson [Mon, 7 Aug 2006 12:02:43 +0000 (12:02 +0000)]
Move definition of UNIX domain socket protosw and domain entries from
uipc_proto.c to uipc_usrreq.c, making localdomain static.  Remove
uipc_proto.c as it's no longer used.  With this change, UNIX domain
sockets are entirely encapsulated in uipc_usrreq.c.

17 years agoSpell "determine" correctly.
keramida [Mon, 7 Aug 2006 10:33:07 +0000 (10:33 +0000)]
Spell "determine" correctly.

Reviewed by: jb

17 years agoUpdate NetBSD and OpenBSD SCM tags to match the reality. Note that
delphij [Mon, 7 Aug 2006 10:29:18 +0000 (10:29 +0000)]
Update NetBSD and OpenBSD SCM tags to match the reality.  Note that
NetBSD revisions 1.8 and 1.9 are not actually applied to our code base
because we have solved the problem differently, therefore, these changes
can be safely skipped.

17 years agoMerge all applicable NetBSD and OpenBSD improvements over this manpage
delphij [Mon, 7 Aug 2006 10:22:08 +0000 (10:22 +0000)]
Merge all applicable NetBSD and OpenBSD improvements over this manpage
till NetBSD mailwrapper.8,v 1.11 and OpenBSD mailwrapper.8,v 1.8:

 - Separate exit status out from diagnostics section.
 - Fix typos.

Obtained from: NetBSD, OpenBSD
MFC After: Along with mailwrapper(8) updates.

17 years ago- Use log(9) instead of printf(9).
glebius [Mon, 7 Aug 2006 08:05:10 +0000 (08:05 +0000)]
- Use log(9) instead of printf(9).
- Print node ID, where possible.
- Prepend log messages with function name, or at least with "ng_pppoe".

Reviewed by: julian
Tested by: Joao Barros <joao.barros gmail.com>

17 years agoFix things I misadvised to Nate Lawson:
yar [Mon, 7 Aug 2006 07:28:47 +0000 (07:28 +0000)]
Fix things I misadvised to Nate Lawson:

- "Ns No" is redundant, so reduce it to just "Ns";
- use Li to mark up CPU and system power states because here they are
  just strings to be typed literally (add more such mark-up as well);
- the best practice of typesetting tells us to use an en-dash to
  indicate a closed range; fortunately, groff_char(7) provides such a symbol.

In addition, consistently use a comma between independent clauses
coordinated by a conjunction.

Pointed out by: ru (mark-up part)
MFC after: 3 days

17 years agoadd wesside
sam [Mon, 7 Aug 2006 00:05:32 +0000 (00:05 +0000)]
add wesside

17 years agoanother tool that uses the raw tx api
sam [Mon, 7 Aug 2006 00:05:04 +0000 (00:05 +0000)]
another tool that uses the raw tx api

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>