dragonfly.git
4 years agomqueues: Hook into the build system. mq-sync-clean
Stathis Kamperis [Wed, 7 Oct 2009 19:41:11 +0000 (19:41 +0000)]
mqueues: Hook into the build system.

4 years agomqueues: kdump: Ad-hoc translation for mq_open().
Stathis Kamperis [Wed, 7 Oct 2009 19:41:37 +0000 (19:41 +0000)]
mqueues: kdump: Ad-hoc translation for mq_open().

4 years agomqueues: Add librt (realtime library).
Stathis Kamperis [Wed, 7 Oct 2009 19:40:42 +0000 (19:40 +0000)]
mqueues: Add librt (realtime library).

4 years agomqueues: kern_descrip.c: Make badfo*() calls non-static.
Stathis Kamperis [Wed, 7 Oct 2009 19:42:08 +0000 (19:42 +0000)]
mqueues: kern_descrip.c: Make badfo*() calls non-static.

4 years agomqueues: vfs_subr: Add vaccess() method consumed by POSIX mqueues.
Stathis Kamperis [Wed, 7 Oct 2009 19:33:36 +0000 (19:33 +0000)]
mqueues: vfs_subr: Add vaccess() method consumed by POSIX mqueues.

There is already vop_access_helper() but operates on vnodes.

We may eventually move vaccess() to vfs_helper.c.

4 years agomqueues: Add system calls.
Stathis Kamperis [Wed, 7 Oct 2009 19:37:36 +0000 (19:37 +0000)]
mqueues: Add system calls.

4 years agomqueues: Port POSIX message queues from NetBSD.
Stathis Kamperis [Wed, 7 Oct 2009 20:03:34 +0000 (20:03 +0000)]
mqueues: Port POSIX message queues from NetBSD.

4 years agothread libs: migrate the libpthread.* symlinks on upgrade
Simon Schubert [Wed, 7 Oct 2009 18:26:05 +0000 (20:26 +0200)]
thread libs: migrate the libpthread.* symlinks on upgrade

4 years agogetopt.1: getopt is deprecated, add a reference to getopts
Simon Schubert [Wed, 7 Oct 2009 12:15:15 +0000 (14:15 +0200)]
getopt.1: getopt is deprecated, add a reference to getopts

4 years agothread libs: move libc_r and libthread_xu to /usr/lib/thread
Simon Schubert [Wed, 7 Oct 2009 00:27:42 +0000 (02:27 +0200)]
thread libs: move libc_r and libthread_xu to /usr/lib/thread

This is so that badly written programs don't mistakenly pick up either
libc_r or libthread_xu.  The only correct way to get threading support
is to link to libpthread.

By moving the underlaying thread libs to a directory that is not
searched by the linker, we can enforce this policy.

Requested-by: hasso@
4 years agoMakefile.inc1: make sure that mtree is run for quickworld
Simon Schubert [Wed, 7 Oct 2009 00:26:12 +0000 (02:26 +0200)]
Makefile.inc1: make sure that mtree is run for quickworld

We need to run mtree in case new directories are added to the hierarchy
in case these directories are also used during the build.

4 years agowatchdogd.8: Minor cleanup.
Sascha Wildner [Wed, 7 Oct 2009 12:55:54 +0000 (14:55 +0200)]
watchdogd.8: Minor cleanup.

4 years agomove struct timespec into its own header
Simon Schubert [Tue, 6 Oct 2009 23:05:56 +0000 (01:05 +0200)]
move struct timespec into its own header

sys/stat.h needs to define struct timespec without polluting the
namespace with all <time.h> content, so factor out struct timespec into
its own header and use it at the appropriate places.

4 years agorc.d/{initrandom,random}: Remove unneeded output
Thomas Nikolajsen [Sat, 18 Jul 2009 14:25:31 +0000 (16:25 +0200)]
rc.d/{initrandom,random}: Remove unneeded output

4 years agolibexec/customcc: Set up the include paths a bit better.
Sascha Wildner [Tue, 6 Oct 2009 20:38:40 +0000 (22:38 +0200)]
libexec/customcc: Set up the include paths a bit better.

Only use /usr/include and /usr/libdata/gcc41 prefixed by
${USRDATA_PREFIX}. This requires r83302 of LLVM/clang or
higher for the -nostdclanginc option.

While here, remove an 'else' I put in for debugging purposes
which is now useless.

