]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoThis commit was generated by cvs2svn to compensate for changes in r104754,
kan [Thu, 10 Oct 2002 04:40:44 +0000 (04:40 +0000)]
This commit was generated by cvs2svn to compensate for changes in r104754,
which included commits to RCS files with non-trunk default branches.

21 years agoGcc 3.2.1-prerelease C++ support bits from the FSF anoncvs repo gcc-3_2-branch on...
kan [Thu, 10 Oct 2002 04:40:44 +0000 (04:40 +0000)]
Gcc 3.2.1-prerelease C++ support bits from the FSF anoncvs repo gcc-3_2-branch on October 9th 2002 20:15 EST.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r104752,
kan [Thu, 10 Oct 2002 04:40:18 +0000 (04:40 +0000)]
This commit was generated by cvs2svn to compensate for changes in r104752,
which included commits to RCS files with non-trunk default branches.

21 years agoGcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on October 9th 2002...
kan [Thu, 10 Oct 2002 04:40:18 +0000 (04:40 +0000)]
Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on October 9th 2002 20:15 EST.

21 years agoAdd cross-references to wide character versions of these functions.
tjr [Thu, 10 Oct 2002 04:31:57 +0000 (04:31 +0000)]
Add cross-references to wide character versions of these functions.

21 years agoCross-reference between byte and wide-character stdio functions. Remove
tjr [Thu, 10 Oct 2002 04:12:40 +0000 (04:12 +0000)]
Cross-reference between byte and wide-character stdio functions. Remove
references to fputwc() and fgetwc() being macros while I'm at it.

21 years agoRegen from syntax fix to syscalls.master.
rwatson [Thu, 10 Oct 2002 04:08:12 +0000 (04:08 +0000)]
Regen from syntax fix to syscalls.master.

21 years agoRegen from syntax fix to syscalls.master.
rwatson [Thu, 10 Oct 2002 04:08:11 +0000 (04:08 +0000)]
Regen from syntax fix to syscalls.master.

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:

21 years agoFix what looks like a merge-o from a conflict in the last commit to
rwatson [Thu, 10 Oct 2002 04:02:49 +0000 (04:02 +0000)]
Fix what looks like a merge-o from a conflict in the last commit to
syscalls.master.

21 years agogeom_mbr.c and geom_bsd.c would be kinda useful here too, at least
peter [Thu, 10 Oct 2002 00:58:23 +0000 (00:58 +0000)]
geom_mbr.c and geom_bsd.c would be kinda useful here too, at least
for a while.

21 years agoWhen verifying a superblock, the lower bound on block size is MINBSIZE
mckusick [Thu, 10 Oct 2002 00:50:56 +0000 (00:50 +0000)]
When verifying a superblock, the lower bound on block size is MINBSIZE
(4096), not SBLOCKSIZE (8192).

Submitted by: Tor.Egge@cvsup.no.freebsd.org
Sponsored by: DARPA & NAI Labs.

21 years agode-__P()
alfred [Thu, 10 Oct 2002 00:32:55 +0000 (00:32 +0000)]
de-__P()

21 years agoExplore new heights in alphabetization for _file and _fd variations on
rwatson [Thu, 10 Oct 2002 00:32:08 +0000 (00:32 +0000)]
Explore new heights in alphabetization for _file and _fd variations on
the extended attribute system calls.

21 years agode-__P()
alfred [Wed, 9 Oct 2002 23:22:11 +0000 (23:22 +0000)]
de-__P()

21 years agore-regen. Sigh.
peter [Wed, 9 Oct 2002 22:40:41 +0000 (22:40 +0000)]
re-regen.  Sigh.

21 years agoSigh. Fix fat-fingering of diff. I knew this was going to happen.
peter [Wed, 9 Oct 2002 22:40:02 +0000 (22:40 +0000)]
Sigh. Fix fat-fingering of diff.  I knew this was going to happen.

21 years agoregenerate. sendfile stuff and other recently picked up stubs.
peter [Wed, 9 Oct 2002 22:28:48 +0000 (22:28 +0000)]
regenerate.  sendfile stuff and other recently picked up stubs.

