dragonfly.git
16 years agoVar_Subst() cannot return NULL so there is no reason to check
Max Okumoto [Sat, 12 Mar 2005 10:31:28 +0000 (10:31 +0000)]
Var_Subst() cannot return NULL so there is no reason to check
for it.

FreeBSD-Date: 2005/03/09 07:53:03
Author: harti

16 years agoStyle: fix indentation of SuffExpandChildren before working on it.
Max Okumoto [Sat, 12 Mar 2005 10:29:10 +0000 (10:29 +0000)]
Style: fix indentation of SuffExpandChildren before working on it.

FreeBSD-Date: 2005/03/08 16:30:32
Author: harti

16 years agoStyle: fix indentation of SuffExpandChildren before working on it.
Max Okumoto [Sat, 12 Mar 2005 10:20:38 +0000 (10:20 +0000)]
Style: fix indentation of SuffExpandChildren before working on it.

FreeBSD-Date: 2005/03/08 16:30:32
Author: harti

16 years agocompat.c:
Max Okumoto [Sat, 12 Mar 2005 10:17:00 +0000 (10:17 +0000)]
compat.c:
Use the Buf_Peel function to get to the string contained into a
buffer without using an extra local variable.
main.c
Use Buf_Peel to get rid of a local variable.

FreeBSD-Date: 2005/03/08 14:33:58
FreeBSD-Date: 2005/03/08 14:37:47
Author: harti

16 years agoRemove useless local prototypes.
Max Okumoto [Sat, 12 Mar 2005 10:11:57 +0000 (10:11 +0000)]
Remove useless local prototypes.

FreeBSD-Date: 2005/03/08 14:30:18
Author: harti

16 years agoStyle: fix indentation.
Max Okumoto [Sat, 12 Mar 2005 10:10:12 +0000 (10:10 +0000)]
Style: fix indentation.

FreeBSD-Date: 2005/03/08 14:29:23
Author: harti

16 years agoUse the new Buf_Peel function to simplify things.
Max Okumoto [Sat, 12 Mar 2005 09:58:06 +0000 (09:58 +0000)]
Use the new Buf_Peel function to simplify things.
Remove an unused struct definition.

FreeBSD-Date: 2005/03/08 13:15:51
Author: harti

16 years agoCreate a new function Buf_Peel that returns the string from inside
Max Okumoto [Sat, 12 Mar 2005 09:54:41 +0000 (09:54 +0000)]
Create a new function Buf_Peel that returns the string from inside
a Buffer and frees the Buffer.

FreeBSD-Date: 2005/03/08 13:15:18
Author: harti

16 years agoAdd a debugging function that prints a message and appends the
Max Okumoto [Sat, 12 Mar 2005 09:52:54 +0000 (09:52 +0000)]
Add a debugging function that prints a message and appends the
current strerror.

FreeBSD-Date: 2005/03/08 07:47:14
Author: harti

16 years agoMark functions that don't return as dead.
Max Okumoto [Sat, 12 Mar 2005 09:50:44 +0000 (09:50 +0000)]
Mark functions that don't return as dead.

FreeBSD Date: 2005/03/08 07:45:50
Author: harti

16 years agoChange PACKET_TAG_* ids to be consecutive.
Joerg Sonnenberger [Sat, 12 Mar 2005 03:24:19 +0000 (03:24 +0000)]
Change PACKET_TAG_* ids to be consecutive.

16 years agoAlways build altq_etherclassify.
Joerg Sonnenberger [Sat, 12 Mar 2005 02:42:28 +0000 (02:42 +0000)]
Always build altq_etherclassify.

16 years agoAdd ALTQ-style enqueue / dequeue / request functions for traditional
Joerg Sonnenberger [Sat, 12 Mar 2005 02:36:04 +0000 (02:36 +0000)]
Add ALTQ-style enqueue / dequeue / request functions for traditional
queues. Always dispatch via ifq->altq_* in ifq_var.

16 years agoRemove MT_FTABLE, it is not used anymore. Remove the #if 0'd entries
Joerg Sonnenberger [Sat, 12 Mar 2005 01:58:26 +0000 (01:58 +0000)]
Remove MT_FTABLE, it is not used anymore. Remove the #if 0'd entries
as well.

16 years agoAdd wchar and multibyte related man pages.
Joerg Sonnenberger [Sat, 12 Mar 2005 00:18:01 +0000 (00:18 +0000)]
Add wchar and multibyte related man pages.

