dragonfly.git
14 years agoCorrect sizeof(pointer) bugs that should have been sizeof(*pointer)
Matthew Dillon [Tue, 17 Jan 2006 23:50:35 +0000 (23:50 +0000)]
Correct sizeof(pointer) bugs that should have been sizeof(*pointer)
or strlen(pointer) or something other then sizeof(pointer).

References: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25702
Reported-by: Mark Eklund <meklund@cisco.com>
14 years agoAdd forgotten part of setenv cleanup
Simon Schubert [Tue, 17 Jan 2006 15:06:26 +0000 (15:06 +0000)]
Add forgotten part of setenv cleanup

Submitted-by: Alexey Slynko <slynko@tronet.ru>
14 years agoRemove 400.status-pkg from the Makefile as well.
Sascha Wildner [Sun, 15 Jan 2006 11:42:50 +0000 (11:42 +0000)]
Remove 400.status-pkg from the Makefile as well.

Reported-by: corecode
14 years agoFix insecure tempfile usage in ee, see FreeBSD-SA-06:02.ee
Simon Schubert [Sun, 15 Jan 2006 00:07:31 +0000 (00:07 +0000)]
Fix insecure tempfile usage in ee, see FreeBSD-SA-06:02.ee

14 years agoSet %bx register instead of %di register as specified by the
Sascha Wildner [Sat, 14 Jan 2006 23:04:46 +0000 (23:04 +0000)]
Set %bx register instead of %di register as specified by the
VBE 3.0 specification, page 45.

Found-in: FreeBSD

14 years agoFix use of history without HistEvent, causing segfaults
Simon Schubert [Sat, 14 Jan 2006 22:58:18 +0000 (22:58 +0000)]
Fix use of history without HistEvent, causing segfaults

Reported-by: esmith <esmith@postmark.net>
14 years agoRemove ports specific periodic script & documentation.
Sascha Wildner [Sat, 14 Jan 2006 22:44:46 +0000 (22:44 +0000)]
Remove ports specific periodic script & documentation.

14 years ago* Remove example supfile for dfports.
Sascha Wildner [Sat, 14 Jan 2006 22:23:40 +0000 (22:23 +0000)]
* Remove example supfile for dfports.

* Add a sentence of documentation about the release example supfiles.

* Replace ports/dfports section in the upgrading notes with some
  information about pkgsrc.

14 years ago* Remove (void) casts for discarded return values.
Sascha Wildner [Sat, 14 Jan 2006 13:36:40 +0000 (13:36 +0000)]
* Remove (void) casts for discarded return values.

* Put function types on separate lines.

* Ansify function definitions.

* Remove PROTO_LIST.

* Some style(9) cleanup.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

14 years ago* Remove (void) casts for discarded return values.
Sascha Wildner [Sat, 14 Jan 2006 11:44:25 +0000 (11:44 +0000)]
* Remove (void) casts for discarded return values.

* Put function types on separate lines.

* Ansify function definitions.

* Remove __P.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

14 years ago* Remove (void) casts for discarded return values.
Sascha Wildner [Sat, 14 Jan 2006 11:33:50 +0000 (11:33 +0000)]
* Remove (void) casts for discarded return values.

* Put function types on separate lines.

* Ansify function definitions.

* Remove __P.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

14 years ago* Remove (void) casts for discarded return values.
Sascha Wildner [Sat, 14 Jan 2006 11:10:47 +0000 (11:10 +0000)]
* Remove (void) casts for discarded return values.

* Put function types on separate lines.

* Ansify function definitions.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

14 years ago* Remove (void) casts for discarded return values.
Sascha Wildner [Sat, 14 Jan 2006 11:05:18 +0000 (11:05 +0000)]
* Remove (void) casts for discarded return values.

* Put function types on separate lines.

* Ansify function definitions.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

14 years ago* Remove (void) casts for discarded return values.
Sascha Wildner [Fri, 13 Jan 2006 21:09:27 +0000 (21:09 +0000)]
* Remove (void) casts for discarded return values.

* Put function types on separate lines.

* Ansify function definitions.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

14 years ago* Remove (void) casts for discarded return values.
Sascha Wildner [Fri, 13 Jan 2006 20:45:30 +0000 (20:45 +0000)]
* Remove (void) casts for discarded return values.

