]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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>

17 years agouse proper tx series
sam [Sun, 6 Aug 2006 23:50:56 +0000 (23:50 +0000)]
use proper tx series

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

17 years agoEliminate the unnecessary acquisition and release of the page queues lock
alc [Sun, 6 Aug 2006 19:36:07 +0000 (19:36 +0000)]
Eliminate the unnecessary acquisition and release of the page queues lock
from pmap_pinit().

17 years agoMake mpo_associate_nfsd_label() return void, not int, to match
rwatson [Sun, 6 Aug 2006 16:56:15 +0000 (16:56 +0000)]
Make mpo_associate_nfsd_label() return void, not int, to match
mac_associate_nfsd_label().

Head nod: csjp

17 years agoEliminate a pair of unneeded parentheses slipped in from previous version of
marck [Sun, 6 Aug 2006 14:23:50 +0000 (14:23 +0000)]
Eliminate a pair of unneeded parentheses slipped in from previous version of
fix.

Noticed by: ru

17 years agoAdd identifier for the Epson CX3650 all-in-one scanner function.
bms [Sun, 6 Aug 2006 12:01:42 +0000 (12:01 +0000)]
Add identifier for the Epson CX3650 all-in-one scanner function.
This enables the scanner function on these devices to be detected
and probed by uscanner(4), but only when ulpt is not loaded.

PR: usb/92462
Submitted by: Friedrich Volkmann
MFC after: 30 days

17 years ago- Added ability to provide (optional) path to the kernel sources
rik [Sun, 6 Aug 2006 11:06:35 +0000 (11:06 +0000)]
- Added ability to provide (optional) path to the kernel sources
- Fixed path for ${s}/conf/files.FOO and a note that it should be merged into
corresponding file to be able to compile the kernel
- Changed kernel configuration example with the driver: it is not produced by
copying Generic but by including it
- Changed from automatic module building to asking an user if it whants to

Reviewed by:    julian@

17 years agoFix compilation.
rik [Sun, 6 Aug 2006 11:04:22 +0000 (11:04 +0000)]
Fix compilation.

Reviewed by: julian@

17 years agoImprove commenting of vaccess(), making sure to be clear that the ifdef
rwatson [Sun, 6 Aug 2006 10:43:35 +0000 (10:43 +0000)]
Improve commenting of vaccess(), making sure to be clear that the ifdef
capabilities code is there for reference and never actually used.  Slight
style tweak.

17 years agoDon't set pru_sosend, pru_soreceive, pru_sopoll to default values, as they
rwatson [Sun, 6 Aug 2006 10:39:21 +0000 (10:39 +0000)]
Don't set pru_sosend, pru_soreceive, pru_sopoll to default values, as they
are already set to default values.

17 years agostrlen(3) returns size_t, which is not strictly equivalent to int an 64-bit
marck [Sun, 6 Aug 2006 08:37:46 +0000 (08:37 +0000)]
strlen(3) returns size_t, which is not strictly equivalent to int an 64-bit
archs, hence printf(3) warning.  Fix this.

Noticed by: tinderbox
Approved by: rse

17 years agoEliminate the acquisition and release of the page queues lock around a call
alc [Sun, 6 Aug 2006 06:29:16 +0000 (06:29 +0000)]
Eliminate the acquisition and release of the page queues lock around a call
to vm_page_sleep_if_busy().

17 years agoReduce the scope of the page queues lock in kern_sendfile() now that
alc [Sun, 6 Aug 2006 01:00:09 +0000 (01:00 +0000)]
Reduce the scope of the page queues lock in kern_sendfile() now that
vm_page_sleep_if_busy() no longer requires the caller to hold the page
queues lock.

17 years agoEliminate the acquisition and release of the page queues lock around a call
alc [Sun, 6 Aug 2006 00:17:17 +0000 (00:17 +0000)]
Eliminate the acquisition and release of the page queues lock around a call
to vm_page_sleep_if_busy().

17 years agoChange vm_page_sleep_if_busy() so that it no longer requires the caller to
alc [Sun, 6 Aug 2006 00:15:40 +0000 (00:15 +0000)]
Change vm_page_sleep_if_busy() so that it no longer requires the caller to
hold the page queues lock.

17 years agoWith socket code no longer in svr4_stream.c, MAC includes are no longer
rwatson [Sat, 5 Aug 2006 22:04:21 +0000 (22:04 +0000)]
With socket code no longer in svr4_stream.c, MAC includes are no longer
required, so GC.

17 years agoRemove register, use ANSI function headers.
rwatson [Sat, 5 Aug 2006 21:40:59 +0000 (21:40 +0000)]
Remove register, use ANSI function headers.

