dragonfly.git
15 years agoRaise WARNS to 6:
Chris Pressey [Wed, 5 Jan 2005 00:32:50 +0000 (00:32 +0000)]
Raise WARNS to 6:
- Initialize a variable before use.

15 years agoWARNS 2->6 and a minor code readability cleanup.
Matthew Dillon [Tue, 4 Jan 2005 23:08:13 +0000 (23:08 +0000)]
WARNS 2->6 and a minor code readability cleanup.

Submitted-by: Jeandre du Toit <jeandre.dutoit@gmail.com>
15 years agoDon't install old GDB documentation.
Joerg Sonnenberger [Tue, 4 Jan 2005 22:25:26 +0000 (22:25 +0000)]
Don't install old GDB documentation.

15 years agoRIP
Joerg Sonnenberger [Tue, 4 Jan 2005 20:00:34 +0000 (20:00 +0000)]
RIP

15 years agoMerge from vendor branch DHCP:
Joerg Sonnenberger [Tue, 4 Jan 2005 19:58:53 +0000 (19:58 +0000)]
Merge from vendor branch DHCP:
Update isc-dhcp to 3.0.2rc3 using patch infrastructure.
Also include the server and relay, but currently without rcNG script.

Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
15 years agoUpdate isc-dhcp to 3.0.2rc3 using patch infrastructure.
Joerg Sonnenberger [Tue, 4 Jan 2005 19:58:54 +0000 (19:58 +0000)]
Update isc-dhcp to 3.0.2rc3 using patch infrastructure.
Also include the server and relay, but currently without rcNG script.

Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
15 years agoUpdate isc-dhcp to 3.0.2rc3 using patch infrastructure. vendor/DHCP
Joerg Sonnenberger [Tue, 4 Jan 2005 19:58:53 +0000 (19:58 +0000)]
Update isc-dhcp to 3.0.2rc3 using patch infrastructure.
Also include the server and relay, but currently without rcNG script.

Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
15 years agoSwitch from binutils 2.14 to binutils 2.15.
Joerg Sonnenberger [Tue, 4 Jan 2005 19:14:18 +0000 (19:14 +0000)]
Switch from binutils 2.14 to binutils 2.15.

15 years agoReplace sockstat(1) Perl script with the C version from FreeBSD 5.
Joerg Sonnenberger [Tue, 4 Jan 2005 18:56:58 +0000 (18:56 +0000)]
Replace sockstat(1) Perl script with the C version from FreeBSD 5.
This doesn't use the binary scan to determine the buffer size, but
calls the sysctl directly twice.

More work is needed to separate the lists again, but this can be
done in tree.

15 years agoMark old file as dead.
Joerg Sonnenberger [Tue, 4 Jan 2005 18:46:32 +0000 (18:46 +0000)]
Mark old file as dead.

15 years agoDon't build the gdb-related documents in binutils-2.15.
Joerg Sonnenberger [Tue, 4 Jan 2005 14:28:06 +0000 (14:28 +0000)]
Don't build the gdb-related documents in binutils-2.15.

15 years agoStyle(9) cleanup:
Chris Pressey [Tue, 4 Jan 2005 05:45:02 +0000 (05:45 +0000)]
Style(9) cleanup:
- Add braces to multi-line blocks;
- Remove casts to void when ignoring return values;
- Explicitly compare a pointer against NULL;
- Remove a blank line at the start of a function;
- Raise WARNS to 6.

Based-on-patch-submitted-by: Dion Blazakis
                             <dion_dot_blazakis_at_gmail_dot_com>

15 years agoStyle(9): remove `register' keywords.
Chris Pressey [Tue, 4 Jan 2005 05:27:47 +0000 (05:27 +0000)]
Style(9): remove `register' keywords.

Submitted-by: Steve Mynott <steve_dot_mynott_at_gmail_dot_com>
15 years agoClarify a run-on sentence by splitting it into two. snprintf() and
Chris Pressey [Tue, 4 Jan 2005 00:00:52 +0000 (00:00 +0000)]
Clarify a run-on sentence by splitting it into two.  snprintf() and
vsnprintf() can return negative values, at least in theory, so don't
make it sound like they can't.

