]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoDesupport the undocumented NO_QUAD option, just don't compile
Ruslan Ermilov [Thu, 16 Mar 2006 14:22:19 +0000 (14:22 +0000)]
Desupport the undocumented NO_QUAD option, just don't compile
the quad support on 64-bit platforms.

18 years agoRemove nested includes of <sys/_lock.h> and <sys/_mutex.h> which spill into
Poul-Henning Kamp [Thu, 16 Mar 2006 11:19:36 +0000 (11:19 +0000)]
Remove nested includes of <sys/_lock.h> and <sys/_mutex.h> which spill into
userland.  The comment indicated that something in userland needed them, but
make universe can't seem to find any traces of it.

Move <sys/queue.h> include up.

18 years agoCorrect two vm object reference leaks in error cases.
Alan Cox [Thu, 16 Mar 2006 08:51:59 +0000 (08:51 +0000)]
Correct two vm object reference leaks in error cases.

Submitted by: davidxu

18 years agoRestore CHN_F_BUSY flag which was removed accidentally in previous commit.
Ariff Abdullah [Thu, 16 Mar 2006 08:01:10 +0000 (08:01 +0000)]
Restore CHN_F_BUSY flag which was removed accidentally in previous commit.

18 years agoWhen building for pc98, don't create stray objects in the
Ruslan Ermilov [Thu, 16 Mar 2006 07:31:50 +0000 (07:31 +0000)]
When building for pc98, don't create stray objects in the
usr.sbin/pcvt/keycap source directory.

Found by: phk
MFC after: 3 days

18 years agoChange soabort() from returning int to returning void, since all
Robert Watson [Thu, 16 Mar 2006 07:03:14 +0000 (07:03 +0000)]
Change soabort() from returning int to returning void, since all
consumers ignore the return value, soabort() is required to succeed,
and protocols produce errors here to report multiple freeing of the
pcb, which we hope to eliminate.

18 years agoFix severe 8bit integer overflow during channel creation and destruction,
Ariff Abdullah [Thu, 16 Mar 2006 04:12:49 +0000 (04:12 +0000)]
Fix severe 8bit integer overflow during channel creation and destruction,
especially for vchans. It turns out that channel numbering always depend
on d->devcount counter (which keep increasing), while PCMMKMINOR() truncate
everything to 8bit length. At some point the truncation cause the newly
created character device overlapped with the existence one, causing erratic
overall system behaviour and panic. Easily reproduce with something like:

(Luckily, only root can reproduce this)

while : ; do
sysctl hw.snd.pcm0.vchans=200
sysctl hw.snd.pcm0.vchans=100
done

- Enforce channel/chardev numbering within 8bit boundary. Return E2BIG
  if necessary.
- Traverse d->channels SLIST and try to reclaim "free" counter during channel
  creation. Don't rely on d->devcount at all.
- Destroy vchans in reverse order.

Anyway, this is not the fault of vchans. It is just that vchans are so cute
and begging to be abused ;) . Don't blame her.

Old, hidden bugs.. sigh..

MFC after: 3 days

18 years agoRemove the nls/*/charset files to the exclude list. These files
Hajimu UMEMOTO [Thu, 16 Mar 2006 04:01:27 +0000 (04:01 +0000)]
Remove the nls/*/charset files to the exclude list.  These files
are required for NLS catalog support.

18 years agoFix a race between file operations and rfork(RFCFDG) by parking
David Xu [Wed, 15 Mar 2006 23:24:14 +0000 (23:24 +0000)]
Fix a race between file operations and rfork(RFCFDG) by parking
all other threads at user boundary, the race can crash kernel
under stress testing.

Reviewed by: jhb
MFC after: 3 days

18 years agowhen doing s/w crypto make sure work is done w/ a writable mbuf chain;
Sam Leffler [Wed, 15 Mar 2006 21:27:08 +0000 (21:27 +0000)]
when doing s/w crypto make sure work is done w/ a writable mbuf chain;
this corrects problems with drivers that rely on the host to do
crypto (iwi, ipw, ral, ural, wi (hostap), awi)

Hard work by: luigi, mlaier
Reviewed by: luigi, mlaier
MFC after: 1 week

