dragonfly.git
14 years agoNote that select behaves like sleep(3) when no descriptors are being checked.
Simon Schubert [Wed, 3 Aug 2005 12:44:23 +0000 (12:44 +0000)]
Note that select behaves like sleep(3) when no descriptors are being checked.

14 years agoUpdate manpages to reflect the changes joerg did that added const to some
Eirik Nygaard [Wed, 3 Aug 2005 09:56:19 +0000 (09:56 +0000)]
Update manpages to reflect the changes joerg did that added const to some
function arguments.

Submitted by: Peter Avalos <pavalos@theshell.com>

14 years agoBUF/BIO cleanup 2/99:
Hiten Pandya [Wed, 3 Aug 2005 04:59:53 +0000 (04:59 +0000)]
BUF/BIO cleanup 2/99:

Localise buffer queue information into kern/vfs_bio.c, it should not be
messed with outside of the named file.  Convert the QUEUE_* #defines
into enum bufq_type, prefix the names with 'B'.  The change to initpbuf()
is acceptable since they are a hack anyway, not to mention that

Move vfs_bufstats() from kern/vfs_syscalls.c into kern/vfs_bio.c since
that's where it should really belong, atleast till its use is cleaned.

Move bufqueues extern from sys/buf.h into kern/vfs_bio.c as it shouldn't
be messed with by anything else.  It was only sitting in sys/buf.h
because of vfs_bufstats().

Note the change to initpbuf() is acceptable since they are a hack anyway,
not to mention that the said function and friends should probably reside
in kern/vfs_bio.c.

14 years agoReally support rpath only linking. Add a special option -nolibc which
Joerg Sonnenberger [Wed, 3 Aug 2005 03:12:00 +0000 (03:12 +0000)]
Really support rpath only linking. Add a special option -nolibc which
doesn't link a shared object against libc.

14 years agoClean up search directories to what we really use.
Joerg Sonnenberger [Tue, 2 Aug 2005 21:15:12 +0000 (21:15 +0000)]
Clean up search directories to what we really use.

14 years agoCatch up with reality, this is GCC 3.4.4.
Joerg Sonnenberger [Tue, 2 Aug 2005 21:13:37 +0000 (21:13 +0000)]
Catch up with reality, this is GCC 3.4.4.

14 years agoFix wrong section in manpage reference.
Sascha Wildner [Tue, 2 Aug 2005 20:48:02 +0000 (20:48 +0000)]
Fix wrong section in manpage reference.

14 years agoIntroduce a make variable PACKAGE_SITES to improve package fetching in
Chris Pressey [Tue, 2 Aug 2005 17:57:14 +0000 (17:57 +0000)]
Introduce a make variable PACKAGE_SITES to improve package fetching in
two ways:
- PACKAGE_SITES is a list of base URLs where packages are to be fetched
  from; if a package cannot be fetched from the first site, the second
  is tried, etc, until either the package is fetched, or all sites have
  been tried (at which point failure is announced.)  This allows
  multiple sites to be set up as package mirrors.
- PACKAGE_SITES is overridable by the administrator on the make command
  line, so that they may specify where e.g. any custom packages they
  may have shall be fetched from.

14 years agoUpdate filename in comments.
Hiten Pandya [Tue, 2 Aug 2005 17:11:04 +0000 (17:11 +0000)]
Update filename in comments.

14 years agoReduce diffs with BSD Installer repo:
Chris Pressey [Tue, 2 Aug 2005 17:02:59 +0000 (17:02 +0000)]
Reduce diffs with BSD Installer repo:
- Add/update explanatory comments.
- Honour $pfi_backend variable when running on serial port.

14 years agoStyle(9):
Chris Pressey [Tue, 2 Aug 2005 16:27:48 +0000 (16:27 +0000)]
Style(9):
- Add more explanatory comments.
- Mark an unused parameter as __unused.

14 years agoReadd fix for FreeBSD PR/30631.
Joerg Sonnenberger [Tue, 2 Aug 2005 16:26:30 +0000 (16:26 +0000)]
Readd fix for FreeBSD PR/30631.

No-cookie-for: David Rhodus

14 years agoRegen.
Joerg Sonnenberger [Tue, 2 Aug 2005 13:19:30 +0000 (13:19 +0000)]
Regen.