15 years agoIgnore ENOENT when fetching the interface MIB. This can happen for
Joerg Sonnenberger [Mon, 3 Jan 2005 23:47:20 +0000 (23:47 +0000)]
Ignore ENOENT when fetching the interface MIB. This can happen for
sparse lists.

15 years agoCheck that the ifnet_addrs entry is actually used before dereferencing it.
Joerg Sonnenberger [Mon, 3 Jan 2005 23:25:25 +0000 (23:25 +0000)]
Check that the ifnet_addrs entry is actually used before dereferencing it.
Also protect the check with splnet() to avoid further race conditions.

15 years agoSet ip6_v6only to true by default. The administrators who want to use
Jeffrey Hsu [Mon, 3 Jan 2005 22:11:51 +0000 (22:11 +0000)]
Set ip6_v6only to true by default.  The administrators who want to use
IPv4-mapped IPv6 address should tweak the sysctl manually with knowledge
of the security concerns.

Obtained from KAME (itojun).
Reference:
    ftp://ftp.itojun.org/pub/paper/draft-itojun-v6ops-v4mapped-harmful-01.txt
Same as NetBSD rev 1.55 by briggs, FreeBSD rev 1.18 by ume.
Submitted by Hiroki Sato <hrs@allbsd.org>.

15 years agoCorrect a byte-order bug with fragment header scanning.
Jeffrey Hsu [Mon, 3 Jan 2005 22:03:26 +0000 (22:03 +0000)]
Correct a byte-order bug with fragment header scanning.

Obtained from KAME rev 1.331 by suz.
Same as FreeBSD rev 1.54 by ume.
Submitted by Hiroki Sato <hrs@allbsd.org>

15 years ago- Static functions/variables
Liam J. Foy [Mon, 3 Jan 2005 17:35:57 +0000 (17:35 +0000)]
- Static functions/variables
- Remove unused prototype
- Remove unused variable
- int -> pid_t
- Make clear what the 'outfile' is
- Silence GCC/Make WARNS 6 clean
- Constify

Makefile:
- Add WARNS 6
- Add $DragonFly$ tag

15 years agoAdd matching line for ATI Radeon RV280 9200SE.
Jeroen Ruigrok/asmodai [Mon, 3 Jan 2005 06:45:23 +0000 (06:45 +0000)]
Add matching line for ATI Radeon RV280 9200SE.

Submitted by: Gary Tivey [back in November]

15 years agoRaise WARNS to 6.
Chris Pressey [Mon, 3 Jan 2005 01:44:56 +0000 (01:44 +0000)]
Raise WARNS to 6.

15 years agoRaise WARNS to 6.
Chris Pressey [Mon, 3 Jan 2005 01:11:53 +0000 (01:11 +0000)]
Raise WARNS to 6.

15 years agoRaise WARNS to 6:
Chris Pressey [Mon, 3 Jan 2005 01:06:24 +0000 (01:06 +0000)]
Raise WARNS to 6:
- Constify a parameter.

While here, remove register keywords & make local functions static.

15 years agoRaise WARNS to 6.
Chris Pressey [Sun, 2 Jan 2005 22:47:48 +0000 (22:47 +0000)]
Raise WARNS to 6.

15 years agoRaise WARNS to 6.
Chris Pressey [Sun, 2 Jan 2005 22:14:13 +0000 (22:14 +0000)]
Raise WARNS to 6.

15 years agoRaise WARNS to 6:
Chris Pressey [Sun, 2 Jan 2005 02:40:20 +0000 (02:40 +0000)]
Raise WARNS to 6:
- Remove unused variables.
- Mark a parameter as unused.

Based-on-patch-submitted-by: Peter Schuller
                             <peter_dot_schuller_at_infidyne_dot_com>

15 years agoRaise WARNS to 6.
Chris Pressey [Sun, 2 Jan 2005 01:45:20 +0000 (01:45 +0000)]
Raise WARNS to 6.