4 years agoMake padlock(4) compileable into the kernel and add it to LINT.
Sascha Wildner [Tue, 6 Oct 2009 09:28:39 +0000 (11:28 +0200)]
Make padlock(4) compileable into the kernel and add it to LINT.

4 years agoAdd a glxsb(4) manual page.
Sascha Wildner [Tue, 6 Oct 2009 06:58:49 +0000 (08:58 +0200)]
Add a glxsb(4) manual page.

Taken-from: FreeBSD

4 years agoAdd final newline.
Sascha Wildner [Mon, 5 Oct 2009 08:45:34 +0000 (10:45 +0200)]
Add final newline.

4 years agoamd64 - mpt(4) should use {,u}int32_t for S32/U32
YONETANI Tomokazu [Mon, 5 Oct 2009 01:04:20 +0000 (10:04 +0900)]
amd64 - mpt(4) should use {,u}int32_t for S32/U32
or else it uses {,un}signed long type which is of 64bits on 64-bit platforms.

4 years agomd.4: Remove an unnecessary .Pp
Sascha Wildner [Sun, 4 Oct 2009 19:44:27 +0000 (21:44 +0200)]
md.4: Remove an unnecessary .Pp

4 years agosyscalls.master: Fix typo in comment.
Stathis Kamperis [Sun, 4 Oct 2009 19:27:56 +0000 (19:27 +0000)]
syscalls.master: Fix typo in comment.

4 years agobsd-family-tree: Update for DragonFly 2.4.
Sascha Wildner [Sun, 4 Oct 2009 15:07:53 +0000 (17:07 +0200)]
bsd-family-tree: Update for DragonFly 2.4.

Taken-from: FreeBSD

4 years agoinclude/Makefile: Revert part of the previous commit. This doesn't work.
Sascha Wildner [Sun, 4 Oct 2009 14:07:43 +0000 (16:07 +0200)]
include/Makefile: Revert part of the previous commit. This doesn't work.

4 years agoetc: no need to upgrade dma configs
Simon Schubert [Sun, 4 Oct 2009 13:36:23 +0000 (15:36 +0200)]
etc: no need to upgrade dma configs

4 years ago<crypto/rijndael.h> is now taken from sys/crypto/rijndael/.
Sascha Wildner [Sun, 4 Oct 2009 11:34:30 +0000 (13:34 +0200)]
<crypto/rijndael.h> is now taken from sys/crypto/rijndael/.

4 years agoipsec/esp: Move #include to silence 2 warnings.
Sascha Wildner [Sun, 4 Oct 2009 10:57:33 +0000 (12:57 +0200)]
ipsec/esp: Move #include to silence 2 warnings.

4 years agoubsec(4): Silence some 'unused variable' warnings.
Sascha Wildner [Sun, 4 Oct 2009 10:19:55 +0000 (12:19 +0200)]
ubsec(4): Silence some 'unused variable' warnings.

4 years agoconfig - Add new SOEKRIS config, add options to LINT
Alex Hornung [Fri, 2 Oct 2009 21:12:57 +0000 (22:12 +0100)]
config - Add new SOEKRIS config, add options to LINT

* Add a new SOEKRIS config, mostly specific to soekris net5501 but good
  as an example for an embedded system.
* Also add all the new options to LINT config

4 years agowatchdogd - Adapt to our needs
Alex Hornung [Sun, 4 Oct 2009 10:53:15 +0000 (11:53 +0100)]
watchdogd - Adapt to our needs

4 years agowatchdogd - Import from OpenBSD
Alex Hornung [Sun, 4 Oct 2009 10:27:36 +0000 (11:27 +0100)]
watchdogd - Import from OpenBSD

* Because the wdog kernel part was designed to be mostly compatible with
  OpenBSD's API, we can import watchdogd from OpenBSD and just change a
  bunch of things.

Obtained-from: OpenBSD

4 years agopc32 files/options - Update glxsb, geode
Alex Hornung [Fri, 2 Oct 2009 21:09:10 +0000 (22:09 +0100)]
pc32 files/options - Update glxsb, geode

* Add glxsb and cpu_geode options support.

4 years agoglxsb/nsclpcsio - cleanup
Alex Hornung [Sat, 3 Oct 2009 15:35:00 +0000 (16:35 +0100)]
glxsb/nsclpcsio - cleanup

* Cleanup unused variables and incorrect includes.
* Add glxsb to sys/dev/crypto/Makefile.