Obtained-from: NetBSD / Citrus Project

16 years agoAdd citrus backend code and iconv front end. This is intentionally
Joerg Sonnenberger [Fri, 11 Mar 2005 23:33:53 +0000 (23:33 +0000)]
Add citrus backend code and iconv front end. This is intentionally
not hooked into the build yet.

Obtained-from: NetBSD / Citrus Project

16 years agoAdd UTF7 build wrapper.
Joerg Sonnenberger [Fri, 11 Mar 2005 21:50:39 +0000 (21:50 +0000)]
Add UTF7 build wrapper.

16 years agoI18N module build framework.
Joerg Sonnenberger [Fri, 11 Mar 2005 20:47:05 +0000 (20:47 +0000)]
I18N module build framework.

Adopted-from: NetBSD

16 years agoAdd i18n directories.
Joerg Sonnenberger [Fri, 11 Mar 2005 20:25:11 +0000 (20:25 +0000)]
Add i18n directories.

16 years agoHelper programs.
Joerg Sonnenberger [Fri, 11 Mar 2005 20:17:11 +0000 (20:17 +0000)]
Helper programs.

Obtained-from: NetBSD / Citrus Project

16 years agoiconv frontend.
Joerg Sonnenberger [Fri, 11 Mar 2005 19:16:53 +0000 (19:16 +0000)]
iconv frontend.

Obtained-from: NetBSD / Citrus Project

16 years agoClean up Makefile's in preparation for importing new Intel ACPICA code.
YONETANI Tomokazu [Fri, 11 Mar 2005 18:27:49 +0000 (18:27 +0000)]
Clean up Makefile's in preparation for importing new Intel ACPICA code.
Push .PATH and other variables into sys/dev/acpica5/Makefile.inc,
and share it with userland ACPI tools under usr.sbin/acpi.

16 years agoforgotten file
Joerg Sonnenberger [Fri, 11 Mar 2005 15:58:31 +0000 (15:58 +0000)]
forgotten file

16 years agoAdd locale and character set descriptions. This differs from the
Joerg Sonnenberger [Fri, 11 Mar 2005 15:57:42 +0000 (15:57 +0000)]
Add locale and character set descriptions. This differs from the
NetBSD version in that Latin charset always include TAB in the BLANK
specification, just like ASCII does. It should be checked wether ASCII
should be a full subset of all this extended character sets, which it
normally is supposed to be.

Obtained-from: NetBSD

16 years agoAdd data files for Character Set mappings and Encoding Scheme alias
Joerg Sonnenberger [Thu, 10 Mar 2005 16:20:15 +0000 (16:20 +0000)]
Add data files for Character Set mappings and Encoding Scheme alias
tables.

Obtained-from: NetBSD / Citrus Project

16 years agoUse NLS framework.
Joerg Sonnenberger [Thu, 10 Mar 2005 14:50:21 +0000 (14:50 +0000)]
Use NLS framework.

Obtained-from: FreeBSD

16 years agoUse bsd.nls.mk.
Joerg Sonnenberger [Thu, 10 Mar 2005 14:35:10 +0000 (14:35 +0000)]
Use bsd.nls.mk.

Obtained-from: FreeBSD

16 years agoAdd generic build framework for message catalogs.
Joerg Sonnenberger [Thu, 10 Mar 2005 14:30:31 +0000 (14:30 +0000)]
Add generic build framework for message catalogs.

Obtained-from: FreeBSD

16 years agotypo
Joerg Sonnenberger [Thu, 10 Mar 2005 14:27:39 +0000 (14:27 +0000)]
typo

16 years agoInitialize tls support code for static binary.
David Xu [Thu, 10 Mar 2005 11:42:27 +0000 (11:42 +0000)]
Initialize tls support code for static binary.

16 years agoBetter byte packing for struct tcpopt.
Jeffrey Hsu [Thu, 10 Mar 2005 08:19:27 +0000 (08:19 +0000)]
Better byte packing for struct tcpopt.

Submitted by: Noritoshi Demizu <demizu@dd.iij4u.or.jp>

16 years agoFix confusion with wrong route reference count being decremented.
Jeffrey Hsu [Wed, 9 Mar 2005 23:31:44 +0000 (23:31 +0000)]
Fix confusion with wrong route reference count being decremented.