* Ansify function definitions.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

14 years agoLOG_WARN -> LOG_WARNING
Sascha Wildner [Fri, 13 Jan 2006 20:26:46 +0000 (20:26 +0000)]
LOG_WARN -> LOG_WARNING

14 years agobx is supposed to point to twiddle_chars, not contain the first element
Matthew Dillon [Fri, 13 Jan 2006 19:41:50 +0000 (19:41 +0000)]
bx is supposed to point to twiddle_chars, not contain the first element
of twiddle_chars.

Submitted-by: Yuichiro Goto <goto@acr.kanazawa-it.ac.jp>
14 years agoCheck for setenv/putenv's success
Simon Schubert [Thu, 12 Jan 2006 13:43:11 +0000 (13:43 +0000)]
Check for setenv/putenv's success

Submitted-by: Alexey Slynko <slynko@tronet.ru>
14 years agoRetire old subvers file
Simon Schubert [Wed, 11 Jan 2006 13:54:50 +0000 (13:54 +0000)]
Retire old subvers file

14 years agoImport a softdep fix from FreeBSD rev 1.183 by tegge:
Simon Schubert [Wed, 11 Jan 2006 02:46:38 +0000 (02:46 +0000)]
Import a softdep fix from FreeBSD rev 1.183 by tegge:

Don't set the COMPLETE flag in an inodedep structure before the related
inode has been written.

14 years agoUse _KERNEL_STRUCTURES where appropriate
Simon Schubert [Wed, 11 Jan 2006 02:38:02 +0000 (02:38 +0000)]
Use _KERNEL_STRUCTURES where appropriate

14 years agoShape up asf to be better usable on DragonFly
Simon Schubert [Wed, 11 Jan 2006 02:00:13 +0000 (02:00 +0000)]
Shape up asf to be better usable on DragonFly

14 years agoAlso make clean for internal pic archives.
Simon Schubert [Wed, 11 Jan 2006 01:15:32 +0000 (01:15 +0000)]
Also make clean for internal pic archives.

14 years agoAdd kvm_readstr, a convenience helper which lets you read C strings from
Simon Schubert [Wed, 11 Jan 2006 01:12:59 +0000 (01:12 +0000)]
Add kvm_readstr, a convenience helper which lets you read C strings from
kernel cores/kmem.

14 years agoMove the MAKEDEV step at the end of make upgrade so you can background it
Simon Schubert [Wed, 11 Jan 2006 01:04:34 +0000 (01:04 +0000)]
Move the MAKEDEV step at the end of make upgrade so you can background it

14 years agoMerge from vendor branch GDB:
Simon Schubert [Wed, 11 Jan 2006 00:52:13 +0000 (00:52 +0000)]
Merge from vendor branch GDB:
Remove HP-UX only files

14 years agoRemove HP-UX only files
Simon Schubert [Wed, 11 Jan 2006 00:52:13 +0000 (00:52 +0000)]
Remove HP-UX only files

14 years agoRemove HP-UX only files
Simon Schubert [Wed, 11 Jan 2006 00:52:13 +0000 (00:52 +0000)]
Remove HP-UX only files

14 years agodo not try to hold serializer in nge_rxeof(), since nge_rxeof() is called by
Sepherosa Ziehau [Tue, 10 Jan 2006 14:14:00 +0000 (14:14 +0000)]
do not try to hold serializer in nge_rxeof(), since nge_rxeof() is called by
nge_poll() and nge_intr() which already have held serializer

Reported-and-Tested-by: Steve O'Hara-Smith <steve at sohara.org>
14 years agoAdd missing pkgsrc paths to shell dotfiles and rc scripts
Simon Schubert [Tue, 10 Jan 2006 01:56:04 +0000 (01:56 +0000)]
Add missing pkgsrc paths to shell dotfiles and rc scripts

Noticed-by: Joseph Garcia
14 years agoFix a refcount bug which would appear when you kldunloaded a busy module,
Simon Schubert [Tue, 10 Jan 2006 00:33:12 +0000 (00:33 +0000)]
Fix a refcount bug which would appear when you kldunloaded a busy module,
preventing it to be unloaded later when it wasn't busy anymore, stating
"linkerunload: attempt to unload file that was loaded by the kernel".