21 years agoTry and deal with the #ifdef COMPAT_FREEBSD4 sendfile stuff. This would
peter [Wed, 9 Oct 2002 22:27:24 +0000 (22:27 +0000)]
Try and deal with the #ifdef COMPAT_FREEBSD4 sendfile stuff.  This would
have been a lot easier if do_sendfile() was usable externally.

21 years agoAdd brief mention of the extattr_*_link() system call variants.
rwatson [Wed, 9 Oct 2002 22:26:48 +0000 (22:26 +0000)]
Add brief mention of the extattr_*_link() system call variants.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoTry and patch up some tab-to-space spammage.
peter [Wed, 9 Oct 2002 22:14:35 +0000 (22:14 +0000)]
Try and patch up some tab-to-space spammage.

21 years agoAdd placeholder stubs for nsendfile, mac_syscall, ksem_close, ksem_post,
peter [Wed, 9 Oct 2002 22:10:23 +0000 (22:10 +0000)]
Add placeholder stubs for nsendfile, mac_syscall, ksem_close, ksem_post,
ksem_wait, ksem_trywait, ksem_init, ksem_open, ksem_unlink, ksem_getvalue,
ksem_destroy, __mac_get_pid, __mac_get_link, __mac_set_link,
extattr_set_link, extattr_get_link, extattr_delete_link.

21 years agoAdd a pointer to the alternate syscall tables on 64 bit platforms.
peter [Wed, 9 Oct 2002 22:04:09 +0000 (22:04 +0000)]
Add a pointer to the alternate syscall tables on 64 bit platforms.

21 years agoPrototypes for new link extended attribute calls. Sync to MAC tree.
rwatson [Wed, 9 Oct 2002 21:48:57 +0000 (21:48 +0000)]
Prototypes for new link extended attribute calls.  Sync to MAC tree.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoImplement extattr_{delete,get,set}_link() system calls: extended attribute
rwatson [Wed, 9 Oct 2002 21:48:22 +0000 (21:48 +0000)]
Implement extattr_{delete,get,set}_link() system calls: extended attribute
operations that do not follow links.  Sync to MAC tree.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRegen.
rwatson [Wed, 9 Oct 2002 21:47:29 +0000 (21:47 +0000)]
Regen.

21 years agoFlesh out the extattr_{delete,get,set}_link() system calls: variations
rwatson [Wed, 9 Oct 2002 21:47:04 +0000 (21:47 +0000)]
Flesh out the extattr_{delete,get,set}_link() system calls: variations
on the _file() theme that do not follow symlinks.  Sync to MAC tree.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoChange x_fmt to %Y-%m-%d
ache [Wed, 9 Oct 2002 21:02:43 +0000 (21:02 +0000)]
Change x_fmt to %Y-%m-%d

PR: 41043
Submitted by: Henrik Tunedal <henrik@tunedal.nu>

21 years agoLast commit was slightly hasty: #include <string.h> is required on
fanf [Wed, 9 Oct 2002 20:42:40 +0000 (20:42 +0000)]
Last commit was slightly hasty: #include <string.h> is required on
-CURRENT to be WARNS-safe (but not -STABLE for some reason)

21 years agoUse d_thread_t for cdevsw functions instead of struct thread * so that it
jhb [Wed, 9 Oct 2002 20:39:26 +0000 (20:39 +0000)]
Use d_thread_t for cdevsw functions instead of struct thread * so that it
is easier to share this code with 4-stable.

21 years agoInclude <dev/acpica/acpivar.h> instead of <acpica/acpivar.h> like all the
jhb [Wed, 9 Oct 2002 20:38:21 +0000 (20:38 +0000)]
Include <dev/acpica/acpivar.h> instead of <acpica/acpivar.h> like all the
other sys/dev/acpica files.

21 years agoKill obsolete #include <memory.h> which I didn't spot earlier because
fanf [Wed, 9 Oct 2002 20:30:57 +0000 (20:30 +0000)]
Kill obsolete #include <memory.h> which I didn't spot earlier because
it's still in the NetBSD version.

21 years ago<machine/atomic.h> requires <sys/types.h>.
ru [Wed, 9 Oct 2002 20:20:43 +0000 (20:20 +0000)]
<machine/atomic.h> requires <sys/types.h>.

Reviewed by: jake, mike