Problem reported by: Joerg Sonnenberger

16 years agoProvide a better annotations for KTR_VOP and KTR_NFS trace classes.
Hiten Pandya [Wed, 9 Mar 2005 23:26:11 +0000 (23:26 +0000)]
Provide a better annotations for KTR_VOP and KTR_NFS trace classes.

Cleanup the trace classes a little bit, remove KTR_WITNESS.

16 years agoReduce diffs between FreeBSD
Max Okumoto [Wed, 9 Mar 2005 22:54:19 +0000 (22:54 +0000)]
Reduce diffs between FreeBSD

16 years agoAdd bus_dmamap_syncs before bus_dmamap_unloads.
Joerg Sonnenberger [Wed, 9 Mar 2005 20:07:45 +0000 (20:07 +0000)]
Add bus_dmamap_syncs before bus_dmamap_unloads.

Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Suggested-by: Andrew Atrens
16 years agoFix a bug which can allow a remote attacker to cause denial
Hiroki Sato [Wed, 9 Mar 2005 19:32:52 +0000 (19:32 +0000)]
Fix a bug which can allow a remote attacker to cause denial
of service attack.

Obtained from: KAME (rev.1.232)

16 years ago- Sync the example with the correct sentense.
Liam J. Foy [Wed, 9 Mar 2005 19:06:21 +0000 (19:06 +0000)]
- Sync the example with the correct sentense.

Submitted by good old: Sarunas Vancevicius <svan@redbrick.dcu.ie>

16 years ago- Good english
Liam J. Foy [Wed, 9 Mar 2005 18:58:22 +0000 (18:58 +0000)]
- Good english

Submitted by: Douwe Kiela <virtus@wanadoo.nl>

16 years agoUse getprogname() instead of depending on __progname where possible.
Joerg Sonnenberger [Wed, 9 Mar 2005 18:52:21 +0000 (18:52 +0000)]
Use getprogname() instead of depending on __progname where possible.
Include stdlib.h where necessary.

16 years ago- Validate -i option
Liam J. Foy [Wed, 9 Mar 2005 16:59:40 +0000 (16:59 +0000)]
- Validate -i option
- Style(9)

16 years agoSync with FreeBSD: Add support for sha1 and rmd160
Simon Schubert [Wed, 9 Mar 2005 16:18:55 +0000 (16:18 +0000)]
Sync with FreeBSD: Add support for sha1 and rmd160

Originally-done-by: Oliver Eikemeier <eik at freebsd.org>
16 years agoWFORMAT: Use -Wnon-const-format only with gcc2
Simon Schubert [Wed, 9 Mar 2005 16:12:29 +0000 (16:12 +0000)]
WFORMAT: Use -Wnon-const-format only with gcc2

16 years ago1. use __weak_reference to define weak symbol.
David Xu [Wed, 9 Mar 2005 12:06:31 +0000 (12:06 +0000)]
1. use __weak_reference to define weak symbol.
2. fix compiler warnings.

16 years agoUse fixed-width type to ensure correct wraparound for
Jeffrey Hsu [Wed, 9 Mar 2005 06:57:29 +0000 (06:57 +0000)]
Use fixed-width type to ensure correct wraparound for
sequence number arithmetic.

Submitted by: Noritoshi Demizu <demizu@dd.iij4u.or.jp>

16 years agoTake into account the number of SACKed bytes skipped when slow-starting
Jeffrey Hsu [Wed, 9 Mar 2005 06:54:34 +0000 (06:54 +0000)]
Take into account the number of SACKed bytes skipped when slow-starting
in order to send out a full congestion window's worth of packets.

Reported by and tested by: Noritoshi Demizu <demizu@dd.iij4u.or.jp>

16 years agoAdd a new function to the nlookup API, called nlookup_set_cred(9); this
Hiten Pandya [Wed, 9 Mar 2005 06:11:22 +0000 (06:11 +0000)]
Add a new function to the nlookup API, called nlookup_set_cred(9); this
function can be called on an existing nlookupdata structure for setting
different credentials.

Add a note on top of nlookup_init(9) about how the function selects the
credentials for the nlookupdata structure.

