dragonfly.git
15 years agoMerge from vendor branch NCURSES:
Eirik Nygaard [Wed, 2 Mar 2005 15:12:17 +0000 (15:12 +0000)]
Merge from vendor branch NCURSES:
Add ncurses 5.4 source code.

15 years agoAdd ncurses 5.4 source code.
Eirik Nygaard [Wed, 2 Mar 2005 15:12:17 +0000 (15:12 +0000)]
Add ncurses 5.4 source code.

15 years agoCorrect a mixup between NLSGRP and NLSOWN. Add LOCALE{DIR,GRP,OWN,MODE}.
Joerg Sonnenberger [Wed, 2 Mar 2005 13:45:25 +0000 (13:45 +0000)]
Correct a mixup between NLSGRP and NLSOWN. Add LOCALE{DIR,GRP,OWN,MODE}.

15 years agoUse ULLONG_MAX, off_t is unsigned.
Joerg Sonnenberger [Wed, 2 Mar 2005 11:48:15 +0000 (11:48 +0000)]
Use ULLONG_MAX, off_t is unsigned.

15 years agoFixed bad result file.
Max Okumoto [Wed, 2 Mar 2005 11:01:15 +0000 (11:01 +0000)]
Fixed bad result file.

15 years agoAdd another. This one check if the behavior of ths S modifier is the same.
Max Okumoto [Wed, 2 Mar 2005 10:58:59 +0000 (10:58 +0000)]
Add another. This one check if the behavior of ths S modifier is the same.

Note: It appears that both ${MAKE_VAR:S/^FOO/BAR} and ${MAKE_VAR:S/FOO$/BAR}
      do not work.

15 years agoHack update code since we now have separate src and work directories.
Max Okumoto [Wed, 2 Mar 2005 10:55:37 +0000 (10:55 +0000)]
Hack update code since we now have separate src and work directories.

15 years agoFix prototypes. This functions actually need a parameter.
Joerg Sonnenberger [Wed, 2 Mar 2005 10:38:43 +0000 (10:38 +0000)]
Fix prototypes. This functions actually need a parameter.

15 years agoFix warning about pre-ANSI function types.
Joerg Sonnenberger [Wed, 2 Mar 2005 10:15:46 +0000 (10:15 +0000)]
Fix warning about pre-ANSI function types.

15 years agoAdd WARNS?=6 to Makefile.
Chris Pressey [Wed, 2 Mar 2005 07:36:32 +0000 (07:36 +0000)]
Add WARNS?=6 to Makefile.

15 years agoRaise WARNS to 6:
Chris Pressey [Wed, 2 Mar 2005 07:35:32 +0000 (07:35 +0000)]
Raise WARNS to 6:
- Un-const-ify a function argument;
- Use a signed integer in a loop bounded by a signed integer.

15 years agoImprove data validation:
Chris Pressey [Wed, 2 Mar 2005 07:20:44 +0000 (07:20 +0000)]
Improve data validation:
- Simplify the check for a well-formed -a argument.
- Move the check for overflowing the command table from addcmd()
  (which is just a driver) into addmac() (which does the real work,
  and which is called from places besides addcmd().)
- Add a check for overflowing the macro-pair table.
- In each case, use a clearer (while) loop for detecting overflow.
- In each case, error out by using errx().

15 years agoWARNS=6 cleanup.
Joerg Sonnenberger [Wed, 2 Mar 2005 07:16:23 +0000 (07:16 +0000)]
WARNS=6 cleanup.

Copy collate.h from libc/locale instead of using -I, because the current
ctype.h includes runetype.h and that gets picked from the same directory.

15 years agoDon't define isatty, it's already defined in unistd.h.
Joerg Sonnenberger [Wed, 2 Mar 2005 07:09:38 +0000 (07:09 +0000)]
Don't define isatty, it's already defined in unistd.h.

15 years agoSync with FreeBSD, random.c:1.17 and random.6:1.7-1.8 (ru):
Chris Pressey [Wed, 2 Mar 2005 06:59:23 +0000 (06:59 +0000)]
Sync with FreeBSD, random.c:1.17 and random.6:1.7-1.8 (ru):
- Fix SYNOPSIS and sync program's usage output with it;
- Expand stdin/stdout;
- Order SEE ALSO;
- Trim BUGS and HISTORY;
- Sort sections.