21 years agoMdocify and fix a load of errors dating back to the dawn of time.
fanf [Wed, 9 Oct 2002 20:00:25 +0000 (20:00 +0000)]
Mdocify and fix a load of errors dating back to the dawn of time.
Don't mention hard limits for factor(6) since it now has bignum support.

Obtained from: NetBSD (mdoc only -- their man page is still mostly wrong)

21 years agoFactorize bignums using the Pollard Rho algorithm. The code comes
fanf [Wed, 9 Oct 2002 19:55:04 +0000 (19:55 +0000)]
Factorize bignums using the Pollard Rho algorithm. The code comes
from NetBSD, altered to retain the FreeBSD -h feature and various
stylistic improvements and avoid regressions. In the absence of
OpenSSL (and therefore bignums) the old code is used.

PR: 43831
Reviewed by: kris, markm, obrien
Obtained from: NetBSD
MFC after: 2 weeks

21 years agoUse __packed.
jhb [Wed, 9 Oct 2002 19:46:09 +0000 (19:46 +0000)]
Use __packed.

21 years agoStyle fixes to: #include ordering; use const and static; ANSI functions;
fanf [Wed, 9 Oct 2002 19:38:55 +0000 (19:38 +0000)]
Style fixes to: #include ordering; use const and static; ANSI functions;
various usage synopses; bogus and/or unnecessary casting; exit values;
use LINE_MAX instead of magic numbers; declare extern variables in a
header; add $FreeBSD$ where missing.

Reviewed by:    markm, obrien
Obtained from:  NetBSD | fanf

21 years ago- Move p_cpulimit to struct proc from struct plimit and protect it with
jhb [Wed, 9 Oct 2002 17:17:24 +0000 (17:17 +0000)]
- Move p_cpulimit to struct proc from struct plimit and protect it with
  sched_lock.  This means that we no longer access p_limit in mi_switch()
  and the p_limit pointer can be protected by the proc lock.
- Remove PRS_ZOMBIE check from CPU limit test in mi_switch().  PRS_ZOMBIE
  processes don't call mi_switch(), and even if they did there is no longer
  the danger of p_limit being NULL (which is what the original zombie check
  was added for).
- When we bump the current processes soft CPU limit in ast(), just bump the
  private p_cpulimit instead of the shared rlimit.  This fixes an XXX for
  some value of fix.  There is still a (probably benign) bug in that this
  code doesn't check that the new soft limit exceeds the hard limit.

Inspired by: bde (2)

21 years agoRemove 'at' hints for npx and apm as both drivers have identify routines
jhb [Wed, 9 Oct 2002 17:00:46 +0000 (17:00 +0000)]
Remove 'at' hints for npx and apm as both drivers have identify routines
that add an instance of themselves.  The npx(4) driver doesn't even check
the npx 'port' hint but hardcodes IO_NPX instead.  The npx(4) driver also
will use isa IRQ 13 (on x86, 8 on pc98) by default if no 'irq' hint is
specified, so we don't need that hint either.

21 years agoFix build of 64 bit platforms.
mux [Wed, 9 Oct 2002 12:19:36 +0000 (12:19 +0000)]
Fix build of 64 bit platforms.

21 years agoMove the ed, fe, CD9660, MSDOSFS and NFSCLIENT into mfsroot floppy instead
nyan [Wed, 9 Oct 2002 12:01:43 +0000 (12:01 +0000)]
Move the ed, fe, CD9660, MSDOSFS and NFSCLIENT into mfsroot floppy instead
of the pcn, sf, ste, tl and tx.

21 years ago- Remove the splash, ppc, ppbus, plip and em devices from small boot floppy.
nyan [Wed, 9 Oct 2002 12:01:14 +0000 (12:01 +0000)]
- Remove the splash, ppc, ppbus, plip and em devices from small boot floppy.
- Remove the splash, ch and sa devices from normal boot floppy.
- The agp device does not exist.

21 years agoFix build on alpha. It used to case an int to a pointer in order to do
peter [Wed, 9 Oct 2002 09:30:57 +0000 (09:30 +0000)]
Fix build on alpha.  It used to case an int to a pointer in order to do
pointer arithmetic.  Detour via uintptr_t, since we're generating an
offset not dereferencing them.