14 years agoAdd missing \n to printf
Simon Schubert [Mon, 9 Jan 2006 15:14:49 +0000 (15:14 +0000)]
Add missing \n to printf

14 years agoFix proc->lwp conversion error
Simon Schubert [Mon, 9 Jan 2006 15:13:44 +0000 (15:13 +0000)]
Fix proc->lwp conversion error

14 years agoAdd kwrite, a tool to inspect and write kernel memory
Simon Schubert [Mon, 9 Jan 2006 15:05:45 +0000 (15:05 +0000)]
Add kwrite, a tool to inspect and write kernel memory

14 years agoFurther cleanup of GCC's builtin directory list in an attempt to
Joerg Sonnenberger [Fri, 6 Jan 2006 16:38:55 +0000 (16:38 +0000)]
Further cleanup of GCC's builtin directory list in an attempt to
make GCC more cross-build friendly.

14 years agoAllow static compilation of linprocfs using a LINPROCFS option.
Joerg Sonnenberger [Fri, 6 Jan 2006 15:50:07 +0000 (15:50 +0000)]
Allow static compilation of linprocfs using a LINPROCFS option.

14 years agoHonour NOSFCHG for the kernel installation as well, allowing to install
Joerg Sonnenberger [Fri, 6 Jan 2006 15:49:01 +0000 (15:49 +0000)]
Honour NOSFCHG for the kernel installation as well, allowing to install
a kernel within a jail for example.

14 years agoSleep before commit, remove trailing ,
Joerg Sonnenberger [Fri, 6 Jan 2006 15:01:38 +0000 (15:01 +0000)]
Sleep before commit, remove trailing ,

14 years agonextpid is not public, so don't use it. It's not really useful anyway,
Joerg Sonnenberger [Fri, 6 Jan 2006 15:01:06 +0000 (15:01 +0000)]
nextpid is not public, so don't use it. It's not really useful anyway,
so just return 1.

14 years agoRemove useless define.
Joerg Sonnenberger [Fri, 6 Jan 2006 14:45:04 +0000 (14:45 +0000)]
Remove useless define.

14 years agoAdd -P to the cvs example commands.
David Rhodus [Fri, 6 Jan 2006 02:44:53 +0000 (02:44 +0000)]
Add -P to the cvs example commands.

14 years agoClean up unmount() by removing the vnode resolution requirement. Just
Matthew Dillon [Wed, 4 Jan 2006 18:11:26 +0000 (18:11 +0000)]
Clean up unmount() by removing the vnode resolution requirement.  Just
use the namecache to validate the mount point.

Submitted-by: Csaba Henk <csaba.henk@creo.hu>
14 years agoMostly fix nullfs. There are still namespace race issues between
Matthew Dillon [Wed, 4 Jan 2006 03:09:54 +0000 (03:09 +0000)]
Mostly fix nullfs.  There are still namespace race issues between
a nullfs mount and the underlying filesystem.  The new nullfs
uses the new VFS ABI and namespace to avoid having to overload
all the VFS ops.

Turn off umapfs (it needed parts of the old nullfs).

Submitted-by: Csaba Henk <csaba.henk@creo.hu>
14 years agoFix buildworld with WANT_GCC40 defined. In gcc-4.0, __offsetof__ macro
YONETANI Tomokazu [Mon, 2 Jan 2006 06:02:01 +0000 (06:02 +0000)]
Fix buildworld with WANT_GCC40 defined. In gcc-4.0,  __offsetof__ macro
has been replaced with __builtin_offsetof macro, which also does
the complex type-casting stuff needed by the version using __offsetof__.

14 years agoBump OS version to 1.5 for DEVELOPMENT.
Sascha Wildner [Sun, 1 Jan 2006 21:34:50 +0000 (21:34 +0000)]
Bump OS version to 1.5 for DEVELOPMENT.

14 years agoSome of ServeRAID card may report an unusual status code after
YONETANI Tomokazu [Sun, 1 Jan 2006 16:53:15 +0000 (16:53 +0000)]
Some of ServeRAID card may report an unusual status code after
an ffdc reset command, but it seems to work correctly afterwards.
Since original ips driver in FreeBSD doesn't treat this as an error
(nor does Linux), ignoring this is probably not a big problem.