18 years agoIf a keymap file is not found for the selected country then default to the more
Andrew Thompson [Wed, 15 Mar 2006 21:20:01 +0000 (21:20 +0000)]
If a keymap file is not found for the selected country then default to the more
common USA ISO rather than index 0 (Belgian).

Reviewed by: jhb
MFC after: 1 day

18 years agopromote fast ipsec's m_clone routine for public use; it is renamed
Sam Leffler [Wed, 15 Mar 2006 21:11:11 +0000 (21:11 +0000)]
promote fast ipsec's m_clone routine for public use; it is renamed
m_unshare and the caller can now control how mbufs are allocated

Reviewed by: andre, luigi, mlaier
MFC after: 1 week

18 years agobuild ipw(4) and iwi(4) modules on i386 and amd64 only.
Damien Bergamini [Wed, 15 Mar 2006 20:58:44 +0000 (20:58 +0000)]
build ipw(4) and iwi(4) modules on i386 and amd64 only.

18 years agoBack out accidentally committed protosw.h:1.49. One of those days. It
Robert Watson [Wed, 15 Mar 2006 20:41:15 +0000 (20:41 +0000)]
Back out accidentally committed protosw.h:1.49.  One of those days.  It
will be recommitted with the remainder of the change in the next day or
two.

Submitted by: thompsa

18 years agoDisable the "cputick increased..." message now that the dust has settled.
Poul-Henning Kamp [Wed, 15 Mar 2006 20:22:32 +0000 (20:22 +0000)]
Disable the "cputick increased..." message now that the dust has settled.

18 years agoAdd definitions for MD5_BLOCK_LENGTH, MD5_DIGEST_LENGTH and
Andre Oppermann [Wed, 15 Mar 2006 19:47:12 +0000 (19:47 +0000)]
Add definitions for MD5_BLOCK_LENGTH, MD5_DIGEST_LENGTH and
MD5_DIGEST_STRING_LENGTH.

MFC after: 3 days

18 years agoAdd link status descriptions and related structures for userland
Andre Oppermann [Wed, 15 Mar 2006 19:43:25 +0000 (19:43 +0000)]
Add link status descriptions and related structures for userland
applications.

Open[BGP|OSPF]D make use of this to determine the link status of
interfaces to make the right routing descisions.

Obtained from: OpenBSD
MFC after: 3 days

18 years ago- Fill in the correct rtm_index for RTM_ADD and RTM_CHANGE messages.
Andre Oppermann [Wed, 15 Mar 2006 19:39:09 +0000 (19:39 +0000)]
- Fill in the correct rtm_index for RTM_ADD and RTM_CHANGE messages.

- Allow RTM_CHANGE to change a number of route flags as specified by
  RTF_FMASK.

- The unused rtm_use field in struct rt_msghdr is redesignated as
  rtm_fmask field to communicate route flag changes in RTM_CHANGE
  messages from userland.  The use count of a route was moved to
  rtm_rmx a long time ago.  For source code compatibility reasons
  a define of rtm_use to rtm_fmask is provided.

These changes faciliate running of multiple cooperating routing
daemons at the same time without causing undesired interference.
Open[BGP|OSPF]D make use of these features to have IGP routes
override EGP ones.

Obtained from: OpenBSD (claudio@)
MFC after: 3 days

18 years agoAdd new modes.
Søren Schmidt [Wed, 15 Mar 2006 19:32:43 +0000 (19:32 +0000)]
Add new modes.

18 years agoFix memory leak introduced in previous revision.
Alexander Leidinger [Wed, 15 Mar 2006 19:23:08 +0000 (19:23 +0000)]
Fix memory leak introduced in previous revision.

Discussed with: phk

18 years agoCorrect spelling of 0x4000 in previous commit. This one line change from
Robert Watson [Wed, 15 Mar 2006 19:02:43 +0000 (19:02 +0000)]
Correct spelling of 0x4000 in previous commit.  This one line change from
a 42k patch seemed easier to retype than apply, but apparently not. :-)

Submitted by: pjd