21 years agoAdd definitions for the new international monetary formatting struct lconv
tjr [Wed, 9 Oct 2002 09:25:11 +0000 (09:25 +0000)]
Add definitions for the new international monetary formatting struct lconv
members to English (Australia) as an example.

21 years agoAdd support for the 6 new C99 struct lconv members dealing with formatting
tjr [Wed, 9 Oct 2002 09:19:28 +0000 (09:19 +0000)]
Add support for the 6 new C99 struct lconv members dealing with formatting
international monetary values: int_p_cs_precedes, int_n_cs_precedes,
int_p_sep_by_space, int_n_sep_by_space, int_p_sign_posn, int_n_sign_posn.
This should not break existing binaries or LC_MONETARY data files.

Reviewed by: ache
MFC after: 1 month

21 years agoChange BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
peter [Wed, 9 Oct 2002 08:54:32 +0000 (08:54 +0000)]
Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
'int nsegments' argument to bus_dma_tag_create().  ~0ul does not fit in
an int on machines with 64 bit longs.

21 years agoPrint the OS name in the right place in the document title.
ru [Wed, 9 Oct 2002 08:51:52 +0000 (08:51 +0000)]
Print the OS name in the right place in the document title.

21 years agoChange BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
peter [Wed, 9 Oct 2002 08:50:26 +0000 (08:50 +0000)]
Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
'int nsegments' argument to bus_dma_tag_create().  ~0ul does not fit in
an int.

21 years agoMFV:
ru [Wed, 9 Oct 2002 08:48:56 +0000 (08:48 +0000)]
MFV:

- Suppress additional whitespace after the subsection header (.Ss).
  (This affects a tiny number of our manpages.)

- Allow for a layout customization of the OS name in the document
  title (.Dt).  (Needed for Russian and French manpages.)

21 years agoDrop almost 3k from /bin/sync by moving errno to a seperate file
peter [Wed, 9 Oct 2002 08:04:24 +0000 (08:04 +0000)]
Drop almost 3k from /bin/sync by moving errno to a seperate file
to avoid all syscalls pulling in sys_errlst[].

Noted by:  bde

21 years agoDon't kill itself in --fast-read mode if there is no decompressor started.
sobomax [Wed, 9 Oct 2002 07:33:29 +0000 (07:33 +0000)]
Don't kill itself in --fast-read mode if there is no decompressor started.

Reported by: Gordon Tetlow <gordont@gnf.org>
Submitted by: tjr
MFC after: 1 week
(along with other --fast-read changes)

21 years agoWhen creating a snapshot, create a list of initially allocated blocks.
mckusick [Wed, 9 Oct 2002 07:28:35 +0000 (07:28 +0000)]
When creating a snapshot, create a list of initially allocated blocks.
Whenever doing a copy-on-write check, first look in the list of
initially allocated blocks to see if it is there. If so, no further
check is needed. If not, fall through and do the full check. This
change eliminates one of two known deadlocks caused by snapshots.
Handling the second deadlock will be the subject of another check-in.
This change also reduces the cost of the copy-on-write check by
speeding up the verification of frequently checked blocks.

Sponsored by: DARPA & NAI Labs.

21 years agoAdd support g_clone_bio() and g_std_done() to spawn multiple children
phk [Wed, 9 Oct 2002 07:11:59 +0000 (07:11 +0000)]
Add support g_clone_bio() and g_std_done() to spawn multiple children
of a bio and correctly gather status when done.

Sponsored by: DARPA & NAI Labs.

21 years agoAdd a field for tallying the number of spawned bio's a bio has.
phk [Wed, 9 Oct 2002 07:11:03 +0000 (07:11 +0000)]
Add a field for tallying the number of spawned bio's a bio has.

Rearrange and comment some GEOM related fields.

Sponsored by: DARPA & NAI Labs.

21 years agoUpdate documentation for kldload(8)'s ability to load multiple modules.
jmallett [Wed, 9 Oct 2002 06:46:54 +0000 (06:46 +0000)]
Update documentation for kldload(8)'s ability to load multiple modules.

Submitted by: Daniel O'Connor <doconnor@gsoft.com.au>