17 years agoWe now spell "inode" as "vnode" in the VFS layer, so update comment
rwatson [Sat, 5 Aug 2006 21:08:47 +0000 (21:08 +0000)]
We now spell "inode" as "vnode" in the VFS layer, so update comment
for new world order.

MFC after: 3 days
Pointed out by: mckusick

17 years agoAdd libbsm to the list of our standard libraries.
yar [Sat, 5 Aug 2006 20:38:23 +0000 (20:38 +0000)]
Add libbsm to the list of our standard libraries.

Approved by: ru

17 years agoAdd OpenSolaris compatibility definitions which are only visible if
jb [Sat, 5 Aug 2006 20:35:11 +0000 (20:35 +0000)]
Add OpenSolaris compatibility definitions which are only visible if
_SOLARIS_C_SOURCE is defined.

The _OpenSolaris_version is set to match the last import of the OpenSolaris
tar ball and is based on the date in that file name.

17 years agoBack out 1.272. The LAPIC timer conflicts with C2/3 on various systems,
njl [Sat, 5 Aug 2006 20:28:50 +0000 (20:28 +0000)]
Back out 1.272.  The LAPIC timer conflicts with C2/3 on various systems,
and so users get hangs until interrupts are generated another way.  We'll
have to find a way to make the 2 work together before re-enabling this by
default.

17 years agoAdd support for the generated file systrace_args.c.
jb [Sat, 5 Aug 2006 19:25:14 +0000 (19:25 +0000)]
Add support for the generated file systrace_args.c.

17 years agoRemove a stale comment.
alc [Sat, 5 Aug 2006 19:07:07 +0000 (19:07 +0000)]
Remove a stale comment.

17 years agoUse safe strlcpy rather than unsafe strncpy. After marcel's last fix,
imp [Sat, 5 Aug 2006 18:22:11 +0000 (18:22 +0000)]
Use safe strlcpy rather than unsafe strncpy.  After marcel's last fix,
there was still one overflow possible.  strlcpy is faster anyway
because it doesn't unexpectedly zero the entire length of the string
when copying short strings....

17 years agomake it work after the api change
sam [Sat, 5 Aug 2006 18:21:04 +0000 (18:21 +0000)]
make it work after the api change

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

17 years agoSince soisdisconnected() is no longer called in pru_detach(), call it
rwatson [Sat, 5 Aug 2006 14:14:34 +0000 (14:14 +0000)]
Since soisdisconnected() is no longer called in pru_detach(), call it
near consumers of at_pcbdisconnect() (_close, _abort).

17 years agoUse the SLIST_NEXT macro instead of sle_next.
stefanf [Sat, 5 Aug 2006 13:58:50 +0000 (13:58 +0000)]
Use the SLIST_NEXT macro instead of sle_next.

Checked with: cmp(1)

17 years agoDo not pass-through the tailing newline character from the ctime(3)
rse [Sat, 5 Aug 2006 12:50:38 +0000 (12:50 +0000)]
Do not pass-through the tailing newline character from the ctime(3)
output to setproctitle(3) in order to get rid of the ugly two-character
escape sequence "\n" in the ps(1) output of a dump(8) process:

<< [...] finished in 0:00 at Sat Aug  5 14:44:39 2006\n (dump)
>> [...] finished in 0:00 at Sat Aug  5 14:44:39 2006 (dump)

17 years agoUnbreak nForce3 SATA support.
sos [Sat, 5 Aug 2006 11:41:46 +0000 (11:41 +0000)]
Unbreak nForce3 SATA support.

17 years agohook packet injection tools up
sam [Sat, 5 Aug 2006 05:20:40 +0000 (05:20 +0000)]
hook packet injection tools up

17 years agotest programs for 802.11 packet injection
sam [Sat, 5 Aug 2006 05:18:03 +0000 (05:18 +0000)]
test programs for 802.11 packet injection

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

17 years ago802.11 packet injection test tool
sam [Sat, 5 Aug 2006 05:13:31 +0000 (05:13 +0000)]
802.11 packet injection test tool

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

17 years agocrude stumbler using raw packet api's
sam [Sat, 5 Aug 2006 05:12:03 +0000 (05:12 +0000)]
crude stumbler using raw packet api's

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

17 years agoraw tx stat
sam [Sat, 5 Aug 2006 05:09:20 +0000 (05:09 +0000)]
raw tx stat

17 years agoraw 802.11 packet transmit support
sam [Sat, 5 Aug 2006 05:07:17 +0000 (05:07 +0000)]
raw 802.11 packet transmit support

