11 years agoDo not dereference a null pointer for a malformed line in master.passwd.
Peter Avalos [Sun, 28 Dec 2008 06:25:56 +0000 (01:25 -0500)]
Do not dereference a null pointer for a malformed line in passwd.

Instead, just copy it silently to prevent programs from bailing.  While
I'm here, remove some (void) casts.

Obtained-from: FreeBSD

11 years agoRemove libskey(3). libopie replaces it.
Peter Avalos [Sat, 3 Jan 2009 01:07:04 +0000 (20:07 -0500)]
Remove libskey(3).  libopie replaces it.

11 years agoAdd full PAM support for account management and sessions to su(1).
Peter Avalos [Sat, 3 Jan 2009 03:21:33 +0000 (22:21 -0500)]
Add full PAM support for account management and sessions to su(1).

Obtained-from: FreeBSD

11 years agoRemove S/Key key-handling apps which are replaced by OPIE's.
Peter Avalos [Fri, 2 Jan 2009 20:40:49 +0000 (15:40 -0500)]
Remove S/Key key-handling apps which are replaced by OPIE's.

11 years agoRemove rexecd(8).
Peter Avalos [Fri, 2 Jan 2009 20:25:46 +0000 (15:25 -0500)]
Remove rexecd(8).

It's been obsolete since the 4.3BSD days, and it's been discouraged for
over a decade.

11 years agoSync ftpd(8) with FreeBSD. Here are the highlights:
Peter Avalos [Fri, 2 Jan 2009 23:16:23 +0000 (18:16 -0500)]
Sync ftpd(8) with FreeBSD. Here are the highlights:

-Prevent cross-site forgery attacks on ftpd(8) due to splitting
long commands into multiple requests.

-Switch from S/Key to OPIE.

-Add PAM support for account management and sessions.

-Avoid calling uninitialized function pointers in protocol switch

-Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).

-Use uniform punctuation, capitalization, and language style
in server messages wherever this doesn't contradict to a particular
message format.

-Use the standardized CHAR_BIT constant instead of NBBY.

-Let tilde expansion be done even if a file/directory doesn't exist yet.
This makes such natural commands as "MKD ~user/newdir" or "STOR
~/newfile" do what they are supposed to instead of failing miserably
with the "File not found" error.

-ANSI function declarations.

-Remove (void) casts and register keyword.

-Block SIGURG while reading from the control channel.
SIGURG is configured by ftpd to interrupt system calls, which is useful
during data transfers.  However, SIGURG could interrupt I/O on the
control channel as well, which was mistaken for the end of the session.
A practical example could be aborting the download of a tiny file,
when the abort sequence reached ftpd after ftpd had passed the file
data to the system and returned to its command loop.

-Improve error handling in getline().

-Log pathname arguments to ftp commands as the user specified them;
add the working directory pathname to the log message if any of
such arguments isn't absolute.  This has advantage over the old
way of logging that an admin can see what users are actually trying
to do, and where.  The old code was also not too robust when it
came to a chrooted session and an absolute pathname.

-Improve handling SIGURG and OOB commands on the control channel.
The major change is to process STAT sent as an OOB command w/o
breaking the current data transfer.  As a side effect, this gives
better error checking in the code performing data transfers.

-Never emit a message to stderr: use syslog instead.
When in inetd mode, this prevents bogus messages from
appearing on the control channel.  When running as a
daemon, we shouldn't write to the terminal we used to
have at all.

-Don't depend on IPv4-mapped IPv6 address to bind to both IPv4
and IPv6.

-Work around a bug in some clients by never returning raw directory
contents in reply to a RETR command.  Such clients consider RETR
as a way to tell a file from a directory.

-Log the actual number of bytes sent on the wire to /var/log/ftpd
instead of the disk size of the file sent.   Since the log file
is intended to provide data for anonymous ftp traffic accounting,
the disk size of the file isn't really informative in this case.

11 years agoUse a Makefile in etc/pam.d instead of the one in etc/.
Peter Avalos [Fri, 2 Jan 2009 19:36:55 +0000 (14:36 -0500)]
Use a Makefile in etc/pam.d instead of the one in etc/.

11 years agoRemove unneeded variable settings (set by etc/defaults/rc.conf anyway).
Sascha Wildner [Sat, 3 Jan 2009 15:31:16 +0000 (16:31 +0100)]
Remove unneeded variable settings (set by etc/defaults/rc.conf anyway).