Reported-by: Francis GUDIN
14 years agoAdd a target that will update the 1.4-release slip tag.
Matthew Dillon [Sun, 1 Jan 2006 00:12:35 +0000 (00:12 +0000)]
Add a target that will update the 1.4-release slip tag.

14 years agoAdd 2006 to the copyrights.
Sascha Wildner [Sun, 1 Jan 2006 00:00:06 +0000 (00:00 +0000)]
Add 2006 to the copyrights.

*** HAPPY NEW YEAR! :) ***

14 years agoFinish fixing NDIS serialization. Wrap detach in the serializer and remove
Matthew Dillon [Sat, 31 Dec 2005 23:35:40 +0000 (23:35 +0000)]
Finish fixing NDIS serialization.  Wrap detach in the serializer and remove
all vestiges of NDIS_LOCK from the emulation support code.  NDIS is expected
to be serialized on entry, now.

14 years agoPreliminary ndis cleanup. The serializer has taken over the functionality
Matthew Dillon [Sat, 31 Dec 2005 19:39:14 +0000 (19:39 +0000)]
Preliminary ndis cleanup.  The serializer has taken over the functionality
that the token locks used to have, so remove the token locks.  Also remove
unnecessary 'return;' statements at the end of void procedures.

14 years agoBuild wchar string support
Simon Schubert [Sat, 31 Dec 2005 17:28:42 +0000 (17:28 +0000)]
Build wchar string support

14 years agoMove bus_teardown_intr() from wi_free() into wi_detach(). This is accidentally
Sepherosa Ziehau [Sat, 31 Dec 2005 14:25:04 +0000 (14:25 +0000)]
Move bus_teardown_intr() from wi_free() into wi_detach().  This is accidentally
left out in rev1.34

14 years ago{ether,ieee80211}_ifdetach() can't be called with serializer being held, since
Sepherosa Ziehau [Sat, 31 Dec 2005 14:08:01 +0000 (14:08 +0000)]
{ether,ieee80211}_ifdetach() can't be called with serializer being held, since
they will go through code which tries to hold serializer again, e.g.
ether_ifdetach() -> if_detach() -> in_control()

So in various NICs' xxx_detach():
- Move bus_teardown_intr() under "(device_is_attached())", whenever it is
  applicable.  Since it is not possible that intrhandle is NULL here, nuke
  original "(intrhandle != NULL)".  This can:
    1) Avoid holding serializer, if xxx_attach() fails
    2) Release serializer ASAP
    3) Ease following tasks
- Hold serializer only for xxx_stop()(or similar functions which stops NIC) and
  bus_teardown_intr()
- Call {ether,ieee80211}_ifdetach() after serializer is released

Other stuffs:
- Serialize xxx_detach() for awi(4), ep(4), sn(4) and xe(4)
- Release serializer before returning from {ed_pccard,ray}_detach()
- Make ipw(4)'s ipw_detach() suitable for error handling, adjust ipw_attach()
  accordingly
- Fix a bug in ex_pccard_detach(): instead of if_detach(), ether_ifdetach()
  should be used here
- For ndis(4), "ifp->serializer" ==> "ifp->if_serializer"
Reported-by: esmith <esmith@postmark.net>
Discussed-with: dillon and joerg
Partially-Reviewed-by: dillon and joerg
Reported-by: Steve Mynott <steve.mynott@gmail.com> and me
14 years agoSync zoneinfo database with tzdata2005r from elsie.
Sascha Wildner [Sat, 31 Dec 2005 03:15:55 +0000 (03:15 +0000)]
Sync zoneinfo database with tzdata2005r from elsie.

africa:         7.39 -> 7.40
antarctica:     7.25 -> 7.30
asia:           7.88 -> 7.90
australasia:    7.74 -> 7.78
backward: 7.29 -> 7.30
europe:         7.95 -> 7.96
northamerica:   7.82 -> 7.87
southamerica:   7.63 -> 7.66
systemv:        7.3  -> 7.5

- Make systemv rules distinct files rather than linking them to particular
  geographic areas (that might change rules).

- Remove email addresses.

- Remove dead URLs.

- Adjust Canada and Winn rules to follow the US changes to DST in 2007.

- Add "<pre>" directives.