18 years agoConstfy errstr as it is in OpenBSD to unbreak the build.
Max Laier [Wed, 15 Mar 2006 16:28:12 +0000 (16:28 +0000)]
Constfy errstr as it is in OpenBSD to unbreak the build.

Pointed out by: Suken Woo, Martin Wilke, Wesley Morgan

18 years agoFix the spelling of MAN to a modern syntax.
Ruslan Ermilov [Wed, 15 Mar 2006 15:49:38 +0000 (15:49 +0000)]
Fix the spelling of MAN to a modern syntax.

18 years agoFree private data when deleting hook.
Gleb Smirnoff [Wed, 15 Mar 2006 15:41:36 +0000 (15:41 +0000)]
Free private data when deleting hook.

PR: kern/93952
Submitted by: Antoine Brodin <antoine.brodin laposte.net>

18 years agoAdd a non-optional newline after ".Bx".
Ruslan Ermilov [Wed, 15 Mar 2006 14:45:45 +0000 (14:45 +0000)]
Add a non-optional newline after ".Bx".

18 years agoMake ${SUBDIR_TARGETS} work at the uppermost level as well.
Ruslan Ermilov [Wed, 15 Mar 2006 14:22:32 +0000 (14:22 +0000)]
Make ${SUBDIR_TARGETS} work at the uppermost level as well.

18 years agoRevert previous changes as we do support the .Ox macro for OpenBSD.
Andre Oppermann [Wed, 15 Mar 2006 14:05:41 +0000 (14:05 +0000)]
Revert previous changes as we do support the .Ox macro for OpenBSD.

Pointed out by: ceri, ru, delphij

18 years agoAs with socket consumer references (so_count), make sofree() return
Robert Watson [Wed, 15 Mar 2006 12:45:35 +0000 (12:45 +0000)]
As with socket consumer references (so_count), make sofree() return
without GC'ing the socket if a strong protocol reference to the socket
is present (SS_PROTOREF).

18 years agoAdd SS_PROTOREF socket flag, which represents a strong reference by the
Robert Watson [Wed, 15 Mar 2006 12:30:06 +0000 (12:30 +0000)]
Add SS_PROTOREF socket flag, which represents a strong reference by the
protocol to the socket.  Normally protocol references are weak: that is,
the socket layer can tear down the socket (and hence protocol state)
when it finds convenient.  This flag will allow the protocol to
explicitly declare to the socket layer that it is maintaining a
strong reference, rather than the current implicit model associated
with so_pcb pointer values and repeated attempts to possibly free the
socket.

18 years agoIf we don't want HTML docs, we might still want manpages.
Ruslan Ermilov [Wed, 15 Mar 2006 11:17:31 +0000 (11:17 +0000)]
If we don't want HTML docs, we might still want manpages.
If we don't want manpages, we might still want HTML docs.

18 years agoStyle: NO_MAN doesn't need any value.
Ruslan Ermilov [Wed, 15 Mar 2006 10:46:38 +0000 (10:46 +0000)]
Style: NO_MAN doesn't need any value.

18 years agoNo need to define NO_MAN here.
Ruslan Ermilov [Wed, 15 Mar 2006 10:41:58 +0000 (10:41 +0000)]
No need to define NO_MAN here.

18 years agoStyle.
Ruslan Ermilov [Wed, 15 Mar 2006 10:40:01 +0000 (10:40 +0000)]
Style.

18 years agoAdd a_fdidx to comment prototype for fifo_open().
Robert Watson [Wed, 15 Mar 2006 10:15:35 +0000 (10:15 +0000)]
Add a_fdidx to comment prototype for fifo_open().

MFC after: 3 days
Submitted by: Kostik Belousov <kostikbel at gmail dot com>

18 years agoAdd ALPS glide point ID and some compatibility IDs.
Takanori Watanabe [Wed, 15 Mar 2006 07:04:33 +0000 (07:04 +0000)]
Add ALPS glide point ID and some compatibility IDs.

PR: kern/75008

18 years agoClose descriptor in retrieve_x509_marker function.
Kirill Ponomarev [Wed, 15 Mar 2006 01:19:23 +0000 (01:19 +0000)]
Close descriptor in retrieve_x509_marker function.

PR: bin/71594
Submitted by: Dan Lukes <dan@obluda.cz>