21 years agoWhen creating a snapshot, create a list of initially allocated blocks.
mckusick [Wed, 9 Oct 2002 06:13:48 +0000 (06:13 +0000)]
When creating a snapshot, create a list of initially allocated blocks.
Whenever doing a copy-on-write check, first look in the list of
initially allocated blocks to see if it is there. If so, no further
check is needed. If not, fall through and do the full check. This
change eliminates one of two known deadlocks caused by snapshots.
Handling the second deadlock will be the subject of another check-in.
This change also reduces the cost of the copy-on-write check by
speeding up the verification of frequently checked blocks.

Sponsored by: DARPA & NAI Labs.

21 years agoThe appropriate units for disk block addresses are always DEV_BSIZE,
mckusick [Wed, 9 Oct 2002 04:01:23 +0000 (04:01 +0000)]
The appropriate units for disk block addresses are always DEV_BSIZE,
even when the underlying device has a larger sector size. Therefore,
the filesystem code should not (and with this patch does not) try to
use the underlying sector size when doing disk block address calculations.

This patch fixes problems in -current when using the swap-based
memory-disk device (mdconfig -a -t swap ...). This bugfix is not
relevant to -stable as -stable does not have the memory-disk device.

Sponsored by: DARPA & NAI Labs.

21 years agoConvert make(1) to use ANSI style function declarations. Variable
jmallett [Wed, 9 Oct 2002 03:42:10 +0000 (03:42 +0000)]
Convert make(1) to use ANSI style function declarations.  Variable
documentation already adequatedly existed in the description in most
cases.  Where it did not, it was added.  If no documentation existed
beforehand, then none was added.  Some unused dummies for use in the
traversal functions were marked as __unused during the conversion.
Occasionally, local style fixes were applied to lines already being
modified or influenced.

Now make(1) should always build with WARNS=3.

21 years agoRound out the facilty for a 'bound' thread to loan out its KSE
julian [Wed, 9 Oct 2002 02:33:36 +0000 (02:33 +0000)]
Round out the facilty for a 'bound' thread to loan out its KSE
in specific situations. The owner thread must be blocked, and the
borrower can not proceed back to user space with the borrowed KSE.
The borrower will return the KSE on the next context switch where
teh owner wants it back. This removes a lot of possible
race conditions and deadlocks. It is consceivable that the
borrower should inherit the priority of the owner too.
that's another discussion and would be simple to do.

Also, as part of this, the "preallocatd spare thread" is attached to the
thread doing a syscall rather than the KSE. This removes the need to lock
the scheduler when we want to access it, as it's now "at hand".

DDB now shows a lot mor info for threaded proceses though it may need
some optimisation to squeeze it all back into 80 chars again.
(possible JKH project)

Upcalls are now "bound" threads, but "KSE Lending" now means that
other completing syscalls can be completed using that KSE before the upcall
finally makes it back to the UTS. (getting threads OUT OF THE KERNEL is
one of the highest priorities in the KSE system.) The upcall when it happens
will present all the completed syscalls to the KSE for selection.

21 years agoUse __FBSDID in the lst.lib files, to match to main make(1) files. It is
jmallett [Wed, 9 Oct 2002 02:00:22 +0000 (02:00 +0000)]
Use __FBSDID in the lst.lib files, to match to main make(1) files.  It is
defined to __RCSID when bootstrapping, by the Makefile, but this change is
for consistency

21 years agoRemove extern declarations from functions and source files where they would
jmallett [Wed, 9 Oct 2002 01:56:02 +0000 (01:56 +0000)]
Remove extern declarations from functions and source files where they would
happily fit into headers.

21 years agoRemove unused local-locals, where upper-level locals may safely be used.
jmallett [Wed, 9 Oct 2002 01:51:00 +0000 (01:51 +0000)]
Remove unused local-locals, where upper-level locals may safely be used.

21 years agoAs back-out requests must be followed, back out the removal of wargames(6)
jmallett [Wed, 9 Oct 2002 01:46:37 +0000 (01:46 +0000)]
As back-out requests must be followed, back out the removal of wargames(6)
at mike@'s request.

21 years agoAdd note that there is a kernel-imposed limit on the number of threads
archie [Tue, 8 Oct 2002 22:42:42 +0000 (22:42 +0000)]
Add note that there is a kernel-imposed limit on the number of threads
in a KSE group that may be simultaneously blocked in the kernel.