14 years agoEnforce COMPAT_DF12 for now, this can be overriden via NO_COMPAT_DF12
Joerg Sonnenberger [Tue, 2 Aug 2005 13:18:25 +0000 (13:18 +0000)]
Enforce COMPAT_DF12 for now, this can be overriden via NO_COMPAT_DF12
from the environment.

Revert-after: 1 month

14 years agoRequire 1.3.4 before installworld.
Joerg Sonnenberger [Tue, 2 Aug 2005 13:07:50 +0000 (13:07 +0000)]
Require 1.3.4 before installworld.

14 years agoBump version to 1.3.4 for stat changes.
Joerg Sonnenberger [Tue, 2 Aug 2005 13:06:36 +0000 (13:06 +0000)]
Bump version to 1.3.4 for stat changes.

14 years agoMake nlink_t 32bit and ino_t 64bit. Implement the old syscall numbers
Joerg Sonnenberger [Tue, 2 Aug 2005 13:03:55 +0000 (13:03 +0000)]
Make nlink_t 32bit and ino_t 64bit. Implement the old syscall numbers
for *stat by wrapping the new syscalls and truncation of the values.
Add a hack for boot2 to keep ino_t 32bit, otherwise we would have to
link the 64bit math code in and that would most likely overflow boot2.
Bump libc major to annotate changed ABI and work around a problem with
strip during installworld. strip is dynamically linked and doesn't play
well with the new libc otherwise.

Support for 64bit inode numbers is still incomplete, because the dirent
limited to 32bit. The checks for nlink_t have to be redone too.

14 years agoAdd missing bit of the wchar stdio support and hook the whole thing in.
Joerg Sonnenberger [Tue, 2 Aug 2005 00:44:39 +0000 (00:44 +0000)]
Add missing bit of the wchar stdio support and hook the whole thing in.
Cover up temporary breakage from missing floatio.h commit.

Obtained-from: FreeBSD via NetBSD

14 years agoConstify xdigs argument to __u[lj]toa. Cast u_long and u_quad_t to
Joerg Sonnenberger [Mon, 1 Aug 2005 22:50:45 +0000 (22:50 +0000)]
Constify xdigs argument to __u[lj]toa. Cast u_long and u_quad_t to
size_t before using them as index. Rename MAXEXP to MAXEXPDIG. Rename
exp to expo to avoid shadowing.

Inspired-by: FreeBSD
14 years agoInstead of always defining FLOATING_POINT to get floating point, define
Joerg Sonnenberger [Mon, 1 Aug 2005 22:35:40 +0000 (22:35 +0000)]
Instead of always defining FLOATING_POINT to get floating point, define
NO_FLOATING_POINT to not include it.

Inspired-by: FreeBSD
14 years agoAdd dependencies on files being distributed. This unbreaks nrelease.
Simon Schubert [Mon, 1 Aug 2005 22:03:15 +0000 (22:03 +0000)]
Add dependencies on files being distributed.  This unbreaks nrelease.

14 years agolibutil.h hsa to go after pwd.h.
Joerg Sonnenberger [Mon, 1 Aug 2005 20:59:46 +0000 (20:59 +0000)]
libutil.h hsa to go after pwd.h.

14 years agoAdd new option COMPAT_DF12, used for ABI compatibility with DragonFly
Joerg Sonnenberger [Mon, 1 Aug 2005 20:11:18 +0000 (20:11 +0000)]
Add new option COMPAT_DF12, used for ABI compatibility with DragonFly
1.2 and earlier.

14 years agoUpdate description of msfbufs sysctls.
Hiten Pandya [Mon, 1 Aug 2005 20:05:53 +0000 (20:05 +0000)]
Update description of msfbufs sysctls.

14 years agoMerge from vendor branch OPENPAM:
Joerg Sonnenberger [Mon, 1 Aug 2005 16:15:19 +0000 (16:15 +0000)]
Merge from vendor branch OPENPAM:
Import pam_deny, pam_permit and pam_unix from FreeBSD, use them instead
of the sample modules from OpenPAM. I should read release notes in
greater detail. Thanks to DES for pointing that out.

14 years agoImport pam_deny, pam_permit and pam_unix from FreeBSD, use them instead
Joerg Sonnenberger [Mon, 1 Aug 2005 16:15:19 +0000 (16:15 +0000)]
Import pam_deny, pam_permit and pam_unix from FreeBSD, use them instead
of the sample modules from OpenPAM. I should read release notes in
greater detail. Thanks to DES for pointing that out.

