dragonfly.git
15 years agoK&R style function removal. Update functions to ANSI style. Also a few
Liam J. Foy [Thu, 1 Sep 2005 22:45:35 +0000 (22:45 +0000)]
K&R style function removal.  Update functions to ANSI style. Also a few
minor cleans.

Submitted by: Peter Avalos

15 years agoZap unused variable!
Liam J. Foy [Thu, 1 Sep 2005 22:19:26 +0000 (22:19 +0000)]
Zap unused variable!

Obtained from: FreeBSD

15 years agoUpdate to groff 1.19.1.
Jeroen Ruigrok/asmodai [Thu, 1 Sep 2005 20:47:14 +0000 (20:47 +0000)]
Update to groff 1.19.1.
This synchronises us with FreeBSD up till 1.19 (Ids adjusted accordingly).

Big help fixing PATCHES behaviour: joerg

15 years agoRemove pointless -? flag.
Sascha Wildner [Thu, 1 Sep 2005 19:08:38 +0000 (19:08 +0000)]
Remove pointless -? flag.

15 years agoDon't add files patches via *.no_obj.patch back to SRCS, make them a
Joerg Sonnenberger [Thu, 1 Sep 2005 14:17:58 +0000 (14:17 +0000)]
Don't add files patches via *.no_obj.patch back to SRCS, make them a
dependency of beforedepend instead. This avoids ordering problems with
bsd.lib.mk and bsd.prog.mk.

15 years agoRetire old perl 5.00503 optional manpath and replace with a manpath to
Jeroen Ruigrok/asmodai [Thu, 1 Sep 2005 13:13:35 +0000 (13:13 +0000)]
Retire old perl 5.00503 optional manpath and replace with a manpath to
/usr/pkg/man.

Whether we want to keep the ones to /usr/local and /usr/X11R6 remains to be
seen.

15 years agoFor Arcnet, announce link layer address in arc_ifattch(),
Sepherosa Ziehau [Thu, 1 Sep 2005 12:59:38 +0000 (12:59 +0000)]
For Arcnet, announce link layer address in arc_ifattch(),
not in each Arcnet netif drivers (currently we only have cm(4)).

Approved-by: joerg
15 years ago1) in cm_isa_attach(), setup intr in the last step
Sepherosa Ziehau [Thu, 1 Sep 2005 09:17:19 +0000 (09:17 +0000)]
1) in cm_isa_attach(), setup intr in the last step
2) in cm_attach()
   - after 1), cm_attach() is intr safe, remove crit-sect
   - initialize callout before cm_stop()
3) in cm_stop(), add missing callout_stop()
4) instead of clearing IFF_RUNNING immediately after every call of cm_stop(),
   move this clearing into cm_stop()

15 years agoRemove PC98 support (forgot these in my last commit).
Sascha Wildner [Thu, 1 Sep 2005 00:40:51 +0000 (00:40 +0000)]
Remove PC98 support (forgot these in my last commit).

15 years agoRemove PC98 support.
Sascha Wildner [Thu, 1 Sep 2005 00:18:24 +0000 (00:18 +0000)]
Remove PC98 support.

15 years agoRemove PC98 support.
Sascha Wildner [Wed, 31 Aug 2005 23:22:47 +0000 (23:22 +0000)]
Remove PC98 support.

15 years agoScrap PC98 specific snc(4) driver.
Sascha Wildner [Wed, 31 Aug 2005 22:55:28 +0000 (22:55 +0000)]
Scrap PC98 specific snc(4) driver.

OK'd by: joerg

15 years agoFix indentation with previous commit.
Jeffrey Hsu [Wed, 31 Aug 2005 22:21:23 +0000 (22:21 +0000)]
Fix indentation with previous commit.

15 years agoCheck the IP length first to avoid a memory leak later.
Jeffrey Hsu [Wed, 31 Aug 2005 22:18:46 +0000 (22:18 +0000)]
Check the IP length first to avoid a memory leak later.

15 years agoRemove pointless -? flag.
Sascha Wildner [Wed, 31 Aug 2005 18:11:05 +0000 (18:11 +0000)]
Remove pointless -? flag.