21 years agoReference the correct local variable in all parts of a for loop, so we
jmallett [Tue, 8 Oct 2002 21:29:04 +0000 (21:29 +0000)]
Reference the correct local variable in all parts of a for loop, so we
operate on the correct data (properly).

Tracked down by: Dan Nelson

21 years ago - Remove LK_INTERLOCK from the vn_lock() in ffs_snapshot().
jeff [Tue, 8 Oct 2002 21:00:52 +0000 (21:00 +0000)]
 - Remove LK_INTERLOCK from the vn_lock() in ffs_snapshot().

Pointy hat to: me
Found by: green

21 years agoRemove the wargames(6) novelty [and not the fun kind]:
jmallett [Tue, 8 Oct 2002 20:19:26 +0000 (20:19 +0000)]
Remove the wargames(6) novelty [and not the fun kind]:
1) It never was very funny.
2) It was a N line shell script where N is less than
   X, where X is the number of lines of the Berkeley
   copyright and license.
3) I rewrote it in C with the intention of making it
   more interactive, ala the movie, but never did.
4) Because it really is possible for at least some
   parts of a distribution to shrink between releases.

X-No-MFC: This game will remain in RELENG_4 and previous.
X-Bikesheds-To: markm@
Approved by: The #bsdcode cabal.
Obtained from: Professor Falken

21 years agoWe're missing none of these games, they just aren't here.
jmallett [Tue, 8 Oct 2002 20:15:30 +0000 (20:15 +0000)]
We're missing none of these games, they just aren't here.

21 years agoSpell 'Temperature' correctly.
jhb [Tue, 8 Oct 2002 19:41:12 +0000 (19:41 +0000)]
Spell 'Temperature' correctly.

21 years agoFix for the panic when using a Promise TX2.
sos [Tue, 8 Oct 2002 18:25:10 +0000 (18:25 +0000)]
Fix for the panic when using a Promise TX2.

The problem is that the code does a check for the granparent of
the Promise chip, if this is a bridge of the right type, we have
a TX4 on our hands, and need to handle that ones "issues".
Now the grandparent check cause subtle bugs in the newbus system,
mainly that pci_get_devid doesn't return an error value.
This patch works around the issue by using BUS_READ_IVAR() instead.

21 years agoRevert MEM_USR back to 0xa000 for BTX clients. Instead, adjust boot2
jhb [Tue, 8 Oct 2002 18:19:02 +0000 (18:19 +0000)]
Revert MEM_USR back to 0xa000 for BTX clients.  Instead, adjust boot2
to run at 0xc000 by changing its virtual start address from 0x1000 to
0x2000.

Tested by: phk

21 years agoAdd MLINKS to kse.2.
archie [Tue, 8 Oct 2002 17:43:40 +0000 (17:43 +0000)]
Add MLINKS to kse.2.

21 years agoFix the location of the length bytes in the 12-byte read/write CDB
ken [Tue, 8 Oct 2002 17:12:44 +0000 (17:12 +0000)]
Fix the location of the length bytes in the 12-byte read/write CDB
structure.  This has been broken since 1998, but probably hasn't been
noticed because it takes a read/write of 64K blocks (32MB with 512 byte
blocks) to trigger using the 12 byte read/write CDB in scsi_read_write().

Submitted by: "Moore, Eric Dean" <emoore@lsil.com>
MFC after: 3 days

21 years agoNow that ufsread.c doesn't do 64bit divide remainder operations,
phk [Tue, 8 Oct 2002 15:49:35 +0000 (15:49 +0000)]
Now that ufsread.c doesn't do 64bit divide remainder operations,
don't bother with libkern.

Sponsored by: DARPA & NAI Labs.

21 years agoSave a couple of bytes by not returning ints nobody care about.
phk [Tue, 8 Oct 2002 15:48:43 +0000 (15:48 +0000)]
Save a couple of bytes by not returning ints nobody care about.

Sponsored by: DARPA & NAI labs

21 years agoIt seems that the only problem with UFS2 booting on i386 is the 64bit
phk [Tue, 8 Oct 2002 15:46:45 +0000 (15:46 +0000)]
It seems that the only problem with UFS2 booting on i386 is the 64bit
divide/remainder calls.  For reasons not resolved, compiling the
relevant routines from libkern into boot2 results in stack corruption.