Reviewed-by: Matthew Dillon <dillon@apollo.backplane.com>
16 years agoFix a serious bug in cache_inval_vp()'s TAILQ iteration through v_namecache.
Matthew Dillon [Wed, 9 Mar 2005 05:16:23 +0000 (05:16 +0000)]
Fix a serious bug in cache_inval_vp()'s TAILQ iteration through v_namecache.
It was iterating using nc_entry instead of nc_vnode.  The effect was,
typically, to deadlock in the namecache locking code but could also result
in the namecache topology becoming confused.

Add code to detect and report vnode ripouts during the scan.  This case can
occur in certain rare circumstances because a held namecache structure only
prevents it from being removed from the topology, it does not prevent it
from being disassociated from a vnode.

Reported-by: Michael van Tellingen <michael@synantics.nl> and
     Hiten Pandya <hmp@backplane.com>

16 years agoFix $FreeBSD$ ident string.
Hiten Pandya [Wed, 9 Mar 2005 03:25:44 +0000 (03:25 +0000)]
Fix $FreeBSD$ ident string.

16 years agoClean up main() arguments.
David Rhodus [Wed, 9 Mar 2005 02:53:03 +0000 (02:53 +0000)]
Clean up main() arguments.

Idea from FreeBSD

16 years agoFix some signed/unsigned comparisons.
David Rhodus [Wed, 9 Mar 2005 02:44:42 +0000 (02:44 +0000)]
Fix some signed/unsigned comparisons.
Clean up some prototypes.

Merge from FreeBSD.

16 years agono need to have break; after return;
David Rhodus [Wed, 9 Mar 2005 02:38:51 +0000 (02:38 +0000)]
no need to have break; after return;

Merge from FreeBSD.

16 years agoCompensate for off by one bugs in disk firmware for 48BIT addressing cutover.
David Rhodus [Wed, 9 Mar 2005 02:29:45 +0000 (02:29 +0000)]
Compensate for off by one bugs in disk firmware for 48BIT addressing cutover.

Merged from: FreeBSD

16 years agopipe->pipe_buffer.out was not being reset to 0 when switching from direct
Matthew Dillon [Wed, 9 Mar 2005 02:22:31 +0000 (02:22 +0000)]
pipe->pipe_buffer.out was not being reset to 0 when switching from direct
mode back to copy mode, leading to the pipe data becoming corrupt.

Reported-by: Joerg Sonnenberger <joerg@britannica.bec.de>
16 years agoFix some groff warnings.
Sascha Wildner [Tue, 8 Mar 2005 20:29:55 +0000 (20:29 +0000)]
Fix some groff warnings.

16 years agoRemove unnecessary space.
Sascha Wildner [Tue, 8 Mar 2005 19:45:58 +0000 (19:45 +0000)]
Remove unnecessary space.

Submitted by: Sarunas Vancevicius <svan@redbrick.dcu.ie>

16 years agoSync with FreeBSD.
Joerg Sonnenberger [Tue, 8 Mar 2005 19:11:30 +0000 (19:11 +0000)]
Sync with FreeBSD.

16 years agoAdd a couple more PCI IDs for the Intel ICH5 ATA100, ICH6 SATA150,
Matthew Dillon [Tue, 8 Mar 2005 18:40:28 +0000 (18:40 +0000)]
Add a couple more PCI IDs for the Intel ICH5 ATA100, ICH6 SATA150,
and ICH6R SATA150.  Note that this is a quick hack which has only been
lightly tested, there are likely issues with the SATA parts.

Submitted-by: Chuck Tuffli <chuck_tuffli@agilent.com>
16 years agoChange Makefile to follow common white space rules. Hide -DALTQ and
Joerg Sonnenberger [Tue, 8 Mar 2005 17:50:32 +0000 (17:50 +0000)]
Change Makefile to follow common white space rules. Hide -DALTQ and
opt_inet.h creation for kernel builds. Don't set NBPFILTER.

Use DEFINE_CLASS_0 instead of inline that. Provide the
DLT_IEEE802_11_RADIO data. Change direct spl use to
LOCK_DECL / LOCK / UNLOCK macros. Mark some arguments as unused, they
might get used later. Use bpf_ptap interface. Don't conditionalize
based on NBPFILTER.

Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
16 years agoSync with FreeBSD/1.103. In the softupdates case for ffs_truncate() we
Matthew Dillon [Tue, 8 Mar 2005 17:47:04 +0000 (17:47 +0000)]
Sync with FreeBSD/1.103.   In the softupdates case for ffs_truncate() we
use vinvalbuf() to invalidate pending io and dependencies.  However,
vinvalbuf() rightfully does not call vnode_pager_setsize() for us.  We must
do this here.  This could potentially have caused numerous kinds of bugs,
but it was specifically causing msync() deadlocks because msync() was
writing out pages that should not have been valid.

