dragonfly.git
13 years agoReflect reality.
Sascha Wildner [Sat, 18 Nov 2006 01:06:34 +0000 (01:06 +0000)]
Reflect reality.

Taken-from: FreeBSD

13 years agoFix references.
Sascha Wildner [Fri, 17 Nov 2006 23:23:05 +0000 (23:23 +0000)]
Fix references.

13 years agoFix .Xr abuse.
Sascha Wildner [Fri, 17 Nov 2006 23:01:21 +0000 (23:01 +0000)]
Fix .Xr abuse.

13 years agounresolve the vnode associated with the namecache entry for a mount point
Matthew Dillon [Fri, 17 Nov 2006 22:20:31 +0000 (22:20 +0000)]
unresolve the vnode associated with the namecache entry for a mount point
before trying to set a new vnode.  This avoids a panic if you are CD'd into
a mount point before the mount occurs.

13 years agoDisable use of wide char functions for mkmagic.nx, a host tool. This
Simon Schubert [Thu, 16 Nov 2006 23:46:53 +0000 (23:46 +0000)]
Disable use of wide char functions for mkmagic.nx, a host tool.  This
unbreaks buildworld for pre-citrus machines (1.2-RELEASE).

Reported-by: Thomas E. Spanjaard
13 years agoChange to ${.CURDIR} before generating miidevs.h
Sepherosa Ziehau [Thu, 16 Nov 2006 14:02:13 +0000 (14:02 +0000)]
Change to ${.CURDIR} before generating miidevs.h

This unbreaks miidevs.h regeneration if sys/dev/netif/mii_layer has an
object directory.

Thank joerg@ to shed light on the obscure awk error.

13 years agoAdd manpage for stge(4)
Sepherosa Ziehau [Thu, 16 Nov 2006 13:50:05 +0000 (13:50 +0000)]
Add manpage for stge(4)

Obtained-from: NetBSD (with changes)
Reviewed-by: swildner@
13 years ago- Add stge(4) for Sundance/Tamarack TC9021 Gigabit Ethernet chip.
Sepherosa Ziehau [Thu, 16 Nov 2006 13:43:55 +0000 (13:43 +0000)]
- Add stge(4) for Sundance/Tamarack TC9021 Gigabit Ethernet chip.
  It supports following cards:
    o  Antares Microsystems Gigabit Ethernet
    o  ASUS NX1101 Gigabit Ethernet
    o  D-Link DGE-550T Gigabit Ethernet
    o  IC Plus IP1000A Gigabit Ethernet
    o  Sundance ST-2021 Gigabit Ethernet
    o  Sundance ST-2023 Gigabit Ethernet
    o  Sundance TC9021 Gigabit Ethernet
    o  Tamarack TC9021 Gigabit Ethernet
- Add PHY module for IC Plus IP1000A integrated PHY, which may be used
  by some on-board stge(4)
- Hook stge(4) into GENERIC and LINT

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

13 years agoregen
Sepherosa Ziehau [Thu, 16 Nov 2006 13:37:43 +0000 (13:37 +0000)]
regen

13 years agoAdd ids for Marvell 88e3082 and IC PLUS IP1000A
Sepherosa Ziehau [Thu, 16 Nov 2006 13:37:21 +0000 (13:37 +0000)]
Add ids for Marvell 88e3082 and IC PLUS IP1000A

13 years agoMake sure BBP is ready before writing to it.
Sepherosa Ziehau [Thu, 16 Nov 2006 13:16:46 +0000 (13:16 +0000)]
Make sure BBP is ready before writing to it.

13 years ago- Correct register name
Sepherosa Ziehau [Thu, 16 Nov 2006 12:24:35 +0000 (12:24 +0000)]
- Correct register name
- Add comment abount some registers

Taken-from: Linux rt2500 driver

13 years agoClean up #includes
Sepherosa Ziehau [Thu, 16 Nov 2006 12:22:49 +0000 (12:22 +0000)]
Clean up #includes

13 years agoMerge from vendor branch FILE:
Peter Avalos [Wed, 15 Nov 2006 23:13:45 +0000 (23:13 +0000)]
Merge from vendor branch FILE:
Use the vendor-supplied man pages for file.1 and magic.5 instead of the
stale ones we have now.