15 years agoIn kern_sigtimedwait, do not mask SIGKILL because a stopped process
David Xu [Wed, 2 Mar 2005 06:17:17 +0000 (06:17 +0000)]
In kern_sigtimedwait, do not mask SIGKILL because a stopped process
is always able to be killed by SIGKILL.

15 years agoUse isdigit instead of isnumber.
Joerg Sonnenberger [Wed, 2 Mar 2005 06:08:29 +0000 (06:08 +0000)]
Use isdigit instead of isnumber.

15 years agoReplace digittoint(c) with (c - '0'), we already know that c is a digit,
Joerg Sonnenberger [Wed, 2 Mar 2005 05:48:48 +0000 (05:48 +0000)]
Replace digittoint(c) with (c - '0'), we already know that c is a digit,
so the hex numbers can't occur. digittoint is a BSD function and not
part of any standard.

15 years agoUse the standard isxdigit instead of the non-standard ishexnumber.
Joerg Sonnenberger [Wed, 2 Mar 2005 05:15:13 +0000 (05:15 +0000)]
Use the standard isxdigit instead of the non-standard ishexnumber.

15 years agoRaise WARNS to 6.
Chris Pressey [Wed, 2 Mar 2005 05:03:20 +0000 (05:03 +0000)]
Raise WARNS to 6.

15 years agoMerge with FreeBSD, revision 1.16 (stefanf):
Chris Pressey [Wed, 2 Mar 2005 05:00:21 +0000 (05:00 +0000)]
Merge with FreeBSD, revision 1.16 (stefanf):

"Properly initialise 'filename' so that random -l doesn't try to open
NULL.

Const-qualify 'filename' to avoid a strdup() call due to
-Wwrite-strings silliness."

15 years agoRaise WARNS to 6:
Chris Pressey [Wed, 2 Mar 2005 04:33:12 +0000 (04:33 +0000)]
Raise WARNS to 6:
- Declare tables of commands as arrays of mutable string buffers
  instead of as arrays of string constants, and just copy new
  data into the table, instead of malloc()ing new space for it.

15 years agoUse NXCC to compile a runnable executable. The libc we are building might
Joerg Sonnenberger [Wed, 2 Mar 2005 03:13:01 +0000 (03:13 +0000)]
Use NXCC to compile a runnable executable. The libc we are building might
not be compatible.

15 years agoMerge from vendor branch GCC:
Joerg Sonnenberger [Wed, 2 Mar 2005 00:56:21 +0000 (00:56 +0000)]
Merge from vendor branch GCC:
Add C++ ctype based on NetBSD-style ctype.h.

15 years agoAdd C++ ctype based on NetBSD-style ctype.h.
Joerg Sonnenberger [Wed, 2 Mar 2005 00:56:21 +0000 (00:56 +0000)]
Add C++ ctype based on NetBSD-style ctype.h.

15 years agoConstify filename variable.
Chris Pressey [Wed, 2 Mar 2005 00:43:42 +0000 (00:43 +0000)]
Constify filename variable.

15 years agoRIP Alpha libc.
Joerg Sonnenberger [Tue, 1 Mar 2005 23:40:57 +0000 (23:40 +0000)]
RIP Alpha libc.

15 years agoClean up the XIO API and structure. XIO no longer tries to 'track' partial
Matthew Dillon [Tue, 1 Mar 2005 23:35:16 +0000 (23:35 +0000)]
Clean up the XIO API and structure.  XIO no longer tries to 'track' partial
copies into or out of an XIO.  It no longer adjusts xio_offset or xio_bytes
once they have been initialized.  Instead, a relative offset is now passed
to API calls to handle partial copies.  This makes the API a lot less confusing
and makes the XIO structure a lot more flexible, shareable, and more suitable
for use by higher level entities (buffer cache, pipe code, upcoming MSFBUF
work, etc).