Joint work with: Andrea Bittau <a.bittau@cs.ucl.ac.uk>

17 years agoraw 802.11 packet transmit support
sam [Sat, 5 Aug 2006 04:58:25 +0000 (04:58 +0000)]
raw 802.11 packet transmit support

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

17 years agoRemove reference to PTI cards. They haven't been functioning
mjacob [Sat, 5 Aug 2006 04:21:20 +0000 (04:21 +0000)]
Remove reference to PTI cards. They haven't been functioning
or around for probably at least 5 years.

17 years agoAdd OpenSolaris compatibility definitions for stat64 and fstat64 which
jb [Fri, 4 Aug 2006 23:47:30 +0000 (23:47 +0000)]
Add OpenSolaris compatibility definitions for stat64 and fstat64 which
are only visible if _SOLARIS_C_SOURCE is defined.

Note thar FreeBSD stat() and fstat() are 64-bit functions now and Solaris
still persists with both 32- and 64-bit versions. When I query this, I am
referred to: <http://www.unix.org/version2/whatsnew/lfs20mar.html>.
But when you look at the main page of unix.org you will see that the
Single Unix Specification <http://www.unix.org/version3/> is the most
recent standard they are pushing. And there are no stat64() fstat64()
functions defined there. I guess this just goes to prove that there are so
many standards, you can take your pick.

17 years agoAdd a type definition for the cyclic timer callback function.
jb [Fri, 4 Aug 2006 23:31:16 +0000 (23:31 +0000)]
Add a type definition for the cyclic timer callback function.

The cyclic timer is a high-resolution timer allows timeouts at nanosecond
intervals where hardware support is available. Typically on i386 there
is no HPET (high performance event timer) like the one Intel started
specifying some time in 2004, so the best that tye cyclic timer subsystem
can do is run at Hz.

The cyclic timer code itself is ported from OpenSolaris and is covered
by the CDDL, so it is only loaded as a module. This function type definition
is used in machine-dependent code to provide a hook for the module to
register it's callback function.

17 years agoAdd some OpenSolaris compatibility definitions which are only visible
jb [Fri, 4 Aug 2006 23:10:11 +0000 (23:10 +0000)]
Add some OpenSolaris compatibility definitions which are only visible
if _SOLARIS_C_SOURCE is defined.

Add two function prototypes which are required to feed high-resolution
times to DTrace. DTrace requires it's own functions with the dtrace_
prefix so that it knows not to try and trace them. This is a rule that
code executed from the DTrace probe context must obey.

The two functions are only be compiled if the KDTRACE option is defined
to compile in kernel support for loading the DTrace modules.

17 years agoAdd some compatibility definitions for OpenSolaris source.
jb [Fri, 4 Aug 2006 22:54:10 +0000 (22:54 +0000)]
Add some compatibility definitions for OpenSolaris source.

These are only defined if _SOLARIS_C_SOURCE is defined, so they don't
polute the FreeBSD compile environment.

They are used all over the OpenSolaris source, so defining them here
removes the need to continually resolve differences in FreeBSD system
haeder files from Solaris header files.

17 years agoFix for architectures where sizeof(void *) > sizeof(int).
jb [Fri, 4 Aug 2006 21:45:08 +0000 (21:45 +0000)]
Fix for architectures where sizeof(void *) > sizeof(int).

17 years agoBuild shared on PowerPC now that the bug has been found and fixed.
marcel [Fri, 4 Aug 2006 21:29:39 +0000 (21:29 +0000)]
Build shared on PowerPC now that the bug has been found and fixed.

17 years agoThe KAME compatability shims in net_osdep.h have been removed.
brooks [Fri, 4 Aug 2006 21:29:22 +0000 (21:29 +0000)]
The KAME compatability shims in net_osdep.h have been removed.

17 years agoFix (static) buffer overflow bug. The dest buffer is of size MAXPATHLEN,
marcel [Fri, 4 Aug 2006 21:28:42 +0000 (21:28 +0000)]
Fix (static) buffer overflow bug. The dest buffer is of size MAXPATHLEN,
so dest[MAXPATHLEN] falls outside the buffer.  This bug corrupted
arenas[0] defined in libc's malloc.c on PowerPC when kldxref is shared,
which triggered a delayed SIGSERV.

17 years agoWith exception of the if_name() macro, all definitions in net_osdep.h
brooks [Fri, 4 Aug 2006 21:27:40 +0000 (21:27 +0000)]
With exception of the if_name() macro, all definitions in net_osdep.h
were unused or already in if_var.h so add if_name() to if_var.h and
remove net_osdep.h along with all references to it.