Reviewed-by: vbd

13 years agoUse the vendor-supplied man pages for file.1 and magic.5 instead of the
Peter Avalos [Wed, 15 Nov 2006 23:13:45 +0000 (23:13 +0000)]
Use the vendor-supplied man pages for file.1 and magic.5 instead of the
stale ones we have now.

Reviewed-by: vbd

13 years agoUse the vendor-supplied man pages for file.1 and magic.5 instead of the
Peter Avalos [Wed, 15 Nov 2006 23:13:45 +0000 (23:13 +0000)]
Use the vendor-supplied man pages for file.1 and magic.5 instead of the
stale ones we have now.

Reviewed-by: vbd

13 years agoDon't break buildworld for upgrading users: "i386" is no valid platorm
Simon Schubert [Wed, 15 Nov 2006 03:27:10 +0000 (03:27 +0000)]
Don't break buildworld for upgrading users:  "i386" is no valid platorm
name anymore, so we automatically convert it to "pc32".
Remove checks for build/installworld, as sys.mk deals with fixing now.

Discussed-with: pavalos
DragonFly-issue: http://bugs.dragonflybsd.org/issue379 (among others)

13 years agoFix for the latest developments in the kernel architecture reorganization.
Sascha Wildner [Tue, 14 Nov 2006 22:27:49 +0000 (22:27 +0000)]
Fix for the latest developments in the kernel architecture reorganization.

13 years agoUpdate re(4) manpage to reflect recent re(4) changes.
Sepherosa Ziehau [Tue, 14 Nov 2006 13:39:45 +0000 (13:39 +0000)]
Update re(4) manpage to reflect recent re(4) changes.

Reviewed-by: swildner@
13 years agoSync re(4) with FreeBSD:
Sepherosa Ziehau [Tue, 14 Nov 2006 13:35:49 +0000 (13:35 +0000)]
Sync re(4) with FreeBSD:
- Add support for RealTek 8169SC/8110SC and RTL8101E devices.  The latter
  is a PCIe 10/100 chip.
- Add support for RealTek RTL8168(B?)
- Fix EEPROM reading code
- Disable diagnostic code in re_attach() by default.  It is almost useless
  and has caused much trouble.
- Manually padding small IP datagrams to work arround hardware checksum
  offload bug [1].  Enable IP/TCP/UDP checksum offload after this fix.
- Work arround hardware TX bug in some PCIe re(4) devices:
  The TX command, which is issued when there is transmission in progress,
  will get lost [2].
  So at the end of re_txeof(), if there are still packets sitting in the
  TX ring, we kick the TX engine again.
- Add a sysctl hw.reX.tx_moderation to turn on/off TX moderation.  It is
  on by default.
- Move softc related structs from if_rereg.h into newly created if_revar.h

Thank Bill Paul (wpaul@freebsd.org) and many other people for their work
on this driver.

#
# [1] Detailed description of this bug is at:
#     FreeBSD dev/re/if_re.c rev1.70 by wpaul@freebsd.org
#
# [2] Detailed description of this bug is at:
#     FreeBSD dev/re/if_re.c rev1.71 by wpaul@freebsd.org
#

13 years agoupdate manpage according recent sk(4) changes
Sepherosa Ziehau [Tue, 14 Nov 2006 12:53:45 +0000 (12:53 +0000)]
update manpage according recent sk(4) changes

Reviewed-by: swildner@
13 years ago- busdma(9)fy
Sepherosa Ziehau [Tue, 14 Nov 2006 12:52:31 +0000 (12:52 +0000)]
- busdma(9)fy
- Use a per-controller serializer instead of per-driver serializer
- Supports more chips
  Obtained-from: OpenBSD
- Reduce interrupt moderation timer, thus decrease response latency
  Obtained-from: NetBSD via OpenBSD
- Fix watchdog timeout errors seen on a few systems:
  "The SK-NET GENESIS document says reading the SK_ISSR register should stop
   generating further interrupts, but it seems there is the possibility
   of losing interrupts between reading the SK_ISSR register and determining
   which interrupts have been reported. To cope with this situation we
   continuously read the SK_ISSR register until there are no interrupts.

   However, it seems that the above workaround does not fix all cases.
   Add workaround code that tries to protect against false alarms from
   the watchdog handler by trying to reclaim pending Tx descriptors
   before resetting the hardware.

   This should fix occasional watchdog timeouts seen with this driver."
  Obtained-from: FreeBSD via OpenBSD
