dragonfly.git
14 years agoIn ep_if_start(), restore 'm' after it is used to traverse mbufs, or following
Sepherosa Ziehau [Sat, 28 Jan 2006 14:05:57 +0000 (14:05 +0000)]
In ep_if_start(), restore 'm' after it is used to traverse mbufs, or following
code's assumption is broken.

Reported-and-Tested-by: swildner
14 years agoAdjust X11BASE so that ssh/sshd find xauth with pkgsrc.
Simon Schubert [Thu, 26 Jan 2006 17:48:35 +0000 (17:48 +0000)]
Adjust X11BASE so that ssh/sshd find xauth with pkgsrc.

14 years agoAdd a missing #include <sys/lock.h> to fix a UP kernel build problem.
Matthew Dillon [Thu, 26 Jan 2006 08:19:48 +0000 (08:19 +0000)]
Add a missing #include <sys/lock.h> to fix a UP kernel build problem.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
14 years agoTest commit of new file.
Justin C. Sherrill [Thu, 26 Jan 2006 04:42:12 +0000 (04:42 +0000)]
Test commit of new file.

14 years agoThe random number generator was not generating sufficient entropy by
Matthew Dillon [Wed, 25 Jan 2006 19:56:31 +0000 (19:56 +0000)]
The random number generator was not generating sufficient entropy by
default, resulting in weak random numbers for a short period of time after
a machine is first booted.

* Change the entropy default for all interrupts except the clock interrupt
  from off to on.

* Greatly reduce the overhead of the interrupt entropy code so even high
  performance interrupts can call it.

* Instead of calculating the entropy at the time of the interrupt,
  introduce a new rate-limited kernel thread which the interrupt code can
  simply schedule.  The new thread will be responsible for adding the
  entropy.

  This thread will rate-limit based on the amount of entropy that has been
  built up.  The more entropy we have, the lower the thread's frequency of
  operation.  Currently the limit is set to 25 hz.

* Use the TSC in addition to the normal time calculation when introducing
  entropy.

Note that during tests it was found that a new ssh connection tends to
'eat' all available entropy.  This isn't actually true, it's really the
entropy calculation itself which is not quite correct, but I am duely noting
the issue here.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
14 years agoMerge OpenBSD r1.104:
Joerg Sonnenberger [Wed, 25 Jan 2006 02:47:09 +0000 (02:47 +0000)]
Merge OpenBSD r1.104:
  fix a bug in the fragment cache (used for 'scrub fragment crop/drop-ovl',
  but not 'fragment reassemble'), which can cause some fragments to get
  inserted into the cache twice, thereby violating an invariant, and panic-
  ing the system subsequently. ok deraadt@

Reminded-by: Daniel Hartmeier
14 years agoWhen using visibility macros, sys/cdefs.h must be included first.
Joerg Sonnenberger [Tue, 24 Jan 2006 21:43:33 +0000 (21:43 +0000)]
When using visibility macros, sys/cdefs.h must be included first.

14 years agoSync BSD family tree with FreeBSD.
Sascha Wildner [Mon, 23 Jan 2006 02:56:43 +0000 (02:56 +0000)]
Sync BSD family tree with FreeBSD.

14 years agoRemove ports(7) man page since we're using pkgsrc now.
Sascha Wildner [Sun, 22 Jan 2006 14:50:26 +0000 (14:50 +0000)]
Remove ports(7) man page since we're using pkgsrc now.

14 years ago* Move function types to a separate line.
Sascha Wildner [Sun, 22 Jan 2006 14:03:51 +0000 (14:03 +0000)]
* Move function types to a separate line.

* Ansify function definitions.

* Remove (void) casts for discarded return values.

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

14 years agoAdd ansification to silence -Wold-style-definition warnings.
Sascha Wildner [Sun, 22 Jan 2006 13:38:50 +0000 (13:38 +0000)]
Add ansification to silence -Wold-style-definition warnings.

Submitted-by: Alexey Slynko <slynko@tronet.ru>
14 years agoAdd some casts to silence warnings.
Sascha Wildner [Sun, 22 Jan 2006 04:44:18 +0000 (04:44 +0000)]
Add some casts to silence warnings.

Submitted-by: Alexey Slynko <slynko@tronet.ru>
14 years agoRemove unused variables.
Sascha Wildner [Sun, 22 Jan 2006 04:31:22 +0000 (04:31 +0000)]
Remove unused variables.

Submitted-by: Alexey Slynko <slynko@tronet.ru>
14 years agoInitialize variable.
Sascha Wildner [Sun, 22 Jan 2006 04:30:27 +0000 (04:30 +0000)]
Initialize variable.

Submitted-by: Alexey Slynko <slynko@tronet.ru>
14 years agoAdd missing header for isab_attach prototype.
Sascha Wildner [Sun, 22 Jan 2006 04:10:32 +0000 (04:10 +0000)]
Add missing header for isab_attach prototype.

Submitted-by: Alexey Slynko <slynko@tronet.ru>
14 years agoRemove extra tokens from the end of #else or #endif directives.
Sascha Wildner [Sun, 22 Jan 2006 03:43:38 +0000 (03:43 +0000)]
Remove extra tokens from the end of #else or #endif directives.

gprof fixes submitted by: Kevin Kane <kevin.kane@gmail.com>

14 years agoRemove support for some obsolete architectures.
Sascha Wildner [Sun, 22 Jan 2006 03:24:50 +0000 (03:24 +0000)]
Remove support for some obsolete architectures.

14 years agoRemove antique, unused test code.
Sascha Wildner [Sat, 21 Jan 2006 19:18:26 +0000 (19:18 +0000)]
Remove antique, unused test code.