15 years agopatch-7.100
Max Okumoto [Tue, 1 Mar 2005 23:32:52 +0000 (23:32 +0000)]
patch-7.100

ParseModifier()
- constify 'M' and 'N' modifiers.

15 years agopatch-7.99
Max Okumoto [Tue, 1 Mar 2005 23:29:29 +0000 (23:29 +0000)]
patch-7.99

VarParseLong()
- Move default code up into previous if-block since the
  else block always returns.

15 years agopatch-7.98
Max Okumoto [Tue, 1 Mar 2005 23:28:46 +0000 (23:28 +0000)]
patch-7.98

VarParseLong()
- Merge two if-statement into a if-else-statement since the
  two tests are compliments of each other.

15 years agopatch-7.97
Max Okumoto [Tue, 1 Mar 2005 23:28:18 +0000 (23:28 +0000)]
patch-7.97

VarParseLong()
- cleanup calculation of dynamic

15 years agopatch-7.96
Max Okumoto [Tue, 1 Mar 2005 23:27:53 +0000 (23:27 +0000)]
patch-7.96

VarParseLong()
- Remove dead code, and reindent

15 years agopatch-7.95
Max Okumoto [Tue, 1 Mar 2005 23:27:25 +0000 (23:27 +0000)]
patch-7.95

VarParseLong()
- Create new scope around default code at end of function.
  Then copy that function above in a conditional. if (v != NULL)

15 years agopatch-7.94
Max Okumoto [Tue, 1 Mar 2005 23:26:55 +0000 (23:26 +0000)]
patch-7.94

VarParseLong()
- Create variable consumed, which contains the number of characters
  that we have already consumed.

15 years agopatch-7.93
Max Okumoto [Tue, 1 Mar 2005 23:26:30 +0000 (23:26 +0000)]
patch-7.93

VarParseLong()
- renamed variable tstr to ptr in while loop.
- Create a new subscope to contain new tstr pointer which is
  a const pointer, this will prove that the code in the scope
  does not move the pointer.
- Move other variables from function scope into the new scope,
  this scope will prob end up as a new function.

15 years agopatch-7.92
Max Okumoto [Tue, 1 Mar 2005 23:25:18 +0000 (23:25 +0000)]
patch-7.92

VarParseLong()
 - moved checking for end of string into while loop.
 - cleanup Buffer object if premature end of string.
 - Var_Prase() can never return NULL so remove the check for it.

15 years agopatch-7.91
Max Okumoto [Tue, 1 Mar 2005 23:24:32 +0000 (23:24 +0000)]
patch-7.91
VarParseLong()
- Cleanup some indent problems.

15 years agoThis should have been part of the previous commit messsage to var.c
Max Okumoto [Tue, 1 Mar 2005 23:23:31 +0000 (23:23 +0000)]
This should have been part of the previous commit messsage to var.c

patch-7.90

VarParseShort():
       - Update lengthPtr value instead of setting it.
       - Copy the string constants and return them, to get rid of those
         pesky warnings about const strings.

15 years agoVar_Parse():
Max Okumoto [Tue, 1 Mar 2005 23:19:39 +0000 (23:19 +0000)]
Var_Parse():
Start migrating lengthPtr calculations down into sub-routines.

15 years agoAdd compatibility with old style extended options to CVS.
Simon Schubert [Tue, 1 Mar 2005 23:18:32 +0000 (23:18 +0000)]
Add compatibility with old style extended options to CVS.
Before, you couldn't check out from a NetBSD/FreeBSD/OpenBSD repo and at the
same time get correct $Tags$.

This fix has been in my tree for several months now. Please note that using
OpenBSD repo will usually result into some warnings as not all old features are
natively supported by our cvs.

15 years ago- Use variable 'len' instead of making an unnecessary call to strlen()
Liam J. Foy [Tue, 1 Mar 2005 23:12:37 +0000 (23:12 +0000)]
- Use variable 'len' instead of making an unnecessary call to strlen()
- Dont use fprintf(), exit() and getprogname(). Just use errx()