Do the simple thing: Don't use 64bit divide/remainder operations.

Sponsored by: DARPA & NAI Labs

21 years agoDon't panic for a bad ivar request, just return ENOENT.
jhb [Tue, 8 Oct 2002 15:44:35 +0000 (15:44 +0000)]
Don't panic for a bad ivar request, just return ENOENT.

21 years agoMFi386: revision 1.67.
nyan [Tue, 8 Oct 2002 12:54:56 +0000 (12:54 +0000)]
MFi386: revision 1.67.

21 years agoMFi386: revisions 1.539, 1.540 and 1.541.
nyan [Tue, 8 Oct 2002 12:53:26 +0000 (12:53 +0000)]
MFi386: revisions 1.539, 1.540 and 1.541.

21 years agoFix to support pc98.
nyan [Tue, 8 Oct 2002 12:13:19 +0000 (12:13 +0000)]
Fix to support pc98.

21 years agoReinstate rev 1.36 with an important line that got missed. Note this
green [Tue, 8 Oct 2002 12:09:16 +0000 (12:09 +0000)]
Reinstate rev 1.36 with an important line that got missed.  Note this
also improves the "random undocumented offsets into various memory
spaces" a little bit.

21 years agoDo not strip CTL* escapes from redirection filenames in argstr(); they
tjr [Tue, 8 Oct 2002 11:22:49 +0000 (11:22 +0000)]
Do not strip CTL* escapes from redirection filenames in argstr(); they
are later stripped with rmescapes() in expandarg(). If the filename has
already been unescaped, doing it again in rmescapes() can walk off the
end of the string, leading to memory corruption and eventually SIGSEGV.

Noticed by: kris

21 years agoRemove unused TYPE_WD and TYPE_WFD.
phk [Tue, 8 Oct 2002 10:17:16 +0000 (10:17 +0000)]
Remove unused TYPE_WD and TYPE_WFD.

21 years agoCorrectly calculate dmadat: We need to take the address of _end, it's
phk [Tue, 8 Oct 2002 10:15:42 +0000 (10:15 +0000)]
Correctly calculate dmadat:  We need to take the address of _end, it's
contents is irrelevant and likely to be zero;

This doesn't change the resultant value, but it does save a couple of bytes
because &_end is constant.

21 years agoMake it possible to kldload(8) many modules.
jmallett [Tue, 8 Oct 2002 09:57:03 +0000 (09:57 +0000)]
Make it possible to kldload(8) many modules.

MFC after: 2 months
Sponsored by: Bright Path Solutions
Reviewed by: tjr

21 years agoUnbreak boot2 by backing out rev 1.36 to Makefile, which does not
phk [Tue, 8 Oct 2002 07:52:28 +0000 (07:52 +0000)]
Unbreak boot2 by backing out rev 1.36 to Makefile, which does not
work as advertised:

bang# pwd
/bang/src/sys/boot/i386/boot2
bang# make clean >& /dev/null
bang# cvs -q update -r 1.35 Makefile >& /dev/null
bang# make >& /dev/null
bang# cat /usr/obj/`pwd`/boot2.h
#define XREADORG 0x725
bang# cvs -q update -r 1.36 Makefile > & /dev/null
bang# make clean > & /dev/null
bang# make > & /dev/null
bang# cat /usr/obj/`pwd`/boot2.h
#define XREADORG 0x25
bang#

21 years agoAllow for multiple #includes of this file.
phk [Tue, 8 Oct 2002 07:24:19 +0000 (07:24 +0000)]
Allow for multiple #includes of this file.

21 years agoSave four bytes by shortening a string two chars.
phk [Tue, 8 Oct 2002 07:06:24 +0000 (07:06 +0000)]
Save four bytes by shortening a string two chars.

Sponsored by: DARPA & NAI Labs.

21 years agoFor now, don't wait for drives to stop returning EBUSY. There is too
phk [Tue, 8 Oct 2002 07:03:58 +0000 (07:03 +0000)]
For now, don't wait for drives to stop returning EBUSY.  There is too
much broken harware around it seems.

Sponsored by: DARPA & NAI Labs.