15 years agoperror() -> err()
Liam J. Foy [Wed, 31 Aug 2005 17:20:18 +0000 (17:20 +0000)]
perror() -> err()

15 years agoKill unused variables
Liam J. Foy [Wed, 31 Aug 2005 16:45:51 +0000 (16:45 +0000)]
Kill unused variables

Obtained from: FreeBSD

15 years agoRetire old sendmail.
Joerg Sonnenberger [Wed, 31 Aug 2005 16:45:44 +0000 (16:45 +0000)]
Retire old sendmail.

15 years agoUpdate zoneinfo database.
Sascha Wildner [Wed, 31 Aug 2005 16:44:29 +0000 (16:44 +0000)]
Update zoneinfo database.

Theory: 7.15 -> 7.19
africa: 7.37 -> 7.39
antarctica: 7.24 -> 7.25
asia: 7.82 -> 7.85
australasia: 7.71 -> 7.73
backward: 7.27 -> 7.29
europe: 7.92 -> 7.95
leapseconds: 7.17 -> 7.20
northamerica: 7.74 -> 7.79
southamerica: 7.59 -> 7.61
zone.tab: 1.30 -> 1.32

Note: I had already updated leapseconds to include this year's leapsecond
      so we basically just change the comments' indenting here.

15 years agoRemove the sleeper crap and use MAXPATHLEN
Liam J. Foy [Wed, 31 Aug 2005 16:27:53 +0000 (16:27 +0000)]
Remove the sleeper crap and use MAXPATHLEN

15 years agoTwo small alterations to 'make upgrade':
Chris Pressey [Wed, 31 Aug 2005 16:17:52 +0000 (16:17 +0000)]
Two small alterations to 'make upgrade':
- Create etc/rc.d directory if it does not exist, before installing
  scripts into it.
- Create etc/pam.d directory if it does not exist, and run convert.sh
  to populate it in this case.

This allows a FreeBSD 4.9 system to be binary-upgraded to DragonFly
1.3.5-DEVELOPMENT.  (A warning about missing PAM modules may still
occur during login, however.)

15 years agoDetect pkgtools fakeroot feature and use it.
Simon Schubert [Wed, 31 Aug 2005 02:38:34 +0000 (02:38 +0000)]
Detect pkgtools fakeroot feature and use it.

This enables us to use host pkgtools to add packages to the isos
instead of using the target pkgtools.  This would fail with -Release
building -Devel isos.

15 years agoThis program requires at least one option. Clean up the checking and report
Liam J. Foy [Tue, 30 Aug 2005 22:42:15 +0000 (22:42 +0000)]
This program requires at least one option. Clean up the checking and report
this fact correctly.

Obtained from: FreeBSD

15 years agoMinor typo
Liam J. Foy [Tue, 30 Aug 2005 22:02:36 +0000 (22:02 +0000)]
Minor typo

15 years agoInclude the option-arguments in the description and remove a non-existant
Liam J. Foy [Tue, 30 Aug 2005 21:25:35 +0000 (21:25 +0000)]
Include the option-arguments in the description and remove a non-existant
bug.

Obtained from: FreeBSD

15 years agoRemove undocumented historic support for treating "-" as an option
Liam J. Foy [Tue, 30 Aug 2005 21:19:13 +0000 (21:19 +0000)]
Remove undocumented historic support for treating "-" as an option
instead of a file operand; this is not compatible with POSIX.

Obtained from: FreeBSD

15 years agoForced commit to note that the review and the suggestion
YONETANI Tomokazu [Tue, 30 Aug 2005 14:22:05 +0000 (14:22 +0000)]
Forced commit to note that the review and the suggestion
for the previous commit was done by Hiten Pandya(hmp@)
and not someone named hiten@ .

15 years agoWorkaround the panic, triggered by the netgraph attempting to
YONETANI Tomokazu [Tue, 30 Aug 2005 13:25:07 +0000 (13:25 +0000)]
Workaround the panic, triggered by the netgraph attempting to
load a missing module from within the socket dispatch thread, by:

- not trying to load a netgraph module when you can't.

- preloading ng_ksocket.ko(if missing) from the module handler
  where you're guaranteed to have the process context needed by
  the linker_* functions. This makes us sure at least that the basic
  netgraph operations will work without messing with loading a kernel
  module on the fly (suggested by: hiten@).

Reviewed-by: hiten@
15 years ago1) Remove compat code
Sepherosa Ziehau [Tue, 30 Aug 2005 12:33:49 +0000 (12:33 +0000)]
1) Remove compat code
2) Do not include <machine/clock.h>
3) Remove CMSOFTCOPY option and code introduced by this option.
   softintr_{schedule, establish}() only exist in NetBSD.
4) Remove cm_softc.{sc_txcookie, sc_rxcookie}, which are only used by
   the nuked code mentioned in 3)

15 years agoin cm_isa_probe():
Sepherosa Ziehau [Tue, 30 Aug 2005 10:16:33 +0000 (10:16 +0000)]
in cm_isa_probe():
- remove unused stack variable
- clean up code path by removing unnecessary `goto'

15 years agoprintf("%s: str", ifp->if_xname) ==> if_printf(ifp, "str")
Sepherosa Ziehau [Tue, 30 Aug 2005 09:53:52 +0000 (09:53 +0000)]
printf("%s: str", ifp->if_xname) ==> if_printf(ifp, "str")

15 years agoGet rid of smp_rendezvous() and all associated support circuitry. Move
Matthew Dillon [Mon, 29 Aug 2005 21:08:06 +0000 (21:08 +0000)]
Get rid of smp_rendezvous() and all associated support circuitry.  Move
the two mechanisms still using it (User LDT and MTRR propogation) over
to the lwkt_cpusync*() API.

15 years agoUse a typedef that already conveniently exists instead of anonymous
Matthew Dillon [Mon, 29 Aug 2005 17:46:52 +0000 (17:46 +0000)]
Use a typedef that already conveniently exists instead of anonymous
TAILQ_HEAD() declarations for the LWKT queues.  No operational changes.

15 years agoAdd a space to the output for legibility.
Jeffrey Hsu [Mon, 29 Aug 2005 16:03:31 +0000 (16:03 +0000)]
Add a space to the output for legibility.

15 years agoFix the same problem described in FreeBSD-SA-05:15.tcp, which
Noritoshi Demizu [Mon, 29 Aug 2005 10:24:10 +0000 (10:24 +0000)]
Fix the same problem described in FreeBSD-SA-05:15.tcp, which
refers CAN-2005-0356 and CAN-2005-2068.  The e-mail below has more.
http://leaf.dragonflybsd.org/mailarchive/bugs/2005-08/msg00052.html

15 years agoRemove unnecessary bzero(softc).
Sepherosa Ziehau [Mon, 29 Aug 2005 10:19:52 +0000 (10:19 +0000)]
Remove unnecessary bzero(softc).
With following exceptions:
  - ed(4) if_ed_cbus.c
  - snc(4)
They are PC-98 only.

15 years agoFix a bug in NewReno which may send a huge amount of data
Noritoshi Demizu [Mon, 29 Aug 2005 10:04:01 +0000 (10:04 +0000)]
Fix a bug in NewReno which may send a huge amount of data
when a partial ACK is received.  The e-mail below has more.
http://leaf.dragonflybsd.org/mailarchive/bugs/2005-07/msg00013.html

15 years agoRemove VPLACEMARKER
Simon Schubert [Sun, 28 Aug 2005 23:35:35 +0000 (23:35 +0000)]
Remove VPLACEMARKER

15 years agoFix a deadlock in ffs_balloc(). This function was incorrectly obtaining a
Matthew Dillon [Sun, 28 Aug 2005 23:23:10 +0000 (23:23 +0000)]
Fix a deadlock in ffs_balloc().  This function was incorrectly obtaining a
locked indirect buffer followed by a locked data block buffer, where as other
procedures in the kernel generally held a locked data buffer and then
called procedures which locked the indirect buffer.  Programs like rtorrent,
which write data into the mmap'd files whos blocks had not yet been
allocated, could easily deadlock the vnode.

A typical deadlock would be: syncer calls putpages->ffs_write->balloc->getblk->
allocbuf->(blocked on VM page with indirect block and data block locked), while
at the same time some process takes a write fault which locks the VM page and
then attempts to do a BMAP, blocking on the indirect block buffer.  Deadlock.

The fix for ffs_balloc() is simply to obtain the data buffer prior to
obtaining the indirect block(s).

Reported-by: Mitja Horvat
MFC: 1 week

15 years ago- Don't write our own pid file, just use pidfile()
Liam J. Foy [Sun, 28 Aug 2005 20:55:07 +0000 (20:55 +0000)]
- Don't write our own pid file, just use pidfile()

15 years ago- Use pidfilei(3) to write a pid file in /var/run
Liam J. Foy [Sun, 28 Aug 2005 20:15:38 +0000 (20:15 +0000)]
- Use pidfilei(3) to write a pid file in /var/run

15 years agoTaken from FreeBSD-HEAD:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:36:14 +0000 (18:36 +0000)]
Taken from FreeBSD-HEAD:

fr.ISO8859-1: Localisation file by Sebastien Gioria
koi8-r.tmac: Ruslan Ermilov's koi8-r tmac file

15 years agoMerge from vendor branch GROFF:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:25:09 +0000 (18:25 +0000)]
Merge from vendor branch GROFF:
Remove mdoc.local, we need to make this truly local.

15 years agoRemove mdoc.local, we need to make this truly local.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:25:09 +0000 (18:25 +0000)]
Remove mdoc.local, we need to make this truly local.

15 years agoRemove mdoc.local, we need to make this truly local.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:25:09 +0000 (18:25 +0000)]
Remove mdoc.local, we need to make this truly local.

15 years agoMerge from vendor branch GROFF:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:06:33 +0000 (18:06 +0000)]
Merge from vendor branch GROFF:
Update and reorder.

15 years agoUpdate and reorder.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:06:33 +0000 (18:06 +0000)]
Update and reorder.

15 years agoMerge from vendor branch GROFF:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:03:57 +0000 (18:03 +0000)]
Merge from vendor branch GROFF:
Add groff 1.19.1, stripped down appropriately.

15 years agoAdd groff 1.19.1, stripped down appropriately.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:03:57 +0000 (18:03 +0000)]
Add groff 1.19.1, stripped down appropriately.

15 years agoMerge from vendor branch GROFF:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 17:20:36 +0000 (17:20 +0000)]
Merge from vendor branch GROFF:
Add groff 1.19.1, stripped down appropriately.

15 years agoAdd groff 1.19.1, stripped down appropriately.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 17:20:36 +0000 (17:20 +0000)]
Add groff 1.19.1, stripped down appropriately.

15 years agoAdd a version identifier to enable detection of additional features.
Simon Schubert [Sun, 28 Aug 2005 17:19:16 +0000 (17:19 +0000)]
Add a version identifier to enable detection of additional features.

15 years agoAdd a hack to pkgtools to install to a different root. This differs from
Simon Schubert [Sun, 28 Aug 2005 16:56:12 +0000 (16:56 +0000)]
Add a hack to pkgtools to install to a different root.  This differs from
using PREFIX as the installed files don't get relocated, but all the tree
appears in PKG_FAKEROOT, including PKG_DBDIR.

This won't work for all packages and isn't ment to either.  Pkgtools are
evil hackery anyways and this adds even more.  This will be used in
nrelease to support addition of packages by using the host tools and not
the target tools.

15 years agoMerge from vendor branch TEXINFO:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 15:28:56 +0000 (15:28 +0000)]
Merge from vendor branch TEXINFO:
fdl.texi is needed.

15 years agofdl.texi is needed.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 15:28:56 +0000 (15:28 +0000)]
fdl.texi is needed.

15 years agoA machine-independent spinlock implementation. It has the advantages of
Jeffrey Hsu [Sun, 28 Aug 2005 15:27:05 +0000 (15:27 +0000)]
A machine-independent spinlock implementation.  It has the advantages of
  1.  being written in C except for the most low-level atomic swap primitive,
        which is universally supported on current processor architectures
  2.  having a very small inlined memory footprint for spin_lock(),
        with the slow-path defered to a subroutine call
  3.  only requiring a bus-locked operation for lock acquisition,
         and not requiring a bus-locked operation for lock release
  4.  doing a non-bus-locked check first in the spin loop to
        reduce bus contention
  5.  doing exponential backoff in the uncommon contested case, which
        Sun has found to reduce bus contention by a factor of 5 or more

Reviewed by: Matt Dillon

15 years agoCommit a missed change.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 14:19:30 +0000 (14:19 +0000)]
Commit a missed change.

15 years agoSwitch to texinfo 4.8, which is needed for a lot of new texi files.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 12:25:05 +0000 (12:25 +0000)]
Switch to texinfo 4.8, which is needed for a lot of new texi files.

15 years agoAdd texinfo 4.8, appropriately stripped down.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 12:23:25 +0000 (12:23 +0000)]
Add texinfo 4.8, appropriately stripped down.

15 years agoMerge from vendor branch TEXINFO:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 12:23:25 +0000 (12:23 +0000)]
Merge from vendor branch TEXINFO:
Add texinfo 4.8, appropriately stripped down.

15 years agoRequire HEAD users to upgrade to 1.3.5 before running installworld, due
Matthew Dillon [Sun, 28 Aug 2005 07:06:42 +0000 (07:06 +0000)]
Require HEAD users to upgrade to 1.3.5 before running installworld, due
to the dirent changes (otherwise the 'find' binary will fail half way
through the installworld).

15 years agoBump the development sub-version to 1.3.5.
Matthew Dillon [Sun, 28 Aug 2005 07:04:32 +0000 (07:04 +0000)]
Bump the development sub-version to 1.3.5.

15 years agoUse FreeBSD's HEAD tag.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 06:53:55 +0000 (06:53 +0000)]
Use FreeBSD's HEAD tag.

15 years agoFix PROCDURE -> PROCEDURE.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 06:29:19 +0000 (06:29 +0000)]
Fix PROCDURE -> PROCEDURE.

15 years agoMerge from vendor branch NCURSES:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch NCURSES:
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoMerge from vendor branch GCC:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch GCC:
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoFix PROCDURE -> PROCEDURE.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoMerge from vendor branch CVS:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch CVS:
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoFix PROCDURE -> PROCEDURE.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoMerge from vendor branch BINUTILS:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch BINUTILS:
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoFix PROCDURE -> PROCEDURE.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoMerge from vendor branch BIND:
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch BIND:
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoFix PROCDURE -> PROCEDURE.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoFix PROCDURE -> PROCEDURE.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoFix PROCDURE -> PROCEDURE.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.

Bloody copiers. :P

15 years agoAdd DragonFly release numbers.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:34:49 +0000 (05:34 +0000)]
Add DragonFly release numbers.

15 years agoClean up manual page.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:13:53 +0000 (05:13 +0000)]
Clean up manual page.

15 years agoDump and restore need to use a UFS-centric inode representation. Convert
Matthew Dillon [Sun, 28 Aug 2005 04:35:14 +0000 (04:35 +0000)]
Dump and restore need to use a UFS-centric inode representation.  Convert
ino_t into ufs1_ino_t.

15 years agoAdd a typedef ufs1_ino_t to represent inodes for UFS1 filesystems.
Matthew Dillon [Sun, 28 Aug 2005 04:34:44 +0000 (04:34 +0000)]
Add a typedef ufs1_ino_t to represent inodes for UFS1 filesystems.

15 years agotest commit.
Sepherosa Ziehau [Sun, 28 Aug 2005 04:25:23 +0000 (04:25 +0000)]
test commit.

15 years agoAdd real function versions of the _unlocked family. Use putc for putchar
Joerg Sonnenberger [Sat, 27 Aug 2005 21:35:01 +0000 (21:35 +0000)]
Add real function versions of the _unlocked family. Use putc for putchar
directly.

15 years agoSmoke something else and revert the use of ssize_t, I've put it there
Joerg Sonnenberger [Sat, 27 Aug 2005 21:32:24 +0000 (21:32 +0000)]
Smoke something else and revert the use of ssize_t, I've put it there
for a reason after all.

15 years agoRemove space before '('. Correctly align some function names. No need to
Joerg Sonnenberger [Sat, 27 Aug 2005 21:13:28 +0000 (21:13 +0000)]
Remove space before '('. Correctly align some function names. No need to
use local versions of ssize_t (size_t is used already) or const.

15 years agoSync GCC 3.4's propolice with Etoh's official version. This fixes the
Joerg Sonnenberger [Sat, 27 Aug 2005 21:03:52 +0000 (21:03 +0000)]
Sync GCC 3.4's propolice with Etoh's official version. This fixes the
reorder bug in -O2+, which killed Samba from pkgsrc and mutt.

15 years agoMake struct dirent contain a full 64bit inode. Allow more than 255 byte
Joerg Sonnenberger [Sat, 27 Aug 2005 20:23:06 +0000 (20:23 +0000)]
Make struct dirent contain a full 64bit inode. Allow more than 255 byte
filenames by increasing d_namlen to 16bit. Remove UFS specific macros
from sys/dirent.h, programs which really need them should include
vfs/ufs/dir.h. MAXNAMLEN should not be used, but replaced by NAME_MAX.

To keep the impact for older BSD code small, d_ino and d_fileno are kept
in the old meaning when __BSD_VISIBLE is defined, otherwise the POSIX
version d_ino is used. This will be changed later to always define only
d_ino and make d_fileno a compatiblity macro for __BSD_VISIBLE.

d_name is left with hard-coded 256 byte space, this will be changed at
some point in the future and doesn't affect the ABI. Programs should
correctly allocate space themselve, since the maximum directory entry
length can be > 256 byte.

For allocating dirents (e.g. for readdir_r), _DIRENT_RECLEN and
_DIRENT_DIRSIZ should be used. NetBSD has choosen the same names.
Revamp the compatibility code to always use a local kernel buffer and
write out the entries. This will be changed later by passing down the
output function to vop_readdir, elimininating the redundant copy.

Change NFS and CD9660 to use to use vop_write_dirent, for CD9660 ensure
that the buffers are big enough by prepending char arrays of the right
size.

Tested-by & discussed-with: dillon

15 years agoSynchronise with NetBSD:
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 19:00:49 +0000 (19:00 +0000)]
Synchronise with NetBSD:

ehci.c:

v1.74: Add suspend/resume support.
v1.75: Fix typo: compolicated.
v1.76: A little portability stuff (lockmgr -> usb_lockmgr)
v1.78: add interrupt transfers
v1.79: use DPRINTF instead of a printf

ehcireg.h:

1.18: Fix EHCI_HCS_P_INDICATOR

usb_port.h:

NetBSD/OpenBSD specific things, lockmgr->usb_lockmgr..

15 years agoSynchronise with NetBSD (some come from OpenBSD):
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 15:34:17 +0000 (15:34 +0000)]
Synchronise with NetBSD (some come from OpenBSD):

v1.68: Adjust some silliness that was causing us to do extra work for "frame
       list rollover" interrupts, which we pretty much ignore.
v1.69: hcpriv is not actually used here.  Remove references to it.
v1.71: ANSIfy.
v1.72: Update printfs with accurate function names.
       Convert EHCI_LINK_TERMINATE using htole32().
v1.73: Fix spelling of intterupt.
       Use do .. while wrappers for debug print.

15 years agoPlace && at the right place.
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 15:09:38 +0000 (15:09 +0000)]
Place && at the right place.

15 years agoSync with NetBSD:
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 14:56:52 +0000 (14:56 +0000)]
Sync with NetBSD:

PR/23128:

Although the dma descriptors are limited to any 4G address range,
the data is not, using extra area in the dma descriptors to
define a 64 bit address. This is described in appendix B
of the EHCI 1.0 spec from the URL in the file dev/usb/ehci.c.
With a 64 bit address capable controller these upper address
values must be set, the current driver does not do this.

15 years agoUpdate FreeBSD tag to what the source code has.
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 14:03:23 +0000 (14:03 +0000)]
Update FreeBSD tag to what the source code has.

15 years agoUpdate with the NetBSD code (which can include FreeBSD/OpenBSD changes):
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 13:59:55 +0000 (13:59 +0000)]
Update with the NetBSD code (which can include FreeBSD/OpenBSD changes):

v1.13: suspend/resume support
v1.14: was already applied by Matt, ifdefs for soft interrupt related stuff
v1.15: interrupt transfers, done originally by iedowse of FreeBSD, some minor
       changes by David Gwyne.  Note that NetBSD misattributed and OpenBSD did
       not attribute at all.
v1.16: implement a DMA memory reserve, ifdef'd for NetBSD.
v1.17: ifdefs for sc_child for NetBSD/OpenBSD.
v1.18: add EHCI_MAX_POLLRATE

15 years agoAdd vendor ids for ATi and Philips.
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 13:16:56 +0000 (13:16 +0000)]
Add vendor ids for ATi and Philips.

Add identificatio strings for the following:
  o ALi's M5239
  o AMD 8111
  o ATI SB200, SB400
  o Intel 6300ESB, ICH4, ICH5, ICH7
  o NVIDIA nForce 2, nForce 3, nForce 4
  o Philips ISP156x

15 years agoSynchronise with NetBSD v1.18:
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 12:59:13 +0000 (12:59 +0000)]
Synchronise with NetBSD v1.18:

Allow 32 chars in the saved vendor string.  Fixes kern/29760.

15 years agoDereference pointer like we should.
Simon Schubert [Sat, 27 Aug 2005 10:20:27 +0000 (10:20 +0000)]
Dereference pointer like we should.

Found-by: sephe
15 years agoThe proper way to check for a normal mbuf cluster is with the
Jeffrey Hsu [Sat, 27 Aug 2005 03:05:24 +0000 (03:05 +0000)]
The proper way to check for a normal mbuf cluster is with the
M_EXT_CLUSTER flag.

15 years agoOnly include thread2.h for kernel builds (its macros are used by vm_page.h's
Matthew Dillon [Sat, 27 Aug 2005 00:56:57 +0000 (00:56 +0000)]
Only include thread2.h for kernel builds (its macros are used by vm_page.h's
inlines, which are also kernel-only).

15 years agoFix a serious bug in cache_inefficient_scan() related to its use of
Matthew Dillon [Sat, 27 Aug 2005 00:36:43 +0000 (00:36 +0000)]
Fix a serious bug in cache_inefficient_scan() related to its use of
VOP_READDIR().  VOP_READDIR() does very weird things when given both a
uio and cookies pointer.  Just give it a uio, instead.

This should fix a bug with the NFS server returning I/O errors to a
NFS client which is manipulating large directories.  The bug was preventing
the server from being able to resolve the namecache topology for a
disconnected directory vnode.

MFC in: 1 week.

15 years agoNo need to forget wcswidth.
Joerg Sonnenberger [Fri, 26 Aug 2005 22:03:26 +0000 (22:03 +0000)]
No need to forget wcswidth.

Found-by: Andreas Hauser
15 years agoDon't define infinite macros when we want to define infinity.
Joerg Sonnenberger [Fri, 26 Aug 2005 20:44:25 +0000 (20:44 +0000)]
Don't define infinite macros when we want to define infinity.

15 years agoWe have to copy the pam.d entries after running mtree, otherwise
Joerg Sonnenberger [Fri, 26 Aug 2005 15:25:59 +0000 (15:25 +0000)]
We have to copy the pam.d entries after running mtree, otherwise
/etc/pam.d will be created as normal file on old system.

Hasn't-updated-for-too-long: asmodai