15 years agoCleanup comment and add option so the working dir can be set.
Max Okumoto [Tue, 1 Mar 2005 22:59:44 +0000 (22:59 +0000)]
Cleanup comment and add option so the working dir can be set.

15 years agoDon't have binsrch() alter a global variable if it fails. Instead,
Chris Pressey [Tue, 1 Mar 2005 22:50:20 +0000 (22:50 +0000)]
Don't have binsrch() alter a global variable if it fails.  Instead,
have it take an extra integer, passed by reference, and modify that.

15 years agoWARNS=6 cleaness, some constification, some cleanups.
Joerg Sonnenberger [Tue, 1 Mar 2005 22:47:10 +0000 (22:47 +0000)]
WARNS=6 cleaness, some constification, some cleanups.

15 years agoChanged regression tests to write to /tmp instead of in the src dir.
Max Okumoto [Tue, 1 Mar 2005 22:42:28 +0000 (22:42 +0000)]
Changed regression tests to write to /tmp instead of in the src dir.

15 years agoStyle(9):
Chris Pressey [Tue, 1 Mar 2005 22:32:14 +0000 (22:32 +0000)]
Style(9):
- Normalize spacing, mostly around binary operators.
- Wrap some long lines and fix some indentation.
- Use standard usage message formatting.
- Braces around multiline blocks.
- Parentheses around argument to sizeof.

15 years agoAdd better comment for hack_cmp(), and reduced number of paramters passed
Max Okumoto [Tue, 1 Mar 2005 22:01:16 +0000 (22:01 +0000)]
Add better comment for hack_cmp(), and reduced number of paramters passed
to function.

15 years agoRaise WARNS to 6:
Chris Pressey [Tue, 1 Mar 2005 21:37:33 +0000 (21:37 +0000)]
Raise WARNS to 6:
- Remove NOTSET from the STYLE enumeration.  Use a new flag
  variable in main(), style_set, for this purpose.
- The ARG() macro is rather large and unwieldy, so replace it with
  an equivalent function, getarg().
- Rename a function to avoid conflict with a local variable inside
  that function.  Rename another function for consistency.
- Rename locals to avoid conflict with library function names.
- Sprinkle `const'.
- Use ssize_t instead of u_int to record line length.
- Ensure several local variables are initialized.
- Some explicit checks against NULL and 0.
- Add $DragonFly$ to Makefile.

15 years agoIn the parent process, close the slave file descriptor at the earliest
Chris Pressey [Tue, 1 Mar 2005 21:20:17 +0000 (21:20 +0000)]
In the parent process, close the slave file descriptor at the earliest
opportunity (just after we fork.)  This is not strictly necessary, but
it is good programming practice; and, since this program is one of the
only users of openpty(3) in the tree, it behooves us to set a good
example here.

15 years ago- Back out rev 1.6 noticed by Matt Dillon. However, still keep the use
Liam J. Foy [Tue, 1 Mar 2005 20:54:53 +0000 (20:54 +0000)]
- Back out rev 1.6 noticed by Matt Dillon. However, still keep the use
  of errc()

Problem: http://leaf.dragonflybsd.org/mailarchive/commits/2005-03/msg00009.html

15 years agoAdd comment harti made about outofdate comment.
Max Okumoto [Tue, 1 Mar 2005 20:31:29 +0000 (20:31 +0000)]
Add comment harti made about outofdate comment.

15 years agoStyle(9):
Chris Pressey [Tue, 1 Mar 2005 20:05:14 +0000 (20:05 +0000)]
Style(9):
- Braces around multiline blocks.
- Explicitly test against NULL.
- Spell NULL as NULL, not 0.

15 years agoGet rid off Alpha mentions.
Jeroen Ruigrok/asmodai [Tue, 1 Mar 2005 18:45:37 +0000 (18:45 +0000)]
Get rid off Alpha mentions.

15 years agoReduce foot-shooting potential by adding -dP for cvs update and -P for
Joerg Sonnenberger [Tue, 1 Mar 2005 10:55:17 +0000 (10:55 +0000)]
Reduce foot-shooting potential by adding -dP for cvs update and -P for
checkout.

Remove the paragraph about /usr/dfports/distfiles, there's no need for
such a thing.

15 years agoStyle(9):
Chris Pressey [Tue, 1 Mar 2005 06:54:32 +0000 (06:54 +0000)]
Style(9):
- Add `static' to function prototypes and definitions;
- Remove `register' keyword;
- Rename local variables to avoid conflict with globals;
- Remove unneeded function argument;
- Sprinkle `const'.