11 years agoFix a typo. Actually is 16, not 12
Matthias Schmidt [Sat, 3 Jan 2009 13:16:58 +0000 (14:16 +0100)]
Fix a typo.  Actually is 16, not 12

11 years agoMerge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Matthias Schmidt [Sat, 3 Jan 2009 13:07:22 +0000 (14:07 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly

11 years agoMake the "Configure installed system" functionality work
Matthias Schmidt [Sat, 3 Jan 2009 12:54:33 +0000 (13:54 +0100)]
Make the "Configure installed system" functionality work

This button did not work, because the installer could not determine whether
the installed fs is HAMMER or UFS.  Ask the user before mounting the partition.
I chose the simple dialog rather than a automatic solution because it would
make the installer even more ugly (i.e. it would results in some grep+awk+foobar

11 years agoAdjust for the portmap -> rpcbind change (fix netboot option).
Sascha Wildner [Sat, 3 Jan 2009 12:51:17 +0000 (13:51 +0100)]
Adjust for the portmap -> rpcbind change (fix netboot option).

While I'm here, remove some non-Dragonfly stuff and sort the lists.

11 years agoZero out the disklabel before using it
Matthias Schmidt [Sat, 3 Jan 2009 12:39:38 +0000 (13:39 +0100)]
Zero out the disklabel before using it

Otherwise using a 64-bit disklabel on a disk which contains a 32-bit
disklabel is not possible and vice versa.

11 years agoMore installer work
Matthias Schmidt [Sat, 3 Jan 2009 12:19:35 +0000 (13:19 +0100)]
More installer work

* During the last HAMMER work, the UFS installer got broken.  Fix this.
  Thanks swildner@ for noticing.
* Handle PFS mounts correctly

11 years agoTemporary hack out reentrant user database functions.
Hasso Tepper [Fri, 2 Jan 2009 22:48:31 +0000 (00:48 +0200)]
Temporary hack out reentrant user database functions.

Bringing in reentrant user database functions caused major issues with
pkgsrc and there is no time to fix these (2008Q4 is released really
soon now). Also there seem to be some missing pieces to conform SUSv3.

The hack will be reverted after 2.2 release.

The patch by pavalos@, requested by me.

11 years agoAdd ifmedia(4) reference.
Sascha Wildner [Fri, 2 Jan 2009 23:24:28 +0000 (00:24 +0100)]
Add ifmedia(4) reference.

11 years agoFix section.
Sascha Wildner [Fri, 2 Jan 2009 23:07:39 +0000 (00:07 +0100)]
Fix section.

11 years agoNumerous adjustments to the recent rpcbind etc. changes.
Sascha Wildner [Fri, 2 Jan 2009 23:00:24 +0000 (00:00 +0100)]
Numerous adjustments to the recent rpcbind etc. changes.

11 years agoUse .CURDIR instead of matching .ALLSRC.
Simon Schubert [Fri, 2 Jan 2009 21:39:54 +0000 (22:39 +0100)]
Use .CURDIR instead of matching .ALLSRC.

This allows compilation without object dir.

11 years agoZero out the start of the disk.
Sascha Wildner [Fri, 2 Jan 2009 13:18:03 +0000 (14:18 +0100)]
Zero out the start of the disk.

11 years agoAdd more files which were removed in the recent commit spree.
Sascha Wildner [Fri, 2 Jan 2009 12:32:01 +0000 (13:32 +0100)]
Add more files which were removed in the recent commit spree.

11 years agoAdd age(4) for Attansic/Atheros L1 gigabit ethernet controller.
Sepherosa Ziehau [Fri, 2 Jan 2009 11:52:51 +0000 (19:52 +0800)]
Add age(4) for Attansic/Atheros L1 gigabit ethernet controller.

Obtained-from: FreeBSD (yongari@freebsd.org)

11 years agoAdd VPD capability register offsets
Sepherosa Ziehau [Fri, 2 Jan 2009 11:37:42 +0000 (19:37 +0800)]
Add VPD capability register offsets

Obtained-from: FreeBSD

11 years agoChange the GCC specific __FUNCTION__ to C99's __func__.
Peter Avalos [Thu, 1 Jan 2009 15:51:45 +0000 (10:51 -0500)]
Change the GCC specific __FUNCTION__ to C99's __func__.

Obtained-from: FreeBSD

11 years agoAvoid namespace pollution for applications that link in libssh.
Peter Avalos [Thu, 1 Jan 2009 01:26:28 +0000 (20:26 -0500)]
Avoid namespace pollution for applications that link in libssh.

Obtained-from: FreeBSD

11 years agoLock out authentication if the account has been locked by pw(8).
Peter Avalos [Mon, 29 Dec 2008 01:20:17 +0000 (20:20 -0500)]
Lock out authentication if the account has been locked by pw(8).

In account management, verify whether the account has been locked
with `pw lock', so that it's impossible to log into a locked account
using an alternative authentication mechanism, such as an ssh key.
This change affects only accounts locked with pw(8), i.e., having a
`*LOCKED*' prefix in their password hash field, so people still can
use a different pattern to disable password authentication only.

Also, clean out some (void) casts and use libypclnt.

Obtained-from: FreeBSD

11 years agoA few bug-fixes for pam_ssh:
Peter Avalos [Mon, 29 Dec 2008 00:26:38 +0000 (19:26 -0500)]
A few bug-fixes for pam_ssh:

-Narrow the use of user credentials.
-Fix one case where openpam_restore_cred() might be called twice in a
-Do not use passphraseless keys for authentication unless the nullok
option was specified.
-Correct the logic for determining whether the user has already entered
a password.

Obtained-from: FreeBSD

11 years agoAlso send Access Challenge in pam_radius.
Peter Avalos [Mon, 29 Dec 2008 00:02:14 +0000 (19:02 -0500)]
Also send Access Challenge in pam_radius.

Obtained-from: FreeBSD

11 years agoCorrect documentation of ~/.opiealways
Peter Avalos [Sun, 28 Dec 2008 23:53:43 +0000 (18:53 -0500)]
Correct documentation of ~/.opiealways

Obtained-from: FreeBSD

11 years agoReject usernames that are longer than OPIE can handle.
Peter Avalos [Sun, 28 Dec 2008 23:42:36 +0000 (18:42 -0500)]
Reject usernames that are longer than OPIE can handle.

Obtained-from: FreeBSD

11 years agoAdd some more pam modules:
Peter Avalos [Sun, 28 Dec 2008 22:19:37 +0000 (17:19 -0500)]
Add some more pam modules:

pam_echo(8)         Display args to user.
pam_exec(8)         Execute a program.
pam_ftpusers(8)     Enforces /etc/ftpusers.
pam_group(8)        Accept/reject a user based on their group.
pam_guest(8)        Allow guest logins.
pam_ksu(8)          Kerberos 5 auth for su(1).
pam_lastlog(8)      Record sessions in utmp/wtmp/lastlog.
pam_login_access(8) Enforces /etc/login.access.
pam_rhosts(8)       See rhosts(5).
pam_rootok(8)       Succeeds if root.
pam_securetty(8)    Succeeds if use is on a secure tty.
pam_self(8)         Checks if local and remote user names are equal.

Obtained-from: FreeBSD

11 years agoMove WARNS6 into pam_module/Makefile.inc.
Peter Avalos [Sun, 28 Dec 2008 20:24:50 +0000 (15:24 -0500)]
Move WARNS6 into pam_module/Makefile.inc.

11 years agoAdd a pam_chroot(8) module.
Peter Avalos [Sun, 28 Dec 2008 19:21:45 +0000 (14:21 -0500)]
Add a pam_chroot(8) module.

Also, let's make pam_module/Makefile a little easier to deal with.

Obtained-from: FreeBSD

11 years agoHandle 'hammer cleanup' using the output of mount instead of df.
Sascha Wildner [Thu, 1 Jan 2009 22:42:55 +0000 (23:42 +0100)]
Handle 'hammer cleanup' using the output of mount instead of df.

This fixes hammer(8) trying to cleanup null mounts which are not HAMMER

11 years agoSome fixes related to the HAMMER support in the installer.
Sascha Wildner [Thu, 1 Jan 2009 19:05:12 +0000 (20:05 +0100)]
Some fixes related to the HAMMER support in the installer.

* Add HAMMER related command names to the correct cmdnames.conf and
  remove the one in contrib/ to avoid future confusion.

* Fix array initialization.

* Improve wording a bit.

11 years agoRefactor sys_jail() and fix bugs.
Michael Neumann [Thu, 1 Jan 2009 18:24:10 +0000 (18:24 +0000)]
Refactor sys_jail() and fix bugs.

Fixes two issues:

  * uap->sysmsg_result was not consistently assigned -1 in case of
    an error.

  * A version 0 syscall triggered a copyinstr(j.hostname, ...) on an
    uninitialized struct jail j.

11 years agoRegenerate the pciconf(8) database from the following files:
Sascha Wildner [Thu, 1 Jan 2009 16:59:35 +0000 (17:59 +0100)]
Regenerate the pciconf(8) database from the following files:

Hart:    Jan 22, 2008 (version 671)
Boemler: Jan  1, 2009
Mares:   Dec 27, 2008

11 years agoMerge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Thu, 1 Jan 2009 16:49:31 +0000 (17:49 +0100)]
Merge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly

11 years agoHook in priv.9 and add MLINKS.
Sascha Wildner [Thu, 1 Jan 2009 16:48:50 +0000 (17:48 +0100)]
Hook in priv.9 and add MLINKS.

11 years agoRe-add ascii2addr() and addr2ascii() prototypes.
Sascha Wildner [Thu, 1 Jan 2009 16:35:53 +0000 (17:35 +0100)]
Re-add ascii2addr() and addr2ascii() prototypes.

11 years agoAdd weak symbol for inet_ntop()
Sepherosa Ziehau [Thu, 1 Jan 2009 14:51:52 +0000 (22:51 +0800)]
Add weak symbol for inet_ntop()

Reported-by: hasso@
While I am here, move inet_net_ntop() weak reference generation macro
to its own file.

11 years agoUse consistent sizeof() style
Michael Neumann [Thu, 1 Jan 2009 14:56:21 +0000 (14:56 +0000)]
Use consistent sizeof() style

11 years agoUse kfree() instead of FREE macro
Michael Neumann [Thu, 1 Jan 2009 14:52:15 +0000 (14:52 +0000)]
Use kfree() instead of FREE macro

11 years agoCosmetic changes + comments
Michael Neumann [Thu, 1 Jan 2009 14:50:34 +0000 (14:50 +0000)]
Cosmetic changes + comments

11 years agoFix typo (unbreaks LINT build).
Sascha Wildner [Thu, 1 Jan 2009 13:29:05 +0000 (14:29 +0100)]
Fix typo (unbreaks LINT build).

11 years agoRemove some sentences that do not apply to DragonFly
Michael Neumann [Thu, 1 Jan 2009 12:52:49 +0000 (12:52 +0000)]
Remove some sentences that do not apply to DragonFly

11 years agoBring in priv(9) man page from FreeBSD (rev 1.7)
Michael Neumann [Thu, 1 Jan 2009 12:32:57 +0000 (12:32 +0000)]
Bring in priv(9) man page from FreeBSD (rev 1.7)

11 years agoWelcome 2009 to our copyrights.
Sascha Wildner [Wed, 31 Dec 2008 22:44:46 +0000 (23:44 +0100)]
Welcome 2009 to our copyrights.

Happy new year, everybody! :)

11 years agoMerge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Matthias Schmidt [Tue, 30 Dec 2008 22:06:48 +0000 (23:06 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly

11 years agoAdd ale(4) for Atheros AR8121/AR8113/AR8114 PCIe ethernet controller.
Sepherosa Ziehau [Wed, 31 Dec 2008 14:20:17 +0000 (22:20 +0800)]
Add ale(4) for Atheros AR8121/AR8113/AR8114 PCIe ethernet controller.

Obtained-from: FreeBSD (yongari@freebsd.org)

11 years agoAdd LLC_SNAPFRAMELEN
Sepherosa Ziehau [Wed, 31 Dec 2008 13:41:26 +0000 (21:41 +0800)]

11 years agoUnbreak build. Fix missing include.
Michael Neumann [Wed, 31 Dec 2008 14:55:59 +0000 (14:55 +0000)]
Unbreak build. Fix missing include.

11 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Michael Neumann [Wed, 31 Dec 2008 13:39:28 +0000 (13:39 +0000)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

11 years agoFix typo
Michael Neumann [Wed, 31 Dec 2008 13:32:18 +0000 (13:32 +0000)]
Fix typo

11 years agoUnbreak kernel/module building without INVARIANTS
Sepherosa Ziehau [Wed, 31 Dec 2008 13:22:17 +0000 (21:22 +0800)]
Unbreak kernel/module building without INVARIANTS

11 years agoMerge branches 'master' and 'suser_to_priv'
Michael Neumann [Wed, 31 Dec 2008 13:06:40 +0000 (13:06 +0000)]
Merge branches 'master' and 'suser_to_priv'



11 years agoExplicitly set a compiler instead of defaulting to CCVER.
Simon Schubert [Wed, 31 Dec 2008 12:48:04 +0000 (13:48 +0100)]
Explicitly set a compiler instead of defaulting to CCVER.

11 years agoProperly pass WORLD_CCVER through to buildworld.
Simon Schubert [Wed, 31 Dec 2008 12:15:10 +0000 (13:15 +0100)]
Properly pass WORLD_CCVER through to buildworld.

11 years agoPass HOST_CCVER along.
Simon Schubert [Wed, 31 Dec 2008 11:51:51 +0000 (12:51 +0100)]
Pass HOST_CCVER along.

11 years agoIA_PRF_RTEXISTOK is no longer needed, in_{add,scrub}prefix() does more
Sepherosa Ziehau [Mon, 29 Dec 2008 10:51:49 +0000 (18:51 +0800)]
IA_PRF_RTEXISTOK is no longer needed, in_{add,scrub}prefix() does more
than this flag originally targetted.

11 years agoCall if_up(), if in_ifinit() brings interface up (via ifp->if_ioctl).
Sepherosa Ziehau [Sun, 28 Dec 2008 05:31:41 +0000 (13:31 +0800)]
Call if_up(), if in_ifinit() brings interface up (via ifp->if_ioctl).
This is done no matter whether the address assignment fails or not.

This commit is intend to fix following case:

ifconfig iface0
ifconfig iface0 down
ifconfig iface0 alias

Before this commit, prefix route will not be installed.

11 years agoBring in in_{add,scrub}prefix() from OpenBSD.
Sepherosa Ziehau [Sat, 27 Dec 2008 13:13:53 +0000 (21:13 +0800)]
Bring in in_{add,scrub}prefix() from OpenBSD.

These two functions are used to add/delete "prefix route" for
interface addresses.

in_addprefix() allows addresses with same prefix to be added by
checking the prefix's existence before calling rtinit(), if same
prefix exists, it returns silently.  Originally rtinit() will fail
in in_ifinit() and the address will not be added.  This function
at least makes the result of address assignment consistent in
following two cases:

ifconfig iface1 inet
ifconfig iface0 inet

Origianlly last command will fail, since the route to
already exists.

ifconfig iface0 inet
ifconfig iface0 down
ifconfig iface1 inet
ifconfig iface0 up

However, originally, above commands sequence will successfully add to iface0 ;)

To make in_addprefix() function properly following fix is brought
in from ru@freebsd.org via OpenBSD:
  For loopback, set ia_dstaddr instead of ia_ifa.ifa_dstaddr in

Following changes are made to the OpenBSD's in_addprefix():
- Don't try to match the prefix against the address to be added.
- Test subnetmask only if the tested address and the to be added
  address are not for loopback or point to point interface.

in_scrubprefix() will try to find an address with same prefix
as the to-be-deleted address.  If suitable address is found, then
in addition to delete the to-be-deleted address's prefix route,
a new prefix route associated with the suitable address will be

Following changes are made to OpenBSD's in_scrubprefix():
- Don't try to match the prefix against the address to be deleted.
- Don't even try to add prefix route for an address whose parent
  interface is not up yet.

11 years agoMerge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Matthias Schmidt [Tue, 30 Dec 2008 22:00:05 +0000 (23:00 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly

11 years agoAdd HAMMER specific subpart file to the installer
Matthias Schmidt [Tue, 30 Dec 2008 21:58:33 +0000 (22:58 +0100)]
Add HAMMER specific subpart file to the installer

11 years agoAdd HAMMER support to the installer
Matthias Schmidt [Tue, 30 Dec 2008 21:52:58 +0000 (22:52 +0100)]
Add HAMMER support to the installer

Commit the installer work done at the 25c3 in Berlin.  This adds experimental
HAMMER support to the installer.  Note: the current version requires a recent
master which is able to boot from HAMMER.  I dropped the UFS /boot support
in favour for HAMMER boot support (yes, I know about the issues, but I'm sure
you guys will get them solved :)

Note: This is a first version, so do not blame me if the installer eats up
your hard disk :)

11 years agoDocument rpc_{lock,stat}d_flags and nscd_enable.
Sascha Wildner [Tue, 30 Dec 2008 17:28:01 +0000 (18:28 +0100)]
Document rpc_{lock,stat}d_flags and nscd_enable.

11 years agoFix some WARNS6 regression that crept up in the last days.
Sascha Wildner [Tue, 30 Dec 2008 15:35:10 +0000 (16:35 +0100)]
Fix some WARNS6 regression that crept up in the last days.

11 years agoMerge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Tue, 30 Dec 2008 12:13:41 +0000 (13:13 +0100)]
Merge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly

11 years agoFix WARNS6 regression.
Sascha Wildner [Tue, 30 Dec 2008 12:13:20 +0000 (13:13 +0100)]
Fix WARNS6 regression.

11 years agoAllow building of crosstools and world with different compilers.
Simon 'corecode' Schubert [Mon, 29 Dec 2008 23:58:00 +0000 (00:58 +0100)]
Allow building of crosstools and world with different compilers.

11 years agoProperly use HAMMER_BUFMASK64 when taking the complement.
Matthew Dillon [Mon, 29 Dec 2008 20:24:23 +0000 (12:24 -0800)]
Properly use HAMMER_BUFMASK64 when taking the complement.

Fix an overflow check which ensures that the copied data is within the
aligned 16K buffer returned by hread().  boff was not being taken into

11 years agoFix objdir usage.
Simon 'corecode' Schubert [Mon, 29 Dec 2008 19:28:57 +0000 (20:28 +0100)]
Fix objdir usage.

11 years agoAdd more bits for native hammer boot support.
Simon 'corecode' Schubert [Mon, 29 Dec 2008 18:43:17 +0000 (19:43 +0100)]
Add more bits for native hammer boot support.

11 years agoRemove outdated conditional.
Simon 'corecode' Schubert [Mon, 29 Dec 2008 18:42:59 +0000 (19:42 +0100)]
Remove outdated conditional.

11 years agoFix hammer read and add debug info.
Simon 'corecode' Schubert [Mon, 29 Dec 2008 18:40:45 +0000 (19:40 +0100)]
Fix hammer read and add debug info.

11 years agoDon't pass assembler flags to the compiler.
Simon 'corecode' Schubert [Sun, 28 Dec 2008 14:09:22 +0000 (15:09 +0100)]
Don't pass assembler flags to the compiler.

11 years agoUmass needs cam.
Simon 'corecode' Schubert [Sun, 28 Dec 2008 13:37:34 +0000 (14:37 +0100)]
Umass needs cam.

11 years agoRemove a process from the zombie list before starting to destruct its data structures.
Simon 'corecode' Schubert [Sun, 28 Dec 2008 13:24:07 +0000 (14:24 +0100)]
Remove a process from the zombie list before starting to destruct its data structures.

11 years agoRemove the workaround for the wrong autosizing calculation in disklabel(8).
Sascha Wildner [Mon, 29 Dec 2008 18:35:25 +0000 (19:35 +0100)]
Remove the workaround for the wrong autosizing calculation in disklabel(8).

11 years agoMerge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Mon, 29 Dec 2008 18:33:51 +0000 (19:33 +0100)]
Merge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly

11 years agoImprove the logic for autosizing partitions.
Sascha Wildner [Mon, 29 Dec 2008 18:33:17 +0000 (19:33 +0100)]
Improve the logic for autosizing partitions.

This fixes the error with '*' for offset and size when the first
partition didn't start at 0.

Taken-from: FreeBSD

11 years agoIncrease ARG_MAX to 262144.
Hasso Tepper [Mon, 29 Dec 2008 15:05:13 +0000 (17:05 +0200)]
Increase ARG_MAX to 262144.

11 years agoUpdate jme(4) manpage
Sepherosa Ziehau [Mon, 29 Dec 2008 14:20:31 +0000 (22:20 +0800)]
Update jme(4) manpage

11 years agoAllow packet count based RX/TX interrupt coalescing to be disabled.
Sepherosa Ziehau [Mon, 29 Dec 2008 14:15:45 +0000 (22:15 +0800)]
Allow packet count based RX/TX interrupt coalescing to be disabled.
This is helpful if large amount of small packets are injected into or
bumped from the NIC; pure timeout based RX/TX interrupt coalescing is
more effective under this situation.

11 years agoTypo
Sepherosa Ziehau [Mon, 29 Dec 2008 14:15:26 +0000 (22:15 +0800)]

11 years agoAdd driver for Attansic PHYs.
Sepherosa Ziehau [Mon, 29 Dec 2008 12:08:10 +0000 (20:08 +0800)]
Add driver for Attansic PHYs.

Obtained-from: FreeBSD (yongari@freebsd.org)

11 years agoregen
Sepherosa Ziehau [Mon, 29 Dec 2008 11:17:35 +0000 (19:17 +0800)]

11 years agoAdd Atheos Attansic PHY IDs
Sepherosa Ziehau [Mon, 29 Dec 2008 11:17:15 +0000 (19:17 +0800)]
Add Atheos Attansic PHY IDs

11 years agoOne more remainder of the post-SoC amd64 to fix VKERNEL build.
YONETANI Tomokazu [Mon, 29 Dec 2008 11:56:17 +0000 (20:56 +0900)]
One more remainder of the post-SoC amd64 to fix VKERNEL build.

11 years agoInclude necessary header file for SYSCTL_NODE
Sepherosa Ziehau [Mon, 29 Dec 2008 11:05:26 +0000 (19:05 +0800)]
Include necessary header file for SYSCTL_NODE

11 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into...
Matthew Dillon [Sun, 28 Dec 2008 23:35:37 +0000 (15:35 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into devel

11 years agoHAMMER performance and kernel memory issues.
Matthew Dillon [Sun, 28 Dec 2008 23:29:48 +0000 (15:29 -0800)]
HAMMER performance and kernel memory issues.

* The flusher could stall-out due to deadlocks under certain heavy load
  situations (blogbench -i1000 -o), causing the number of hammer inodes
  to increase slowly until the kernel runs out of memory.

  Fix this by detecting the condition and stalling the threads
  causing the deadlocks instead for a short while.  Any user thread
  which blocked performing B-Tree node I/O is a candidate.

* Improve the stability of the inode reclaim heuristic which slows
  down the creation of new inodes when too many disconnected hammer
  inodes are present.

* Remove vfs.hammer.limit_iqueued - this sysctl is no longer used.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
11 years agoAdd vesa(4) which is a link for vga(4)
Matthias Schmidt [Sun, 28 Dec 2008 11:13:36 +0000 (11:13 +0000)]
Add vesa(4) which is a link for vga(4)

If someone wants to set VESA modes, it would be natural to search
for a vesa man page.

11 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into...
Matthew Dillon [Sun, 28 Dec 2008 04:29:11 +0000 (20:29 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into devel

11 years agoamd64 work: fp_write() takes address of ssize_t, not address of int.
Matthew Dillon [Sun, 28 Dec 2008 04:28:30 +0000 (20:28 -0800)]
amd64 work: fp_write() takes address of ssize_t, not address of int.

11 years agoNsswitch now supports caching. See ncsd(8) for details.
Peter Avalos [Sat, 27 Dec 2008 17:32:38 +0000 (12:32 -0500)]
Nsswitch now supports caching.  See ncsd(8) for details.

11 years agoAdd flopen(3) which opens and locks a file.
Peter Avalos [Sat, 27 Dec 2008 18:49:10 +0000 (13:49 -0500)]
Add flopen(3) which opens and locks a file.

Obtained-from: FreeBSD

11 years agoUse BIND's resolver in libc.
Peter Avalos [Sun, 21 Dec 2008 08:36:37 +0000 (03:36 -0500)]
Use BIND's resolver in libc.

This also syncs some code from FreeBSD bringing along bug fixes and more
thread-safe routines.

Obtained-from: FreeBSD

11 years agoAdd the management part of address selection policy described in RFC
Peter Avalos [Fri, 26 Dec 2008 03:37:08 +0000 (22:37 -0500)]
Add the management part of address selection policy described in RFC

Obtained-from: KAME via FreeBSD
Reviewed-by: sephe & hasso
11 years agoAdd nsswitch support.
Peter Avalos [Mon, 22 Dec 2008 02:24:07 +0000 (21:24 -0500)]
Add nsswitch support.

The nsswitch.conf(5) manual page has a description of nsswitch.
Curiously, we already had this manual page, even though we didn't
support it.

/etc/host.conf is removed from src/, but if host.conf exists and
nsswitch.conf does not, nsswitch.conf will be created using its

Included in this commit is a framework for nsswitch caching, nscd(8),
but it relies on a few upcoming changes to our libc before it will work.
For now, it's turned off.

Also this commit includes hesiod support which is not compiled by
default.  Add WANT_HESIOD=true to make.conf to get it working.

Obtained-from: FreeBSD