14 years agoWeed out files with .sample, .orig, or .dist extensions. Proceduralize
Matthew Dillon [Fri, 30 Dec 2005 21:01:49 +0000 (21:01 +0000)]
Weed out files with .sample, .orig, or .dist extensions.  Proceduralize
the check to make future additions easy.

Suggested-by: "Justin C. Sherrill" <justin@shiningsilence.com>,
Joerg Sonnenberger <joerg@britannica.bec.de>

14 years agoDo not call ether_ifdetach() with the serializer held in IF_TAP.
Matthew Dillon [Fri, 30 Dec 2005 18:37:09 +0000 (18:37 +0000)]
Do not call ether_ifdetach() with the serializer held in IF_TAP.

14 years agoThe stat and ino_t changes were not intended to break dump/restore
Matthew Dillon [Fri, 30 Dec 2005 17:54:30 +0000 (17:54 +0000)]
The stat and ino_t changes were not intended to break dump/restore
compatibility.  Restore compatibility.  Note that dumps made with
1.3-DEVELOPMENT between the stat/ino changes and this patch will be broken.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
14 years agoether_input() no longer allows the MAC header to be passed separately,
Matthew Dillon [Fri, 30 Dec 2005 17:41:15 +0000 (17:41 +0000)]
ether_input() no longer allows the MAC header to be passed separately,
fix the vlan code to accomodate.

Add support for VLAN_MTU and VLAN_HWTAGGING.  LINK0 no longer needs to
be set manually on a vlan interface to enable hardware support.  And
update the manual page.

Reported-by: Gary Allan <dragonfly@gallan.plus.com>
Submitted-by: Matthew Dillon (ether_input fixes),
      Gary Allan (HW tagging and manual page)

14 years agoEnable wchar usage.
Joerg Sonnenberger [Fri, 30 Dec 2005 16:57:42 +0000 (16:57 +0000)]
Enable wchar usage.

14 years agoProvide proper offsetof macro for C++. Prefer __size_t here, since
Joerg Sonnenberger [Fri, 30 Dec 2005 15:29:26 +0000 (15:29 +0000)]
Provide proper offsetof macro for C++. Prefer __size_t here, since
it is the only version defined up to this point.

Obtained-from: FreeBSD

XXX This really belongs into sys/cdefs.h, but I want to avoid breaking
anything at this point.

14 years agoAdd support for Xircom X3201
Sepherosa Ziehau [Fri, 30 Dec 2005 13:39:21 +0000 (13:39 +0000)]
Add support for Xircom X3201

Obtained-from: FreeBSD
Tested-by: Tim Darby <t-df@timdarby.net>
14 years agoAdd link for bzip2recover(1).
Sascha Wildner [Fri, 30 Dec 2005 12:52:31 +0000 (12:52 +0000)]
Add link for bzip2recover(1).

14 years agoTesting commits.
Justin C. Sherrill [Fri, 30 Dec 2005 04:24:39 +0000 (04:24 +0000)]
Testing commits.

14 years agoDo not require a .sh extension for scripts in local_startup dirs,
Matthew Dillon [Thu, 29 Dec 2005 20:48:01 +0000 (20:48 +0000)]
Do not require a .sh extension for scripts in local_startup dirs,
e.g. /usr/local/etc/rc.d, /usr/pkg/etc/rc.d.  Just assume that all executable
files in said directories are scripts.

This will allow pkgsrc and ports packages which install RC scripts to
operate.

Brought-up-by: Cheese Lottery <cheeselottery@gmail.com> (and many others
       over the years).

14 years agoGive up trying to port ezm3, add a cvsup binary bootstrap package to
Matthew Dillon [Thu, 29 Dec 2005 20:18:58 +0000 (20:18 +0000)]
Give up trying to port ezm3, add a cvsup binary bootstrap package to
the release build.  Throw it into /usr/local/bin since it isn't a pkgsrc
package and isn't part of base.

14 years agoAdd a cvsup example to track the 1.4 release.
Matthew Dillon [Thu, 29 Dec 2005 17:48:25 +0000 (17:48 +0000)]
Add a cvsup example to track the 1.4 release.

Suggested-by: "Justin C. Sherrill" <justin@shiningsilence.com>
14 years agoAdd a 2 second delay after configuring interfaces before continuing.
Matthew Dillon [Thu, 29 Dec 2005 17:29:10 +0000 (17:29 +0000)]
Add a 2 second delay after configuring interfaces before continuing.
dhclient and named can get mightily confused if an interface they need
isn't entirely operational.