Longer term we may want to kill off if_name() entierly since all modern
BSDs have if_xname variables rendering it unnecessicary.

17 years agoUse TAILQ_EMPTY instead of checking if TAILQ_FIRST is NULL.
brooks [Fri, 4 Aug 2006 21:15:09 +0000 (21:15 +0000)]
Use TAILQ_EMPTY instead of checking if TAILQ_FIRST is NULL.

17 years agoIncrease local reserved (high && low) storage in each command
mjacob [Fri, 4 Aug 2006 20:20:55 +0000 (20:20 +0000)]
Increase local reserved (high && low) storage in each command
structure from 2 to 3 words.

17 years agoFix na_fcentry_t to not have a lun field. Fix indentation in handly
mjacob [Fri, 4 Aug 2006 20:20:00 +0000 (20:20 +0000)]
Fix na_fcentry_t to not have a lun field. Fix indentation in handly
the notify structs. Fix messages in isp_got_msg_fc to print out the
loop id of the sender- not the wwpn which will be synthesized later,
if possible, in the outer layers. Put in debug printouts to pair
a notify ack to a notify so one can see the start/close of an
immediate notify event. Put in spsace for TASK MANAGEMENT response
flags (which we don't do yet).

17 years agoInitialize 2300 request/response pointers in isp_reset- not in
mjacob [Fri, 4 Aug 2006 20:14:52 +0000 (20:14 +0000)]
Initialize 2300 request/response pointers in isp_reset- not in
isp_fibre_init.

17 years agoRename ioctl driven task management functions so they
mjacob [Fri, 4 Aug 2006 20:14:03 +0000 (20:14 +0000)]
Rename ioctl driven task management functions so they
don't collide with task management definitions on other
platforms.

17 years agoForgot to add mountlate to the Makefile.
des [Fri, 4 Aug 2006 18:37:03 +0000 (18:37 +0000)]
Forgot to add mountlate to the Makefile.

17 years agoBy default "autosrc" is off.
glebius [Fri, 4 Aug 2006 18:28:57 +0000 (18:28 +0000)]
By default "autosrc" is off.

Submitted by: ru

17 years agoCopy the link-layer address from our ifnet pointer at reset time
gallatin [Fri, 4 Aug 2006 17:58:40 +0000 (17:58 +0000)]
Copy the link-layer address from our ifnet pointer at reset time
so that the mac address can be overridden.

17 years agoBuild libthread_db on PowerPC.
marcel [Fri, 4 Aug 2006 17:56:31 +0000 (17:56 +0000)]
Build libthread_db on PowerPC.

17 years agoAdd stub functions. This allows libthread_db to be built and installed,
marcel [Fri, 4 Aug 2006 17:55:55 +0000 (17:55 +0000)]
Add stub functions. This allows libthread_db to be built and installed,
which means that we also have <thread_db.h>.

17 years agoDont overwrite cpu_model in the case of Via's C3-CPU.
mr [Fri, 4 Aug 2006 13:49:16 +0000 (13:49 +0000)]
Dont overwrite cpu_model in the case of Via's C3-CPU.

Noticed by:  Mike Tancsa
MFC after: 2 days

17 years agoIn symlook_obj(): fix _rtld_error output.
delphij [Fri, 4 Aug 2006 13:37:54 +0000 (13:37 +0000)]
In symlook_obj(): fix _rtld_error output.

MFC After: 2 weeks

17 years agoTurn off by default "feature" that overwrites MAC address
glebius [Fri, 4 Aug 2006 13:36:27 +0000 (13:36 +0000)]
Turn off by default "feature" that overwrites MAC address
on output frames.

Many people were confused with not working CARP, ng_bridge(4)
and other subsystems, because ng_ether(4) overwritten source
MAC address.

17 years agoCheck if the filedes of kevent is expected one. Though our
ume [Fri, 4 Aug 2006 12:26:07 +0000 (12:26 +0000)]
Check if the filedes of kevent is expected one.  Though our
old resolver opened just one socket, BIND9's resolver may
open more than one sockets.  And, BIND9's resolver doesn't
close the socket on timeout.  So, we need this check.

Reported by: freebsd-cvs-src__at__oldach.net (Helge Oldach), bz
Hinted by: rwatson

17 years agoRemove useless NULL pointer check: we are using M_WAITOK flag for memory
oleg [Fri, 4 Aug 2006 10:50:51 +0000 (10:50 +0000)]
Remove useless NULL pointer check: we are using M_WAITOK flag for memory
allocation.

Submitted by: Andrey Elsukov <bu7cher at yandex dot ru>
Approved by: glebius (mentor)
MFC after: 1 week