16 years agoUse kernel's closefrom.
Joerg Sonnenberger [Fri, 8 Apr 2005 11:26:52 +0000 (11:26 +0000)]
Use kernel's closefrom.

16 years agoAdd userland prototype for closefrom.
Joerg Sonnenberger [Fri, 8 Apr 2005 08:32:53 +0000 (08:32 +0000)]
Add userland prototype for closefrom.

16 years agoRegen.
Joerg Sonnenberger [Fri, 8 Apr 2005 08:31:45 +0000 (08:31 +0000)]

16 years agoAdd closefrom(2) syscall. It closes all file descriptors equal or greater
Joerg Sonnenberger [Fri, 8 Apr 2005 08:31:06 +0000 (08:31 +0000)]
Add closefrom(2) syscall. It closes all file descriptors equal or greater
than the given descriptor.

This function does exit and return EINTR, when necessary. Other errors from
close() are ignored.

16 years agoBump HEAD's official release #define to 130000.
Matthew Dillon [Fri, 8 Apr 2005 06:40:33 +0000 (06:40 +0000)]
Bump HEAD's official release #define to 130000.

16 years agoThe release is 1.2, bump the HEAD of the tree to 1.3 for post-release
Matthew Dillon [Fri, 8 Apr 2005 06:12:11 +0000 (06:12 +0000)]
The release is 1.2, bump the HEAD of the tree to 1.3 for post-release

16 years agoSync up to the latest installer packages (with netboot server capabilities!).
Matthew Dillon [Fri, 8 Apr 2005 04:22:28 +0000 (04:22 +0000)]
Sync up to the latest installer packages (with netboot server capabilities!).

16 years agoAdd a hardwired dhcpd.conf for the installer's netboot server support.
Matthew Dillon [Fri, 8 Apr 2005 03:25:18 +0000 (03:25 +0000)]
Add a hardwired dhcpd.conf for the installer's netboot server support.

16 years agoThe cdrom MNT_ROOTFS check was interfering with the NFS export handling,
Matthew Dillon [Fri, 8 Apr 2005 03:16:18 +0000 (03:16 +0000)]
The cdrom MNT_ROOTFS check was interfering with the NFS export handling,
preventing a system booted from CD from being able to export /.  Fixed.

16 years agoMake should set optreset to one before it calls getopt() with a new
Max Okumoto [Thu, 7 Apr 2005 07:52:32 +0000 (07:52 +0000)]
Make should set optreset to one before it calls getopt() with a new
set of args.

    o Removed unnessisary forward declaration for MainParseArgs()

    o Use optreset global variable to inform getopt() that we are
      parsing another arg list.

    o Cleanup handling of remaining arguments after getopt()
      completes parsing arguments.  There is no reason to restart
      getopt() for single dash case, just ignore it.  And update
      comment to reflect code.

    o Removed missleading comments.

16 years agoDate: 2005/04/01 16:24:25
Max Okumoto [Thu, 7 Apr 2005 07:23:03 +0000 (07:23 +0000)]
Date: 2005/04/01 16:24:25
Date: 2005/04/05 08:32:12
Date: 2005/04/05 08:40:40
Date: 2005/04/05 08:43:02
Date: 2005/04/05 08:44:11
Date: 2005/04/05 09:09:48
Date: 2005/04/05 13:33:54
Author: harti

o Use a type-safe intrusive list to put jobs on the jobs or stoppedJobs
  list instead of the generic Lst.

o The tfile field of struct Job isn't used anymore since revision
  1.22 so remove it now.

o The static tfile is used only in one single function so move it
  into that function.

o Remove unneccessary local prototypes.

o Remove the definition for STATIC and just use static.

o Remove lots if irritating parantheses and fix two comments.

o Put parantheses into 'if (foo && bar & flag)'. While they are not
  strictly needed, they are useful for the human reader.

o There is not much sense in having an else after Punt() and _exit()
  which never return. Also use pid_t for variables holding PIDs.

16 years agoFreeBSD-Date: 2005/04/01 13:35:35
Max Okumoto [Thu, 7 Apr 2005 07:16:33 +0000 (07:16 +0000)]
FreeBSD-Date: 2005/04/01 13:35:35
FreeBSD-Date: 2005/04/01 16:23:48
Author: harti