16 years agoInitialize all fields in kobj_class.
Joerg Sonnenberger [Tue, 8 Mar 2005 17:43:33 +0000 (17:43 +0000)]
Initialize all fields in kobj_class.

16 years agoMerge from vendor branch CVS:
Simon Schubert [Tue, 8 Mar 2005 13:38:57 +0000 (13:38 +0000)]
Merge from vendor branch CVS:
In preparation of switching to CVS 1.11.12, repair its import:

o add needed compatibility files, not using them would demand
  a fair amount of hacking in the cvs source itself
o remove bison getdate.y, it's not compatible with our yacc,
  and we're anyways better off using the included getdate.c.

16 years agoIn preparation of switching to CVS 1.11.12, repair its import:
Simon Schubert [Tue, 8 Mar 2005 13:38:57 +0000 (13:38 +0000)]
In preparation of switching to CVS 1.11.12, repair its import:

o add needed compatibility files, not using them would demand
  a fair amount of hacking in the cvs source itself
o remove bison getdate.y, it's not compatible with our yacc,
  and we're anyways better off using the included getdate.c.

16 years agoIn preparation of switching to CVS 1.11.12, repair its import:
Simon Schubert [Tue, 8 Mar 2005 13:38:57 +0000 (13:38 +0000)]
In preparation of switching to CVS 1.11.12, repair its import:

o add needed compatibility files, not using them would demand
  a fair amount of hacking in the cvs source itself
o remove bison getdate.y, it's not compatible with our yacc,
  and we're anyways better off using the included getdate.c.

16 years agoCompile tls.c
David Xu [Tue, 8 Mar 2005 13:35:38 +0000 (13:35 +0000)]
Compile tls.c

16 years agoCompile tls support code.
David Xu [Tue, 8 Mar 2005 13:32:08 +0000 (13:32 +0000)]
Compile tls support code.

16 years agoOops, fix license format(copy and paste problem).
David Xu [Tue, 8 Mar 2005 13:17:03 +0000 (13:17 +0000)]
Oops, fix license format(copy and paste problem).

16 years agoImplement _set_tp which is used to set TLS pointer into
David Xu [Tue, 8 Mar 2005 13:15:08 +0000 (13:15 +0000)]
Implement _set_tp which is used to set TLS pointer into
machine depended register. Thanks high level syscall
sys_set_tls_area, so I don't have to fiddle LDT or GDT
kludge data structure.

16 years agoAdd tls functions prototype.
David Xu [Tue, 8 Mar 2005 13:09:40 +0000 (13:09 +0000)]
Add tls functions prototype.

16 years agoImport tls support code for static binary from FreeBSD.
David Xu [Tue, 8 Mar 2005 13:04:38 +0000 (13:04 +0000)]
Import tls support code for static binary from FreeBSD.

16 years agoAdd more relocation types.
David Xu [Tue, 8 Mar 2005 13:02:05 +0000 (13:02 +0000)]
Add more relocation types.

16 years agoMerge from FreeBSD:
David Xu [Tue, 8 Mar 2005 12:30:32 +0000 (12:30 +0000)]
Merge from FreeBSD:
  Make sure that AT_PHDR has a useful value even for static programs.

This header will be accessed via environ variable in libc, as crt0
stores the address into the variable. We use this header to phase
TLS info in libc for static programs.

16 years agoUpdate manual page with FreeBSD's r1.7.
Hiten Pandya [Tue, 8 Mar 2005 07:08:29 +0000 (07:08 +0000)]
Update manual page with FreeBSD's r1.7.

16 years agoUpdate manual page with the version in FreeBSD, r1.8.
Hiten Pandya [Tue, 8 Mar 2005 01:57:23 +0000 (01:57 +0000)]
Update manual page with the version in FreeBSD, r1.8.

16 years agoBring in the ktrdump(8) utility from FreeBSD.
Hiten Pandya [Tue, 8 Mar 2005 01:54:59 +0000 (01:54 +0000)]
Bring in the ktrdump(8) utility from FreeBSD.

The utility is very useful because it dumps the kernel's current ktr
event buffer.

