Matthew Dillon [Wed, 22 Apr 2009 20:04:23 +0000 (13:04 -0700)]
Fix a bug in krealloc(). Note that krealloc() is very rarely used.
krealloc() was improperly calling zoneindex() when transitioning from
zone-controlled memory to non-zone-controlled (big) memory.
Matthew Dillon [Wed, 22 Apr 2009 19:56:37 +0000 (12:56 -0700)]
Fix vkernel issues - enable ithread preemption, races, and more.
signalintr() was improperly entering a critical section, preventing
sched_ithd() from being able to preempt the current thread. Adjust
so the code matches the pc32 code.
lwp0 was being assigned cpu_heavy_switch instead of cpu_lwkt_switch,
which works fine on pc32 but blows up the vkernel if process 0 gets
preempted, because vkernel LWKT processes are not assigned vmspaces.
Properly use cpu_lwkt_switch() to fix the problem.
We were not checking for pending reschedule requests when the
vmspace_ctl() call got interrupted by a signal. NOTE: There is
still a race after the check prior to re-entry into vmspace_ctl()
which needs to be closed.
Tracked-down-by: corecode, dillon
Matthew Dillon [Wed, 22 Apr 2009 19:18:07 +0000 (12:18 -0700)]
Replace the old BSD malloc code with a port of our slab allocator.
This should give us a better base with which we can work up a
more thread-friendly user malloc. Buildworld performance is about
the same (just slightly faster). malloc performance is about twice as
fast as the original.
Sascha Wildner [Sun, 19 Apr 2009 02:09:40 +0000 (04:09 +0200)]
cxm(4) manual page: Fix typos.
Sascha Wildner [Sun, 19 Apr 2009 01:03:12 +0000 (03:03 +0200)]
cxm(4): Oops, remove #include opt_cxm.h for now.
Sascha Wildner [Sun, 19 Apr 2009 00:52:49 +0000 (02:52 +0200)]
meteor(4) manual page: Add bktr(4) and cxm(4) references.
Sascha Wildner [Sun, 19 Apr 2009 00:52:27 +0000 (02:52 +0200)]
bktr(4) manual page: Add cxm(4) reference.
Sascha Wildner [Sun, 19 Apr 2009 00:49:17 +0000 (02:49 +0200)]
Add cxm(4), a driver for Hauppauge PVR-250/350 video capture cards.
Before the driver can be used, two firmware files have to be extracted
from the Windows driver which cannot be redistributed with DragonFly.
For further information see the manual page.
It was tested on a PVR-250 which was kindly donated by Hasso Tepper
(many thanks for this!).
Ported-from: FreeBSD (ports/multimedia/pvr250), with modifications
Sascha Wildner [Sun, 19 Apr 2009 00:35:08 +0000 (02:35 +0200)]
pcidevs: Regenerate pcidevs.h and pcidevs_data.h
Sascha Wildner [Sun, 19 Apr 2009 00:33:21 +0000 (02:33 +0200)]
pcidevs: Add iTVC16
Matthew Dillon [Fri, 17 Apr 2009 21:09:40 +0000 (14:09 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 17 Apr 2009 21:08:31 +0000 (14:08 -0700)]
CPDUP - Fix lack of error reporting if created target directory cannot stat.
Fix a lack of error reporting if a just-created target directory cannot
be stat()'ed or chown()'d.
Sascha Wildner [Fri, 17 Apr 2009 11:43:42 +0000 (13:43 +0200)]
development(7): Add some documentation links.
Sascha Wildner [Fri, 17 Apr 2009 11:08:00 +0000 (13:08 +0200)]
Fix printf(3) and friends when printing a float with precision 0.
The decimal point shall be supressed in this case.
Reported-by: y0netan1
Patch-by: pavalos
Matthew Dillon [Thu, 16 Apr 2009 23:30:45 +0000 (16:30 -0700)]
libc: malloc: minor code cleanup (no operational changes)
Sascha Wildner [Thu, 16 Apr 2009 01:20:36 +0000 (03:20 +0200)]
newfs_hammer(8): Mention the nightly 'hammer cleanup' in the info message.
Sascha Wildner [Wed, 15 Apr 2009 23:29:36 +0000 (01:29 +0200)]
crontab(8)/mtrace(8): Remove CVS ID handling.
Sascha Wildner [Wed, 15 Apr 2009 12:21:52 +0000 (14:21 +0200)]
Fix the way <sys/ioccom.h> is included throughout our tree.
The original intention was to include it only in header files which
define ioctl codes and not in .c or .h files which include headers
that define ioctl codes.
Adjust the tree to follow this idea.
Pointed-out-by: Guy Harris <guy@alum.mit.edu>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1334>
Sascha Wildner [Wed, 15 Apr 2009 12:23:34 +0000 (14:23 +0200)]
lib/libpthread/Makefile: Oops, add missing '\'.
Sascha Wildner [Wed, 15 Apr 2009 11:37:59 +0000 (13:37 +0200)]
pthread(3): Move pthread(3) manual page to lib/libpthread too.
It does need some further adjustment.
Sascha Wildner [Wed, 15 Apr 2009 11:28:04 +0000 (13:28 +0200)]
Remove libc_r from list of Lb values and adjust libpthread manpages' Lb.
Sascha Wildner [Wed, 15 Apr 2009 11:07:13 +0000 (13:07 +0200)]
Move pthread* manpages to lib/libpthread as they are not libc_r specific.
Sascha Wildner [Tue, 14 Apr 2009 22:44:25 +0000 (00:44 +0200)]
magic(3): Fix program name extraction from core dumps.
Remove trailing whitespace only instead of unconditionally removing the
last character from the program name (see comments).
Reported-by: hasso
Located-by: Eric J. Christeson
Taken-from: FreeBSD's libmagic
Sascha Wildner [Tue, 14 Apr 2009 03:47:15 +0000 (05:47 +0200)]
posix_spawn_file_actions_init(3) manual page: Fix wrong usage of .Fn
Sascha Wildner [Mon, 13 Apr 2009 13:40:16 +0000 (15:40 +0200)]
Sync zoneinfo database with tzdata2009f from elsie.
asia: 8.29 -> 8.30
Pakistan will observe DST from April 15, 2009 instead of May 1 like
previously planned.
Sepherosa Ziehau [Mon, 13 Apr 2009 12:35:30 +0000 (20:35 +0800)]
Add some new DLTs found in libpcap-1.0.0
Sepherosa Ziehau [Mon, 13 Apr 2009 11:37:07 +0000 (19:37 +0800)]
Allow users to turn off certain arp logging.
Obtained-from: FreeBSD
Sepherosa Ziehau [Mon, 13 Apr 2009 11:19:34 +0000 (19:19 +0800)]
Add description about sysctl nodes under net.link.ether.inet
Obtained-from: FreeBSD
Sascha Wildner [Sun, 12 Apr 2009 19:41:51 +0000 (21:41 +0200)]
pciconf(8): Raise WARNS to 6 and fix warning.
Sascha Wildner [Sun, 12 Apr 2009 18:22:23 +0000 (20:22 +0200)]
rpc.lockd(8): Raise WARNS to 3 and fix warnings.
Sascha Wildner [Sun, 12 Apr 2009 17:26:01 +0000 (19:26 +0200)]
dhclient.conf(5) manual page: Use better mdoc (taken from FreeBSD).
Sascha Wildner [Sun, 12 Apr 2009 17:25:23 +0000 (19:25 +0200)]
rcmd(3) manual page: Add missing .El
Sascha Wildner [Sun, 12 Apr 2009 16:22:27 +0000 (18:22 +0200)]
i4b(4): Reorder includes slightly to silence some compilation warnings.
Sascha Wildner [Sun, 12 Apr 2009 09:54:46 +0000 (11:54 +0200)]
i4b(4): Initialize callout handles before first accessing them.
Sascha Wildner [Sun, 12 Apr 2009 09:02:59 +0000 (11:02 +0200)]
sppp(4): Properly initialize keepalive_timeout.
Stathis Kamperis [Sun, 12 Apr 2009 11:53:55 +0000 (11:53 +0000)]
build(7): mention Makefile_upgrade.inc
This file contains all files which are obsolete as of now and can be
removed by a 'make upgrade' run.
Reviewed-by: swildner@
Sepherosa Ziehau [Sun, 12 Apr 2009 06:25:07 +0000 (14:25 +0800)]
Put lwkt_serialize_array_{enter,try,exit}() into its own header file;
name it sys/serialize2.h according to our convention.
Sepherosa Ziehau [Sun, 12 Apr 2009 06:15:51 +0000 (14:15 +0800)]
ifnet serializer split: Whack ifnet.if_serializer if driver supplies
serialize functions; mainly to catch invalid reference of if_serializer.
Sepherosa Ziehau [Sun, 12 Apr 2009 02:02:17 +0000 (10:02 +0800)]
pktgen: Use ifnet_{serialize,deserialize}_tx()
Sepherosa Ziehau [Sat, 11 Apr 2009 07:58:20 +0000 (15:58 +0800)]
Split ifnet serializer step 4/many: Add IFNET_SERIALIZE_MAIN, which is
used by polling(4) code. Now polling(4) no longer tries to hold all
of the serializers of the driver; it just holds driver's main serializer.
Sepherosa Ziehau [Sat, 11 Apr 2009 05:25:32 +0000 (13:25 +0800)]
emx(4): Add serialize/deserialize functions which just skip main serializer
Sepherosa Ziehau [Sat, 11 Apr 2009 05:10:19 +0000 (13:10 +0800)]
Factor out lwkt_serialize_array_{enter,try,exit}()
Sepherosa Ziehau [Sat, 11 Apr 2009 03:13:22 +0000 (11:13 +0800)]
Add IFNET_SERIALIZE_RX(idx)
Sepherosa Ziehau [Sat, 11 Apr 2009 03:05:06 +0000 (11:05 +0800)]
Split ifnet serializer step 3/many: We no longer need to hold RX
serializer before calling ifnet.if_input()
Sepherosa Ziehau [Sat, 11 Apr 2009 02:37:59 +0000 (10:37 +0800)]
Split ifnet serializer step 2/many: Add if_serialize_assert() function
pointer to ifnet, so that upper layer could assert ifnet's serialization
states. Remove the serialization state assertion on ifnet.if_input()
path, since the serialization state normaly has nothing to do with the
input processing.
Sepherosa Ziehau [Wed, 8 Apr 2009 12:05:06 +0000 (20:05 +0800)]
Sepherosa Ziehau [Tue, 7 Apr 2009 13:13:51 +0000 (21:13 +0800)]
Let emx(4) install its own ifnet serialize functions
Sepherosa Ziehau [Tue, 7 Apr 2009 13:11:59 +0000 (21:11 +0800)]
Put ifnet.if_serializer assertion under FIX_SERIALIZE_ASSERT
Sepherosa Ziehau [Sun, 5 Apr 2009 01:04:08 +0000 (09:04 +0800)]
Split ifnet serialize step 1/many: Add if_{serialize,deserialize,tryserialize}()
function pointers to ifnet.
These three function pointers accept ifnet struct and ifnet_serialize
enumeration.
The ifnet_serialize enumeration indicates the serialization type:
IFNET_SERIALIZE_ALL:
All of the serializers should be held. Except for if_start and if_input,
this enumeration must be used when call ifnet function pointers.
IFNET_SERIALIZE_TX:
Only transmit serializer should be held. This enumeration could be used
when calling ifnet.if_start.
IFNET_SERIALIZE_RX:
Only receive serializer should be held. This enumeration could be used
when calling ifnet.if_input.
If the NIC driver does not set these three function pointer, then if_attach()
will set them to the default ones: only one serializer (if_serializer) is used
and ifnet_serialize parameter is ignored.
Following several inline functions are added which are sheer wrappers of the
three ifnet serialize function pointers:
ifnet_serialize_{all,tx,rx}()
ifnet_deserialize_{all,tx,rx}()
ifnet_tryserialize_{all,tx,rx}()
All of the protocol layers and most of the pseudo drivers are converted.
Discussed-with: dillon@
Stathis Kamperis [Sun, 12 Apr 2009 08:41:57 +0000 (08:41 +0000)]
fts(3): fix typo in MLINK
Thomas Nikolajsen [Sun, 12 Apr 2009 06:19:15 +0000 (08:19 +0200)]
kdump: Add net/if_arp.h include
Missing in
7a80e26d5284cff1a1ddbfa4098cf939e9569155
Thomas Nikolajsen [Sun, 12 Apr 2009 06:13:37 +0000 (08:13 +0200)]
Revert "kdump: Add net/if_arp.h include"
This reverts commit
b81d560f4a7e775a5f5636141f28bdd82425b4fe.
Commit made with wrong username.
Charlie [Sun, 12 Apr 2009 05:46:40 +0000 (07:46 +0200)]
kdump: Add net/if_arp.h include
Missing in
7a80e26d5284cff1a1ddbfa4098cf939e9569155
Sascha Wildner [Sat, 11 Apr 2009 20:47:05 +0000 (22:47 +0200)]
xdr(3): Add some missing MLINKS.
Sascha Wildner [Sat, 11 Apr 2009 19:51:08 +0000 (21:51 +0200)]
libc/include/namespace.h: Add _getprogname().
Sepherosa Ziehau [Sat, 11 Apr 2009 11:50:14 +0000 (19:50 +0800)]
sln(4): Include <sys/param.h>
Sepherosa Ziehau [Sat, 11 Apr 2009 11:40:26 +0000 (19:40 +0800)]
Unbreak GENERIC building
Sepherosa Ziehau [Sat, 11 Apr 2009 11:19:41 +0000 (19:19 +0800)]
netgraph/i4b: sppp struct should start with arpcom, so netgraph could work
Reported-by: swildner@
Peter Avalos [Sat, 11 Apr 2009 08:47:31 +0000 (08:47 +0000)]
Bump the version number for the OpenSSL-0.9.8k import.
Peter Avalos [Sat, 11 Apr 2009 03:15:33 +0000 (03:15 +0000)]
Merge branch 'vendor/OPENSSL'
Peter Avalos [Sat, 11 Apr 2009 03:00:56 +0000 (03:00 +0000)]
Upgrade to OpenSSL-0.9.8k.
This fixes security issues (CVE-2009-0590, CVE-2009-0591, CVE-2009-0789)
and other minor bugs. See CHANGES for more details.
Peter Avalos [Sat, 11 Apr 2009 02:44:26 +0000 (02:44 +0000)]
Add README.DELETED to the vendor branch for OpenSSL.
This is probably a good idea for other directories as well. It's too
cumbersome not having this file available on the vendor branch, since
that's really where the work is done to remove unwanted files from the
vendor's distribution.
Peter Avalos [Sat, 11 Apr 2009 01:18:46 +0000 (01:18 +0000)]
Comment out granpt() from stdlib.h.
We don't support this yet (hopefully soon).
Noticed-by: beket
YONETANI Tomokazu [Sat, 14 Feb 2009 13:37:20 +0000 (22:37 +0900)]
Add `set -o tabcomplete' to /bin/sh
When set, it binds <tab> to the libedit filename completion function.
Taken-From: NetBSD
In our version, it's turned on by default in an interactive shell.
If you don't like it, put the following line
set +o tabcomplete >/dev/null 2>&1 || true
in your ~/.shinit (or whatever path $ENV is set to) .
Stathis Kamperis [Fri, 10 Apr 2009 22:58:20 +0000 (22:58 +0000)]
Add missing MLINKS for fts(3)
Stathis Kamperis [Fri, 10 Apr 2009 15:45:55 +0000 (15:45 +0000)]
Add missing MLINKS for bus_dma(9)
Sascha Wildner [Fri, 10 Apr 2009 18:22:08 +0000 (20:22 +0200)]
callbootd: Silence warnings.
Stathis Kamperis [Fri, 10 Apr 2009 13:55:02 +0000 (13:55 +0000)]
Add missing MLINK for STAILQ_FOREACH_MUTABLE
Stathis Kamperis [Fri, 10 Apr 2009 08:26:23 +0000 (08:26 +0000)]
Add missing MLINKS for strto{f,ld} functions
Sascha Wildner [Thu, 9 Apr 2009 09:24:42 +0000 (11:24 +0200)]
fpgetround(3): Sync manual page with FreeBSD.
Sascha Wildner [Wed, 8 Apr 2009 20:39:41 +0000 (22:39 +0200)]
trpt(8): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Wed, 8 Apr 2009 20:39:02 +0000 (22:39 +0200)]
tcp_{debug,timer}.h & protosw.h: Constify some strings.
Sascha Wildner [Wed, 8 Apr 2009 19:20:58 +0000 (21:20 +0200)]
semaphore.h: Revert the last commit. NULL is not defined here.
Sascha Wildner [Wed, 8 Apr 2009 13:06:34 +0000 (15:06 +0200)]
queue(3): Sync MLINKS situation with the manual page.
Sascha Wildner [Wed, 8 Apr 2009 13:06:10 +0000 (15:06 +0200)]
queue(3): Mention SLIST_FOREACH_PREVPTR (taken from OpenBSD).
Sepherosa Ziehau [Wed, 8 Apr 2009 11:44:31 +0000 (19:44 +0800)]
altq_cbq: In restart, release ALTQ serializer to avoid dead lock
Sascha Wildner [Wed, 8 Apr 2009 07:10:37 +0000 (09:10 +0200)]
Some mdoc fixes in various places.
Sascha Wildner [Wed, 8 Apr 2009 07:09:53 +0000 (09:09 +0200)]
Add MLINKS for getgrent_r(3), getgrgid_r(3) & getgrnam_r(3).
Matthew Dillon [Tue, 7 Apr 2009 23:08:21 +0000 (16:08 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Tue, 7 Apr 2009 23:03:24 +0000 (16:03 -0700)]
HAMMER VFS - Fix edge case in mirroring code.
There is an edge case where a record is physically destroyed on the master
and a mirroring or mirror-streaming operation attempts to delete the record
on the slave using a mirror-end TID that in fact matches the create_tid of
the record. This results in a protective panic.
Fix the problem simply by not deleting such edge-case records. They will
be deleted in the next pass, since in order to have been destroyed on the
master the master must have done the operation with a larger TID then
the create_tid of the record that was destroyed.
Reported-by: Brad Frank <brad.frank@gmail.com>
Sascha Wildner [Tue, 7 Apr 2009 21:41:28 +0000 (23:41 +0200)]
Sync a couple of prototypes (mknod(), mktemp() & friends) with FreeBSD.
Thomas Nikolajsen [Tue, 7 Apr 2009 21:15:00 +0000 (23:15 +0200)]
Merge commit 'chlamydia/master'
Thomas Nikolajsen [Tue, 7 Apr 2009 20:58:26 +0000 (22:58 +0200)]
sys/types.h: Add protection of typedefs
missing in
9d66746cf7a1da0544550266a1c5cb53e776aa01
Sascha Wildner [Tue, 7 Apr 2009 20:48:44 +0000 (22:48 +0200)]
timed(8): Include <string.h> instead of <strings.h> for strlen() etc. prototypes.
Sascha Wildner [Tue, 7 Apr 2009 20:48:07 +0000 (22:48 +0200)]
ncplogin(1): Include <string.h> instead of <strings.h> for strlen() etc. prototypes.
Sascha Wildner [Tue, 7 Apr 2009 20:47:33 +0000 (22:47 +0200)]
libncp: Include <string.h> instead of <strings.h> for strlen() etc. prototypes.
Sascha Wildner [Tue, 7 Apr 2009 16:59:53 +0000 (18:59 +0200)]
pw(8): setgrent()'s return type is void.
Sascha Wildner [Tue, 7 Apr 2009 16:59:17 +0000 (18:59 +0200)]
newsyslog(8): Silence warning.
Sascha Wildner [Tue, 7 Apr 2009 16:58:08 +0000 (18:58 +0200)]
sh(1): Deconstify unsetvar()'s argument when passing it to change_env().
Sascha Wildner [Tue, 7 Apr 2009 16:56:23 +0000 (18:56 +0200)]
Include <string.h> instead of <strings.h> in various places.
Stathis Kamperis [Tue, 7 Apr 2009 11:25:40 +0000 (11:25 +0000)]
Add missing MLINKS for {getchar,putchar}_unlocked functions
Sascha Wildner [Mon, 6 Apr 2009 12:52:46 +0000 (14:52 +0200)]
Replace all casts of NULL to something with NULL.
Sascha Wildner [Mon, 6 Apr 2009 00:19:59 +0000 (02:19 +0200)]
<sys/un.h>: #include <sys/file.h> for struct file.
Sascha Wildner [Sun, 5 Apr 2009 23:45:19 +0000 (01:45 +0200)]
indent(1): Sync with FreeBSD and raise WARNS to 6.
Sascha Wildner [Sun, 5 Apr 2009 22:52:17 +0000 (00:52 +0200)]
Generally use NULL instead of explicitly casting 0 to some pointer type (part2).
Sascha Wildner [Sun, 5 Apr 2009 20:33:01 +0000 (22:33 +0200)]
Generally use NULL instead of explicitly casting 0 to some pointer type.
Sascha Wildner [Sun, 5 Apr 2009 20:31:26 +0000 (22:31 +0200)]
Use NULL instead of 0 in various places.
Sascha Wildner [Sun, 5 Apr 2009 20:28:37 +0000 (22:28 +0200)]
getnetgrent(3): Improve markup.
Sascha Wildner [Sun, 5 Apr 2009 20:09:15 +0000 (22:09 +0200)]
sys/dev/usbmisc/Makefile: Remove duplicate entry.
Peter Avalos [Mon, 23 Mar 2009 02:19:11 +0000 (16:19 -1000)]
Bump libc's version and __DragonFly_version for recent changes made.