- Move softc related structs from if_skreg.h into newly added if_skvar.h

Thanks for all of the people for their working on this driver.

13 years agoregen
Sepherosa Ziehau [Tue, 14 Nov 2006 12:32:18 +0000 (12:32 +0000)]
regen

13 years ago- GALILEO -> MARVELL
Sepherosa Ziehau [Tue, 14 Nov 2006 12:30:51 +0000 (12:30 +0000)]
- GALILEO -> MARVELL
- Add some Yukon/YukonII PCI ids

13 years agoAdd some more PCI IDs for the SATA300 controllers of newer Intel boards.
Joerg Sonnenberger [Tue, 14 Nov 2006 10:54:21 +0000 (10:54 +0000)]
Add some more PCI IDs for the SATA300 controllers of newer Intel boards.

13 years agoSync the uplcom(4) driver with FreeBSD.
Sascha Wildner [Mon, 13 Nov 2006 21:39:19 +0000 (21:39 +0000)]
Sync the uplcom(4) driver with FreeBSD.

Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Reviewed-by: dillon
I did some minor fixes and synced the manpage, too.

13 years agoRegenerate
Sascha Wildner [Mon, 13 Nov 2006 21:21:11 +0000 (21:21 +0000)]
Regenerate

13 years agoAdd USB serial adapters/cable.
Sascha Wildner [Mon, 13 Nov 2006 21:18:48 +0000 (21:18 +0000)]
Add USB serial adapters/cable.

Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
13 years agoUpon further review, VERSION isn't even used in libmagic.3.
Peter Avalos [Mon, 13 Nov 2006 17:45:05 +0000 (17:45 +0000)]
Upon further review, VERSION isn't even used in libmagic.3.

13 years agoAvoid duplicated ifname in debug message.
Sepherosa Ziehau [Mon, 13 Nov 2006 12:27:23 +0000 (12:27 +0000)]
Avoid duplicated ifname in debug message.

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

13 years agoOur errno is in section 2, so patch the vendor provided man page.
Peter Avalos [Mon, 13 Nov 2006 05:42:42 +0000 (05:42 +0000)]
Our errno is in section 2, so patch the vendor provided man page.

Thanks again to swildner for the manpage markup review.