This is a temporary hack until we get more proactive interface testing
ported from FreeBSD.

14 years agoMake wait*() behave the same as it did before we moved TSTOP handling
Matthew Dillon [Wed, 28 Dec 2005 19:13:34 +0000 (19:13 +0000)]
Make wait*() behave the same as it did before we moved TSTOP handling
out of tsleep().  The behavior was that if both parent and child are
stopped together (aka via ^Z), and then resumed together, and the parent
is doing a WUNTRACED wait*() on the child, the parent will only see the
resume.  Without this little hack the parent will see both the STOP (after
the child has resumed since the parent was stopped too!), and then the
CONT.

It is unclear whether this is mandated by standards or not, but for now
we are going to maintain backwards compatibility.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
14 years agoUse the Er macro for error numbers.
Sascha Wildner [Wed, 28 Dec 2005 13:35:02 +0000 (13:35 +0000)]
Use the Er macro for error numbers.

14 years agoIn fxp_detach(), disable interrupts after fxp_stop(), since software resetting
Sepherosa Ziehau [Wed, 28 Dec 2005 10:28:24 +0000 (10:28 +0000)]
In fxp_detach(), disable interrupts after fxp_stop(), since software resetting
in fxp_stop() may leave interrupts turned on (*).

(*) My "Intel 82559 Pro/100 Ethernet" always does this

14 years agoDo not try to detach when successfully attached.
YONETANI Tomokazu [Wed, 28 Dec 2005 02:49:31 +0000 (02:49 +0000)]
Do not try to detach when successfully attached.

14 years agoPull in relevant parts of FreeBSD's rev. 1.42 and sync our badly outdated
Sascha Wildner [Tue, 27 Dec 2005 22:45:23 +0000 (22:45 +0000)]
Pull in relevant parts of FreeBSD's rev. 1.42 and sync our badly outdated
malloc(9) manpage with reality.

In-discussion-with: corecode

14 years agoAfter much hair pulling the problem with dual BGE interfaces not coming up
Matthew Dillon [Tue, 27 Dec 2005 21:32:11 +0000 (21:32 +0000)]
After much hair pulling the problem with dual BGE interfaces not coming up
has been tracked down to BGE0 sharing an interrupt with ACPI.  The bug is
actually in ACPI.  ACPI installs its interrupt vector too early, before
the IO APICs have been configured, so the IO pin is not actually turned on.

Then, later, bge0 installs its interrupt on the same IRQ but the IOAPIC is
still not enabled because the interrupt subsystem thinks it has already
enabled it.

For the moment, just hack a fix into kern_intr.c to always reinitialize
the pin, with a big XXX comment describing the problem.

Reported-by: David Rhodus
14 years agoFix a type-o that was causing the wrong mbuf's csum_data to be adjusted
Matthew Dillon [Tue, 27 Dec 2005 18:42:31 +0000 (18:42 +0000)]
Fix a type-o that was causing the wrong mbuf's csum_data to be adjusted
in IPFW.

Reported-by: Gary Allan <dragonfly@gallan.plus.com>
Taken-from: FreeBSD/1.99.2.46

14 years agoA ^Z signals the whole process group, causing the parent process (vipw) to
Matthew Dillon [Mon, 26 Dec 2005 20:18:56 +0000 (20:18 +0000)]
A ^Z signals the whole process group, causing the parent process (vipw) to
return a stopped status for the child AND to go to sleep at the same time.

Originally the parent (vipw) stopped before it checked the child state, and
thus would not 'notice' the child going into a stopped state because the
parent would get interrupted by the SIGCONT, execute the wakeup of the
child (vi), then restart the wait*().

But now due to the fact that the process no longer enters a STOPPED
state until it actually tries to return to userland, the wait*() call will
in fact try to return the child's 'old' stopped state when both processes
are stopped with TSTP, then return it when the parent process is woken up
by the SIGCONT.

For now solve the problem by not trying to check the stopped status of
the child.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
14 years agohook rgephy
Sepherosa Ziehau [Mon, 26 Dec 2005 13:39:50 +0000 (13:39 +0000)]
hook rgephy