18 years agoUse strtonum now that we have it in libc as well.
Max Laier [Wed, 15 Mar 2006 00:30:19 +0000 (00:30 +0000)]
Use strtonum now that we have it in libc as well.

18 years agoadd ath_hal glue
Sam Leffler [Tue, 14 Mar 2006 22:40:44 +0000 (22:40 +0000)]
add ath_hal glue

MFC after: 3 days

18 years agoPOSIXed strtoll() (and ours one too) can set errno to EINVAL, so check
Andrey A. Chernov [Tue, 14 Mar 2006 19:53:03 +0000 (19:53 +0000)]
POSIXed strtoll() (and ours one too) can set errno to EINVAL, so check
it first.

Approved by:    andre

18 years agoWhen opening a trace file, open O_NONBLOCK so that ktrace doesn't stall
Robert Watson [Tue, 14 Mar 2006 19:32:03 +0000 (19:32 +0000)]
When opening a trace file, open O_NONBLOCK so that ktrace doesn't stall
if the target is a fifo.  After opening a trace file, check that it is a
regular file, and if not, return an error.

MFC after: 3 days
Reported by: kris
PR: 94278

18 years agoIf fifo_open() is called with a negative file descriptor, return EINVAL
Robert Watson [Tue, 14 Mar 2006 19:29:45 +0000 (19:29 +0000)]
If fifo_open() is called with a negative file descriptor, return EINVAL
rather than panicking later.  This can occur if the kernel calls
vn_open() on a fifo, as there will be no associated file descriptor,
and therefore the file descriptor operations cannot be modified to
point to the fifo operation set.

MFC after: 3 days
Reported by: Martin <nakal at nurfuerspam dot de>
PR: 94278

18 years agoTeach bthidd(8) to reload its config when SIGHUP is received.
Maksim Yevmenkin [Tue, 14 Mar 2006 19:29:40 +0000 (19:29 +0000)]
Teach bthidd(8) to reload its config when SIGHUP is received.

Submitted by: Iain Hibbert < plunky at rya-online dot net >
MFC after: 3 days

18 years agoExport SMBIOS serial numbers by default. To turn it off, use
Jung-uk Kim [Tue, 14 Mar 2006 19:02:00 +0000 (19:02 +0000)]
Export SMBIOS serial numbers by default.  To turn it off, use
'BOOT_HIDE_SERIAL_NUMBERS' knob.

Suggested by: ceri

18 years agoAdd missing libdata/ldconfig[32] entries.
Joe Marcus Clarke [Tue, 14 Mar 2006 18:23:35 +0000 (18:23 +0000)]
Add missing libdata/ldconfig[32] entries.

Approved by: portmgr (implicit)

18 years agoImport OpenBSD's manual page to the sys/sys/hash.c functions imported two
Andre Oppermann [Tue, 14 Mar 2006 17:19:09 +0000 (17:19 +0000)]
Import OpenBSD's manual page to the sys/sys/hash.c functions imported two
days earlier.

Obtained from: OpenBSD

18 years agoAdd link:
Jesus R. Camou [Tue, 14 Mar 2006 17:05:00 +0000 (17:05 +0000)]
Add link:

rc.conf.local.5->rc.conf.5.

PR: docs/87698
Reported by: Marian Cerny <jojo@matfyz.cz>
Submitted by: Daniel Gerzo <danger@rulez.sk>
Approved by: trhodes (mentor)
MFC after: 3 days

18 years agoFix HISTORY and point to OpenBSD.
Andre Oppermann [Tue, 14 Mar 2006 17:01:21 +0000 (17:01 +0000)]
Fix HISTORY and point to OpenBSD.

18 years agoImport of OpenBSD's strtonum(3) which is a nicer version of strtoll(3)
Andre Oppermann [Tue, 14 Mar 2006 16:57:30 +0000 (16:57 +0000)]
Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3)
providing proper error checking and other improvements.

Obtained from: OpenBSD
Requested by: flz (to port Open[BGP|OSPF]D)
MFC after: 3 days