13 years agoAdd Belarus locales (identical with FreeBSD's).
Sascha Wildner [Sun, 12 Nov 2006 21:15:46 +0000 (21:15 +0000)]
Add Belarus locales (identical with FreeBSD's).

Submitted-by: Yury Tarasievich <yury.tarasievich@gmail.com>
The following modifications were done by me:

* Fix a comment in be_BY.CP1131.src (silences a preprocessor warning).

* Add a definition for the panic key to the keymap files (as all our
  keymaps have).

* Use FreeBSD's rev. 1.2 of share/mklocale/be_BY.CP1131.src (comments
  correction).

13 years agoRename boot_i386.8 to boot_pc32.8 by repo-copy in order to enable the
Sascha Wildner [Sun, 12 Nov 2006 18:15:11 +0000 (18:15 +0000)]
Rename boot_i386.8 to boot_pc32.8 by repo-copy in order to enable the
creation of the boot.8 MLINK again.

Remove boot_i386.8 with 'make upgrade'.

13 years agoAdd a check for installworld (similar to the buildworld check) to ensure
Sascha Wildner [Sun, 12 Nov 2006 13:20:41 +0000 (13:20 +0000)]
Add a check for installworld (similar to the buildworld check) to ensure
that MACHINE is set to 'pc32' before installing world.

Reported-by: Thomas Schlesinger, Rumko and several other people
13 years agoAdd a libmagic.3 manual page.
Peter Avalos [Sun, 12 Nov 2006 04:51:56 +0000 (04:51 +0000)]
Add a libmagic.3 manual page.

Thank you to swildner for the implementation of pulling VERSION from
config.h.

13 years agoMerge from vendor branch FILE:
Peter Avalos [Sun, 12 Nov 2006 04:51:56 +0000 (04:51 +0000)]
Merge from vendor branch FILE:
Add a libmagic.3 manual page.

Thank you to swildner for the implementation of pulling VERSION from
config.h.

13 years agoAdd a libmagic.3 manual page.
Peter Avalos [Sun, 12 Nov 2006 04:51:56 +0000 (04:51 +0000)]
Add a libmagic.3 manual page.

Thank you to swildner for the implementation of pulling VERSION from
config.h.

13 years agoFix warning.
Sascha Wildner [Sun, 12 Nov 2006 00:51:47 +0000 (00:51 +0000)]
Fix warning.

13 years agoRemove files not in the new version.
Peter Avalos [Sat, 11 Nov 2006 22:10:35 +0000 (22:10 +0000)]
Remove files not in the new version.

13 years agoUpgrade to file-4.18.
Peter Avalos [Sat, 11 Nov 2006 22:04:52 +0000 (22:04 +0000)]
Upgrade to file-4.18.

13 years agoMerge from vendor branch FILE:
Peter Avalos [Sat, 11 Nov 2006 22:04:52 +0000 (22:04 +0000)]
Merge from vendor branch FILE:
Upgrade to file-4.18.

13 years agoUpgrade to file-4.18.
Peter Avalos [Sat, 11 Nov 2006 22:04:52 +0000 (22:04 +0000)]
Upgrade to file-4.18.

13 years agoTypo from previous commit (forgot the trailing */).
Peter Avalos [Sat, 11 Nov 2006 21:56:35 +0000 (21:56 +0000)]
Typo from previous commit (forgot the trailing */).

13 years agoRevert the previous commit in libmagic to make both libmagic and file(1)
Peter Avalos [Sat, 11 Nov 2006 21:52:12 +0000 (21:52 +0000)]
Revert the previous commit in libmagic to make both libmagic and file(1)
use the config.h in lib/libmagic so we don't have multiple copies of the
same file in the src tree.  Having file(1) rely on files in libmagic is
slightly more logical than the previous behavior.

13 years agoRevert the previous commit in libmagic to make both libmagic and file(1)
Peter Avalos [Sat, 11 Nov 2006 21:41:18 +0000 (21:41 +0000)]
Revert the previous commit in libmagic to make both libmagic and file(1)
use the config.h in lib/libmagic so we don't have multiple copies of the
same file in the src tree.  Having file(1) rely on files in libmagic is
slightly more logical than the previous behavior.

13 years agoFix another typo.
Sascha Wildner [Sat, 11 Nov 2006 21:19:02 +0000 (21:19 +0000)]
Fix another typo.

Noticed-by: Trevor Kendall <trevorjkendall@gmail.com>
13 years agoRemove /usr/include/machine/dvcfg.h with 'make upgrade'.
Sascha Wildner [Sat, 11 Nov 2006 20:18:37 +0000 (20:18 +0000)]
Remove /usr/include/machine/dvcfg.h with 'make upgrade'.

13 years agoCheck for subdirectories for both the platform architecture and the
Matthew Dillon [Sat, 11 Nov 2006 20:02:36 +0000 (20:02 +0000)]
Check for subdirectories for both the platform architecture and the
cpu architecture.

13 years agoEnable the building of boot0cfg for pc32.
Matthew Dillon [Sat, 11 Nov 2006 20:01:31 +0000 (20:01 +0000)]
Enable the building of boot0cfg for pc32.

13 years agoFix path.
Sascha Wildner [Sat, 11 Nov 2006 19:38:41 +0000 (19:38 +0000)]
Fix path.

13 years agoTurn off splitting in the AUTHORS section.
Sascha Wildner [Sat, 11 Nov 2006 18:50:04 +0000 (18:50 +0000)]
Turn off splitting in the AUTHORS section.

13 years agoFix typo.
Sascha Wildner [Sat, 11 Nov 2006 17:39:44 +0000 (17:39 +0000)]
Fix typo.

13 years agoTurn off splitting in the AUTHORS section.
Sascha Wildner [Sat, 11 Nov 2006 17:26:48 +0000 (17:26 +0000)]
Turn off splitting in the AUTHORS section.

13 years agoAdd support for SIGINFO.
Victor Balada Diaz [Sat, 11 Nov 2006 12:11:25 +0000 (12:11 +0000)]
Add support for SIGINFO.

Submitted-By: Trevor Kendall <trevorjkendall@gmail.com>
13 years agoAdd support for SIGINFO.
Victor Balada Diaz [Sat, 11 Nov 2006 12:05:36 +0000 (12:05 +0000)]
Add support for SIGINFO.

Submitted-By: Trevor Kendall <trevorjkendall@gmail.com>
13 years agoGrab config.h from usr.bin/file/ instead of having 2 identical copies in
Peter Avalos [Fri, 10 Nov 2006 22:16:06 +0000 (22:16 +0000)]
Grab config.h from usr.bin/file/ instead of having 2 identical copies in
the src tree.

13 years agoFix typos.
Peter Avalos [Thu, 9 Nov 2006 19:02:11 +0000 (19:02 +0000)]
Fix typos.

13 years agoRemove lukemftpd from our source tree as discussed on users@:
Peter Avalos [Thu, 9 Nov 2006 18:44:52 +0000 (18:44 +0000)]
Remove lukemftpd from our source tree as discussed on users@:

http://leaf.dragonflybsd.org/mailarchive/users/2006-11/msg00026.html

This is still available from pkgsrc.

13 years agobuildworld depends on hw.machine exported from the kernel being correct.
Matthew Dillon [Thu, 9 Nov 2006 17:16:56 +0000 (17:16 +0000)]
buildworld depends on hw.machine exported from the kernel being correct.
This designation has recently changed from i386 to pc32.  Add a check
to buildworld to report the problem and to tell the user how to fix it.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
13 years agoAdjust for symbol name changes.
Matthew Dillon [Thu, 9 Nov 2006 16:52:41 +0000 (16:52 +0000)]
Adjust for symbol name changes.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
13 years agoUpdate to the latest version and name (tnftp).
Peter Avalos [Wed, 8 Nov 2006 21:54:52 +0000 (21:54 +0000)]
Update to the latest version and name (tnftp).

13 years agoMerge from vendor branch TNFTP:
Peter Avalos [Wed, 8 Nov 2006 21:21:34 +0000 (21:21 +0000)]
Merge from vendor branch TNFTP:
Import of NetBSD's ftp client under its new name (tnftp)

13 years agoImport of NetBSD's ftp client under its new name (tnftp)
Peter Avalos [Wed, 8 Nov 2006 21:21:34 +0000 (21:21 +0000)]
Import of NetBSD's ftp client under its new name (tnftp)

13 years agoAdd a missing #undef to properly compile atomic.c functions into the
Matthew Dillon [Wed, 8 Nov 2006 20:59:52 +0000 (20:59 +0000)]
Add a missing #undef to properly compile atomic.c functions into the
kernel so modules can access them.

13 years agobmake uses /usr/share/mk/sys.mk, so we cannot require that MACHINE_CPU be
Matthew Dillon [Wed, 8 Nov 2006 20:43:31 +0000 (20:43 +0000)]
bmake uses /usr/share/mk/sys.mk, so we cannot require that MACHINE_CPU be
defined by the make program.

13 years agoGet the MI portions of VKERNEL to build, start linking it against libc.
Matthew Dillon [Wed, 8 Nov 2006 16:40:00 +0000 (16:40 +0000)]
Get the MI portions of VKERNEL to build, start linking it against libc.

13 years agoMove the Maxmem extern to systm.h
Matthew Dillon [Wed, 8 Nov 2006 16:38:47 +0000 (16:38 +0000)]
Move the Maxmem extern to systm.h

13 years agoAdd patch from FreeBSD to fix an infinite loop described at:
Peter Avalos [Wed, 8 Nov 2006 16:27:42 +0000 (16:27 +0000)]
Add patch from FreeBSD to fix an infinite loop described at:

http://security.FreeBSD.org/advisories/FreeBSD-SA-06:24.libarchive.asc

13 years agoSync zoneinfo database with tzdata2006o from elsie.
Sascha Wildner [Wed, 8 Nov 2006 13:46:33 +0000 (13:46 +0000)]
Sync zoneinfo database with tzdata2006o from elsie.

antarctica:     8.2 -> 8.3
northamerica:   8.9 -> 8.10
southamerica:   8.5 -> 8.6

From Paul Eggert's comments:

* Changes affecting current and future time stamps.

  Cuba has ended its three years of permanent DST.
  (Thanks to Jesper Norgaard Welen for this.)

* Changes affecting past time stamps.

  Many transitions in Chile from 1918 through 1998 have been updated
  to reflect <http://www.horaoficial.cl/horaof.htm>.  (Thanks to
  Jesper Norgaard Welen for this.)  This also affects Palmer base
  in Antarctica.  I also updated some incorrect rules for use of
  Argentina daylight saving rules at Palmer before 1982.