Submitted-by: Larry Lansing <lansil_at_fuzzynerd_dot_com>
15 years agoHeader include protection from userland.
Hiten Pandya [Tue, 1 Mar 2005 06:18:18 +0000 (06:18 +0000)]
Header include protection from userland.

15 years agoFix whitespace for function prototypes.
Hiten Pandya [Tue, 1 Mar 2005 04:24:28 +0000 (04:24 +0000)]
Fix whitespace for function prototypes.

15 years agoRemove a comment that does not make sense; it was just a remnant of
Hiten Pandya [Tue, 1 Mar 2005 01:20:03 +0000 (01:20 +0000)]
Remove a comment that does not make sense; it was just a remnant of
random thoughts.

15 years agoCleanup FAIL message
Max Okumoto [Tue, 1 Mar 2005 01:14:25 +0000 (01:14 +0000)]
Cleanup FAIL message

15 years agoFix a bug in the ioctl mapping (written by me), which basically failed
Simon Schubert [Tue, 1 Mar 2005 00:43:02 +0000 (00:43 +0000)]
Fix a bug in the ioctl mapping (written by me), which basically failed
to provide the neccessary infrastructure for linux drm to work.

This changes DRM and sound handling in the linuxulator to make use of
the new code.

API compatibility is retained in wide parts; nevertheless modules using
ioctl maps (nvidia) need to be recompiled.

Discovered-and-fixed-by: Brock Johnson <wildefire@isentry.homelinux.org>
Reviewed-by: corecode, joerg
15 years agoSync with FreeBSD cp.
Simon Schubert [Mon, 28 Feb 2005 23:15:35 +0000 (23:15 +0000)]
Sync with FreeBSD cp.

o Bump FreeBSD CVS IDs and manual page date
o Style(9)
o Constify
o Add SIGINFO handler (Author: mdodd, 1.40)
o Don't mmap(2) and munmap(2) zero-length files. (Author: alc, 1.42)
o Note how cp(1) handles directories ending in "/" (Author: trhodes, 1.29.2.1)
o Sync program's usage() with manpage's SYNOPSIS. (Author: ru, 1.45)
o Include <signal.h> instead of depending on namespace pollution in
  <sys/param.h>.  Include <sys/types.h> instead of of <sys/param.h>
  so that further such dependencies don't develop. (Author: bde, 1.47)

Submitted-by: Devon H. O'Dell <dodell@sitetronics.com> and
              Sarunas Vancevicius <svan@redbrick.dcu.ie>
Reviewed-by: joerg
Some-minor-changes: corecode

15 years agoRest of last commit. Define SA_LEN in one place.
Joerg Sonnenberger [Mon, 28 Feb 2005 21:40:49 +0000 (21:40 +0000)]
Rest of last commit. Define SA_LEN in one place.

15 years agoSimplify patches by defining SA_LEN in one place.
Joerg Sonnenberger [Mon, 28 Feb 2005 21:34:48 +0000 (21:34 +0000)]
Simplify patches by defining SA_LEN in one place.

client.c.patch and server.c are intentionally left as empty patches.

15 years agoDefine __DECONST here for the sake of FreeBSD.
Joerg Sonnenberger [Mon, 28 Feb 2005 20:41:15 +0000 (20:41 +0000)]
Define __DECONST here for the sake of FreeBSD.

15 years agoRearm receiver, it was lost in the conversion.
Joerg Sonnenberger [Mon, 28 Feb 2005 19:53:31 +0000 (19:53 +0000)]
Rearm receiver, it was lost in the conversion.

15 years agoMove the MALLOC_DECLARE into sys/msfbuf.h header file.
Hiten Pandya [Mon, 28 Feb 2005 19:51:57 +0000 (19:51 +0000)]
Move the MALLOC_DECLARE into sys/msfbuf.h header file.