14 years agoImport pam_deny, pam_permit and pam_unix from FreeBSD, use them instead
Joerg Sonnenberger [Mon, 1 Aug 2005 16:15:19 +0000 (16:15 +0000)]
Import pam_deny, pam_permit and pam_unix from FreeBSD, use them instead
of the sample modules from OpenPAM. I should read release notes in
greater detail. Thanks to DES for pointing that out.

14 years agoAdd passwd manipulation code based on parts of vipw and chpass.
Joerg Sonnenberger [Mon, 1 Aug 2005 16:13:20 +0000 (16:13 +0000)]
Add passwd manipulation code based on parts of vipw and chpass.

Obtained-from: FreeBSD

Keep pw_scan.c for now until it's clear whether __pw_scan can be
merged pw_scan.

14 years agoRemove trailing blank space characters. mdoc(7) explicitly recommends doing
Sascha Wildner [Mon, 1 Aug 2005 01:49:18 +0000 (01:49 +0000)]
Remove trailing blank space characters. mdoc(7) explicitly recommends doing
so lest troff might get confused.

14 years agoConvert to mdoc.
Sascha Wildner [Mon, 1 Aug 2005 00:35:08 +0000 (00:35 +0000)]
Convert to mdoc.

14 years agoConvert to mdoc.
Sascha Wildner [Mon, 1 Aug 2005 00:21:07 +0000 (00:21 +0000)]
Convert to mdoc.

14 years agoBump the development branch sub-version from 1.3.2 to 1.3.3, indicating
Matthew Dillon [Sun, 31 Jul 2005 22:58:03 +0000 (22:58 +0000)]
Bump the development branch sub-version from 1.3.2 to 1.3.3, indicating
the many critical bug fixes that have been made in the last few weeks.

14 years agoStephan believes that this patch, just committed to FreeBSD, may fix
Matthew Dillon [Sun, 31 Jul 2005 22:25:46 +0000 (22:25 +0000)]
Stephan believes that this patch, just committed to FreeBSD, may fix
softupdates deadlocks reported by Tomaz Borstnar.  Symptoms were basically
that the syncer would block in getblk() after approximately 1 weeks operation
under moderate filesystem load due to a softupdates-locked indirect block
buffer which was never being released.  This would prevent file blocks
from being freed and cause the filesystem to appear to fill up.  The problem
was originally believed to be a bug in the IPS driver, but turns out not to
be.

This will be MFCd to RELEASE once testing is complete.

FreeBSD commit msg:
    Delay freeing disk space for file system blocks until all dirty buffers
    are safely released. This fixes softdep problems on truncation
    (deletion) of files with dirty buffers.
Testing-by: =?ISO-8859-2?Q?Toma=BE_Bor=B9tnar?= <tomaz.borstnar@amis.net>
Taken-from: FreeBSD / ffs_softdep.c 1.182.
Original-Author: Stephan Uphoff <ups@tree.com> (FreeBSD)

14 years agoConvert to mdoc.
Sascha Wildner [Sun, 31 Jul 2005 21:38:32 +0000 (21:38 +0000)]
Convert to mdoc.

14 years ago1) De-K&R-ify function declarations, add const where necessary and bump
Sascha Wildner [Sun, 31 Jul 2005 20:40:26 +0000 (20:40 +0000)]
1) De-K&R-ify function declarations, add const where necessary and bump
   WARNS to 6.

2) Remove duplicate CVS tag.

3) Remove unnecessary void casts.

4) Remove parameter names from function prototypes and make functions static.

5) Really use the usage() function.

6) Minor style cleanup.

(1) submitted by: Peter Avalos <pavalos@theshell.com>

14 years agoAdd DragonFly 1.3.2.
Sascha Wildner [Sun, 31 Jul 2005 12:35:50 +0000 (12:35 +0000)]
Add DragonFly 1.3.2.

14 years agoTake the -h use case separate to make it clearer.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 12:27:29 +0000 (12:27 +0000)]
Take the -h use case separate to make it clearer.

Specify conformity and extensions.

14 years agoPull -h to its own synopsis line to avoid possible confusion of it being
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 12:21:33 +0000 (12:21 +0000)]
Pull -h to its own synopsis line to avoid possible confusion of it being
used in conjunction with H, L, or P.

Add conformity line.