* Changes affecting commentary only.

  The URLs for Paraguay's daylight saving decrees have been updated.
  (Thanks to Jesper Norgaard Welen and Carlos Raul Perasso for this.)

13 years agoMore Machine-dependant/Machine-independant code and header file separation.
Matthew Dillon [Tue, 7 Nov 2006 20:48:15 +0000 (20:48 +0000)]
More Machine-dependant/Machine-independant code and header file separation.
Numerous machine interfaces have MI APIs and should be declared in MI headers
even though the routines are defined in MD sources.

* Improve rdtsc()'s API so it can be used in MI code.
* Add an explicit enable in machine/${MACHINE}/Makefile.inc for syscons/apm.
* Abstract <machine/reg.h> and provide a MI API for it via <sys/reg.h>.
* Move additional MI API calls from <machine/md_var.h> to <sys/systm.h>.

13 years agoMove <machine/dvcfg.h> to the one device that actually uses it, remove
Matthew Dillon [Tue, 7 Nov 2006 19:56:27 +0000 (19:56 +0000)]
Move <machine/dvcfg.h> to the one device that actually uses it, remove
other inclusions of dvcfg.h that are not used.

Give each platform architecture a "Makefile.inc" file which the build
system can use to determine device support when building devices.

13 years agoMove <machine/ccbque.h> to <sys/ccbque.h>. ccbque.h is not a
Matthew Dillon [Tue, 7 Nov 2006 19:23:54 +0000 (19:23 +0000)]
Move <machine/ccbque.h> to <sys/ccbque.h>.  ccbque.h is not a
machine-specific header file.