Submitted-by: Peter Schuller <peter_dot_schuller_at_infidyne_dot_com>
15 years agoRaise WARNS to 6.
Chris Pressey [Sun, 2 Jan 2005 01:40:45 +0000 (01:40 +0000)]
Raise WARNS to 6.

15 years agoRaise WARNS to 6:
Chris Pressey [Sun, 2 Jan 2005 01:35:13 +0000 (01:35 +0000)]
Raise WARNS to 6:
- Initialize an uninitialized variable.

15 years agoRaise WARNS to 6:
Chris Pressey [Sun, 2 Jan 2005 01:22:49 +0000 (01:22 +0000)]
Raise WARNS to 6:
- Un-nest a nested extern declaration.

15 years agoRaise WARNS to 6.
Chris Pressey [Sun, 2 Jan 2005 01:18:57 +0000 (01:18 +0000)]
Raise WARNS to 6.

15 years agoRaise WARNS to 6.
Chris Pressey [Sun, 2 Jan 2005 01:13:20 +0000 (01:13 +0000)]
Raise WARNS to 6.

15 years agoRaise WARNS to 6:
Chris Pressey [Sat, 1 Jan 2005 23:09:57 +0000 (23:09 +0000)]
Raise WARNS to 6:
- Constify a parameter;
- Remove unnecessary casts to u_int.

15 years agoRaise WARNS to 6:
Chris Pressey [Sat, 1 Jan 2005 23:02:42 +0000 (23:02 +0000)]
Raise WARNS to 6:
- Use a static character buffer instead of a string constant.

15 years agoRaise WARNS to 6:
Chris Pressey [Sat, 1 Jan 2005 22:06:25 +0000 (22:06 +0000)]
Raise WARNS to 6:
- Constify some strings;
- Make a temporary copy of a const string for parsing purposes.

15 years agoApply style(9):
Chris Pressey [Sat, 1 Jan 2005 22:00:15 +0000 (22:00 +0000)]
Apply style(9):
- Remove casts to void when ignoring return values;
- Use ANSI style function definitions;
- Use STD{IN,OUT,ERR}_FILENO constants for readability;
- Consistently use parentheses after sizeof.

Also raise WARNS to 6:
- Use a static string instead of a string constant;
- Mark a parameter as unused.

15 years agoThere is no such thing as WARNS=7 (yet,) so use WARNS=6.
Chris Pressey [Sat, 1 Jan 2005 21:50:23 +0000 (21:50 +0000)]
There is no such thing as WARNS=7 (yet,) so use WARNS=6.

Pointed-out-by: liamfoy
15 years agoRaise WARNS to 6.
Chris Pressey [Sat, 1 Jan 2005 21:28:27 +0000 (21:28 +0000)]
Raise WARNS to 6.

15 years agoRaise WARNS to 6.
Chris Pressey [Sat, 1 Jan 2005 21:24:07 +0000 (21:24 +0000)]
Raise WARNS to 6.

15 years agoRaise WARNS to 6:
Chris Pressey [Sat, 1 Jan 2005 21:10:43 +0000 (21:10 +0000)]
Raise WARNS to 6:
- Constify some strings.

15 years agoRaise WARNS to 6.
Chris Pressey [Sat, 1 Jan 2005 21:07:39 +0000 (21:07 +0000)]
Raise WARNS to 6.

15 years ago- Remove duplicate headers
Liam J. Foy [Sat, 1 Jan 2005 15:56:56 +0000 (15:56 +0000)]
- Remove duplicate headers

15 years agoSlap 2005 into the copyright. Happy New Year!
Hiten Pandya [Sat, 1 Jan 2005 11:15:44 +0000 (11:15 +0000)]
Slap 2005 into the copyright.  Happy New Year!

15 years agoSlap 2005 into the COPYRIGHT. Happy New Year!
Hiten Pandya [Sat, 1 Jan 2005 11:08:57 +0000 (11:08 +0000)]
Slap 2005 into the COPYRIGHT.  Happy New Year!