14 years agoAdd -f to the non-standard list.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 12:08:12 +0000 (12:08 +0000)]
Add -f to the non-standard list.

14 years agoUse POSIX wording of the -R option, the previous one was really unclear
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 12:02:44 +0000 (12:02 +0000)]
Use POSIX wording of the -R option, the previous one was really unclear
what it did.

14 years agoDocument SUSv3 conformity.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:53:46 +0000 (11:53 +0000)]
Document SUSv3 conformity.

14 years agoUse consistent wording, blank has been changed to empty (which is POSIX
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:48:47 +0000 (11:48 +0000)]
Use consistent wording, blank has been changed to empty (which is POSIX
terminology), reflect this.

14 years agoAdd DIAGNOSTICS.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:46:52 +0000 (11:46 +0000)]
Add DIAGNOSTICS.

Specify conformity to SUSv3 and note how the utility is ahead of the standard
as described in the FUTURE DIRECTIONS of said standard.

14 years agoRemove part about 89 and 1989, we live in the 21st century now.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:33:34 +0000 (11:33 +0000)]
Remove part about 89 and 1989, we live in the 21st century now.

14 years agoDocument that dirname does conform to SUSv3.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:24:54 +0000 (11:24 +0000)]
Document that dirname does conform to SUSv3.

14 years agoDocument that we do not conform to SUSv3.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:22:36 +0000 (11:22 +0000)]
Document that we do not conform to SUSv3.

Noting:

basename blah/blah// does not trim the trailing slashes, which is required
by SUSv3.

14 years agoDocument the fact we do not conform to 1003.1-2004/SUSv3.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:18:09 +0000 (11:18 +0000)]
Document the fact we do not conform to 1003.1-2004/SUSv3.

14 years agoAdd SUSv3 information.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:07:32 +0000 (11:07 +0000)]
Add SUSv3 information.

14 years agoActually add a copyright name.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 10:21:43 +0000 (10:21 +0000)]
Actually add a copyright name.

Noticed by: Svan

14 years agoAdd EXAMPLES.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 09:27:22 +0000 (09:27 +0000)]
Add EXAMPLES.

14 years agoAdd DIAGNOSTICS.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 09:23:47 +0000 (09:23 +0000)]
Add DIAGNOSTICS.

14 years agoAdd manual page.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 09:13:48 +0000 (09:13 +0000)]
Add manual page.

14 years agoAdd sshd example, might be useful for jails.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 08:31:52 +0000 (08:31 +0000)]
Add sshd example, might be useful for jails.

Submitted by: Tomaz Borstnar

14 years agoUpdate the physio(9) manual page to reflect reality. Clean up the
Hiten Pandya [Sun, 31 Jul 2005 01:51:43 +0000 (01:51 +0000)]
Update the physio(9) manual page to reflect reality.  Clean up the
mdoc while I am around.

14 years agoForced commit to ensure revision 1.18 fixed a build break introduced
Hiten Pandya [Sun, 31 Jul 2005 01:50:38 +0000 (01:50 +0000)]
Forced commit to ensure revision 1.18 fixed a build break introduced
by me.

Submitted-by: Peter Avalos <pavalos@theshell.com>

14 years ago*** empty log message ***
Hiten Pandya [Sun, 31 Jul 2005 01:27:50 +0000 (01:27 +0000)]
*** empty log message ***

14 years agoFix macro name in comment.
Joerg Sonnenberger [Sat, 30 Jul 2005 21:52:28 +0000 (21:52 +0000)]
Fix macro name in comment.

14 years agoRegen.
Joerg Sonnenberger [Sat, 30 Jul 2005 20:31:01 +0000 (20:31 +0000)]
Regen.

14 years agoMove ostat definition from sys/stat.h into emulation43bsd/stat.h.
Joerg Sonnenberger [Sat, 30 Jul 2005 20:29:40 +0000 (20:29 +0000)]
Move ostat definition from sys/stat.h into emulation43bsd/stat.h.

14 years agoFix manpage links.
Sascha Wildner [Sat, 30 Jul 2005 20:15:48 +0000 (20:15 +0000)]
Fix manpage links.

14 years agoGC unused variable.
Joerg Sonnenberger [Sat, 30 Jul 2005 18:52:35 +0000 (18:52 +0000)]
GC unused variable.

14 years agoSince we have a table for each device anyway, we can also use it to
Joerg Sonnenberger [Sat, 30 Jul 2005 18:15:18 +0000 (18:15 +0000)]
Since we have a table for each device anyway, we can also use it to
describe the default RID to use.