18 years agoDon't allow userland to set hardware watch points on kernel memory at all.
John Baldwin [Tue, 14 Mar 2006 16:13:55 +0000 (16:13 +0000)]
Don't allow userland to set hardware watch points on kernel memory at all.
Previously, we tried to allow this only for root.  However, we were calling
suser() on the *target* process rather than the current process.  This
means that if you can ptrace() a process running as root you can set a
hardware watch point in the kernel.  In practice I think you probably have
to be root in order to pass the p_candebug() checks in ptrace() to attach
to a process running as root anyway.  Rather than fix the suser(), I just
axed the entire idea, as I can't think of any good reason _at all_ for
userland to set hardware watch points for KVM.

MFC after: 3 days
Also thinks hardware watch points on KVM from userland are bad: bde, rwatson

18 years ago1. Count last time slice, this intends to fix
David Xu [Tue, 14 Mar 2006 04:00:21 +0000 (04:00 +0000)]
1. Count last time slice, this intends to fix
   "calcru: runtime went backwards" bug for threaded process.
2. Add comment about possible logical problem with scheduler.

MFC after: 3 days

18 years agoUpdate make glue for csup-snap-20060313.
Maxime Henrion [Tue, 14 Mar 2006 03:53:50 +0000 (03:53 +0000)]
Update make glue for csup-snap-20060313.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r156701,
Maxime Henrion [Tue, 14 Mar 2006 03:51:13 +0000 (03:51 +0000)]
This commit was generated by cvs2svn to compensate for changes in r156701,
which included commits to RCS files with non-trunk default branches.

18 years agoImport the latest snapshot of csup (20060313).
Maxime Henrion [Tue, 14 Mar 2006 03:51:13 +0000 (03:51 +0000)]
Import the latest snapshot of csup (20060313).

18 years agospell pdata correctly, we now will only dump maxlen of each mbuf in the
John-Mark Gurney [Tue, 14 Mar 2006 00:22:10 +0000 (00:22 +0000)]
spell pdata correctly, we now will only dump maxlen of each mbuf in the
chain, instead of the entire mbuf...  This should probably be reworked
so that it prints at max maxlen bytes for the entire chain...

18 years agoMerge/sync with i386: various cosmetic tweaks
Peter Wemm [Tue, 14 Mar 2006 00:01:56 +0000 (00:01 +0000)]
Merge/sync with i386: various cosmetic tweaks

18 years agoMFi386: The SIGFPE macros were moved to signal.h (FPE_INTOVF etc)
Peter Wemm [Tue, 14 Mar 2006 00:01:22 +0000 (00:01 +0000)]
MFi386: The SIGFPE macros were moved to signal.h (FPE_INTOVF etc)

18 years agoFix typo
Maksim Yevmenkin [Mon, 13 Mar 2006 23:59:43 +0000 (23:59 +0000)]
Fix typo

Submitted by: Iain Hibbert < plunky at rya-online dot net >
MFC after: 3 days

18 years agoMFi386: rename pcib_devclass to hostb_devclass (cosmetic here)
Peter Wemm [Mon, 13 Mar 2006 23:58:40 +0000 (23:58 +0000)]
MFi386: rename pcib_devclass to hostb_devclass (cosmetic here)

18 years agoMFi386: add a TRAP_INTERRUPT case
Peter Wemm [Mon, 13 Mar 2006 23:56:44 +0000 (23:56 +0000)]
MFi386: add a TRAP_INTERRUPT case

18 years agoCosmetic sync with i386
Peter Wemm [Mon, 13 Mar 2006 23:55:31 +0000 (23:55 +0000)]
Cosmetic sync with i386

18 years agoWhen encountering a ISO_SUSP_CFLAG_ROOT element in Rock Ridge
Joerg Wunsch [Mon, 13 Mar 2006 22:32:33 +0000 (22:32 +0000)]
When encountering a ISO_SUSP_CFLAG_ROOT element in Rock Ridge
processing, this actually means there's a double slash recorded in the
symbolic link's path name.  We used to start over from / then, which
caused link targets like ../../bsdi.1.0/include//pathnames.h to be
interpreted as /pathnahes.h.  This is both contradictionary to our
conventional slash interpretation, as well as potentially dangerous.