13 years agoRemove system dependancies on <machine/ipl.h>. Only architecture files
Matthew Dillon [Tue, 7 Nov 2006 18:50:07 +0000 (18:50 +0000)]
Remove system dependancies on <machine/ipl.h>.  Only architecture files
need it now.  SWI_* defines moved from the MD <machine/ipl.h> to the
MI <sys/interrupt.h> directory.

13 years agoMisc cleanups and CVS surgery. Move a number of header and source files
Matthew Dillon [Tue, 7 Nov 2006 17:51:24 +0000 (17:51 +0000)]
Misc cleanups and CVS surgery.  Move a number of header and source files
from machine/pc32 to cpu/i386 as part of the ongoing architectural separation
work and do a bit of cleanup.

13 years agoMajor kernel build infrastructure changes, part 2/2 (user).
Matthew Dillon [Tue, 7 Nov 2006 06:57:02 +0000 (06:57 +0000)]
Major kernel build infrastructure changes, part 2/2 (user).

These changes are primarily designed to create a 2-layer machine and cpu
build hierarchy in order to support virtual kernel builds in the near term
and future porting efforts in the long term.

* The make program now pulls MACHINE, MACHINE_ARCH, and MACHINE_CPU from
  the kernel hw.machine, hw.machine_arch, and hw.machine_cpu sysctl
  variables, unless overridden by environment variables.