4 years agoglxsb - Make it work for us
Alex Hornung [Fri, 2 Oct 2009 21:12:30 +0000 (22:12 +0100)]
glxsb - Make it work for us

4 years agoglxsb - Initial import from FreeBSD
Alex Hornung [Sat, 26 Sep 2009 19:48:20 +0000 (20:48 +0100)]
glxsb - Initial import from FreeBSD

Obtained-from: FreeBSD

4 years agokern_shutdown - Add led and wdog magic
Alex Hornung [Fri, 2 Oct 2009 21:14:01 +0000 (22:14 +0100)]
kern_shutdown - Add led and wdog magic

* If the relevant options are set, try to enable the 'error' led and
 disable the watchdog(s).

4 years agogeode/cs5536 - Add support for wdog/gpio/timers/identfication
Alex Hornung [Sun, 4 Oct 2009 12:09:57 +0000 (13:09 +0100)]
geode/cs5536 - Add support for wdog/gpio/timers/identfication

* Add drivers for geode lx and cs5536 chips to register watchdogs,
  timers and gpio these chips have.
* Add missing defines for the geode and cs5536 timers and pci device
  ids.

Partially-Obtained-from: OpenBSD
Partially-Obtained-from: FreeBSD

4 years agopc32 identcpu - Detect Geode LX
Alex Hornung [Fri, 2 Oct 2009 21:03:28 +0000 (22:03 +0100)]
pc32 identcpu - Detect Geode LX

* Add identification of Geode LX CPUs.

Obtained-from: FreeBSD

4 years agopc32 bios - Add bios_oem_strings from FreeBSD
Alex Hornung [Fri, 2 Oct 2009 21:02:19 +0000 (22:02 +0100)]
pc32 bios - Add bios_oem_strings from FreeBSD

* Import bios_oem_strings to search for specific strings in the BIOS to
  identify vendors.

Obtained-from: FreeBSD

4 years agooptions/files - Add support for wdog, gpio, nsclpcsio
Alex Hornung [Fri, 2 Oct 2009 21:10:14 +0000 (22:10 +0100)]
options/files - Add support for wdog, gpio, nsclpcsio

* Add options and files support for wdog, gpio and nsclpcsio

4 years agonsclpcsio - make it work for us
Alex Hornung [Fri, 2 Oct 2009 21:11:08 +0000 (22:11 +0100)]
nsclpcsio - make it work for us

4 years agonsclpcsio - Initial import from OpenBSD
Alex Hornung [Sat, 26 Sep 2009 16:21:23 +0000 (17:21 +0100)]
nsclpcsio - Initial import from OpenBSD

Obtained-from: OpenBSD

4 years agogpio - gpio framework, initial commit
Alex Hornung [Sun, 4 Oct 2009 12:09:33 +0000 (13:09 +0100)]
gpio - gpio framework, initial commit

* Initial commit of the new gpio framework,including a sample gpio
  consumer driver, gpio_led.
  While the framework is not directly based on OpenBSD's, some
  structures and other similarities have been taken over to ease porting
  of gpio drivers from OpenBSD.

Partially-Obtained-from: OpenBSD

4 years agowdog - Watchdog framework, initial commit
Alex Hornung [Fri, 2 Oct 2009 20:59:22 +0000 (21:59 +0100)]
wdog - Watchdog framework, initial commit

* Initial commit of the new watchdog (wdog) framework.

4 years agodma: move config files to source directory
Simon Schubert [Sun, 4 Oct 2009 00:55:32 +0000 (02:55 +0200)]
dma: move config files to source directory

4 years agorelease engineering: DragonFly 2.5.1
Simon Schubert [Sat, 3 Oct 2009 22:06:49 +0000 (00:06 +0200)]
release engineering: DragonFly 2.5.1

4 years agolarn(6): Remove some dead SYSV code.
Sascha Wildner [Sat, 3 Oct 2009 21:21:28 +0000 (23:21 +0200)]
larn(6): Remove some dead SYSV code.

Submitted-by: Ulrich Spoerlein <uqs@spoerlein.net>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1550>

4 years agodma: add a plain Makefile for other systems
Simon Schubert [Sat, 3 Oct 2009 19:38:06 +0000 (21:38 +0200)]
dma: add a plain Makefile for other systems