14 years agoregen
Sepherosa Ziehau [Mon, 26 Dec 2005 13:38:38 +0000 (13:38 +0000)]
regen

14 years agoAdd PHY module for re(4)
Sepherosa Ziehau [Mon, 26 Dec 2005 13:36:18 +0000 (13:36 +0000)]
Add PHY module for re(4)

Changes to the original code:
- Turn on MIIF_IS_1000X so that mii_bmsr_media_to_anar() won't lie
- Enable auto-negotiation in rgephy_reset() so that ifconfig(8) will report
  correct media even when re(4) is not up

Obtained-from: FreeBSD
Patched-by: me and Gary Allan <dragonfly@gallan.plus.com>
Requested-by: Tomaz Borstnar <tomaz.borstnar@over.net>
Tested-by: Tomaz Borstnar <tomaz.borstnar@over.net>
   Gary Allan <dragonfly@gallan.plus.com>
   and me

# Thank Bill Paul and many other people for their work on this PHY module

14 years ago* Ansify function definitions.
Sascha Wildner [Sat, 24 Dec 2005 20:34:04 +0000 (20:34 +0000)]
* Ansify function definitions.

* Remove (void) casts for discarded return values.

* Remove parameter names from function prototypes.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

14 years agoComment out dfports (deprecated). Add doc (commented out).
Sascha Wildner [Sat, 24 Dec 2005 20:21:51 +0000 (20:21 +0000)]
Comment out dfports (deprecated). Add doc (commented out).

14 years agoClean up whitespace
Simon Schubert [Sat, 24 Dec 2005 14:29:47 +0000 (14:29 +0000)]
Clean up whitespace

Taken-from: FreeBSD

14 years agoMFFreeBSD rev 1.155 and 1.156:
Simon Schubert [Sat, 24 Dec 2005 14:27:47 +0000 (14:27 +0000)]
MFFreeBSD rev 1.155 and 1.156:

revision 1.156
date: 2004-08-28 00:58:02 -0700;  author: yar;  state: Exp;  lines: +4 -3;
Avoid double appearing of cloned interfaces in the output
from list_net_interfaces() when network_interfaces=auto.

Rationale: Since the auto case is special, the lesser evil
had to be chosen among not adding cloned interfaces to
_tmplist or removing duplicates from _tmplist after adding
cloned interfaces.  Since list_net_interfaces() must not use
/usr/bin tools, the former "evil" appeared clearer and much
more efficient.  (See the PR audit trail for discussion.)

PR: conf/63700
Reviewed by: brooks
MFC after: 5 days
----------------------------
revision 1.155
date: 2004-08-27 05:11:47 -0700;  author: yar;  state: Exp;  lines: +1 -1;
Fix a typo in a variable name.

14 years agoFix parameter order in livelock message.
Sascha Wildner [Fri, 23 Dec 2005 22:17:39 +0000 (22:17 +0000)]
Fix parameter order in livelock message.

14 years ago* Ansify function definitions.
Sascha Wildner [Fri, 23 Dec 2005 21:35:44 +0000 (21:35 +0000)]
* Ansify function definitions.

* Remove (void) casts for discarded return values.

14 years agoFix the installer_quickrel target. Also fix the pkgsrc bootstrap, not
Matthew Dillon [Fri, 23 Dec 2005 20:29:57 +0000 (20:29 +0000)]
Fix the installer_quickrel target.  Also fix the pkgsrc bootstrap, not
enough data was being copied into ISOROOT to run the bootstrap.

14 years ago1.4 Release branched, HEAD is now 1.5.
Matthew Dillon [Fri, 23 Dec 2005 19:10:54 +0000 (19:10 +0000)]
1.4 Release branched, HEAD is now 1.5.

14 years agoBy the time list_net_interfaces() is called in /etc/rc.d/netif, clone_up()
Matthew Dillon [Fri, 23 Dec 2005 17:42:59 +0000 (17:42 +0000)]
By the time list_net_interfaces() is called in /etc/rc.d/netif,  clone_up()
has already created each of $cloned_interface and they will show up in
the ifconfig -l.  There is no need to add $cloned_interfaces to the list
(it will result in the cloned interfaces being configured twice).

Submitted-by: Chris Csanady <cc@137.org>
14 years agoAccount for packets sent out via the bridge interface
Simon Schubert [Fri, 23 Dec 2005 17:41:36 +0000 (17:41 +0000)]
Account for packets sent out via the bridge interface