Suggestion-from: me
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
14 years agoPartially backout last commit. /usr/lib is added by GCC anyway and the
Joerg Sonnenberger [Sat, 30 Jul 2005 17:10:24 +0000 (17:10 +0000)]
Partially backout last commit. /usr/lib is added by GCC anyway and the
libc build is not ready yet for automatic -lc.

14 years ago- Use MAXPATHLEN
Liam J. Foy [Sat, 30 Jul 2005 16:44:12 +0000 (16:44 +0000)]
- Use MAXPATHLEN

14 years agoStop installing profiling libraries as /usr/lib/lib${LIB}_p.a, because
Joerg Sonnenberger [Sat, 30 Jul 2005 13:59:45 +0000 (13:59 +0000)]
Stop installing profiling libraries as /usr/lib/lib${LIB}_p.a, because
it makes it really hard to support shared profiling. Instead, install
them into /usr/lib/profile and tweak GCC to look there first, when -pg
is given. Also add support for /usr/lib/debug and -g respective. If both
-pg and -g are given, profile has the precedence.

Now that libc.a is always used for the static case, link all shared
objects against libc, too. This makes it easier to detect libc mixing
and can be used for stricter link-time checks in the future.

14 years ago- Fix return values to conform with SUSv3
Liam J. Foy [Sat, 30 Jul 2005 11:53:52 +0000 (11:53 +0000)]
- Fix return values to conform with SUSv3

14 years ago-malign-functions is obsolete, use -falign-functions.
Sascha Wildner [Sat, 30 Jul 2005 09:10:33 +0000 (09:10 +0000)]
-malign-functions is obsolete, use -falign-functions.

14 years agoRemove items from TODO list that have been implemented in last major
Hiten Pandya [Sat, 30 Jul 2005 01:12:22 +0000 (01:12 +0000)]
Remove items from TODO list that have been implemented in last major
update to this module.

14 years agoDocument the standard and historical behavior that open(2) returns
Jeffrey Hsu [Fri, 29 Jul 2005 23:16:04 +0000 (23:16 +0000)]
Document the standard and historical behavior that open(2) returns
the lowest unused file descriptor in the process' file descriptor table.

14 years agoUse standard bool instead of our own Boolean type.
Max Okumoto [Fri, 29 Jul 2005 22:48:41 +0000 (22:48 +0000)]
Use standard bool instead of our own Boolean type.

14 years agoRemove redundent paramter to Compat_RunCmds(), since the it is
Max Okumoto [Fri, 29 Jul 2005 22:47:01 +0000 (22:47 +0000)]
Remove redundent paramter to Compat_RunCmds(), since the it is
contained within another object which is also passed.

14 years agofix some style(9) white space problems that I missed.
Max Okumoto [Fri, 29 Jul 2005 22:45:44 +0000 (22:45 +0000)]
fix some style(9) white space problems that I missed.

14 years agoRemove parameter names from prototypes.
Sascha Wildner [Fri, 29 Jul 2005 21:17:08 +0000 (21:17 +0000)]
Remove parameter names from prototypes.

14 years agoAdd minimal manual page explaining use of bread(9) and bwrite(9) kernel
Hiten Pandya [Fri, 29 Jul 2005 16:10:36 +0000 (16:10 +0000)]
Add minimal manual page explaining use of bread(9) and bwrite(9) kernel
functions.  A minimal explanation of buffer cache initialization process
is also explained

Note, developers interested in the internals of the above functions can
extend this and the buf(9) manual page.

14 years agoRestore NCURSES_CONST constness.
Joerg Sonnenberger [Fri, 29 Jul 2005 14:20:11 +0000 (14:20 +0000)]
Restore NCURSES_CONST constness.

14 years agoFresh installations don't have libtelnet installed and older FreeBSD
Joerg Sonnenberger [Thu, 28 Jul 2005 19:48:40 +0000 (19:48 +0000)]
Fresh installations don't have libtelnet installed and older FreeBSD
systems have to take the route over 1.2 anyway, so the magic to remove
libtelnet can go away.

14 years agoUse TARGET_LIBDIR variables instead of overriding LIBDIR.
Joerg Sonnenberger [Thu, 28 Jul 2005 19:43:55 +0000 (19:43 +0000)]
Use TARGET_LIBDIR variables instead of overriding LIBDIR.