Submitted-by: Michel Salim <salimma@fedoraproject.org>
4 years agodma: add DragonFly compat files
Simon Schubert [Sat, 3 Oct 2009 19:37:22 +0000 (21:37 +0200)]
dma: add DragonFly compat files

These are not used in DragonFly, but for compilation on other systems.

4 years agodma: don't use sockaddr_storage.ss_len
Simon Schubert [Sat, 3 Oct 2009 19:35:29 +0000 (21:35 +0200)]
dma: don't use sockaddr_storage.ss_len

sockaddr_storage.ss_len is not mandated by POSIX, so we shouldn't use
it.  Instead, use addrinfo.ai_addrlen.

4 years agodma: don't use __unused
Simon Schubert [Sat, 3 Oct 2009 19:32:07 +0000 (21:32 +0200)]
dma: don't use __unused

__unused avoids a gcc warning that the parameter is not being used, but
this does not exist in other systems or is overloaded with a different
meaning.

Instead simply use a cast to (void) to silence gcc.

4 years agodma: sort includes
Simon Schubert [Sat, 3 Oct 2009 19:31:26 +0000 (21:31 +0200)]
dma: sort includes

4 years agodma: use st_mtim to make source more POSIXy
Simon Schubert [Sat, 3 Oct 2009 19:18:45 +0000 (21:18 +0200)]
dma: use st_mtim to make source more POSIXy

4 years agosys/stat.h: implement st_atim et al
Simon Schubert [Sat, 3 Oct 2009 19:41:51 +0000 (21:41 +0200)]
sys/stat.h: implement st_atim et al

SUS Issue 7 requires st_atim and friends, which were called st_atimespec
in BSD.  Rename the fields to match SUS and provide compat defines for
both st_atimespec etc (for BSD) and st_atime (for old SUS/POSIX).

Discussed-with:  beket@

4 years agoBring in a padlock(4) manual page and also sync crypto.4.
Sascha Wildner [Sat, 3 Oct 2009 20:22:30 +0000 (22:22 +0200)]
Bring in a padlock(4) manual page and also sync crypto.4.

Taken-from: FreeBSD

4 years agogcc44 warnings: Shift in order to fit in 8 bits.
Sascha Wildner [Sat, 3 Oct 2009 18:53:32 +0000 (20:53 +0200)]
gcc44 warnings: Shift in order to fit in 8 bits.

4 years agoamd64 - Add missing AMD64_CPU_FAMILY/MODEL
Alex Hornung [Sat, 3 Oct 2009 18:42:02 +0000 (19:42 +0100)]
amd64 - Add missing AMD64_CPU_FAMILY/MODEL

* Add missing AMD64_CPU_FAMILY and AMD64_CPU_MODEL and related stuff,
  requred by the recent identcpu magic for VIA processors.

Reported-by: YONETANI Tomokazu
Obtained-from: FreeBSD

4 years agotools/tools/crypto - Update from FreeBSD
Alex Hornung [Sat, 3 Oct 2009 15:56:41 +0000 (16:56 +0100)]
tools/tools/crypto - Update from FreeBSD

Obtained-from: FreeBSD

4 years agoamd64 - add kvtop and add back ed(4) to AMD64_GENERIC
YONETANI Tomokazu [Sat, 3 Oct 2009 10:19:08 +0000 (19:19 +0900)]
amd64 - add kvtop and add back ed(4) to AMD64_GENERIC

4 years agoamd64 - Add via variable decls to md_var.h
Alex Hornung [Sat, 3 Oct 2009 15:12:58 +0000 (16:12 +0100)]
amd64 - Add via variable decls to md_var.h

* Add extern decls of via_feature_rng and via_feature_xcrypt to pc64
  md_var.h.
  This should solve an issue when building crypto/via/padlock on amd64.