21 years agoFreeBSD 4.7 enters the BSD family tree sometime on October 8, 2002.
murray [Tue, 8 Oct 2002 05:25:58 +0000 (05:25 +0000)]
FreeBSD 4.7 enters the BSD family tree sometime on October 8, 2002.

21 years agoTeach pkg_add -r how to find 4.7-RELEASE packages with an appropriate
bmah [Tue, 8 Oct 2002 05:15:21 +0000 (05:15 +0000)]
Teach pkg_add -r how to find 4.7-RELEASE packages with an appropriate
osreldate.

(Actually, due to differences in package compression formats, I'm
not sure that a -CURRENT pkg_add -r will do the right thing in
this case, once it finds them.)

21 years agoWe now use XFree86-4 packages rather than a special XFree86-3
murray [Tue, 8 Oct 2002 05:06:05 +0000 (05:06 +0000)]
We now use XFree86-4 packages rather than a special XFree86-3
distribution, so this script is no longer needed.

21 years agoTreat the pathptrn field as a real pattern with the aid of fnmatch().
dd [Tue, 8 Oct 2002 04:21:54 +0000 (04:21 +0000)]
Treat the pathptrn field as a real pattern with the aid of fnmatch().

21 years agoImport the libc fnmatch() into the kernel. This will be used by,
dd [Tue, 8 Oct 2002 04:15:55 +0000 (04:15 +0000)]
Import the libc fnmatch() into the kernel.  This will be used by,
among other things, the DEVFS rule subsystem to match nodes against a
path pattern supplied by the user.

fnmatch.c was repo-copied from src/lib/libc/gen/fnmatch.c, and the
only changes to it are those necessary to make it compile in the
kernel.  The relevant parts of fnmatch.h were imported into libkern.h.

Approved by: -arch

21 years agoMake kldunload cbb work:
imp [Tue, 8 Oct 2002 03:53:52 +0000 (03:53 +0000)]
Make kldunload cbb work:
o Implement the thread killing interlock as described by jhb in arch@
  while talking to markm.
o Hold Giant around cbb_insert()/cbb_remove().  Deep in the belly of
  the vm code we panic if we don't hold this when we activate the memory
  for reading the CIS.
o If we had to do the kludge alloc, then do a kludge free.

21 years agoAdd device driver for Belkin F5U103 and compatible USB-to-serial adapters.
kan [Tue, 8 Oct 2002 03:09:57 +0000 (03:09 +0000)]
Add device driver for Belkin F5U103 and compatible USB-to-serial adapters.

Reviewed by: n_hibma
Approved by: obrien

21 years agoRegen after usbdevs rev. 1.102.
kan [Tue, 8 Oct 2002 03:04:14 +0000 (03:04 +0000)]
Regen after usbdevs rev. 1.102.

Reviewed by: n_hibma
Approved by: obrien

21 years agoAdd entries for:
kan [Tue, 8 Oct 2002 03:00:37 +0000 (03:00 +0000)]
Add entries for:
Belkin F5U103
Belkin F5U120-PC Hub
GoHubs GoCOM232
Peracom single port
USB-to-serial adapters.

Reviewed by: n_hibma
Approved by: obrien

21 years agoRe-add the code which maps POSIX standard library names into the ones
tjr [Tue, 8 Oct 2002 02:19:54 +0000 (02:19 +0000)]
Re-add the code which maps POSIX standard library names into the ones
FreeBSD uses; f.e. -lpthread -> -pthread, -lxnet -> nothing.

21 years agoIntroducing /dev/devctl. This device reports events in the
imp [Mon, 7 Oct 2002 23:17:44 +0000 (23:17 +0000)]
Introducing /dev/devctl.  This device reports events in the
configuration device hierarchy.  Device arrival, departure and not
matched are presently reported.  This will be the basis for devd, which
I still need to polish a little more before I commit it.  If you don't
use /dev/devctl, it will be a noop.

21 years agoTwo minor bugfixes:
imp [Mon, 7 Oct 2002 23:15:40 +0000 (23:15 +0000)]
Two minor bugfixes:
o Allow the bus_debug variable to be set via the bus.debug tunable.
o Return pnpinfo and location info via the devinfo interface to userland.
  devinfo(8) needs to be updated to print it.