The right thing to do is (obviously) to just ignore that element.

bde once pointed out that mistake when he noticed it on the
4.4BSD-Lite2 CD-ROM, and asked me for help.

Reviewed by: bde (about half a year ago)
MFC after: 3 days

18 years agoAdd the TOSHIBA TransMemory USB sticks to the list of devices that
Joerg Wunsch [Mon, 13 Mar 2006 22:26:33 +0000 (22:26 +0000)]
Add the TOSHIBA TransMemory USB sticks to the list of devices that
hate "Synchronize cache" commands.

MFC after: 1 day

18 years agoswap Bus and MAC/BBP columns.
Damien Bergamini [Mon, 13 Mar 2006 21:24:28 +0000 (21:24 +0000)]
swap Bus and MAC/BBP columns.
add more devices (RT2561S and RT2661) to the list of supported hardware.

18 years agoRemove duplicate .Pp
Damien Bergamini [Mon, 13 Mar 2006 21:00:53 +0000 (21:00 +0000)]
Remove duplicate .Pp

Submitted by: Christian Brueffer

18 years agotypo
Damien Bergamini [Mon, 13 Mar 2006 20:42:37 +0000 (20:42 +0000)]
typo

18 years agosync w/ reality.
Damien Bergamini [Mon, 13 Mar 2006 20:36:55 +0000 (20:36 +0000)]
sync w/ reality.

18 years agoDon't read channel list from EEPROM since we were already scanning all
Damien Bergamini [Mon, 13 Mar 2006 20:05:32 +0000 (20:05 +0000)]
Don't read channel list from EEPROM since we were already scanning all
802.11b channels (1-14) regardless of what EEPROM says.

18 years agoFix a typo.
Ruslan Ermilov [Mon, 13 Mar 2006 14:59:57 +0000 (14:59 +0000)]
Fix a typo.

18 years agoThe mount(8) manpage says: "In case of conflicting options being
Ruslan Ermilov [Mon, 13 Mar 2006 14:58:37 +0000 (14:58 +0000)]
The mount(8) manpage says: "In case of conflicting options being
specified, the rightmost option takes effect."  Fix code to obey
this.  This makes e.g. "mount -r /usr" or "mount -ar" actually
mount file systems read-only.

18 years agoFix build on 64-bit platforms.
Ruslan Ermilov [Mon, 13 Mar 2006 14:48:45 +0000 (14:48 +0000)]
Fix build on 64-bit platforms.

18 years agoAdd support for the JMicron JMB361, 365 and 366 chips.
Søren Schmidt [Mon, 13 Mar 2006 14:01:37 +0000 (14:01 +0000)]
Add support for the JMicron JMB361, 365 and 366 chips.

HW and documentation kindly provided by JMicron.

18 years agoPut autosense data in the right place (needs a 4pos left shift).
Søren Schmidt [Mon, 13 Mar 2006 14:00:08 +0000 (14:00 +0000)]
Put autosense data in the right place (needs a 4pos left shift).

18 years agoAdd "-q" argument to getfacl(1), which suppresses the per-file header
Robert Watson [Mon, 13 Mar 2006 11:45:29 +0000 (11:45 +0000)]
Add "-q" argument to getfacl(1), which suppresses the per-file header
comment listing the file name, owner, and group.

MFC after: 1 week
Submitted by: Jan Srzednicki <w at expro dot pl>

18 years agoRemove unused code.
David Xu [Mon, 13 Mar 2006 10:37:25 +0000 (10:37 +0000)]
Remove unused code.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r156678,
Hartmut Brandt [Mon, 13 Mar 2006 09:37:22 +0000 (09:37 +0000)]
This commit was generated by cvs2svn to compensate for changes in r156678,
which included commits to RCS files with non-trunk default branches.

18 years agoVendor fix: small man fixes, fix type names u_int8_t -> uint8_t.
Hartmut Brandt [Mon, 13 Mar 2006 09:37:22 +0000 (09:37 +0000)]
Vendor fix: small man fixes, fix type names u_int8_t -> uint8_t.

18 years agoDon't import tree.h from the distribution - we have our own one in sys.
Hartmut Brandt [Mon, 13 Mar 2006 09:30:26 +0000 (09:30 +0000)]
Don't import tree.h from the distribution - we have our own one in sys.