Dragonfly-bug: http://bugs.dragonflybsd.org/issue1553
Reported-By: Simon "corecode" Schubert
4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sat, 3 Oct 2009 00:16:52 +0000 (17:16 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoNFS - Fix BIO size panics
Matthew Dillon [Sat, 3 Oct 2009 00:09:13 +0000 (17:09 -0700)]
NFS - Fix BIO size panics

* NFS calculates the BIO block size and stores it in mnt_stat.f_iosize.
  This field was getting overwritten with default values by STATFS
  being passing &mp->mnt_stat from the kernel.

  Conditionalize the field so it no longer gets overwritten, and also
  correct nm_rsize/nm_wsize tests to use the smaller of the two
  specifications for the BIO block size.

* Fixes diskless NFS root mounts, and NFS mounts which use smaller
  blocksizes.

Reported-by: Rumko <rumcic@gmail.com>, and others
4 years agohammer.sh: Adjust for devfs.
Sascha Wildner [Fri, 2 Oct 2009 23:23:12 +0000 (01:23 +0200)]
hammer.sh: Adjust for devfs.

4 years agovkernel - Fix build after recent crypto import when IPSEC is defined.
Matthew Dillon [Fri, 2 Oct 2009 22:59:51 +0000 (15:59 -0700)]
vkernel - Fix build after recent crypto import when IPSEC is defined.

4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 2 Oct 2009 22:58:47 +0000 (15:58 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agovkernel - Fix FP corruption from preemptive thread switch
Matthew Dillon [Fri, 2 Oct 2009 22:53:17 +0000 (15:53 -0700)]
vkernel - Fix FP corruption from preemptive thread switch

* Recent work on the vkernel enabled preemptive interrupt thread switching.
  This introduced a race where the floating point state could change
  out from under the vkernel's go_user() function, causing the FP state
  in the virtual user process to become corrupt.

* Fixed by introducing a critical section which essentially defers any
  preemptive thread switches inside go_user().

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
Test-cases-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
4 years agocrypto.9: Sync with FreeBSD's crypto(9) manual page.
Sascha Wildner [Fri, 2 Oct 2009 22:38:29 +0000 (00:38 +0200)]
crypto.9: Sync with FreeBSD's crypto(9) manual page.

Also fix prototypes and MLINKS.

Various parts of the page are still outdated, though.

4 years agotaskqueue - Beautify thread names
Alex Hornung [Fri, 2 Oct 2009 18:36:30 +0000 (19:36 +0100)]
taskqueue - Beautify thread names

* Beautify thread names by not printing _0 if only one thread for that
  taskqueue is being started/created.

4 years agotaskqueue - Mark taskq threads MPSAFE again
Alex Hornung [Fri, 2 Oct 2009 17:56:28 +0000 (18:56 +0100)]
taskqueue - Mark taskq threads MPSAFE again

4 years agotaskq - Make consumer tasks MPALMOSTSAFE
Alex Hornung [Fri, 2 Oct 2009 17:49:50 +0000 (18:49 +0100)]
taskq - Make consumer tasks MPALMOSTSAFE

* All consumers of taskqueue_thread[cpu] have to be at least
  MPALMOSTSAFE as they won't be called with the mplock held.

4 years agoktrace - Add kern.ktrace_suid, allowing suid/sgid execs to be ktraced.
Matthew Dillon [Fri, 2 Oct 2009 18:16:30 +0000 (11:16 -0700)]
ktrace - Add kern.ktrace_suid, allowing suid/sgid execs to be ktraced.

* Defaults to off (secure).  May be set to non-zero to allow ktraces to
  ktrace through an suid/sgid exec, for debugging purposes only.

4 years agotaskq - Fix SMP spinlock recursion
Matthew Dillon [Fri, 2 Oct 2009 18:15:46 +0000 (11:15 -0700)]
taskq - Fix SMP spinlock recursion

4 years agotaskq - Fix SMP panic due to incorrect lwkt_setpri() call.
Matthew Dillon [Fri, 2 Oct 2009 18:05:39 +0000 (11:05 -0700)]
taskq - Fix SMP panic due to incorrect lwkt_setpri() call.

4 years agolwkt - Add lwkt_setpri_initial()
Matthew Dillon [Fri, 2 Oct 2009 18:04:46 +0000 (11:04 -0700)]
lwkt - Add lwkt_setpri_initial()

* Add a lwkt_setpri_initial() call which has no cpu restriction but which
  requires the thread to not be scheduled.

4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 2 Oct 2009 16:14:30 +0000 (09:14 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoHAMMER - Fix root inode creation for slave.
Matthew Dillon [Fri, 2 Oct 2009 16:11:44 +0000 (09:11 -0700)]
HAMMER - Fix root inode creation for slave.

* The root inode for a PFS is only supposed to be created for PFS masters.
  PFS slaves get their root inode from the mirroring operation.  No longer
  create the root inode for a PFS slave.

  The root inode was being incorrectly created for slaves as well as
  masters, causing the root inode from the mirroring operation to be
  ignored.

  This caused the root directory for a slave to show up as empty when
  doing a mirror-copy from a HAMMER version 1 filesystem to a HAMMER
  version 2 filesystem.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
4 years agoopencrypto - Finish porting
Alex Hornung [Fri, 2 Oct 2009 13:24:19 +0000 (14:24 +0100)]
opencrypto - Finish porting

* Fix all remaining porting issues from the original opencrypto WIP
  commit.
* Remove clashes due to rebase.

4 years agombuf - Add m_apply and m_getptr
Alex Hornung [Mon, 28 Sep 2009 09:52:32 +0000 (10:52 +0100)]
mbuf - Add m_apply and m_getptr

* Import m_apply and m_getptr from FreeBSD.

Obtained-from: FreeBSD

4 years agoWIP crypto/opencrypto update
Sascha Wildner [Sun, 27 Sep 2009 12:49:00 +0000 (14:49 +0200)]
WIP crypto/opencrypto update

4 years agoVIA CPU support: Detect and enable CPU features (RNG, ACE etc.).
Sascha Wildner [Sat, 5 Sep 2009 06:36:27 +0000 (08:36 +0200)]
VIA CPU support: Detect and enable CPU features (RNG, ACE etc.).

Taken from: FreeBSD

4 years agokern_descrip - Remove leftover debug from devfs
Alex Hornung [Fri, 2 Oct 2009 13:55:25 +0000 (14:55 +0100)]
kern_descrip - Remove leftover debug from devfs

* Remove a leftover kprintf from the initial devfs development cycle.

4 years agotaskqueue.9 - Update to reflect ncpu changes
Alex Hornung [Fri, 2 Oct 2009 12:48:22 +0000 (13:48 +0100)]
taskqueue.9 - Update to reflect ncpu changes

4 years agotaskqueue - Improve _start_threads, refactor code
Alex Hornung [Fri, 2 Oct 2009 12:20:30 +0000 (13:20 +0100)]
taskqueue - Improve _start_threads, refactor code

* Change taskqueue_start_threads to take another argument, ncpu, which
  specifies on what cpu the thread(s) should be created.
  If ncpu is <= -1 and count is > 1, then each of the count threads is
  allocated in a round robin fashion to each cpu.

* Switch the per-cpu taskqueues to use the new taskqueue threads API.

Discussed-with: Simon "corecode" Schubert

4 years agoMerge branch 'master' of /repository/git/dragonfly
Peter Avalos [Thu, 1 Oct 2009 19:32:00 +0000 (19:32 +0000)]
Merge branch 'master' of /repository/git/dragonfly

4 years agoUpdate build for libarchive-2.7.1 import.
Peter Avalos [Thu, 1 Oct 2009 19:20:28 +0000 (19:20 +0000)]
Update build for libarchive-2.7.1 import.

4 years agoMerge branch 'vendor/LIBARCHIVE'
Peter Avalos [Thu, 1 Oct 2009 19:13:32 +0000 (19:13 +0000)]
Merge branch 'vendor/LIBARCHIVE'

4 years agoAHCI - Minor fixes
Matthew Dillon [Thu, 1 Oct 2009 19:12:45 +0000 (12:12 -0700)]
AHCI - Minor fixes

* Fix a conditional testing for hot plug removal.  This is mostly
  cosmetic but prevents a bogus "Device removed" message when plugging
  IN devices on ports which do not support hot-plug.

* Print the port capabilities out for each port during device probe.
  This makes it easier to diagnose bug reports if people try to use
  hot-plug on devices (usually old AHCI 1.0 chipsets) which do not
  support hot-plug.  These chipsets do not do device detection on
  the port change event and also usually do not implement CLO, so
  there isn't much the driver can do.

4 years agoImport libarchive-2.7.1.
Peter Avalos [Thu, 1 Oct 2009 19:02:36 +0000 (19:02 +0000)]
Import libarchive-2.7.1.

* Suppress bogus warning about unxz
* Support lzma/xz files compressed with larger buffer sizes.
* Handle gzip files signed with OpenBSD "gzsig" program.
* Avoid false failures when reading from pipe.

4 years agoSync zoneinfo database with tzdata2009n from elsie.
Sascha Wildner [Thu, 1 Oct 2009 09:35:51 +0000 (11:35 +0200)]
Sync zoneinfo database with tzdata2009n from elsie.

asia:           8.40 -> 8.41
southamerica:   8.36 -> 8.37

* Pakistan ends DST on Oct 1, 2009

* Add some comments about Argentinian provinces oppsing 2009/10 DST.

4 years agoCAM - Fix missing SIM lock in cam_periph_release()
Matthew Dillon [Wed, 30 Sep 2009 22:26:05 +0000 (15:26 -0700)]
CAM - Fix missing SIM lock in cam_periph_release()

* When releasing the last reference on a CAM peripheral which has been
  marked invalid, the peripheral is then freed.  Freeing the peripheral
  requires the SIM lock.

  Go through necessary tribulations to acquire the SIM lock.  The lock order
  is important (SIM lock first, XPT lock second), and the SIM lock may or
  may not already be held by the thread.

* The bug could cause a crash after burning a CD as the CD becomes invalid
  after the burn completes in order to reload its state.

4 years agokernel - add missing header commit to interrupt config hooks changes
Matthew Dillon [Wed, 30 Sep 2009 19:57:50 +0000 (12:57 -0700)]
kernel - add missing header commit to interrupt config hooks changes

4 years agokernel - close holes in autoconf's run_interrupt_driven_config_hooks()
Matthew Dillon [Wed, 30 Sep 2009 18:47:25 +0000 (11:47 -0700)]
kernel - close holes in autoconf's run_interrupt_driven_config_hooks()

* Interlock with a ran_config_hooks static variable instead of 'cold'

* Get rid of list races which might occur due to hooks being removed
  while the hooks are being run.

* Use a finer 1-second sleep interval instead of a 10-second sleep.

4 years agokernel - CAM - track busses for configuration
Matthew Dillon [Wed, 30 Sep 2009 18:45:53 +0000 (11:45 -0700)]
kernel - CAM - track busses for configuration

* To prevent an underflow of the busses_to_config variable, track
  which busses were counted towards the busses we are waiting for.

* Add kprintfs for verbose operation plus one or two for normal booting.

4 years agokernel - add missing M_ZERO in taskqueue_create()
Matthew Dillon [Wed, 30 Sep 2009 18:38:53 +0000 (11:38 -0700)]
kernel - add missing M_ZERO in taskqueue_create()

* taskqueue_create() was not ensuring a zero'd task queue structure,
  resulting in a situation where the flags and other fields could end
  up as garbage and prevent the taskqueue from being signaled on enqueue.

* This bug was responsible for situations where CAM fails to complete
  its configuration, generating warnings for 60 seconds and then giving
  up.

4 years agonrelease - gui build www/firefox3 -> www/firefox
Matthew Dillon [Wed, 30 Sep 2009 16:39:52 +0000 (09:39 -0700)]
nrelease - gui build www/firefox3 -> www/firefox

* The www/firefox3 directory was removed from pkgsrc and
  is now just www/firefox.

4 years agoMerge commit 'crater/master'
Simon 'corecode' Schubert [Wed, 30 Sep 2009 15:05:55 +0000 (17:05 +0200)]
Merge commit 'crater/master'

4 years agoacpi_thermal: add sensors framework support
Alexander Polakov [Wed, 30 Sep 2009 16:07:00 +0000 (16:07 +0000)]
acpi_thermal: add sensors framework support

4 years agoFix chdir/fchdir for setuid/setgid binaries
Simon 'corecode' Schubert [Wed, 30 Sep 2009 15:02:24 +0000 (17:02 +0200)]
Fix chdir/fchdir for setuid/setgid binaries

Access checks for a directory have to be done using the euid/egid, not
the ruid/rgid.

4 years agodevelopment.7: clarify vendor import section
Simon 'corecode' Schubert [Wed, 30 Sep 2009 14:38:20 +0000 (16:38 +0200)]
development.7: clarify vendor import section

Vendor imports on branches that already exist have to be handled a bit
differently, so document this.

4 years agoman: fix bug with relative file names
Simon 'corecode' Schubert [Wed, 30 Sep 2009 14:35:32 +0000 (16:35 +0200)]
man: fix bug with relative file names

Man assembles a command chain which only works properly when the passed
file name is absolute or relative without any directory component.

4 years agotcsh: fix warning to keep compiling with WARNS=2
Simon 'corecode' Schubert [Wed, 30 Sep 2009 13:55:28 +0000 (15:55 +0200)]
tcsh: fix warning to keep compiling with WARNS=2