Add it to the build.

16 years agoFix display of code in the EXAMPLE section; do not enter vertical space
Hiten Pandya [Tue, 8 Mar 2005 01:19:10 +0000 (01:19 +0000)]
Fix display of code in the EXAMPLE section; do not enter vertical space
to the code block because it is not suitable for 80 column display.

16 years agoConditionalise include of "opt_ktr.h" under _KERNEL.
Hiten Pandya [Tue, 8 Mar 2005 01:08:40 +0000 (01:08 +0000)]
Conditionalise include of "opt_ktr.h" under _KERNEL.

16 years ago- Correct use of the err() family (err() -> errx())
Liam J. Foy [Mon, 7 Mar 2005 21:30:57 +0000 (21:30 +0000)]
- Correct use of the err() family (err() -> errx())

16 years agoWhitespace cleanup. Noted by harti
Max Okumoto [Mon, 7 Mar 2005 20:04:34 +0000 (20:04 +0000)]
Whitespace cleanup.  Noted by harti

16 years agoCorrected spelling of colon.
Max Okumoto [Mon, 7 Mar 2005 19:59:42 +0000 (19:59 +0000)]
Corrected spelling of colon.

Caught by harti.

16 years ago- Validate the -i option (Idea from FreeBSD)
Liam J. Foy [Mon, 7 Mar 2005 18:30:39 +0000 (18:30 +0000)]
- Validate the -i option (Idea from FreeBSD)
- Style(9) (FreeBSD)

16 years agoIf a get_authorized_hosts file exists on the pfi media, copy it into
Chris Pressey [Mon, 7 Mar 2005 18:02:07 +0000 (18:02 +0000)]
If a get_authorized_hosts file exists on the pfi media, copy it into
root's .ssh directory.

Work-done-by: geekgod
16 years agoWhen building the release ISO, add an initial /var/db/locate.database
Sascha Wildner [Mon, 7 Mar 2005 17:48:34 +0000 (17:48 +0000)]
When building the release ISO, add an initial /var/db/locate.database
after everything is laid out.

Note: Its contents might be slightly different from the state of
      affairs after the system is installed, but only until next
      Saturday when weekly runs 310.locate.