Both struct Job and struct Shell are only used inside job.c so there is
no need to have them in a header file that is included by other modules.
Move them both into the c-file.

Remove a forward declaration that isn't needed anymore.

16 years agoFreeBSD-Date: 2005/04/01 10:53:43
Max Okumoto [Thu, 7 Apr 2005 00:44:18 +0000 (00:44 +0000)]
FreeBSD-Date: 2005/04/01 10:53:43
FreeBSD-Date: 2005/04/01 11:12:29
FreeBSD-Date: 2005/04/01 11:20:17
FreeBSD-Date: 2005/04/01 12:31:15
FreeBSD-Date: 2005/04/01 12:42:03
FreeBSD-Date: 2005/04/01 13:02:17
FreeBSD-Date: 2005/04/01 13:06:05
FreeBSD-Date: 2005/04/01 13:25:45
Author: harti

Style: fix indentation

16 years agoFreeBSD-Date: 2005/03/31 11:35:56
Max Okumoto [Thu, 7 Apr 2005 00:37:31 +0000 (00:37 +0000)]
FreeBSD-Date: 2005/03/31 11:35:56
FreeBSD-Date: 2005/03/31 11:40:53
Author: harti

Almost complete rewrite of the archive code (except for the Makefile parsing
part). Archive handling was broken at least since the move from BSD ar/ranlib
to GNU binutils because of the different archive format. This rewrite fixes
this by making make to carry around the defines for all formats (it supports)
so it can support all of them independent of the actually used one. The
supported formats are: traditional BSD (this seems to come from V7 at least,
short names only and __.SYMDEF), BSD4.4 (long names with #1/ and __.SYMDEF)
and SysV (extra name table and //). The only format not supported are broken
traditional archives where the member names are truncated to 15 characters.

Errors in the archive are not ignored anymore, but cause make to stop with
an error message. The command line option -A causes these errors to become
non-fatal. This is almost compatible with previous usage except for the
error message printed in any case.

Use a type-safe intrusive list for the archive cache.

Document the new -A flag for ignoring archive errors.

Reviewed by:    Max Okumoto <okumoto@ucsd.edu> (without new error handling)

16 years agoAdd compat code so code that uses types defined by c99
Max Okumoto [Thu, 7 Apr 2005 00:35:33 +0000 (00:35 +0000)]
Add compat code so code that uses types defined by c99
can compile on FreeBSD 4.X.

Harti has started using them in the FreeBSD code base.

16 years agoadd ports/polish
Matthew Dillon [Wed, 6 Apr 2005 22:40:30 +0000 (22:40 +0000)]
add ports/polish

16 years agoUpdate the various DragonFly supfiles, rename some of them to make their
Matthew Dillon [Wed, 6 Apr 2005 20:52:55 +0000 (20:52 +0000)]
Update the various DragonFly supfiles, rename some of them to make their
function more obvious.  Note the stable->preview label change.

16 years agoInclude fsid information in the mount point dump.
Matthew Dillon [Wed, 6 Apr 2005 18:40:25 +0000 (18:40 +0000)]
Include fsid information in the mount point dump.

16 years agoCorrect an NFS bug related to ftruncate() operations. When the client
Matthew Dillon [Wed, 6 Apr 2005 18:39:53 +0000 (18:39 +0000)]
Correct an NFS bug related to ftruncate() operations.  When the client
truncates a file it has to do a lot of magic on the buffer cache to scrap
buffers beyond the new EOF and properly handle the buffer that straddles
the truncation point.  To ease the job the NFS client performs a flush.

This creates a problem, however, because the server includes attribute
information in its RPC replies (for NFSv3) which is then cached by the
client via nfs_loadattrcache().  This information is used by the client
to detect races with other entities modifying the same file but it creates
confusion when the client is in the middle of trying to do an ftruncate(),
especially if some of the buffer flushes prior to the truncate extend the
file.  The server will report file sizes that don't match either the 'before'
or 'after' information that the client has.

To deal with this situation we have to check for mismatches after we flush
and loop if we find any, prior to issuing the setattrrpc().   Such mismatches
are virtually guarenteed to occur even with just a single NFS client working
the file.  We also do a sanity check after issuing the stattrrpc().  This
second sanity check will only be triggered if our NFS client is racing
another client on the same file.

It's quite possible that there are still client-side bugs related to this
issue even with this commit.

Reported-by: Andreas Hauser <andy@splashground.de>
16 years agolibstand is used by the boot loader, make sure the stack protector is
Matthew Dillon [Wed, 6 Apr 2005 03:36:27 +0000 (03:36 +0000)]
libstand is used by the boot loader, make sure the stack protector is
turned off.

16 years agoBring in long-forgotten man pages for ACPI components currently available
YONETANI Tomokazu [Wed, 6 Apr 2005 03:25:46 +0000 (03:25 +0000)]
Bring in long-forgotten man pages for ACPI components currently available
on DragonFly.

Requested-By: Erik Wikström <erik-wikstrom [a] telia.com> and others
Acquired-from: FreeBSD
(acpi.4,v 1.50 acpi_thermal.4,v 1.6 acpi_toshiba.4,v 1.5)

16 years agoRemove unused strong reference.
David Xu [Tue, 5 Apr 2005 23:04:22 +0000 (23:04 +0000)]
Remove unused strong reference.

16 years agoAdd some minor in-code documentation.
Matthew Dillon [Tue, 5 Apr 2005 22:37:37 +0000 (22:37 +0000)]
Add some minor in-code documentation.

16 years agoAdd cases for the nvidia nForce3 PRO and PRO S1. Who knows how well it
Matthew Dillon [Tue, 5 Apr 2005 22:37:16 +0000 (22:37 +0000)]
Add cases for the nvidia nForce3 PRO and PRO S1.  Who knows how well it
actually works.

16 years agoMake sure neither the boot loader nor the kernel is compiled with the
Matthew Dillon [Tue, 5 Apr 2005 22:36:33 +0000 (22:36 +0000)]
Make sure neither the boot loader nor the kernel is compiled with the
stack protector.

16 years agoAutomatically calculate the kernel revision for release tags by extracting
Matthew Dillon [Tue, 5 Apr 2005 21:41:19 +0000 (21:41 +0000)]
Automatically calculate the kernel revision for release tags by extracting
the revision from the tag itself.  Remove any DragonFly_ prefix or _Slip
suffix from the branch name.  This will allow us to create a slip tag that
synchronizes the sources with the automated subversion increment.  This also
reduces the work required to create a new, properly identified branch.

Automatically postpend a subversion from /usr/src/sys/conf/subvers-TAG, on
release builds only, where TAG is in the form RELEASE_X_Y.

16 years agoAdd nv(4) man page.
Joerg Sonnenberger [Tue, 5 Apr 2005 17:39:22 +0000 (17:39 +0000)]
Add nv(4) man page.

16 years agoDon't reset getopt after each loop, we don't use the argc / argv
Joerg Sonnenberger [Tue, 5 Apr 2005 09:04:49 +0000 (09:04 +0000)]
Don't reset getopt after each loop, we don't use the argc / argv
and all options have options. This should in fact use either
getopt_long_only or a direct matching, getopt(3) is abusive.
The adjustion of argc / argv is there to match common
behaviour, it gets optimizes away by the compiler.

16 years agoRevamp getopt(3) usage:
Joerg Sonnenberger [Tue, 5 Apr 2005 08:19:35 +0000 (08:19 +0000)]
Revamp getopt(3) usage:
- don't depend on optind=0, it's absolutely not necessary
- set optreset to restart getopt(3)

16 years agoSince optind=0 has a special meaning for GNU getopt compatibility,
Joerg Sonnenberger [Tue, 5 Apr 2005 07:55:02 +0000 (07:55 +0000)]
Since optind=0 has a special meaning for GNU getopt compatibility,
always use optind=1 and increment argc / decrement argv beforehand.

16 years agoApply same bug fix as last commit to IPV6.
Matthew Dillon [Tue, 5 Apr 2005 07:08:52 +0000 (07:08 +0000)]
Apply same bug fix as last commit to IPV6.

Reported-by: Jeffrey Hsu
16 years agoFix a bug in the distributed PCB wildcardhash code for TCP. For the SMP
Matthew Dillon [Tue, 5 Apr 2005 05:43:05 +0000 (05:43 +0000)]
Fix a bug in the distributed PCB wildcardhash code for TCP.   For the SMP
case both the INP_WILDCARD and INP_WILDCARD_MP flags must be set.  The
insertion code was calling in_pcbinswildcardhash_oncpu() instead of
in_pcbinswildcardhash() for the current-cpu case, which leaves the
INP_WILDCARD flag unset.  The wildcard deletion code calls various
oncpu routines which remove the wildcard from the other cpu's hash
tables, then finally calls in_pcbdetach()->in_pcbremlist() on the
originating cpu but this fails to delete the inp because INP_WILDCARD
was not set.

This bug caused the TCP stack to get seriously confused because wildcard
entries with stale inp pointers wind up being left in the hash table.
The bug causes a mix of ignored connection requests (not even an RST),
refused connection requests, successful connection requests, and crashes.

Reported-by: Peter Avalos <pavalos@theshell.com>
16 years agoA program which dumps the wildcard hash table for the TCP protocol for
Matthew Dillon [Tue, 5 Apr 2005 02:49:15 +0000 (02:49 +0000)]
A program which dumps the wildcard hash table for the TCP protocol for
all CPUs.

16 years agoAdd the 'webstress' utility. This program will fork a number of child
Matthew Dillon [Tue, 5 Apr 2005 00:13:20 +0000 (00:13 +0000)]
Add the 'webstress' utility.  This program will fork a number of child
processes and take a series of URLs on the command line or from a file.
Each child will then run through the list continuously.  Various options
may be specified to tune the test.

16 years agoSync nv(4) with nvnet-src-20050312.
Joerg Sonnenberger [Mon, 4 Apr 2005 18:45:07 +0000 (18:45 +0000)]
Sync nv(4) with nvnet-src-20050312.

16 years agoReplace TIMER_USE_1 kernel option with hw.i8254.walltimer tunable.
Joerg Sonnenberger [Mon, 4 Apr 2005 17:49:09 +0000 (17:49 +0000)]
Replace TIMER_USE_1 kernel option with hw.i8254.walltimer tunable.

16 years agoWARNS?=6 cleanup for fstat.
Matthew Dillon [Mon, 4 Apr 2005 17:42:51 +0000 (17:42 +0000)]
WARNS?=6 cleanup for fstat.

Submitted-by: Jonas Trollvik <jontro@gmail.com>
16 years agoWhen ALTQ was detached from an interface queue, the function pointers
Joerg Sonnenberger [Mon, 4 Apr 2005 17:08:16 +0000 (17:08 +0000)]
When ALTQ was detached from an interface queue, the function pointers
for enqueue, dequeue and request ops where reset to NULL. That was fine
in the old days when ifq_* checked wether ALTQ is enabled and fell back
to the classic implementation, but now it just deferences a NULL pointer.
Introduce a new function ifq_set_classic, which resets the pointers to
the same values if_attach initially uses and which implements the
classic BSD queueing. Use this in altq_detach and if_attach.

Reported-by: Stefan Krüger <skrueger@meinberlikomm.de>
16 years agoAdd a macro to print the list of current processes independ of wait state.
Joerg Sonnenberger [Mon, 4 Apr 2005 14:19:10 +0000 (14:19 +0000)]
Add a macro to print the list of current processes independ of wait state.

16 years ago- WARNS -> WARNS?
Liam J. Foy [Mon, 4 Apr 2005 10:41:11 +0000 (10:41 +0000)]

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

16 years agoKKASERT -> KKASSERT
Sascha Wildner [Sun, 3 Apr 2005 19:50:39 +0000 (19:50 +0000)]

16 years agoRemove newline so that it looks nice in Postscript, too.
Sascha Wildner [Sun, 3 Apr 2005 19:31:33 +0000 (19:31 +0000)]
Remove newline so that it looks nice in Postscript, too.

16 years agoWARNS=6
Joerg Sonnenberger [Sun, 3 Apr 2005 18:59:24 +0000 (18:59 +0000)]

16 years agoRemove pre-FreeBSD 3 compat conditionals.
Joerg Sonnenberger [Sun, 3 Apr 2005 18:53:09 +0000 (18:53 +0000)]
Remove pre-FreeBSD 3 compat conditionals.

16 years agoconst changes.
Joerg Sonnenberger [Sun, 3 Apr 2005 17:13:08 +0000 (17:13 +0000)]
const changes.

16 years agoWARNS=6.
Joerg Sonnenberger [Sun, 3 Apr 2005 15:52:40 +0000 (15:52 +0000)]

16 years agoWARNS=6.
Joerg Sonnenberger [Sun, 3 Apr 2005 15:46:43 +0000 (15:46 +0000)]

16 years agoA cache invalidation race that generates a warning was not properly
Matthew Dillon [Sun, 3 Apr 2005 01:59:10 +0000 (01:59 +0000)]
A cache invalidation race that generates a warning was not properly
undoing the namecache state in the loop, leading to a crash.

Reported-by: =?ISO-8859-2?Q?Toma=BE_Bor=B9tnar?= <tomaz.borstnar@over.net>
16 years agoBring in some work from FreeBSD:
Matthew Dillon [Sat, 2 Apr 2005 22:25:32 +0000 (22:25 +0000)]
Bring in some work from FreeBSD:


    do not dump core in -W if dumpdates was not readable and
    ddatev == NULL; remove unused ddates_in.


    Files in subdirectories of directories that have the
    nodump flag set are sometimes incorrectly being dumped.

    Correct a problem with propagation of the nodump flag
    on directories that are larger than one block in size.

Submitted-by: Sepherosa Ziehau <sepherosa@softhome.net>
Taken-from: FreeBSD

16 years agoWARNS=6 cleanup.
Matthew Dillon [Sat, 2 Apr 2005 22:15:20 +0000 (22:15 +0000)]
WARNS=6 cleanup.

Submitted-by: Sepherosa Ziehau <sepherosa@softhome.net>
With-some-modification-by: Matt Dillon
16 years agoWARNS=6 cleanup.
Matthew Dillon [Sat, 2 Apr 2005 22:00:18 +0000 (22:00 +0000)]
WARNS=6 cleanup.

Submitted-by: Peter Schuller <peter.schuller@infidyne.com>
16 years agoWARNS cleanup of array initializer.
Matthew Dillon [Sat, 2 Apr 2005 21:54:33 +0000 (21:54 +0000)]
WARNS cleanup of array initializer.

16 years agoGeneral WARNS cleanups: staticize functions. Adjust strdup()
Matthew Dillon [Sat, 2 Apr 2005 21:46:16 +0000 (21:46 +0000)]
General WARNS cleanups: staticize functions.  Adjust strdup()
calls to check for allocation failures.

Submitted-by: Peter Schuller <peter.schuller@infidyne.com>
16 years agoWARNS=6 cleanup.
Matthew Dillon [Sat, 2 Apr 2005 21:43:15 +0000 (21:43 +0000)]
WARNS=6 cleanup.

Submitted-by: Peter Schuller <peter.schuller@infidyne.com>
16 years agoWARNS=6.
Joerg Sonnenberger [Sat, 2 Apr 2005 20:49:56 +0000 (20:49 +0000)]

16 years agoSplit pcm into the generic framework (pcm) and the sound cards (snd).
Joerg Sonnenberger [Sat, 2 Apr 2005 20:00:40 +0000 (20:00 +0000)]
Split pcm into the generic framework (pcm) and the sound cards (snd).
Add support for choosing single devices by the same name as the corresponding

E.g. device snd_ich gives the AC97 support, device "snd_sb8" gives the
SoundBlaster 8 support.

16 years agoRemove VoxWare related entries, don't list drivers support by NEWPCM.
Joerg Sonnenberger [Sat, 2 Apr 2005 19:54:29 +0000 (19:54 +0000)]
Remove VoxWare related entries, don't list drivers support by NEWPCM.
Just call the section "Sound drivers". Give the example for PNP first,
it is much more common know.

16 years agoRemove reminders of VoxWare.
Joerg Sonnenberger [Sat, 2 Apr 2005 19:52:18 +0000 (19:52 +0000)]
Remove reminders of VoxWare.

16 years agoThe vnode recycler was not handling a hardlinking case that is capable
Matthew Dillon [Sat, 2 Apr 2005 19:42:17 +0000 (19:42 +0000)]
The vnode recycler was not handling a hardlinking case that is capable
of tying up a large number of vnodes and namecache records in the directory
topology.   Extracting a large CVS repository, where the 'CVS/Root'
file is massively hardlinked, can result in the vnode recycler failing.

Reported-by: Mike Moore <sansapparel@gmail.com>
16 years ago- Clearly state that errno is set
Liam J. Foy [Sat, 2 Apr 2005 16:22:41 +0000 (16:22 +0000)]
- Clearly state that errno is set

Ok: joerg@, hsu@

16 years ago- Cosmetic
Liam J. Foy [Sat, 2 Apr 2005 16:04:41 +0000 (16:04 +0000)]
- Cosmetic

16 years agoMove the processing of flags out of the loop. The exception is M_WAITOK,
Joerg Sonnenberger [Sat, 2 Apr 2005 15:58:16 +0000 (15:58 +0000)]
Move the processing of flags out of the loop. The exception is M_WAITOK,
which decides wether VM_ALLOC_NORMAL is used or not. This gets cleared
or set each time.

16 years agoMove the processing of malloc flags out of the loop. The exception
Joerg Sonnenberger [Sat, 2 Apr 2005 15:53:56 +0000 (15:53 +0000)]
Move the processing of malloc flags out of the loop. The exception
is the M_WAITOK, since the interpretation changing when the current
thread is preempting or not.  This can change with the second run of
the loop, so evaluate it each time.

16 years ago- warn() -> warnx(). The global variable errno will not be set.
Liam J. Foy [Fri, 1 Apr 2005 21:35:10 +0000 (21:35 +0000)]
- warn() -> warnx(). The global variable errno will not be set.

16 years agoMove unused version into Attic. Remove DragonFly_Stable tag afterwards.
YONETANI Tomokazu [Fri, 1 Apr 2005 02:09:24 +0000 (02:09 +0000)]
Move unused version into Attic. Remove DragonFly_Stable tag afterwards.

16 years agoFreeBSD-Date: 2005/03/31 11:12:45
Max Okumoto [Fri, 1 Apr 2005 01:15:20 +0000 (01:15 +0000)]
FreeBSD-Date: 2005/03/31 11:12:45
Author: harti

Move the MAX macro to a util.h so it becomes usable in other modules.

Suggested by:   Max Okumoto <okumoto@ucsd.edu>

16 years agoDate: 2005/03/30 15:18:58
Max Okumoto [Fri, 1 Apr 2005 01:12:55 +0000 (01:12 +0000)]
Date: 2005/03/30 15:18:58
Author: harti

Make the structure for handling the input stack local to the parse
module. The only module accessing it (the current line number) was the
condition module, so pass the current line number as a function argument.
Centralize the pushing of new input sources into one function
ParsePushInput() and rename the function handling the popping from ParseEOF()
to ParsePopInput(). Make the entire thing a little bit clearer, by holding
the current input source in the top element of the stack instead of
using extra variables for this. Use a type-safe intrusive list for the
input stack.

16 years agoFreeBSD-Date: 2005/03/23 16:28:57
Max Okumoto [Fri, 1 Apr 2005 00:48:59 +0000 (00:48 +0000)]
FreeBSD-Date: 2005/03/23 16:28:57
Author: harti

Style: de-lispify by removing extra parantheses in conditional expressions.

16 years agoThe previous patch had conflicts with our version. This one
Max Okumoto [Fri, 1 Apr 2005 00:32:03 +0000 (00:32 +0000)]
The previous patch had conflicts with our version. This one
handles the stuff we had to do by hand.

Style: make indentation 8 characters.

16 years agoFreeBSD-Date: 2005/03/23 16:14:41
Max Okumoto [Thu, 31 Mar 2005 23:47:02 +0000 (23:47 +0000)]
FreeBSD-Date: 2005/03/23 16:14:41
Author: harti

Style: make indentation 8 characters.

16 years agoReduce white space diffs between FreeBSD.
Max Okumoto [Thu, 31 Mar 2005 23:39:04 +0000 (23:39 +0000)]
Reduce white space diffs between FreeBSD.

16 years agoFreeBSD-Date: 2005/03/23 12:56:15
Max Okumoto [Thu, 31 Mar 2005 22:16:35 +0000 (22:16 +0000)]
FreeBSD-Date: 2005/03/23 12:56:15
Author: harti

Make paths an explicite datatype instead of using the generic Lst.
A Path is now a TAILQ of PathElements each of which just points to
a reference counted directory. Rename all functions dealing with Paths
from the Dir_ prefix to a Path_ prefix.

16 years agoFreeBSD-Date: 2005/03/22 12:59:02
Max Okumoto [Thu, 31 Mar 2005 22:10:02 +0000 (22:10 +0000)]
FreeBSD-Date: 2005/03/22 12:59:02
Author: harti

Style: <space><tab> -> <tab>

16 years agoFreeBSD-Date: 2005/03/22 12:54:46
Max Okumoto [Thu, 31 Mar 2005 22:07:21 +0000 (22:07 +0000)]
FreeBSD-Date: 2005/03/22 12:54:46
Author: harti

Rename struct Path to struct Dir and move it into the C-file. It
is not used outside.

16 years agoFreeBSD-Date: 2005/03/22 12:40:24
Max Okumoto [Thu, 31 Mar 2005 21:48:32 +0000 (21:48 +0000)]
FreeBSD-Date: 2005/03/22 12:40:24
FreeBSD-Date: 2005/03/22 12:52:00

Author: harti

Remove Lst_Find() and Lst_FindFrom() now that they aren't needed anymore.

16 years agoFreeBSD-Date: 2005/03/21 11:44:57
Max Okumoto [Thu, 31 Mar 2005 21:47:19 +0000 (21:47 +0000)]
FreeBSD-Date: 2005/03/21 11:44:57
Author: harti

Replace calls to Lst_Find with either appropriate LST_FOREACH macros
plus predicate inlining or a special purpose function with takes
and returns the correct types.

16 years agoFreeBSD-Date: 2005/03/22 12:38:55
Max Okumoto [Thu, 31 Mar 2005 20:39:44 +0000 (20:39 +0000)]
FreeBSD-Date: 2005/03/22 12:38:55
Author: harti

Remove the last two instances of Lst_Find() calls.

16 years agoMove the setting of sopt->sopt_dir down into the lower level sogetopt()
Matthew Dillon [Thu, 31 Mar 2005 19:28:57 +0000 (19:28 +0000)]
Move the setting of sopt->sopt_dir down into the lower level sogetopt()
and sosetopt() procedures.  NFS was calling the low level procedures without
setting sopt_dir which prevented TCP_NODELAY from being set for NFS TCP
mounts, resulting in poor performance.

16 years agofix bug that creeped in in last commit
Simon Schubert [Thu, 31 Mar 2005 16:11:13 +0000 (16:11 +0000)]
fix bug that creeped in in last commit

Noticed-by: Andrew Atrens <atrens at nortelnetworks.com>
16 years agoBack out part of last commit, optind has to be initialised to 1.
Joerg Sonnenberger [Thu, 31 Mar 2005 16:01:15 +0000 (16:01 +0000)]
Back out part of last commit, optind has to be initialised to 1.

16 years agoMake it O(strlen(s) + strlen(charset)) like strcspn.
Joerg Sonnenberger [Thu, 31 Mar 2005 13:17:22 +0000 (13:17 +0000)]
Make it O(strlen(s) + strlen(charset)) like strcspn.

Submitted-by: Andreas Hauser <andy-dragonfly@splashground.de>
16 years agoFix non-BPF declaration of bpf_ptap, it was out-of-sync with the header.
Joerg Sonnenberger [Thu, 31 Mar 2005 12:31:31 +0000 (12:31 +0000)]
Fix non-BPF declaration of bpf_ptap, it was out-of-sync with the header.

Reported-by: tcslv@cox.net
16 years agoA kludge to always give the driver a second chance to attach the cbb device.
Jeffrey Hsu [Thu, 31 Mar 2005 05:43:34 +0000 (05:43 +0000)]
A kludge to always give the driver a second chance to attach the cbb device.

Similar to the following part of FreeBSD rev 1.66 by imp:
  o Remove bogus checks when reallocating memory for the registers.  They
    weren't needed and turned out to be completely bogus.

  This lets me load/unload pccard with a pccard in a slot and have the
  child correctly detach/attach.  This should help people that have wi
  in their kernel, but that kldload cbb and pccard, for example.

16 years agoFix typo.
Sascha Wildner [Wed, 30 Mar 2005 04:29:32 +0000 (04:29 +0000)]
Fix typo.

16 years agoDeclare prototypes for all functions.
Joerg Sonnenberger [Wed, 30 Mar 2005 00:56:02 +0000 (00:56 +0000)]
Declare prototypes for all functions.

16 years agoconst correctness
Joerg Sonnenberger [Wed, 30 Mar 2005 00:53:59 +0000 (00:53 +0000)]
const correctness

16 years agoAvoid discarding constness.
Joerg Sonnenberger [Wed, 30 Mar 2005 00:53:14 +0000 (00:53 +0000)]
Avoid discarding constness.

16 years agoRemove extern for functions, line up function names, remove option names.
Joerg Sonnenberger [Wed, 30 Mar 2005 00:49:06 +0000 (00:49 +0000)]
Remove extern for functions, line up function names, remove option names.
Move _GLOBAL_OFFSET_TABLE define up to the other global variables.

16 years agoRemove tcb_size and flag argument for _rtld_allocate_tls,
Joerg Sonnenberger [Tue, 29 Mar 2005 23:04:36 +0000 (23:04 +0000)]
Remove tcb_size and flag argument for _rtld_allocate_tls,
remove tcb_size argument for _rtld_free_tls. The size is defined
by the architecture's struct tls_tcb layout and the behaviour
of RTLD_ALLOC_TLS_FREE_OLD is the only possible reaction for
old_tcb != NULL which doesn't leak memory.

16 years agoFixed a bug that broke building docs on FreeBSD. The mistake was
Max Okumoto [Tue, 29 Mar 2005 22:19:25 +0000 (22:19 +0000)]
Fixed a bug that broke building docs on FreeBSD.  The mistake was
that ParseModifier() consumes characters so it can not be moved
below the following tests.

16 years agoFix warnings, use ISO prototype.
Joerg Sonnenberger [Tue, 29 Mar 2005 20:05:02 +0000 (20:05 +0000)]
Fix warnings, use ISO prototype.

16 years agoGNU getopt resets itself partially when the application sets optind to 0.
Joerg Sonnenberger [Tue, 29 Mar 2005 20:03:06 +0000 (20:03 +0000)]
GNU getopt resets itself partially when the application sets optind to 0.
A good example in our tree is CVS. Copy this behaviour and put optind into

16 years agoNew strcspn implementation, which is O(strln(str) + strlen(chars))
Joerg Sonnenberger [Tue, 29 Mar 2005 19:36:39 +0000 (19:36 +0000)]
New strcspn implementation, which is O(strln(str) + strlen(chars))
and not O(strlen(str) * strlen(chars)) as before.

Submitted-by: Andreas Hauser <andy-dragonfly@splashground.de>
16 years agoCleanup the TLS implementation:
Joerg Sonnenberger [Tue, 29 Mar 2005 19:26:20 +0000 (19:26 +0000)]
Cleanup the TLS implementation:
- Define the TCB layout in machine/tls.h, define wether tcb_self exists or
- Define the layout of the DTV, not used yet.
- Define the TLS variant
- Define common access functions (tls_get_tcb, tls_get_curthread, tls_set_tcb)
  and the RTLD functions.

16 years agoMerge from vendor branch HEIMDAL:
David Rhodus [Tue, 29 Mar 2005 03:51:01 +0000 (03:51 +0000)]
Merge from vendor branch HEIMDAL:
Remove the telnet program from the heimdal source as it contains
security problems.  It was not connected to the build and wasn't
being utilized anyway.

16 years agoRemove the telnet program from the heimdal source as it contains
David Rhodus [Tue, 29 Mar 2005 03:51:01 +0000 (03:51 +0000)]
Remove the telnet program from the heimdal source as it contains
security problems.  It was not connected to the build and wasn't
being utilized anyway.

16 years agoRemove the telnet program from the heimdal source as it contains vendor/HEIMDAL
David Rhodus [Tue, 29 Mar 2005 03:51:01 +0000 (03:51 +0000)]
Remove the telnet program from the heimdal source as it contains
security problems.  It was not connected to the build and wasn't
being utilized anyway.

16 years agoRemove some uses of the SCARG macro.
David Rhodus [Tue, 29 Mar 2005 00:35:55 +0000 (00:35 +0000)]
Remove some uses of the SCARG macro.

16 years agoRemove PC98 keymaps.
Sascha Wildner [Mon, 28 Mar 2005 23:06:47 +0000 (23:06 +0000)]
Remove PC98 keymaps.

16 years agoGive syscons its own malloc_type and remove some unnecessary casts.
Sascha Wildner [Mon, 28 Mar 2005 21:30:23 +0000 (21:30 +0000)]
Give syscons its own malloc_type and remove some unnecessary casts.

Suggested and submitted by: Andreas Hauser <andy@splashground.de>