15 years ago- Static
Liam J. Foy [Mon, 28 Feb 2005 19:42:12 +0000 (19:42 +0000)]
- Static
- Remove limits.h

15 years ago- Remove an unnecessary call to stat(). We can just use lstat before
Liam J. Foy [Mon, 28 Feb 2005 19:26:20 +0000 (19:26 +0000)]
- Remove an unnecessary call to stat(). We can just use lstat before
  checking the file. This saves calling both stat() and lstat().

15 years agoJournaling layer work. Generate output for path names, creds, and vattr,
Matthew Dillon [Mon, 28 Feb 2005 17:41:00 +0000 (17:41 +0000)]
Journaling layer work.  Generate output for path names, creds, and vattr,
for all major modifying VFS operations.  Start working on a vnode
identification and uio abstraction.

15 years agoRemove some unnecessary braces and fix a gcc 3.4 warning.
Sascha Wildner [Mon, 28 Feb 2005 17:31:22 +0000 (17:31 +0000)]
Remove some unnecessary braces and fix a gcc 3.4 warning.

Submitted by: Andreas Hauser <andy@splashground.de>

15 years agoUse u_char define from sys/types.h.
Joerg Sonnenberger [Mon, 28 Feb 2005 17:15:28 +0000 (17:15 +0000)]
Use u_char define from sys/types.h.

Suggested-by: Andreas Hauser.
15 years agoRemove extra tokens after #else and #endif.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:55:39 +0000 (16:55 +0000)]
Remove extra tokens after #else and #endif.

Submitted-by: Andreas Hauser
15 years agoRegen.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:34:34 +0000 (16:34 +0000)]
Regen.

15 years agoUpdate Atheros entries.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:33:58 +0000 (16:33 +0000)]
Update Atheros entries.

Obtained-from: OpenBSD

15 years agoMark symname const
Joerg Sonnenberger [Mon, 28 Feb 2005 16:23:55 +0000 (16:23 +0000)]
Mark symname const

15 years agolvalue casts.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:23:25 +0000 (16:23 +0000)]
lvalue casts.

15 years agoAdd some consts.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:23:00 +0000 (16:23 +0000)]
Add some consts.

15 years agolvalue casts.
Joerg Sonnenberger [Mon, 28 Feb 2005 16:18:22 +0000 (16:18 +0000)]
lvalue casts.

15 years agoRemove NO_WERROR.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:57:40 +0000 (13:57 +0000)]
Remove NO_WERROR.

15 years agoRemove pre-ANSI malloc prototype.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:57:05 +0000 (13:57 +0000)]
Remove pre-ANSI malloc prototype.

15 years agoUse __DECONST for the linted interface violations.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:14:56 +0000 (13:14 +0000)]
Use __DECONST for the linted interface violations.

15 years agoRemove -Werror from CFLAGS and fix the missing part for WARNS=6.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:14:08 +0000 (13:14 +0000)]
Remove -Werror from CFLAGS and fix the missing part for WARNS=6.

15 years agoRemove NO_WERROR assignment.
Joerg Sonnenberger [Mon, 28 Feb 2005 13:09:24 +0000 (13:09 +0000)]
Remove NO_WERROR assignment.

15 years agolvalue cast.
Joerg Sonnenberger [Mon, 28 Feb 2005 12:57:43 +0000 (12:57 +0000)]
lvalue cast.

15 years agoThe rest of the modifications that Harti made to patch-7.48.
Max Okumoto [Mon, 28 Feb 2005 12:17:37 +0000 (12:17 +0000)]
The rest of the modifications that Harti made to patch-7.48.

15 years agoMerge in some changes that Harti made to patch 7.49
Max Okumoto [Mon, 28 Feb 2005 12:00:10 +0000 (12:00 +0000)]
Merge in some changes that Harti made to patch 7.49

15 years agoClear up confusion about negative route reference counts.
Jeffrey Hsu [Mon, 28 Feb 2005 11:39:33 +0000 (11:39 +0000)]
Clear up confusion about negative route reference counts.