* The config program now generates additional softlinks in the kernel build
  directory:

  machine points to the platform architecture header files
  machine_base points to the baes of the platform architecture directory.
  cpu points to the cpu architecture header files
  cpu_base points to the base of the cpu architecture directory

  Additionally, the config program generates forwarding header files as
  includes/machine/*.h.  Any cpu architecture header files that are not
  overridden by the platform architecture are generated in this directory.

  The kernel build's Makefile adjusts the -I paths to effectively merge
  machine/ and includes/machine/, presenting a uniform <machine/*.h>
  include file architecture to the kernel build.

  The kernel build's Makefile now automatically exports MACHINE and
  MACHINE_ARCH as environment variables.

  The kernel build's Makefile now makes opt_*, use_*, and IF header files
  directly available to the module build subsystem so the module build
  subsystem does not have to generate them in each module subdirectory.

* Kernel configuration files now require both a 'machine' and a 'machine_arch'
  directive.  Typically:

  machine pc32 (subject to change)
  machine_arch i386

* /usr/include/cpu has been added to augment /usr/include/machine.  The
  buildworld infrastructure also automatically merges any <cpu/*.h> header
  files that were not overridden by the <machine/*.h> header files into
  /usr/include/machine.

  Note that direct access to /usr/include/cpu is not recommended.

* A number of weird cases that generate extranious 'machine' softlinks
  (for <machine/*.h> header access) have been removed.

* The MACHINE_ARCH default to i386 has been removed.  If the make program
  does not define the MACHINE_ environment and sys.mk is included, sys.mk
  will now fail with an error.

* cpdup has been added to the bootstrap tools.

13 years agoMajor kernel build infrastructure changes, part 1/2 (sys).
Matthew Dillon [Tue, 7 Nov 2006 06:43:25 +0000 (06:43 +0000)]
Major kernel build infrastructure changes, part 1/2 (sys).

These changes are primarily designed to create a 2-layer machine and cpu
build hierarchy in order to support virtual kernel builds in the near term
and future porting efforts in the long term.

* Split arch/ into a set of platform architectures under machine/ and a
  set of cpu architectures under cpu/.  All platform and cpu header files
  will be accessible via <machine/*.h>.  Platform header files may override
  cpu header files (the platform header file then typically #include's the
  cpu header file).

* Any cpu header files that are not overridden will be copied directly
  into /usr/include/machine/, allowing the platform to omit those header
  files (not have to create degenerate forwarding header files).

* All source files access platform and cpu architecture files via the
  <machine/*.h> path.  The <cpu/*.h> path should only be used by
  platform header files when including the lower level cpu header files.

* Require both the 'machine' and the 'machine_arch' directives in the
  kernel config file.

* When building modules in the presence of a kernel config, use the IF
  files, use*.h files, and opt*.h files provided by the kernel config
  and do not generate them in each module's object directory.  This
  streamlines the module build considerably.

13 years agotest 5
Matthew Dillon [Sun, 5 Nov 2006 21:49:23 +0000 (21:49 +0000)]
test 5

13 years agotest 4
Matthew Dillon [Sun, 5 Nov 2006 21:47:49 +0000 (21:47 +0000)]
test 4

Dragonfly-bug:
Submitted-by:
Reviewed-by:
Approved-by:
Obtained-from:

13 years agoAbort if the device doesn't exist.
Simon Schubert [Sun, 5 Nov 2006 11:40:45 +0000 (11:40 +0000)]
Abort if the device doesn't exist.

13 years agoSync our rm -P option with OpenBSD - if the file has a hardlink count
Matthew Dillon [Sun, 5 Nov 2006 02:26:39 +0000 (02:26 +0000)]
Sync our rm -P option with OpenBSD - if the file has a hardlink count
greater then one do not overwrite it or remove it, and issue a warning.

13 years agore-add vinumsize, so that vinum volumes can be used to swap on
Simon Schubert [Fri, 3 Nov 2006 16:33:38 +0000 (16:33 +0000)]
re-add vinumsize, so that vinum volumes can be used to swap on

13 years agoFix userland compilation error.
Jeffrey Hsu [Fri, 3 Nov 2006 00:54:55 +0000 (00:54 +0000)]
Fix userland compilation error.

Pointed out by Simon Schubert.

13 years agoAdd wcstod(3) and wcstol(3) manual pages.
Sascha Wildner [Thu, 2 Nov 2006 19:53:56 +0000 (19:53 +0000)]
Add wcstod(3) and wcstol(3) manual pages.

Adapted-from: NetBSD

13 years agoSync strtol(3) and strtoul(3) with FreeBSD.
Sascha Wildner [Thu, 2 Nov 2006 19:48:55 +0000 (19:48 +0000)]
Sync strtol(3) and strtoul(3) with FreeBSD.

This fixes some mdoc nits, adds documentation about when EINVAL is returned
and makes the existance of strtoimax(3) and strtoumax(3) known to the world.

13 years agoClean up code.
Jeffrey Hsu [Thu, 2 Nov 2006 05:16:35 +0000 (05:16 +0000)]
Clean up code.

13 years agoThere is no securenets(5) manual page. Use .Pa and add a reference
Sascha Wildner [Wed, 1 Nov 2006 22:41:21 +0000 (22:41 +0000)]
There is no securenets(5) manual page. Use .Pa and add a reference
to ypserv(8).

13 years agoUpgrade awk to the latest version (20050424).
Peter Avalos [Wed, 1 Nov 2006 22:33:47 +0000 (22:33 +0000)]
Upgrade awk to the latest version (20050424).

13 years agoAdd our READMEs.
Peter Avalos [Wed, 1 Nov 2006 21:34:07 +0000 (21:34 +0000)]
Add our READMEs.

13 years agoMerge from vendor branch AWK:
Peter Avalos [Wed, 1 Nov 2006 21:20:57 +0000 (21:20 +0000)]
Merge from vendor branch AWK:
Import of awk 20050424

13 years agoImport of awk 20050424
Peter Avalos [Wed, 1 Nov 2006 21:20:57 +0000 (21:20 +0000)]
Import of awk 20050424

13 years agoWARNS6 cleanup. Add a length modifier to a printf format argument since
Peter Avalos [Tue, 31 Oct 2006 20:22:22 +0000 (20:22 +0000)]
WARNS6 cleanup.  Add a length modifier to a printf format argument since
inode numbers are 64 bits.

13 years agoFix parameter name in prototype.
Sascha Wildner [Mon, 30 Oct 2006 13:47:59 +0000 (13:47 +0000)]
Fix parameter name in prototype.

Noticed-by: Steve Mynott <steve.mynott@gmail.com>
13 years agoRemove recently deleted header files via 'make upgrade'.
Sascha Wildner [Mon, 30 Oct 2006 10:02:10 +0000 (10:02 +0000)]
Remove recently deleted header files via 'make upgrade'.

13 years agoAdd a __DECONST to bring this up to WARNS6.
Peter Avalos [Sat, 28 Oct 2006 20:42:54 +0000 (20:42 +0000)]
Add a __DECONST to bring this up to WARNS6.

13 years agoBug fixing:
Sepherosa Ziehau [Sat, 28 Oct 2006 12:28:25 +0000 (12:28 +0000)]
Bug fixing:
device_delete_child() is called unconditionally in bge_detach(), due to the
';' after 'if()'.  It is dangerous here, since bge_detach() serves as failure
cleanup routine too.

13 years agoFix incorrect function name (kobj_free -> kobj_delete) and remove references
Sascha Wildner [Fri, 27 Oct 2006 23:02:59 +0000 (23:02 +0000)]
Fix incorrect function name (kobj_free -> kobj_delete) and remove references
to kobj_class_compile_static() which was removed 2.5 years ago.

13 years agoComment out the remaining references to rman_reserve_resource_bound().
Sascha Wildner [Fri, 27 Oct 2006 22:39:05 +0000 (22:39 +0000)]
Comment out the remaining references to rman_reserve_resource_bound().

13 years agoFix function name and add MLINKS for all functions.
Sascha Wildner [Fri, 27 Oct 2006 18:15:28 +0000 (18:15 +0000)]
Fix function name and add MLINKS for all functions.

13 years agoNgSendMsgReply() doesn't exist. Should be NgSendReplyMsg().
Sascha Wildner [Fri, 27 Oct 2006 10:53:59 +0000 (10:53 +0000)]
NgSendMsgReply() doesn't exist. Should be NgSendReplyMsg().

13 years agoAdjust fstat to properly traverse mount points when constructing a
Matthew Dillon [Fri, 27 Oct 2006 05:04:35 +0000 (05:04 +0000)]
Adjust fstat to properly traverse mount points when constructing a
file or directory path, based on the new namecache topology.