16 years ago- Tack pfi.conf onto the end of rc.conf later (only after pfi.conf
Chris Pressey [Mon, 7 Mar 2005 17:44:40 +0000 (17:44 +0000)]
- Tack pfi.conf onto the end of rc.conf later (only after pfi.conf
  has been copied to /etc, not when it is being looked for.)  This
  allows a pfi.conf file already in /etc (e.g. placed there as part
  of a custom release) to DTRT in pfi_rc_actions.
- Use a much more straightforward method of restoring the original
  rc.conf file when done.

16 years agoUnbreak the pfi_autologin option by fixing a broken invokation of sed
Chris Pressey [Mon, 7 Mar 2005 17:30:09 +0000 (17:30 +0000)]
Unbreak the pfi_autologin option by fixing a broken invokation of sed
and some broken assumptions about the contents of /etc/gettytab.

16 years agoALTQ support.
Joerg Sonnenberger [Mon, 7 Mar 2005 17:16:01 +0000 (17:16 +0000)]
ALTQ support.

16 years agoDon't try to prepend to an ALTQ queue.
Joerg Sonnenberger [Mon, 7 Mar 2005 10:13:22 +0000 (10:13 +0000)]
Don't try to prepend to an ALTQ queue.

16 years agoReally use ALTQ.
Joerg Sonnenberger [Mon, 7 Mar 2005 10:11:05 +0000 (10:11 +0000)]
Really use ALTQ.

16 years agoReplace Turtle references.
Jeroen Ruigrok/asmodai [Mon, 7 Mar 2005 06:29:01 +0000 (06:29 +0000)]
Replace Turtle references.

Submitted by; E. Girkantas

16 years agoAdd va_copy() implementation (thanks to Chris Torek's comp.lang.c post).
Jeroen Ruigrok/asmodai [Mon, 7 Mar 2005 06:26:47 +0000 (06:26 +0000)]
Add va_copy() implementation (thanks to Chris Torek's comp.lang.c post).

Properly wrap all other definitions so that it catches all GCC 2.95.x and
upwards compilers.

Provide complete free-standing implementation for compilers that do not
implement the GCC built-ins.

16 years agoCleanup the debug output, fix a few data conversion issues.
Matthew Dillon [Mon, 7 Mar 2005 05:05:04 +0000 (05:05 +0000)]
Cleanup the debug output, fix a few data conversion issues.

16 years agoFix mistakes from previous commit, cleanup _NCH_ENT macro.
Hiten Pandya [Mon, 7 Mar 2005 04:34:11 +0000 (04:34 +0000)]
Fix mistakes from previous commit, cleanup _NCH_ENT macro.

16 years agoFix GCC3 related pre-processor issues.
Hiten Pandya [Mon, 7 Mar 2005 04:19:22 +0000 (04:19 +0000)]
Fix GCC3 related pre-processor issues.

16 years agoFirst cut of the jscan utility. This will become the core utility for
Matthew Dillon [Mon, 7 Mar 2005 02:38:28 +0000 (02:38 +0000)]
First cut of the jscan utility.  This will become the core utility for
scanning journaling files (e.g. as created by mountctl).  The utility is
currently able to dump a journaling file in human readable format forwards
or backwards.  It will eventually be capable of tracking and mirroring,
undo, security audits, partial restores, sanity checks, and other operations.

Most of the scanning infrastructure is in as of this commit, but the code
currently tries to cache the entire transaction into memory which will
fail for large (e.g. multi gigabyte) transactions.  The API's are abstracted
with the intent of being able to page out or do on-the-fly mmaping of the
underlying data in the future rather then copying it into memory.

16 years agoChange NOWAITs into WAITOKs. In FreeBSD NOWAIT allocations seem to be
Matthew Dillon [Sun, 6 Mar 2005 18:30:36 +0000 (18:30 +0000)]
Change NOWAITs into WAITOKs.  In FreeBSD NOWAIT allocations seem to be
expected to succeed.  In DragonFly a NOWAIT allocation can in fact fail.

16 years agoBring in Damien's IPW driver.
Matthew Dillon [Sun, 6 Mar 2005 18:25:14 +0000 (18:25 +0000)]
Bring in Damien's IPW driver.

Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Original-Author: Damien Bergamini <damien.bergamini@free.fr>

16 years agoDo not use tsleep when the system is not booted. This fixes acpi_ec
YONETANI Tomokazu [Sun, 6 Mar 2005 05:39:26 +0000 (05:39 +0000)]
Do not use tsleep when the system is not booted. This fixes acpi_ec
occasionally failing to attach. Additionally bring in the relavant
change from revision 1.56 of acpi_ec.c from FreeBSD code, which
inspired the patch submitter.

Submitted-by: Brock Johnson <wildefire [at] isentry.homelinux.org>
Inspired-by-and-Taken-from: FreeBSD src/sys/dev/acpica/acpi_ec.c,1.56

16 years agoBring in the IWI driver from FreeBSD and merge in ALTQ support.
Matthew Dillon [Sun, 6 Mar 2005 05:23:01 +0000 (05:23 +0000)]
Bring in the IWI driver from FreeBSD and merge in ALTQ support.
Bring in a number of ifconfig updates from FreeBSD.

Submitted-by: Andrew Atrens <atrens@nortel.com>
Original-Author: Damien Bergamini <damien.bergamini@free.fr> (IWI)

16 years agoGive some guidelines on when to turn on Path MTU Discovery.
Jeffrey Hsu [Sun, 6 Mar 2005 05:12:42 +0000 (05:12 +0000)]
Give some guidelines on when to turn on Path MTU Discovery.

16 years agoMinimal patch that allows Path MTU discovery to be turned back on, but
Jeffrey Hsu [Sun, 6 Mar 2005 05:09:25 +0000 (05:09 +0000)]
Minimal patch that allows Path MTU discovery to be turned back on, but
leave it off by default.

Tested by:  Hiroki Sato, Dave Rhodus, Yonetani Tomokazu, Matt Dillon,
    Andrew Atrens,

16 years agoDo some WARNS 6 cleanups. Add __unused, add a few type casts, and
Matthew Dillon [Sun, 6 Mar 2005 05:05:52 +0000 (05:05 +0000)]
Do some WARNS 6 cleanups.  Add __unused, add a few type casts, and
rename the 'hz' argument in systimer.h to 'syshz' to avoid a global
declaration conflict.

Submitted-by: Andrew Atrens <atrens@nortel.com>