15 years agoFix double-free problem when sysctl net.inet.ip.rtexpire=0.
Jeffrey Hsu [Sat, 1 Jan 2005 09:20:05 +0000 (09:20 +0000)]
Fix double-free problem when sysctl net.inet.ip.rtexpire=0.

15 years agoFix double-free problem when sysctl net.inet.ip.rtexpire=0.
Jeffrey Hsu [Sat, 1 Jan 2005 09:19:40 +0000 (09:19 +0000)]
Fix double-free problem when sysctl net.inet.ip.rtexpire=0.

Obtained from:  KAME rev 1.24 by SUZUKI Shinsuke <suz@kame.net>
Equivalent to:  FreeBSD rev 1.1.2.4 by SUZUKI Shinsuke <suz@kame.net>
Submitted by:  Hiroki Sato <hrs@allbsd.org>

15 years agoStyle(9): the return type of strcmp() is not a boolean, so don't
Chris Pressey [Sat, 1 Jan 2005 01:36:02 +0000 (01:36 +0000)]
Style(9): the return type of strcmp() is not a boolean, so don't
treat it as one, explcitly compare it against zero instead.

15 years agoRaise WARNS to 6:
Chris Pressey [Sat, 1 Jan 2005 00:22:33 +0000 (00:22 +0000)]
Raise WARNS to 6:
- Include missing header files.

15 years agoUse real getopt() handling instead of the hand-rolled and IOCCC-worthy
Chris Pressey [Sat, 1 Jan 2005 00:13:49 +0000 (00:13 +0000)]
Use real getopt() handling instead of the hand-rolled and IOCCC-worthy
"Micro getopt()" macros.  In the process, clean up the option-handling
code:
- Sort the options in the switch statement;
- Plug piddling memory leaks when processing repeated options by
  freeing strings before allocating them for a second time;
- Die with a fatal error if the requested report file cannot be
  opened for appending;
- Don't call init() before usage() (to prevent the usage message
  being mangled by changes to the terminal settings;)
- Raise WARNS to 6.

15 years agoJournaling layer work. Add shims and skeleton code for most of the
Matthew Dillon [Fri, 31 Dec 2004 23:48:08 +0000 (23:48 +0000)]
Journaling layer work.  Add shims and skeleton code for most of the
remaining modifying VFS ops.

15 years agoClean up the usage message, both in usage() and in the main program
Chris Pressey [Fri, 31 Dec 2004 23:30:27 +0000 (23:30 +0000)]
Clean up the usage message, both in usage() and in the main program
comment, both stylistically (sort and combine options) and for
accuracy (following the manual page, make note of the -s and -S flags,
and use the term 'send' instead of 'say' to reduce confusion (SAY is
the name of a command for output to the user, not the connection.))

15 years agoMerge with FreeBSD revision 1.21 (kientzle):
Chris Pressey [Fri, 31 Dec 2004 22:31:18 +0000 (22:31 +0000)]
Merge with FreeBSD revision 1.21 (kientzle):

"Rename logf --> chat_logf  to avoid naming conflicts
 with GCC built-in (and with C90 reserved library name).

 Approved by: gordon (Mentor)"

15 years agoRestore b_data prior to calling relpbuf(). This isn't really necessary but
Matthew Dillon [Fri, 31 Dec 2004 22:30:19 +0000 (22:30 +0000)]
Restore b_data prior to calling relpbuf().  This isn't really necessary but
it's a good cleanup to do in case the pbuf API changes later on.

Submitted-by: Found in Chris Pressey's tree, source is a mystery!
15 years agoMake an example follow the recommendation given in the immediately
Chris Pressey [Fri, 31 Dec 2004 21:43:20 +0000 (21:43 +0000)]
Make an example follow the recommendation given in the immediately
preceding paragraph, i.e. that function prototypes in userland
code should not include parameter names.

15 years agoMerge with FreeBSD revision 1.20 (markm):
Chris Pressey [Fri, 31 Dec 2004 21:16:09 +0000 (21:16 +0000)]
Merge with FreeBSD revision 1.20 (markm):