18 years agoThere has been a shared libdisk for a couple of days until it was reverted
Hartmut Brandt [Mon, 13 Mar 2006 09:28:46 +0000 (09:28 +0000)]
There has been a shared libdisk for a couple of days until it was reverted
back to be static-only in january. For this period libdisk was used by
the HOSTRES module for bsnmp which was then rewritten to use libgeom. The
only other consumer of libdisk is sysinstall so removing the shared library
should be safe.

18 years agoSilence some warnings by defining configuration preprocessor symbols.
Hartmut Brandt [Mon, 13 Mar 2006 09:23:51 +0000 (09:23 +0000)]
Silence some warnings by defining configuration preprocessor symbols.

18 years agoFix the format/display descriptor of vm.kmem_size and vm.kmem_free
Paul Saab [Mon, 13 Mar 2006 08:13:37 +0000 (08:13 +0000)]
Fix the format/display descriptor of vm.kmem_size and vm.kmem_free
to be 'long' instead of 'int' so that sysctl(8) correctly displays
the 8 returned bytes as a single 'long' instead of two 'int' values.

Submitted by: peter

18 years agoQuote ${CC} when passing it in environment.
Ruslan Ermilov [Mon, 13 Mar 2006 06:38:22 +0000 (06:38 +0000)]
Quote ${CC} when passing it in environment.

Submitted by: bde

18 years agons_name_skip was recently redefined to __ns_name_skip
Daniel Eischen [Mon, 13 Mar 2006 04:49:40 +0000 (04:49 +0000)]
ns_name_skip was recently redefined to __ns_name_skip
like the others in <include/arpa/nameser.h>.

Submitted by: ume

18 years agoMake _spinunlock() point to the spinunlock stub, not the
Daniel Eischen [Mon, 13 Mar 2006 01:17:39 +0000 (01:17 +0000)]
Make _spinunlock() point to the spinunlock stub, not the
spinlock stub.

18 years agoAdd each directory's symbol map file to SYM_MAPS.
Daniel Eischen [Mon, 13 Mar 2006 01:15:01 +0000 (01:15 +0000)]
Add each directory's symbol map file to SYM_MAPS.

18 years ago- Reimplement I/O data allocation to prevent deadlocks.
Pawel Jakub Dawidek [Mon, 13 Mar 2006 01:03:18 +0000 (01:03 +0000)]
- Reimplement I/O data allocation to prevent deadlocks.

Submitted by: green

- Speed up synchronization process by using configurable number of I/O
  requests in parallel.
  + Add kern.geom.raid3.sync_requests tunable which defines how many parallel
    I/O requests should be used.
  + Retire kern.geom.raid3.reqs_per_sync and kern.geom.raid3.syncs_per_sec
    sysctls.
- Fix race between regular and synchronization requests.
- Reimplement raid3's data synchronization - do not use the topology lock
  for this purpose, as it may case deadlocks.
- Stop synchronization from pre-sync hook.
- Fix some other minor issues.

Tested by: Mike Tancsa <mike@sentex.net>
MFC after: 3 days

18 years agoAdd compatibility symbol maps. libpthread (.so.1 and .so.2)
Daniel Eischen [Mon, 13 Mar 2006 00:59:51 +0000 (00:59 +0000)]
Add compatibility symbol maps.  libpthread (.so.1 and .so.2)
used LIBTHREAD_1_0 as its version definition, but now needs
to define its symbols in the same namespace used by libc.
The compatibility hooks allows you to use libraries and
binaries built and linked to libpthread before libc was
built with symbol versioning.  The shims can be removed if
libpthread is given a version bump.

Reviewed by: davidxu

18 years ago- Speed up synchronization process by using configurable number of I/O
Pawel Jakub Dawidek [Mon, 13 Mar 2006 00:58:41 +0000 (00:58 +0000)]
- Speed up synchronization process by using configurable number of I/O
  requests in parallel.
  + Add kern.geom.mirror.sync_requests tunable which defines how many parallel
    I/O requests should be used.
  + Retire kern.geom.mirror.reqs_per_sync and kern.geom.mirror.syncs_per_sec
    sysctls.