Submitted-by: Chris Csanady <cc@137.org>
14 years agoBPF_MTAP at the right place so packets to the bridge iface are tapped as well
Simon Schubert [Fri, 23 Dec 2005 17:38:23 +0000 (17:38 +0000)]
BPF_MTAP at the right place so packets to the bridge iface are tapped as well

Submitted-by: Chris Csanady <cc@137.org>
14 years agoBump us to 1.3.8 in preparation for pre-release tagging.
Matthew Dillon [Fri, 23 Dec 2005 10:11:48 +0000 (10:11 +0000)]
Bump us to 1.3.8 in preparation for pre-release tagging.

14 years agoCleanup minor typeos.
Matthew Dillon [Fri, 23 Dec 2005 10:08:14 +0000 (10:08 +0000)]
Cleanup minor typeos.

Submitted-by: Michal Belczyk <belczyk@bsd.krakow.pl>
14 years agorun ./bootstrap in a chroot so it configures the correct paths in the
Matthew Dillon [Thu, 22 Dec 2005 23:23:34 +0000 (23:23 +0000)]
run ./bootstrap in a chroot so it configures the correct paths in the
pkgsrc binaries (there does not appear to be a way to specify a target
install location different from the one used to locate pkgsrc binaries).

Set the default working directory to /usr/obj/pkgsrc rather then creating
working directories inside /usr/pkgsrc.  This will save annoyances for
people who mount /usr/pkgsrc via NFS.

Install a default /etc/mk.conf as part of the root skeleton.

14 years agoAquire serializer before calling ioctl
Simon Schubert [Thu, 22 Dec 2005 15:16:13 +0000 (15:16 +0000)]
Aquire serializer before calling ioctl

Submitted-by: Chris Csanady <cc@137.org>
14 years agoFix numerous nrelease build issues related to the pkgsrc conversion.
Matthew Dillon [Thu, 22 Dec 2005 06:32:11 +0000 (06:32 +0000)]
Fix numerous nrelease build issues related to the pkgsrc conversion.

* Place packages on pkgbox.dragonflybsd.org in a release-specific
  directory.  Adjust the fetch URLs to point to this box.
* Add sophisticated checks for required distributions and distribution
  sets, output exact and easy to follow instructions on how to install
  required pieces.
* Add make targets to install required pieces that are missing.
* Install specific package versions.
* Include a /usr/local/share/dfuibe_installer/sources.conf file to override
  the copy list and add additional directories that must be copied
  (/usr/freebsd_pkg and /usr/pkg).

14 years agoAdd documentation for the pfil interface. This is NetBSD's rev. 1.24
Sascha Wildner [Wed, 21 Dec 2005 19:50:54 +0000 (19:50 +0000)]
Add documentation for the pfil interface. This is NetBSD's rev. 1.24
of the manpage with bits and pieces taken from later revisions.

14 years agoAdd a simple library for the default g77 linkage, providing main.
Joerg Sonnenberger [Wed, 21 Dec 2005 17:07:33 +0000 (17:07 +0000)]
Add a simple library for the default g77 linkage, providing main.

14 years agoAdd g77 here as well.
Joerg Sonnenberger [Wed, 21 Dec 2005 16:48:06 +0000 (16:48 +0000)]
Add g77 here as well.

14 years agoAdd g77 link.
Joerg Sonnenberger [Wed, 21 Dec 2005 16:43:17 +0000 (16:43 +0000)]
Add g77 link.

14 years agoBring in if_bridge from Open-/Net-/FreeBSD
Simon Schubert [Wed, 21 Dec 2005 16:40:25 +0000 (16:40 +0000)]
Bring in if_bridge from Open-/Net-/FreeBSD

Based-on-patch-by: Andrew Atrens
Reviewed-and-locking-corrected-by: dillon and sephe
14 years agoBring in if_bridge from Open-/Net-/FreeBSD
Simon Schubert [Wed, 21 Dec 2005 16:37:15 +0000 (16:37 +0000)]
Bring in if_bridge from Open-/Net-/FreeBSD

Based-on-patch-by: Andrew Atrens
Reviewed-and-locking-corrected-by: dillon and sephe