14 years agoSwitch the type and how argument declarations around to match what the
Matthew Dillon [Sat, 21 Jan 2006 19:05:42 +0000 (19:05 +0000)]
Switch the type and how argument declarations around to match what the
rest of the kernel expects.  Note that only the NCP protocol uses m_getm().

Submitted-by: Alexey Slynko <slynko@tronet.ru>
14 years agoAdd wmake(1) reference.
Sascha Wildner [Fri, 20 Jan 2006 20:44:22 +0000 (20:44 +0000)]
Add wmake(1) reference.

14 years agoAdd a wmake(1) man page using the commit message for the description.
Sascha Wildner [Fri, 20 Jan 2006 20:36:43 +0000 (20:36 +0000)]
Add a wmake(1) man page using the commit message for the description.

14 years agoPass correct argument to lwkt_serialize_{enter, exit}()
Sepherosa Ziehau [Fri, 20 Jan 2006 12:25:28 +0000 (12:25 +0000)]
Pass correct argument to lwkt_serialize_{enter, exit}()

Submitted-by: Alexey Slynko <slynko at tronet.ru>
14 years agoAdd the '-c cpu' option to arp, netstat, and route, to allow the route
Matthew Dillon [Thu, 19 Jan 2006 22:19:31 +0000 (22:19 +0000)]
Add the '-c cpu' option to arp, netstat, and route, to allow the route
table for a specific cpu to be dumped.  Route tables are supposed to be
replicated and mostly identical.  Only cloned routes might not be replicated.

14 years agomake zero prefix or suffix tell patch not to produce backups at all
Simon Schubert [Thu, 19 Jan 2006 04:51:30 +0000 (04:51 +0000)]
make zero prefix or suffix tell patch not to produce backups at all

14 years agoProperly refcount module dependencies loaded by loader
Simon Schubert [Thu, 19 Jan 2006 04:49:45 +0000 (04:49 +0000)]
Properly refcount module dependencies loaded by loader

14 years agoFix warning:
Simon Schubert [Thu, 19 Jan 2006 03:14:06 +0000 (03:14 +0000)]
Fix warning:
   checknr.c:558:8: warning: extra tokens at end of #endif directive

Submitted-by: kevin kane <kevin.kane@gmail.com>
14 years agoFix comment indent.
Sascha Wildner [Wed, 18 Jan 2006 09:59:34 +0000 (09:59 +0000)]
Fix comment indent.

14 years ago* Replace DragonFly with Dx.
Sascha Wildner [Wed, 18 Jan 2006 09:24:37 +0000 (09:24 +0000)]
* Replace DragonFly with Dx.

* Remove forgotten apostrophe.

14 years agoAdd master.passwd as a name of this manual page.
Jeremy C. Reed [Wed, 18 Jan 2006 07:42:57 +0000 (07:42 +0000)]
Add master.passwd as a name of this manual page.

Make more changes of FreeBSD to DragonFly (somehow were missed
in previous update). Note that the HISTORY section is not changed.

This appears to also revert some of the changes from last update
(in March 2004) such as misformatted "Changes in behaviour ..."

Used "Ap s" for apostrophe "s" as documented in mdoc(5) and
suggested by saw@ on the submit list. (But didn't fix all.)

Specifically mention "FreeBSD" in the reference to versions prior
to 2.0.5.

Use .Fx instead of ".Tn FreeBSD".

Add a missing period.

Change "is" to "was" for past tense for one sentence.

I submitted this via submit@ list on Jan. 1.

Note that I did not remove the entire "Changes in behavior from
older versions" section, but modified some. This could be removed
or improved.

Also TODO: document that "*" asterisk has different behaviour in field 2
for passwd versus master.passwd.

14 years agoCreate a manual page link of passwd.5 for new master.passwd.5.
Jeremy C. Reed [Wed, 18 Jan 2006 07:04:29 +0000 (07:04 +0000)]
Create a manual page link of passwd.5 for new passwd.5.

The manual page already documents master.passwd. This is same
as done on other BSDs. I mentioned this on submit list two
weeks ago.

14 years agoUse the DragonFly contrib patch system to correct improper sizeof(pointer)
Matthew Dillon [Wed, 18 Jan 2006 02:33:38 +0000 (02:33 +0000)]
Use the DragonFly contrib patch system to correct improper sizeof(pointer)
issues in vendor code.

BIND9:
    Allocated memory was not being entirely zerod out in a number of places.

LIBOPIE:
    An improper sizeof(pointer) just happened to work out to the same size
    as the 4-byte string it was really attempting to size, for 32 bit
    architectures.  Convert the pointer to an array to fix the problem.

DHCLIENT:
    An improper sizeof(pointer) just happened to work out to be the same
    size as the u_int32_t it was supposed to be getting the size of, for
    32 bit architectures.  Fixed.

    ICMP handling was calculating the incorrect packet offset due to
    a sizeof(ia) that should have been sizeof(*ia).

    In addition (unrelated to the original bug report), none of the
    patches for common/ were being applied.  They are now being applied.

TCPDUMP:
    OSPF6 parsing was completely broken, not only using an incorrect
    sizeof(pointer), but also misinterpreting the return value from
    ospf6_print_lsaprefix() which would result in an infinite loop.

References: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25702
Reported-by: Mark Eklund <meklund@cisco.com>
14 years agoAdd mk.conf to the ISO and have the installer install it in /etc
Matthew Dillon [Tue, 17 Jan 2006 23:52:20 +0000 (23:52 +0000)]
Add mk.conf to the ISO and have the installer install it in /etc
on the HDD.

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>