14 years agoInstead of overriding LIBDIR, override the new TARGET_LIBDIR variables.
Joerg Sonnenberger [Thu, 28 Jul 2005 19:25:41 +0000 (19:25 +0000)]
Instead of overriding LIBDIR, override the new TARGET_LIBDIR variables.
This allows the normal dependency handling to be readded.

14 years agoEliminate USEGNUDIR and instead allow the target directory to be
Joerg Sonnenberger [Thu, 28 Jul 2005 19:19:47 +0000 (19:19 +0000)]
Eliminate USEGNUDIR and instead allow the target directory to be
specified directly.

14 years agoThere is a case when B_VMIO is clear where a buffer can be placed on the
Matthew Dillon [Thu, 28 Jul 2005 18:15:09 +0000 (18:15 +0000)]
There is a case when B_VMIO is clear where a buffer can be placed on the
EMPTY or EMPTYKVA queues without being disassociated from its vnode.
This can lead to a duplicate logical block panic in the red-black tree code.
Rework brelse() to ensure that buffers are properly cleaned up before being
placed on said queues, and add assertions to validate other cases.

Reported-by: Tomaz Borstnar
14 years agoIf multiple processes are being traced and some other process has a write
Matthew Dillon [Thu, 28 Jul 2005 18:10:23 +0000 (18:10 +0000)]
If multiple processes are being traced and some other process has a write
error, the vnode ref that we rely on from p_tracep can get ripped out from
under us, causing a panic.  vref() a the ktrace vnode for the duration of
the write rather then relying on the ref from p_tracep.

14 years agoRemove break after return.
Joerg Sonnenberger [Thu, 28 Jul 2005 16:57:09 +0000 (16:57 +0000)]
Remove break after return.

Obtained-from: FreeBSD
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
14 years agoWhile setting up a transmit packet disable interupts on the card then
Joerg Sonnenberger [Thu, 28 Jul 2005 16:56:37 +0000 (16:56 +0000)]
While setting up a transmit packet disable interupts on the card then
re-enable them after we are done setting up the packet.  This seems to
fix the MPI350 newer firmware hangs.

Obtained-from: FreeBSD (if_an.c, 1.2.2.16)
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
14 years agoSync with FreeBSD(if_an.c 1.2.2.15, if_aironet_ieee.h 1.1.2.9)
Joerg Sonnenberger [Thu, 28 Jul 2005 16:55:17 +0000 (16:55 +0000)]
Sync with FreeBSD(if_an.c 1.2.2.15, if_aironet_ieee.h 1.1.2.9)

- Bump up the general and status RID sizes
- Clear out an_dma_vaddr on free so we can test to see if dma is
  setup when the card is kldunloaded/kldloaded etc. only for MPI350
- Notify on RID read overflow and truncate this currently causes
  a panic in -stable when the stack during an ifconfig an0 is done
  with newer firmware