- Fix race between regular and synchronization requests.
- Reimplement mirror's data synchronization - do not use the topology lock
  for this purpose, as it may case deadlocks.
- Stop synchronization from pre-sync hook.
- Fix some other minor issues.

MFC after: 3 days

18 years agoAdd hooks to build libc with symbol versioning. This is
Daniel Eischen [Mon, 13 Mar 2006 00:56:02 +0000 (00:56 +0000)]
Add hooks to build libc with symbol versioning.  This is
disabled by default; add SYMVER_ENABLED=true to /etc/make.conf
to enable it.  libc should get a version bump before this is
enabled by default.

Reviewed by: davidxu

18 years agoAdd symbol maps and initial symbol version definitions to libc.
Daniel Eischen [Mon, 13 Mar 2006 00:53:21 +0000 (00:53 +0000)]
Add symbol maps and initial symbol version definitions to libc.

Reviewed by: davidxu

18 years agoAdd macros for generating symbol version assembler opcodes.
Daniel Eischen [Mon, 13 Mar 2006 00:49:28 +0000 (00:49 +0000)]
Add macros for generating symbol version assembler opcodes.

18 years agoRemove non-FreeBSD source from FreeBSD repository.
Tim Kientzle [Sun, 12 Mar 2006 19:55:02 +0000 (19:55 +0000)]
Remove non-FreeBSD source from FreeBSD repository.

18 years agoRemove automake source from FreeBSD tree.
Tim Kientzle [Sun, 12 Mar 2006 19:54:34 +0000 (19:54 +0000)]
Remove automake source from FreeBSD tree.

18 years agoremove depedancy with vnode_if.h.
Damien Bergamini [Sun, 12 Mar 2006 19:06:06 +0000 (19:06 +0000)]
remove depedancy with vnode_if.h.
it is no longer needed.

18 years agosync w/ iwi:
Damien Bergamini [Sun, 12 Mar 2006 19:01:00 +0000 (19:01 +0000)]
sync w/ iwi:
o fix locking
o use firmware(9)
o cosmetic

18 years agoo don't use '-' characters in firmware names
Damien Bergamini [Sun, 12 Mar 2006 18:54:40 +0000 (18:54 +0000)]
o don't use '-' characters in firmware names
o call firmware_put() early to release the firmware module
o on firmware panics or watchdog timeouts, schedule a task to reinitialize
  the interface (we may sleep in iwi_init())
o discard oversized rx frames

18 years agoRemove comment that does not appy to FreeBSD.
Andre Oppermann [Sun, 12 Mar 2006 15:34:33 +0000 (15:34 +0000)]
Remove comment that does not appy to FreeBSD.

18 years agoImport of OpenBSD's sys/sys/hash.h providing generic 32bit hash functions.
Andre Oppermann [Sun, 12 Mar 2006 15:33:19 +0000 (15:33 +0000)]
Import of OpenBSD's sys/sys/hash.h providing generic 32bit hash functions.

Requested by: flz (to port Open[BGP|OSPF]D)
MFC after: 3 days

18 years agoThere is no IFF_POLLING flag anymore.
Gleb Smirnoff [Sun, 12 Mar 2006 14:00:15 +0000 (14:00 +0000)]
There is no IFF_POLLING flag anymore.

18 years agoFlush stdout after printing name of created device, so it can be properly
Pawel Jakub Dawidek [Sun, 12 Mar 2006 09:27:51 +0000 (09:27 +0000)]
Flush stdout after printing name of created device, so it can be properly
read when 'ggatec create' is used in backticks or its output is piped to
another command.

Submitted by: Paul Schenkeveld
MFC after: 3 days

18 years ago - Remove the call to softdep_waitidle after suspending the filesystem.
Jeff Roberson [Sun, 12 Mar 2006 05:26:12 +0000 (05:26 +0000)]
 - Remove the call to softdep_waitidle after suspending the filesystem.
   This does not do what I wanted as all dirty buffers must be flushed
   by the call to ffs_sync and any remaining dependency work would mean
   that this failed.

Pointed out by: tegge