"Big cleanup. Remove unused stuff, make closer to style(9).

 OK'ed by: peter (long time ago)"

In detail:
- Reorder #includes.
- Assume stdarg.h, remove __V() macro.
- Assume TERMIOS, remove TERMIO code.
- Remove SUNOS-specific, SOL2-specific, and ultrix-specific code.
- Remove unused code.
- Remove `register' keywords.
- Add `__unused' to unused function parameters.
- Reduce warnings.

15 years agoApply some style(9):
Chris Pressey [Fri, 31 Dec 2004 20:58:17 +0000 (20:58 +0000)]
Apply some style(9):
- Remove casts to void when ignoring return values.
- Make local functions and prototypes static.
- Use array of gid_t, not array of int, for getgroups()
  (same as FreeBSD revision 1.22.)

Submitted-by: Alexander 'alxl' Lobachov <alxl_at_alxl_dot_info>
15 years agoRaise WARNS to 7 and apply some style(9):
Chris Pressey [Fri, 31 Dec 2004 20:32:59 +0000 (20:32 +0000)]
Raise WARNS to 7 and apply some style(9):
- Remove casts to void when ignoring return values
- Remove `register' keywords.

Submitted-by: Alexander 'alxl' Lobachov <alxl_at_alxl_dot_info>
15 years agoMerge with FreeBSD revision 1.18 (jmallett):
Chris Pressey [Fri, 31 Dec 2004 19:53:51 +0000 (19:53 +0000)]
Merge with FreeBSD revision 1.18 (jmallett):

"Remove local prototypes for main()."

and with revision 1.19 (charnier):

"Replace various spelling with FALLTHROUGH which is lint()able"

15 years agoMerge with FreeBSD revision 1.16 (sheldonh):
Chris Pressey [Fri, 31 Dec 2004 19:32:02 +0000 (19:32 +0000)]
Merge with FreeBSD revision 1.16 (sheldonh):

"Use STD{ERR,IN,OUT}_FILENO instead of their numeric values.  The
 definitions are more readable, and it's possible that they're
 more portable to pathalogical platforms.

 Submitted by:   David Hill <david@phobia.ms>"

15 years agoBump WARNS to 6.
Chris Pressey [Fri, 31 Dec 2004 08:11:56 +0000 (08:11 +0000)]
Bump WARNS to 6.

15 years agoBump WARNS to 6 and apply some style(9):
Chris Pressey [Fri, 31 Dec 2004 08:05:37 +0000 (08:05 +0000)]
Bump WARNS to 6 and apply some style(9):
- Add `__unused' to an unused parameter;
- Remove `register' keywords;
- Remove casts to void when ignoring return values;
- Add $DragonFly$ to Makefile.

15 years agoWARNS 6, cleanup compiler warnings, de-register, staticize, etc.
Matthew Dillon [Fri, 31 Dec 2004 03:53:25 +0000 (03:53 +0000)]
WARNS 6, cleanup compiler warnings, de-register, staticize, etc.

Submitted-by: Dion Blazakis <dion.blazakis@gmail.com>
15 years agoJournaling layer work. Lock down the journaling data format and most
Matthew Dillon [Thu, 30 Dec 2004 21:41:06 +0000 (21:41 +0000)]
Journaling layer work.  Lock down the journaling data format and most
of the record-building API.

The Journaling data format consists of two layers, A logical stream
abstraction layer and a recursive subrecord layer.

The memory FIFO and worker thread only deals with the logical stream
abstraction layer.  subrecord data is broken down into logical stream
records which the worker thread then writes out to the journal.  Space
for a logical stream record is 'reserved' and then filled in by the
journaling operation.  Other threads can reserve their own space in the
memory FIFO, even if earlier reservations have not yet been committed.
The worker thread will only write out completed records and it currently
does so in sequential order, so the worker thread itself may stall
temporarily if the next reservation in the FIFO has not yet been completed.
(this will probably have to be changed in the future but for now its the
easiest solution, allowing for some parallelism without creating too big
a mess).

Each logical stream is a (typically) short-lived entity, usually
encompassing a single VFS operation, but may be made up of multiple
stream records.  The stream records contain a stream id and bits specifying
whether the record is beginning a new logical stream, in the middle
somewhere, or ending a logical stream.  Small transactions may be able
to fit in a single record in which case multiple bits may be set.
Very large transactions, for example when someone does a write(... 10MB),
are fully supported and would likely generate a large number of stream
records.  Such transactions would not necessarily stall other operations
from other processes, however, since they would be broken up into smaller
pieces for output to the journal.

The stream layer serves to multiplex individual logical streams onto
the memory FIFO and out the journaling stream descriptor.

The recursive subrecord layer identifies the transaction as well as any
other necessary data, including UNDO data if the journal is reversable.
A single transaction may contain several sub-records identifying the bits
making up the transaction (for example, a 'mkdir' transaction would need
a subrecord identifying the userid, groupid, file modes, and path).

The record formats also allow for transactional aborts, even if some of the
data has already been pushed out to the descriptor due to limited buffer
space.  And, finally, while the subrecord's header format includes a record
size field, this value may not be known for subrecords representing
recusive 'pushes' since the header may be flushed out to the journal long
before the record is completed.  This case is also fully supported.

NOTE: The memory FIFO used to ship data to the worker thread is serialized
by the BGL for the moment, but will eventually be made per-cpu to support
lockless operation under SMP.

15 years ago- Bump WARNS to 6
Liam J. Foy [Thu, 30 Dec 2004 17:49:39 +0000 (17:49 +0000)]
- Bump WARNS to 6

15 years agoAdd lrint() and associated functions.
Jeroen Ruigrok/asmodai [Thu, 30 Dec 2004 16:10:18 +0000 (16:10 +0000)]
Add lrint() and associated functions.

Taken from: NetBSD

15 years agoAdd ieee.h files for amd64 and x86.
Jeroen Ruigrok/asmodai [Thu, 30 Dec 2004 16:00:22 +0000 (16:00 +0000)]
Add ieee.h files for amd64 and x86.

Taken from: NetBSD

15 years agoInclude sys/types.h for now.
Jeroen Ruigrok/asmodai [Thu, 30 Dec 2004 15:53:35 +0000 (15:53 +0000)]
Include sys/types.h for now.

15 years agoAdd NetBSD's ieee754.h header file.
Jeroen Ruigrok/asmodai [Thu, 30 Dec 2004 15:09:06 +0000 (15:09 +0000)]
Add NetBSD's ieee754.h header file.

15 years agoImprove seperation between kernel code and userland code by requiring
Chris Pressey [Thu, 30 Dec 2004 07:01:52 +0000 (07:01 +0000)]
Improve seperation between kernel code and userland code by requiring
that source files that #include kernel headers also #define _KERNEL or
_KERNEL_STRUCTURES as appropriate.

With-suggestions-from: joerg
Still-todo: systimer.h, and clean up scsi_da.c
Tested-by: cd /usr/src/nrelease && make installer_release
Approved-by: dillon
If-anything-breaks-yell-at: cpressey

15 years agoBack out port randomization. FreeBSD users report problems with it under load.
Jeffrey Hsu [Thu, 30 Dec 2004 05:14:30 +0000 (05:14 +0000)]
Back out port randomization.  FreeBSD users report problems with it under load.

15 years agoDocument the "accept_rtadv" interface flag.
Jeffrey Hsu [Thu, 30 Dec 2004 02:44:10 +0000 (02:44 +0000)]
Document the "accept_rtadv" interface flag.

Obtained from:  KAME rev 1.17 by itojun
Same as:  FreeBSD rev 1.2.2.8 by ume

15 years agoAdd the "accept_rtadv" interface option to specifiy whether to accept
Jeffrey Hsu [Thu, 30 Dec 2004 02:35:24 +0000 (02:35 +0000)]
Add the "accept_rtadv" interface option to specifiy whether to accept
Router Advertisements on a given interface.

Submitted by:  Hiroki Sato <hrs@allbsd.org>
Obtained from:  KAME (via FreeBSD)
References:  KAME: kame/kame/kame/ndp/ndp.c 1.77
     FreeBSD: src/usr.sbin/ndp/ndp.c 1.2.2.6

15 years agoAdd the new ND6_IFF_ACCEPT_RTADV flag to control whether to accept
Jeffrey Hsu [Thu, 30 Dec 2004 02:26:12 +0000 (02:26 +0000)]
Add the new ND6_IFF_ACCEPT_RTADV flag to control whether to accept
Router Advertisements on a per-interface basis.

Submitted by:  Hiroki Sato <hrs@allbsd.org>
Obtained from:  KAME (via FreeBSD)

15 years agoPrefix function names with __generic_ as per the rest, to remove the
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 17:48:27 +0000 (17:48 +0000)]
Prefix function names with __generic_ as per the rest, to remove the
duplicated symbols.

15 years agoGet rid of an Alpha specific part.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 17:29:35 +0000 (17:29 +0000)]
Get rid of an Alpha specific part.

15 years agoPrefix -I's path addition with ${.CURDIR}.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 15:35:43 +0000 (15:35 +0000)]
Prefix -I's path addition with ${.CURDIR}.

15 years agoUse ANSI C and get rid of the __STDC__ and other wrapping.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 15:22:57 +0000 (15:22 +0000)]
Use ANSI C and get rid of the __STDC__ and other wrapping.

15 years agoAdd more files to the architecture specific section.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 12:55:50 +0000 (12:55 +0000)]
Add more files to the architecture specific section.
These include C99 functions.

Taken from: NetBSD

15 years agolibm hasn't been used in ages. msun has taken over its place for a long
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 11:45:29 +0000 (11:45 +0000)]
libm hasn't been used in ages.  msun has taken over its place for a long
while now.

15 years agoReplace the files with the NetBSD ones, which are the rewritten ones by
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 11:40:18 +0000 (11:40 +0000)]
Replace the files with the NetBSD ones, which are the rewritten ones by
J.T. Conklin and some others.  This includes AMD64 support.

15 years agoMake sure to include header files from -I${ARCH} directories, in this case
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:40:09 +0000 (10:40 +0000)]
Make sure to include header files from -I${ARCH} directories, in this case
to pick up abi.h.

15 years agoAdd abi.h which defines particulars for x86 and AMD64.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:29:14 +0000 (10:29 +0000)]
Add abi.h which defines particulars for x86 and AMD64.

Taken from: NetBSD

15 years agoGet rid of hardware architectures we do not use.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:24:07 +0000 (10:24 +0000)]
Get rid of hardware architectures we do not use.

15 years agoRetire Alpha bits.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:22:29 +0000 (10:22 +0000)]
Retire Alpha bits.

15 years agoGet rid of unused hardware targets.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:16:41 +0000 (10:16 +0000)]
Get rid of unused hardware targets.

15 years agoFix compile error.
Jeffrey Hsu [Wed, 29 Dec 2004 05:44:43 +0000 (05:44 +0000)]
Fix compile error.

15 years agoForced commit to say the previous commit wasn't really a buffer overflow
Jeffrey Hsu [Wed, 29 Dec 2004 03:26:42 +0000 (03:26 +0000)]
Forced commit to say the previous commit wasn't really a buffer overflow
after all, but the code is more uniform this way, so leave it like this,
except for ipsec.c where we use the standard libkern inet_ntoa() instead of
defining a private copy.

15 years agoGet rid of dead non-DragonFly code.
Matthew Dillon [Wed, 29 Dec 2004 02:42:16 +0000 (02:42 +0000)]
Get rid of dead non-DragonFly code.

15 years agonvp may fall through as NULL, check it before vput()ing.
Matthew Dillon [Wed, 29 Dec 2004 02:41:26 +0000 (02:41 +0000)]
nvp may fall through as NULL, check it before vput()ing.

15 years agoRename the proc pointer p to pp to clarify its use in portions of the tty
Matthew Dillon [Wed, 29 Dec 2004 02:40:52 +0000 (02:40 +0000)]
Rename the proc pointer p to pp to clarify its use in portions of the tty
code.

Make ttread() and ttwrite() work properly when called from a pure thread.

15 years agoJournaling layer work.
Matthew Dillon [Wed, 29 Dec 2004 02:40:03 +0000 (02:40 +0000)]
Journaling layer work.

* Adjust the new mountctl syscall to make the passed file descriptor an
  explicit argument rather then storing the fd in the control structure.
  Convert the fd to a file pointer to make kern_mountctl() callable from
  a pure thread.

* Get rid of vop_stdmountctl and just have the VOP default ops call
  journal_mountctl(), which makes things less confusing.

* Get more of the journaling infrastructure working.  Basic installation
  and removal of the journaling structure and the creation and destruction
  of the worker thread and stream file pointer now works (with lots of XXX's).

* Add a journaling vector for VOP_NMKDIR to test the journaling VOP ops shim.

15 years agoFix buffer overflow bug involving inet_ntoa().
Jeffrey Hsu [Wed, 29 Dec 2004 01:19:53 +0000 (01:19 +0000)]
Fix buffer overflow bug involving inet_ntoa().

15 years agoEquivalent to: FreeBSD rev 1.82
Liam J. Foy [Tue, 28 Dec 2004 22:56:12 +0000 (22:56 +0000)]
Equivalent to:  FreeBSD rev 1.82

Ok'ed by: hsu@

15 years agoFreeBSD PR: kern/54874
Jeffrey Hsu [Tue, 28 Dec 2004 22:20:53 +0000 (22:20 +0000)]
FreeBSD PR:  kern/54874
  ip6fw does not recognize ESP packets correctly when the packets are specified
  as protocol 50 (or "ESP") by the ip6fw command.  For example, even if the
  following line is installed:

  add pass esp from any to any

  The kernel does not apply this rule to IPv6 ESP packets.  Instead, we need
  to specify like this:

  add pass all from any to any ipv6options esp

Submitted by:  Hiroki Sato <hrs@allbsd.org>
Obtained from:  FreeBSD rev 1.2.2.10 commit by ume@freebsd.org from
submisssion by JINMEI Tatuya <jinmei@shuttle.wide.toshiba.co.jp>

15 years ago- Make modestr const and initialize it (stop GCC moaning)
Liam J. Foy [Tue, 28 Dec 2004 20:47:40 +0000 (20:47 +0000)]
- Make modestr const and initialize it (stop GCC moaning)
- Remove <string.h> - unnecessary
- Minor err message kung fu mixed in with some (void) removal

Makefile:
- Add DragonFly tag
- Add WARNS?= 6

15 years agoFix off-by-one error with the range check for PRC_NCMDS.
Jeffrey Hsu [Tue, 28 Dec 2004 19:55:16 +0000 (19:55 +0000)]
Fix off-by-one error with the range check for PRC_NCMDS.

Same as:  FreeBSD rev 1.38, OpenBSD rev 1.36, KAME rev 1.137.
Submitted by:  Hiroki Sato <hrs@allbsd.org>

15 years ago- Both <unistd.h> and <sys/types.h> can go - unnecessary
Liam J. Foy [Tue, 28 Dec 2004 19:50:11 +0000 (19:50 +0000)]
- Both <unistd.h> and <sys/types.h> can go - unnecessary
- Use err() - no need to roll our own

15 years agoClean up the networking code before I parallelize the routing code.
Jeffrey Hsu [Tue, 28 Dec 2004 08:09:59 +0000 (08:09 +0000)]
Clean up the networking code before I parallelize the routing code.

15 years agoFix a range check bug in lseek()
Matthew Dillon [Tue, 28 Dec 2004 04:39:59 +0000 (04:39 +0000)]
Fix a range check bug in lseek()

15 years ago- Clean sbin/dump of all registers.
Liam J. Foy [Mon, 27 Dec 2004 22:36:37 +0000 (22:36 +0000)]
- Clean sbin/dump of all registers.

Submitted by: Steve Mynott <steve.mynott@gmail.com>