15 years agoStrip away convoluted route reference counting logic.
Jeffrey Hsu [Mon, 28 Feb 2005 11:31:20 +0000 (11:31 +0000)]
Strip away convoluted route reference counting logic.

15 years agoAllow the #! command line to be up to PAGE_SIZE long, rather then
Matthew Dillon [Mon, 28 Feb 2005 05:44:52 +0000 (05:44 +0000)]
Allow the #! command line to be up to PAGE_SIZE long, rather then
artificially limiting it to MAXSHELLCMDLEN.  The interpreter name is
still limited to MAXSHELLCMDLEN.

A \0 is now considered a line terminator.

Correctly report the ENAMETOOLONG case.

Note that FreeBSD (and hence DragonFly) break the #! line into multiple
argv arguments, which is not what any other UNIX does.  This is likely going
to be changed in the future but not as of this commit.

Inspired-by: Maxim Sobolev <sobomax@FreeBSD.org> / similar FreeBSD work,
and Garance A Drosihn <drosih@rpi.edu>

15 years agoFix a firewall rule ordering problem, the 'OPEN' firewall mode was
Matthew Dillon [Mon, 28 Feb 2005 01:42:57 +0000 (01:42 +0000)]
Fix a firewall rule ordering problem, the 'OPEN' firewall mode was
putting the pass-all rule too low in the list which prevented the nat
rules from working.

Fix a from/to ordering issue for the localnet deny rules.

Submitted-by: Andreas Hauser <andy@splashground.de>
15 years ago- The maximum value for a time_t is assumed to be <= INT_MAX, not >= INT_MAX
Liam J. Foy [Sun, 27 Feb 2005 15:57:15 +0000 (15:57 +0000)]
- The maximum value for a time_t is assumed to be <= INT_MAX, not >= INT_MAX
- Minor Style(9)

15 years agoGet rid off PC98 conditional code.
Jeroen Ruigrok/asmodai [Sun, 27 Feb 2005 12:44:43 +0000 (12:44 +0000)]
Get rid off PC98 conditional code.

15 years agoGet rid off PC98 conditional code.
Jeroen Ruigrok/asmodai [Sun, 27 Feb 2005 12:38:58 +0000 (12:38 +0000)]
Get rid off PC98 conditional code.

15 years agoRemove PC98 support. Leave the machdep.ispc98 sysctl in because make(1)
Sascha Wildner [Sun, 27 Feb 2005 10:57:24 +0000 (10:57 +0000)]
Remove PC98 support. Leave the machdep.ispc98 sysctl in because make(1)
wants it.

15 years agoRemove more left over files from wd(4) removal.
Sascha Wildner [Sun, 27 Feb 2005 00:24:06 +0000 (00:24 +0000)]
Remove more left over files from wd(4) removal.

15 years agoAdd signal mask save/restore to the checkpoint code. Reorder the file
Matthew Dillon [Sat, 26 Feb 2005 20:32:37 +0000 (20:32 +0000)]
Add signal mask save/restore to the checkpoint code.  Reorder the file
descriptor checkpointing code to accomodate future non-regular-file work.
Add a file descriptor type field to the structured data written out to the
checkpoint file for future use.

Submitted-by: "Kamal R. Prasad" <kamalpr@yahoo.com>
With-further-work-by: Matt Dillon
15 years agoWe already have the unit number in fl_ifname.
Joerg Sonnenberger [Sat, 26 Feb 2005 14:16:57 +0000 (14:16 +0000)]
We already have the unit number in fl_ifname.

15 years agoDon't define unit field on DragonFly.
Joerg Sonnenberger [Sat, 26 Feb 2005 14:15:36 +0000 (14:15 +0000)]
Don't define unit field on DragonFly.

15 years agoRemove last remnants of the wd(4) driver which was moved to the Attic some
Sascha Wildner [Sat, 26 Feb 2005 12:00:55 +0000 (12:00 +0000)]
Remove last remnants of the wd(4) driver which was moved to the Attic some
15 months ago. For the sake of completeness update various documents.