Obtained-from: FreeBSD
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
14 years agoSync with FreeBSD(if_anreg.h 1.1.2.9, if_an.c 1.2.2.14 and
Joerg Sonnenberger [Thu, 28 Jul 2005 16:52:44 +0000 (16:52 +0000)]
Sync with FreeBSD(if_anreg.h 1.1.2.9, if_an.c 1.2.2.14 and
if_aironet_ieee.h 1.1.2.8)

- Add support for Cisco latest firmware RID sizes that supports 25
SSIDs!
- Fix up TX speed changes.
- Make mpi-350 cards sort-of work with new firmware.  It RXs okay but
TXs only work for about 14 packets then fails to get an interrupt.
The TX watchdog fires.  It has been reported that my hack for now
doesn't break cards with the older firmware.  It appears my card has
lost the ability to RX or TX at all but other peoples cards work.  I
assume it got damaged in tansport.

Obtained-from: FreeBSD
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
14 years agoRemove unnecessary initialisations. Return ENXIO instead of 1 in
Joerg Sonnenberger [Thu, 28 Jul 2005 16:33:25 +0000 (16:33 +0000)]
Remove unnecessary initialisations. Return ENXIO instead of 1 in
an_pccard_probe. Separate error path and normal normal return in
ac_pccard_attach. GC AN_PCI_PLX_LOIO. Don't mess with PCI controll
register, it's already down by the PCI layer.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
In addition, reverse the return value of an_probe. It doesn't make sense
to return 0 on failure, if the callee are interested only in the error,
not the success code.

14 years agoUse pcidevs and common PCI probe style.
Joerg Sonnenberger [Thu, 28 Jul 2005 16:22:59 +0000 (16:22 +0000)]
Use pcidevs and common PCI probe style.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
14 years agoAdd some useful GDB macros that have been sitting in my local tree,
Hiten Pandya [Thu, 28 Jul 2005 15:48:56 +0000 (15:48 +0000)]
Add some useful GDB macros that have been sitting in my local tree,
used for displaying mount structures, lsvfs, and vfsops iteration.

14 years agoRemove useless .PATH entries inherited from FreeBSD.
Joerg Sonnenberger [Thu, 28 Jul 2005 00:06:10 +0000 (00:06 +0000)]
Remove useless .PATH entries inherited from FreeBSD.

14 years agoFactor out an_detach, since the implementation for all busses is
Joerg Sonnenberger [Wed, 27 Jul 2005 21:56:32 +0000 (21:56 +0000)]
Factor out an_detach, since the implementation for all busses is
(almost) identical. Remove useless .PATH.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
14 years agoFix typo.
David Rhodus [Wed, 27 Jul 2005 18:26:28 +0000 (18:26 +0000)]
Fix typo.

14 years agocvtstat doesn't exist.
Joerg Sonnenberger [Wed, 27 Jul 2005 15:56:18 +0000 (15:56 +0000)]
cvtstat doesn't exist.

14 years agoMerge revision 1.38 from FreeBSD:
Joerg Sonnenberger [Wed, 27 Jul 2005 14:35:55 +0000 (14:35 +0000)]
Merge revision 1.38 from FreeBSD:
Remove advertising clause from University of California Regent's
license,
per letter dated July 22, 1999.

Approved by: core

14 years agoFix typo.
Joerg Sonnenberger [Wed, 27 Jul 2005 14:31:11 +0000 (14:31 +0000)]
Fix typo.

Found-by: corecode
14 years agoAdd a missing crit_exit().
Matthew Dillon [Wed, 27 Jul 2005 07:55:15 +0000 (07:55 +0000)]
Add a missing crit_exit().

Found-by: Tomaz Borstnar using DEBUG_CRIT_SECTIONS
14 years agoFreeBSD and NetBSD both use derivates of Sun's math library. On FreeBSD,
Joerg Sonnenberger [Tue, 26 Jul 2005 21:15:20 +0000 (21:15 +0000)]
FreeBSD and NetBSD both use derivates of Sun's math library. On FreeBSD,
it's been put into lib/msun, on NetBSD it is under lib/libm. Since
DragonFly misses a lot of the changes which went into both and I
consider the NetBSD version cleaner, switch to that.

Biggest difference to NetBSD is the omission of wrappers for non-IEEE757
floating point support. There's no point in supporting anything but IEEE
757 and that saves at least a function call per math entry point.

Addtionally, important the fpclassify, isinf, isnan and signbit
functions into libc as required for C99.

Remove the support for non-POSIX operation. matherr is pointless and
wasn't really supported anyway.

14 years agoAdd a new kernel compile debugging option, DEBUG_CRIT_SECTIONS. This fairly
Matthew Dillon [Tue, 26 Jul 2005 20:53:58 +0000 (20:53 +0000)]
Add a new kernel compile debugging option, DEBUG_CRIT_SECTIONS.  This fairly
invasive debugging option compiles matching code into the critical section
inlines and reports mismatches at run-time.   It is used to detect
missing/forgotten crit_exit() calls.

Note that because there are a number of places where critical sections are
manipulated outside the procedures that entered them, this code will
generate a number of false hits and should only be used under the direction
of experienced developers.

Note that the thread structure will be extended by this option.

14 years agoAdd missing crit_exit().
Matthew Dillon [Tue, 26 Jul 2005 20:48:41 +0000 (20:48 +0000)]
Add missing crit_exit().

14 years ago- Don't role our own - use err(3)
Liam J. Foy [Tue, 26 Jul 2005 20:17:31 +0000 (20:17 +0000)]
- Don't role our own - use err(3)

14 years agoAdd a missing FREE_LOCK() call.
Matthew Dillon [Tue, 26 Jul 2005 18:02:49 +0000 (18:02 +0000)]
Add a missing FREE_LOCK() call.