]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoSync with zs.
Jake Burkholder [Sun, 5 Jan 2003 04:07:31 +0000 (04:07 +0000)]
Sync with zs.
- Fix some bogosity with mixing unit numbers and channels, which would only
  work for one instance of the device.
- Use a simpler scheme for input and output queueing.
- Use db_alt_break.

21 years agoMake imgact_elf32.c compile on sparc64.
Jake Burkholder [Sun, 5 Jan 2003 03:48:55 +0000 (03:48 +0000)]
Make imgact_elf32.c compile on sparc64.

Obtained from: ia64

21 years ago- Provide backwards compatibility for kern.fallback_elf_brand.
Jake Burkholder [Sun, 5 Jan 2003 03:48:14 +0000 (03:48 +0000)]
- Provide backwards compatibility for kern.fallback_elf_brand.
- Use the generic elf type macros in imgact_elf.h instead of ifdefing the
  entire contents of the header.

21 years agoNo need to include <assert.h> here.
Tim J. Robbins [Sun, 5 Jan 2003 02:43:18 +0000 (02:43 +0000)]
No need to include <assert.h> here.

21 years agoUse atomic add and subtract to update the global wired page count,
Alan Cox [Sun, 5 Jan 2003 01:31:45 +0000 (01:31 +0000)]
Use atomic add and subtract to update the global wired page count,
cnt.v_wire_count.

21 years agoRepair vnode locking in portal_lookup(). Specifically, lock the file
Tim J. Robbins [Sun, 5 Jan 2003 00:46:01 +0000 (00:46 +0000)]
Repair vnode locking in portal_lookup(). Specifically, lock the file
vnode, and unlock the parent directory vnode if LOCKPARENT is not set.

Obtained from: NetBSD (rev. 1.34)

21 years agoFix a reference to the order of SYNOPSIS lines.
Giorgos Keramidas [Sun, 5 Jan 2003 00:09:23 +0000 (00:09 +0000)]
Fix a reference to the order of SYNOPSIS lines.

Submitted by: Olivier Cherrier <Olivier.Cherrier@cediti.be>
on freebsd-net
MFC after: 3 days

21 years agoAdopt, adapt and improve:
Marcel Moolenaar [Sun, 5 Jan 2003 00:04:28 +0000 (00:04 +0000)]
Adopt, adapt and improve:
o  Make the URL of the handbook match reality
o  Improve some comments (either wording or formatting)
o  Sync with i386: comment-out DDB, INVARIANTS, INVARIANT_SUPPORT
o  Add some more SCSI/RAID controllers:
ahd, mpt, asr, ciss, dpt, iir, mly, ida
o  Remove support for the parallel port
o  Add NICs: em, bge
o  Remove NICs: ste, tl, tx, vr, wb
o  Enable USB support again, except of the UHCI host controller.
   UHCI still hangs the BigSur (=HP i2000) machines, and makes
   them useless. The OHCI controller works fine. Note that newer
   ia64 boxes based on the Intel host controllers (UHCI or EHCI)
   still won't have USB support. We really need to import the
   EHCI host controller from NetBSD...

21 years agoTemporarily introduce a new VOP_SPECSTRATEGY operation while I try
Poul-Henning Kamp [Sat, 4 Jan 2003 22:10:36 +0000 (22:10 +0000)]
Temporarily introduce a new VOP_SPECSTRATEGY operation while I try
to sort out disk-io from file-io in the vm/buffer/filesystem space.

The intent is to sort VOP_STRATEGY calls into those which operate
on "real" vnodes and those which operate on VCHR vnodes.  For
the latter kind, the call will be changed to VOP_SPECSTRATEGY,
possibly conditionally for those places where dual-use happens.

Add a default VOP_SPECSTRATEGY method which will call the normal
VOP_STRATEGY.  First time it is called it will print debugging
information.  This will only happen if a normal vnode is passed
to VOP_SPECSTRATEGY by mistake.

Add a real VOP_SPECSTRATEGY in specfs, which does what VOP_STRATEGY
does on a VCHR vnode today.

Add a new VOP_STRATEGY method in specfs to catch instances where
the conversion to VOP_SPECSTRATEGY has not yet happened.  Handle
the request just like we always did, but first time called print
debugging information.

Apart up to two instances of console messages per boot, this amounts
to a glorified no-op commit.

If you get any of the messages on your console I would very much
like a copy of them mailed to phk@freebsd.org

21 years agoImprove the way that an elf image activator for an alternate word size is
Jake Burkholder [Sat, 4 Jan 2003 22:07:48 +0000 (22:07 +0000)]
Improve the way that an elf image activator for an alternate word size is
included in the kernel.  Include imgact_elf.c in conf/files,  instead of
both imgact_elf32.c and imgact_elf64.c, which will use the default word
size for an architecture as defined in machine/elf.h.  Architectures that
wish to build an additional image activator for an alternate word size can
include either imgact_elf32.c or imgact_elf64.c in files.${ARCH}, which
allows it to be dependent on MD options instead of solely on architecture.

Glanced at by: peter

21 years agoAdd "ifstat" display:
Poul-Henning Kamp [Sat, 4 Jan 2003 22:07:24 +0000 (22:07 +0000)]
Add "ifstat" display:

     ifstat      Display the network traffic going through active interfaces
                 on the system.  Idle interfaces will not be displayed until
                 they receive some traffic.

                 For each interface being displayed, the current, peak and
                 total statistics are displayed for incoming and outgoing
                 traffic.  By default, the ifstat display will automatically
                 scale the units being used so that they are in a human-read-
                 able format.  The scaling units used for the current and peak
                 traffic columns can be altered by the scale command.

Submitted by: Trent Nelson <trent@arpa.com>

21 years agoWhen we close a display, mark it as not-initialized so that we will
Poul-Henning Kamp [Sat, 4 Jan 2003 21:58:25 +0000 (21:58 +0000)]
When we close a display, mark it as not-initialized so that we will
properly open it again next time.

Submitted by: Trent Nelson <trent@arpa.com>

21 years agoIntroduce the
Poul-Henning Kamp [Sat, 4 Jan 2003 20:54:58 +0000 (20:54 +0000)]
Introduce the
void backtrace(void);
function which will print a backtrace if DDB is in the kernel and an
explanation if not.

This is useful for recording backtraces in non-fatal circumstances and
does not require pollution with DDB #includes in the files where it
is used.

It would of course be nice to have a non-DDB dependent version too,
but since the meat of a backtrace is MD it is probably not worth it.

21 years agoresort vnode ops list
Poul-Henning Kamp [Sat, 4 Jan 2003 20:32:03 +0000 (20:32 +0000)]
resort vnode ops list

21 years agoresort the vnode ops list.
Poul-Henning Kamp [Sat, 4 Jan 2003 20:31:27 +0000 (20:31 +0000)]
resort the vnode ops list.

21 years agoUnifdef has got some crack-smoking exit values:
Peter Wemm [Sat, 4 Jan 2003 20:24:27 +0000 (20:24 +0000)]
Unifdef has got some crack-smoking exit values:
   "The unifdef utility exits 0 if the output is an exact copy of the input,
    1 if not, and 2 if in trouble."

This causes an 'Error code 1 (ignored)' in the world output, which upsets
the whereintheworld scripts that the tinderboxes use.

However, this stuff here is a relic.  We do not enable HAVE_TCL_INTERP
nor HAVE_PERL_INTERP..  The Makefile hooks to turn them on have gone ages
ago, and this stuff was here for release building purposes only.  Rather
than fight with the tinderbox builds, clean house a bit and remove the
last remaining unused relics of this stuff.

21 years agoMove #include of ddb/ddb.h up with the rest.
Poul-Henning Kamp [Sat, 4 Jan 2003 20:15:32 +0000 (20:15 +0000)]
Move #include of ddb/ddb.h up with the rest.

21 years agoAllow kmem_malloc() without Giant if M_NOWAIT is specified.
Alan Cox [Sat, 4 Jan 2003 19:26:35 +0000 (19:26 +0000)]
Allow kmem_malloc() without Giant if M_NOWAIT is specified.

21 years agoUse vm_object_lock() and vm_object_unlock() in vm_object_deallocate().
Alan Cox [Sat, 4 Jan 2003 19:23:19 +0000 (19:23 +0000)]
Use vm_object_lock() and vm_object_unlock() in vm_object_deallocate().
(This procedure needs further work, but this change is sufficient for
locking the kmem_object.)

21 years agoRefine the assertions in vm_page_alloc().
Alan Cox [Sat, 4 Jan 2003 19:07:13 +0000 (19:07 +0000)]
Refine the assertions in vm_page_alloc().

21 years agoReformat.
David E. O'Brien [Sat, 4 Jan 2003 17:51:59 +0000 (17:51 +0000)]
Reformat.

21 years agoAdd the ability to debug C++ programs using v2 and v3 of the G++ ABI.
David E. O'Brien [Sat, 4 Jan 2003 17:51:48 +0000 (17:51 +0000)]
Add the ability to debug C++ programs using v2 and v3 of the G++ ABI.

Submitted by: Peter Edwards <pmedwards@eircom.net>

21 years agoGC 'char sigmap[]' (it is no longer used)
Max Khon [Sat, 4 Jan 2003 17:35:54 +0000 (17:35 +0000)]
GC 'char sigmap[]' (it is no longer used)

Approved by: obrien
MFC after: 3 days

21 years agoExport tc_tick with sysctl, not tick.
Poul-Henning Kamp [Sat, 4 Jan 2003 17:33:55 +0000 (17:33 +0000)]
Export tc_tick with sysctl, not tick.

Spotted by: bde

21 years agoMerge from P4:
Warner Losh [Sat, 4 Jan 2003 17:26:35 +0000 (17:26 +0000)]
Merge from P4:
o Update copyright.
o Add a tunable to allow the ti12xx to initialize the pci clock.  Some rare
  cards need it.
o rename 67xx -> 6729 since there's really only one chip in this family.
o from pcic_pci_pd6729_init call the routing code
o Fix some comments out routing on the TI-1130 class (1030, 1130 and 1131)

MFC: After RE@ says it is ok.

21 years agoComplete the bzip2 suite.
David E. O'Brien [Sat, 4 Jan 2003 17:09:27 +0000 (17:09 +0000)]
Complete the bzip2 suite.

21 years agos/Kank/Kang/ (the klingon)
Jens Schweikhardt [Sat, 4 Jan 2003 17:08:23 +0000 (17:08 +0000)]
s/Kank/Kang/ (the klingon)

PR: misc/45012
Submitted by: Steve Coltrin <spcoltri@omcl.org>

21 years agoTypo: s/CTLTYPE_DYN/CTLFLAG_DYN
Jens Schweikhardt [Sat, 4 Jan 2003 17:01:50 +0000 (17:01 +0000)]
Typo: s/CTLTYPE_DYN/CTLFLAG_DYN

PR: misc/45012
Submitted by: Steve Coltrin <spcoltri@omcl.org>

21 years agoComment out imap3@220 and imap4-ssl@585 which are not used.
Jens Schweikhardt [Sat, 4 Jan 2003 16:03:56 +0000 (16:03 +0000)]
Comment out imap3@220 and imap4-ssl@585 which are not used.

PR: conf/46294
Submitted by: Larry Rosenman <ler@lerctr.org>
MFC after: 2 weeks

21 years ago- Remove speed_map API because speed_map is obsoleted by 1394a.
Hidetoshi Shimokawa [Sat, 4 Jan 2003 16:03:50 +0000 (16:03 +0000)]
- Remove speed_map API because speed_map is obsoleted by 1394a.
- Add definition of OHCI_HCC_BIBIV in fwohcireg.h.

21 years agoAdd 1701/l2tp, layer 2 tunnelling protocol, as per IANA services.
Jens Schweikhardt [Sat, 4 Jan 2003 15:46:22 +0000 (15:46 +0000)]
Add 1701/l2tp, layer 2 tunnelling protocol, as per IANA services.

PR: conf/35240
Submitted by: Annihilator <annihilator.c@usa.net>
MFC after: 2 weeks

21 years agoRemove unnecessary lock assertion.
Jeffrey Hsu [Sat, 4 Jan 2003 11:45:50 +0000 (11:45 +0000)]
Remove unnecessary lock assertion.

21 years agoSome KSE syscalls are MPSAFE.
David Xu [Sat, 4 Jan 2003 11:41:12 +0000 (11:41 +0000)]
Some KSE syscalls are MPSAFE.

21 years agoReplace spec_bmap() with vop_panic: We should never BMAP a device backed
Poul-Henning Kamp [Sat, 4 Jan 2003 11:29:44 +0000 (11:29 +0000)]
Replace spec_bmap() with vop_panic:  We should never BMAP a device backed
vnode only filesystem backed vnodes.

21 years ago- Handle zero sized directory right way.
Hidetoshi Shimokawa [Sat, 4 Jan 2003 10:32:31 +0000 (10:32 +0000)]
- Handle zero sized directory right way.
- Staticize.

21 years ago- Replace printf() with device_printf().
Hidetoshi Shimokawa [Sat, 4 Jan 2003 10:21:11 +0000 (10:21 +0000)]
- Replace printf() with device_printf().
- Separate fc->dev (i.e. fwohci0) and fc->bdev (i.e. firewire0).
- Remove unused firewirebusreg.h.
- Reduce size of descriptor block for asynchronous transmit and
check the number of descriptor when copying from mbuf.
- Skip mbuf whose length is zero. NFS seems passing such mbuf and
some chips generates unrecoverable error.

21 years agostrptime(), like strftime(), does not handle multibyte characters
Tim J. Robbins [Sat, 4 Jan 2003 09:50:04 +0000 (09:50 +0000)]
strptime(), like strftime(), does not handle multibyte characters
in the format string correctly.

21 years agoMention in the BUGS section that strftime() does not handle multibyte
Tim J. Robbins [Sat, 4 Jan 2003 09:47:40 +0000 (09:47 +0000)]
Mention in the BUGS section that strftime() does not handle multibyte
characters in the format string correctly.

21 years agoDon't call VOP_BMAP on VCHR vnodes when the logical and physical block
Poul-Henning Kamp [Sat, 4 Jan 2003 09:37:42 +0000 (09:37 +0000)]
Don't call VOP_BMAP on VCHR vnodes when the logical and physical block
numbers are identical: it cannot even hope to accomplish anything.

21 years agoRename the dos_partition structure for pc98 to pc98_partition.
Yoshihiro Takahashi [Sat, 4 Jan 2003 08:50:48 +0000 (08:50 +0000)]
Rename the dos_partition structure for pc98 to pc98_partition.

21 years agoUse a separate macro to generate the name of the sysctl_oid_list that holds
Jake Burkholder [Sat, 4 Jan 2003 08:50:43 +0000 (08:50 +0000)]
Use a separate macro to generate the name of the sysctl_oid_list that holds
the children of a sysctl node, so that the arguments to the SYSCTL_NODE
macro can themselves be macros.  It would be nice to use __CONCAT throughout
this file, but the macros are so large that it quickly becomes unweildly,
(4 nested __CONCATs).

21 years agoSince Jeffr made the std* functions the default in rev 1.63 of
Poul-Henning Kamp [Sat, 4 Jan 2003 08:47:19 +0000 (08:47 +0000)]
Since Jeffr made the std* functions the default in rev 1.63 of
kern/vfs_defaults.c it is wrong for the individual filesystems to use
the std* functions as that prevents override of the default.

Found by:       src/tools/tools/vop_table

21 years agoUse __CONCAT and __XSTRING when concatenating or stringifying arguments to
Jake Burkholder [Sat, 4 Jan 2003 08:17:27 +0000 (08:17 +0000)]
Use __CONCAT and __XSTRING when concatenating or stringifying arguments to
the EXEC_SET macro, so that the arguments themselves can be macros.
(Actually __STRING would suffice, instead of __XSTRING, but oh well).

21 years agoFix three warnings:
Tim J. Robbins [Sat, 4 Jan 2003 08:10:55 +0000 (08:10 +0000)]
Fix three warnings:
 o #include <stdio.h> to make sprintf()'s prototype visible.
 o Remove unused variable: sbuf.
 o Don't use assignment as truth value.

21 years agoAdd a sysctl to get the vm protections for the stack of the current process.
Jake Burkholder [Sat, 4 Jan 2003 07:54:23 +0000 (07:54 +0000)]
Add a sysctl to get the vm protections for the stack of the current process.
On architectures with a non-executable stack, eg sparc64, this is used by
libgcc to determine at runtime if its necessary to enable execute permissions
on a region of the stack which will be used to execute code, allowing the
call to mprotect to be avoided if the kernel is configured to map the stack
executable.

21 years agostyle(9): return type on separate line from function name.
Tim J. Robbins [Sat, 4 Jan 2003 07:34:41 +0000 (07:34 +0000)]
style(9): return type on separate line from function name.

21 years agoHold the page queues lock around pmap_remove_pte() in pmap_enter().
Alan Cox [Sat, 4 Jan 2003 06:49:52 +0000 (06:49 +0000)]
Hold the page queues lock around pmap_remove_pte() in pmap_enter().

Submitted by: Arun Sharma <adsharma@unix-os.sc.intel.com>

21 years ago- Propagate suspend/resume to child devices.
Hidetoshi Shimokawa [Sat, 4 Jan 2003 06:40:57 +0000 (06:40 +0000)]
- Propagate suspend/resume to child devices.
- Restore pci config registers after resume.
- Reinitialize and start rx buffers after resume.
- Don't reallocate memory in fwohci_db_init() if the dbch is
already initialized.
- Fix typo.
- Some clean up.

21 years agoFix a number of bugs noticed by more extensive testing:
Tim J. Robbins [Sat, 4 Jan 2003 06:07:44 +0000 (06:07 +0000)]
Fix a number of bugs noticed by more extensive testing:
 o Call waitpid() if an error occurs after forking the child process
   to avoid leaving zombies around.
 o Handle the WRDE_DOOFS|WRDE_APPEND combination correctly
 o Do not confuse $( substitution with $(( shell arithmetic
     (noticed by wollman)
 o Handle backslash escaping properly
 o Allow $( and ${ to be quoted

21 years agoSet kse mailbox pointer to NULL when P_KSES is turned off.
David Xu [Sat, 4 Jan 2003 05:59:25 +0000 (05:59 +0000)]
Set kse mailbox pointer to NULL when P_KSES is turned off.

21 years agoAdd a regression test for wordexp() and wordfree().
Tim J. Robbins [Sat, 4 Jan 2003 05:50:35 +0000 (05:50 +0000)]
Add a regression test for wordexp() and wordfree().

21 years agogifconfig(8) was depricated.
Hajimu UMEMOTO [Sat, 4 Jan 2003 05:32:48 +0000 (05:32 +0000)]
gifconfig(8) was depricated.

Reported by: rwatson

21 years agoRename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are
Tim J. Robbins [Sat, 4 Jan 2003 01:11:49 +0000 (01:11 +0000)]
Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are
the names required by 1003.1-2001. The old names are retained for
source compatibility with FreeBSD 5.0 and will be removed before 6.0.

21 years agoBracket the prototype for ulimit() with __BEGIN_DECLS/__END_DECLS
Tim J. Robbins [Sat, 4 Jan 2003 00:32:18 +0000 (00:32 +0000)]
Bracket the prototype for ulimit() with __BEGIN_DECLS/__END_DECLS
so that it can be called from C++.

21 years agoRemove unused variable: sz.
Tim J. Robbins [Sat, 4 Jan 2003 00:24:35 +0000 (00:24 +0000)]
Remove unused variable: sz.

21 years agoRemove unused variable: size.
Tim J. Robbins [Sat, 4 Jan 2003 00:20:54 +0000 (00:20 +0000)]
Remove unused variable: size.

21 years ago#include <string.h> for strcmp()'s prototype.
Tim J. Robbins [Sat, 4 Jan 2003 00:18:50 +0000 (00:18 +0000)]
#include <string.h> for strcmp()'s prototype.

21 years agoRemove unused variable: omask.
Tim J. Robbins [Sat, 4 Jan 2003 00:15:15 +0000 (00:15 +0000)]
Remove unused variable: omask.

21 years ago#include <sys/linker.h> for kldload()'s prototype.
Tim J. Robbins [Sat, 4 Jan 2003 00:13:00 +0000 (00:13 +0000)]
#include <sys/linker.h> for kldload()'s prototype.

21 years ago#include <string.h> for strlen()'s prototype.
Tim J. Robbins [Sat, 4 Jan 2003 00:11:11 +0000 (00:11 +0000)]
#include <string.h> for strlen()'s prototype.

21 years ago#include <ctype.h> for isspace()'s prototype (or a macro version).
Tim J. Robbins [Fri, 3 Jan 2003 23:55:58 +0000 (23:55 +0000)]
#include <ctype.h> for isspace()'s prototype (or a macro version).

21 years agoAdd missing #include "namespace.h".
Tim J. Robbins [Fri, 3 Jan 2003 23:38:21 +0000 (23:38 +0000)]
Add missing #include "namespace.h".

21 years agoRemove unused variable: ntmp.
Tim J. Robbins [Fri, 3 Jan 2003 23:34:26 +0000 (23:34 +0000)]
Remove unused variable: ntmp.

21 years ago#include <string.h> for strcmp()'s prototype.
Tim J. Robbins [Fri, 3 Jan 2003 23:31:50 +0000 (23:31 +0000)]
#include <string.h> for strcmp()'s prototype.

21 years ago#include "local.h" to make __svfscanf()'s prototype visible.
Tim J. Robbins [Fri, 3 Jan 2003 23:27:27 +0000 (23:27 +0000)]
#include "local.h" to make __svfscanf()'s prototype visible.

21 years agoRemove an unused variable: `sb' in fts_read().
Tim J. Robbins [Fri, 3 Jan 2003 23:25:25 +0000 (23:25 +0000)]
Remove an unused variable: `sb' in fts_read().

21 years agoRemove an unused variable, `sverrno', which has not been used since 1.11.
Tim J. Robbins [Fri, 3 Jan 2003 23:16:55 +0000 (23:16 +0000)]
Remove an unused variable, `sverrno', which has not been used since 1.11.

21 years agoMake this build and sync-up:
Marcel Moolenaar [Fri, 3 Jan 2003 23:10:47 +0000 (23:10 +0000)]
Make this build and sync-up:
o  Add COMPAT_FREEBSD4
o  Remove NO_GEOM
o  Remove commented out options.

21 years agomdoc(4) police: Markup. Fix 1 hard sentence break.
Tom Rhodes [Fri, 3 Jan 2003 23:06:10 +0000 (23:06 +0000)]
mdoc(4) police: Markup.  Fix 1 hard sentence break.

21 years agomdoc(7) police: Remove hard sentence breaks.
Tom Rhodes [Fri, 3 Jan 2003 22:39:39 +0000 (22:39 +0000)]
mdoc(7) police: Remove hard sentence breaks.

21 years agomdoc(7) police: markup nits.
Tom Rhodes [Fri, 3 Jan 2003 22:37:10 +0000 (22:37 +0000)]
mdoc(7) police: markup nits.

21 years agoWhite space fixes
Julian Elischer [Fri, 3 Jan 2003 20:55:52 +0000 (20:55 +0000)]
White space fixes

21 years agoMake an explicit flag to indicate that a KSE has a reason to upcall,
Julian Elischer [Fri, 3 Jan 2003 20:41:49 +0000 (20:41 +0000)]
Make an explicit flag to indicate that a KSE has a reason to upcall,
and use that flag when there is a kse_wakeup() call. It will probably
be used with signal delivery as well eventually.

Submitted by: davidxu@

21 years agoDon't need to set retvals to 0 in the non error case. They
Julian Elischer [Fri, 3 Jan 2003 19:38:54 +0000 (19:38 +0000)]
Don't need to set retvals to 0 in the non error case. They
are set to a good default anyhow.

Submitted by: davidxu@

21 years agoRefine the assertion in vm_object_clear_flag() to allow operation on the
Alan Cox [Fri, 3 Jan 2003 19:19:08 +0000 (19:19 +0000)]
Refine the assertion in vm_object_clear_flag() to allow operation on the
kmem_object without Giant.  In that case, assert that the kmem_object's
mutex is held.

21 years agoRevert use of dmmax_mask, I had overlooked a '~'.
Poul-Henning Kamp [Fri, 3 Jan 2003 19:16:48 +0000 (19:16 +0000)]
Revert use of dmmax_mask, I had overlooked a '~'.

Spotted by: bde

21 years agoDocument bit 31 of the cpuid features word as PBE (Pending Break Enable).
John Baldwin [Fri, 3 Jan 2003 18:54:59 +0000 (18:54 +0000)]
Document bit 31 of the cpuid features word as PBE (Pending Break Enable).

21 years agoReenable building in share/mklocale for sparc64. It seems to work fine
Thomas Moestl [Fri, 3 Jan 2003 18:06:21 +0000 (18:06 +0000)]
Reenable building in share/mklocale for sparc64. It seems to work fine
now, and probably did for quite some time already. 5.0 candidate.

Spotted by: roam

21 years agoAdd various command line options, most notably sort order.
Poul-Henning Kamp [Fri, 3 Jan 2003 17:21:39 +0000 (17:21 +0000)]
Add various command line options, most notably sort order.

Submitted by: "Matthew Emmerton" <matt@gsicomp.on.ca>
Sat on for far too long: phk

21 years agoOptimize errstr() by reducing the number of times it walks a string.
Mike Barcroft [Fri, 3 Jan 2003 16:44:42 +0000 (16:44 +0000)]
Optimize errstr() by reducing the number of times it walks a string.
As a side effect, it makes the code easier to read and requires less
pointer arithmetic.

Test by: strerror regression test
Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoMake struct swblock kernel only, to make vm/swap_pager.h userland includable.
Poul-Henning Kamp [Fri, 3 Jan 2003 16:23:12 +0000 (16:23 +0000)]
Make struct swblock kernel only, to make vm/swap_pager.h userland includable.
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h.
Adjust #include use in libkvm and pstat(8) to match.

21 years agoAvoid extern decls in .c files by putting them in the vm/swap_pager.h
Poul-Henning Kamp [Fri, 3 Jan 2003 14:30:46 +0000 (14:30 +0000)]
Avoid extern decls in .c files by putting them in the vm/swap_pager.h
include file where they belong.
Share the dmmax_mask variable.

21 years agoUse correct _VM_SWAP_PAGER_H_ to check for multiple inclusion.
Poul-Henning Kamp [Fri, 3 Jan 2003 14:22:52 +0000 (14:22 +0000)]
Use correct _VM_SWAP_PAGER_H_ to check for multiple inclusion.

21 years agoReset the stream orientation to 0 (unoriented) in freopen(), as required
Tim J. Robbins [Fri, 3 Jan 2003 12:27:19 +0000 (12:27 +0000)]
Reset the stream orientation to 0 (unoriented) in freopen(), as required
by the C standard.

21 years agoIt is no longer necessary to include sys/types.h before wordexp.h.
Tim J. Robbins [Fri, 3 Jan 2003 12:04:36 +0000 (12:04 +0000)]
It is no longer necessary to include sys/types.h before wordexp.h.

21 years agoDescribe WRDE_NOCMD in the same way that we describe the rest of the flags.
Tim J. Robbins [Fri, 3 Jan 2003 12:03:38 +0000 (12:03 +0000)]
Describe WRDE_NOCMD in the same way that we describe the rest of the flags.

21 years agoRetire sys/dmap.h by including the two lines of it which matters
Poul-Henning Kamp [Fri, 3 Jan 2003 09:55:05 +0000 (09:55 +0000)]
Retire sys/dmap.h by including the two lines of it which matters
directly in vm/vm_swap.c.

21 years agoLock the vm object when performing vm_object_clear_flag().
Alan Cox [Fri, 3 Jan 2003 09:15:43 +0000 (09:15 +0000)]
Lock the vm object when performing vm_object_clear_flag().

21 years agoRemove CCDF_SWAP and CCDF_PARITY, they have never been implemented.
Poul-Henning Kamp [Fri, 3 Jan 2003 08:57:40 +0000 (08:57 +0000)]
Remove CCDF_SWAP and CCDF_PARITY, they have never been implemented.

21 years agoRemove CCDF_SWAP and CCDF_PARITY. They have never been implemented.
Poul-Henning Kamp [Fri, 3 Jan 2003 08:56:54 +0000 (08:56 +0000)]
Remove CCDF_SWAP and CCDF_PARITY.  They have never been implemented.

21 years agoMFMBR: Add ioctls for writing an IPL and a boot menu.
Yoshihiro Takahashi [Fri, 3 Jan 2003 07:13:36 +0000 (07:13 +0000)]
MFMBR: Add ioctls for writing an IPL and a boot menu.

21 years agoMerged from sys/isa/fd.c revision 1.243.
Yoshihiro Takahashi [Fri, 3 Jan 2003 06:40:54 +0000 (06:40 +0000)]
Merged from sys/isa/fd.c revision 1.243.

21 years agoConvert calls to BUF_STRATEGY to VOP_STRATEGY calls. This is a no-op since
Poul-Henning Kamp [Fri, 3 Jan 2003 06:32:15 +0000 (06:32 +0000)]
Convert calls to BUF_STRATEGY to VOP_STRATEGY calls.  This is a no-op since
all BUF_STRATEGY did in the first place was call VOP_STRATEGY.

21 years agomanage kernel threads properly; especially shutting them down on module unload
Sam Leffler [Fri, 3 Jan 2003 06:23:46 +0000 (06:23 +0000)]
manage kernel threads properly; especially shutting them down on module unload

Reviewed by: jhb

21 years agoMFS: crypto timing support; purge usercrypto sysctl (just don't config
Sam Leffler [Fri, 3 Jan 2003 06:16:59 +0000 (06:16 +0000)]
MFS: crypto timing support; purge usercrypto sysctl (just don't config
cryptodev or kldunload cryptodev module); crypto statistcs; remove
unused alloctype field from crypto op to offset addition of the
performance time stamp

Supported by: Vernier Networks

21 years agoRemove unused second argument from DEV_STRATEGY().
Poul-Henning Kamp [Fri, 3 Jan 2003 05:57:35 +0000 (05:57 +0000)]
Remove unused second argument from DEV_STRATEGY().

21 years agoAdd vm map and vm object locking to vmtotal().
Alan Cox [Fri, 3 Jan 2003 05:52:02 +0000 (05:52 +0000)]
Add vm map and vm object locking to vmtotal().

21 years agoRemove unused second argument from BIO_STRATEGY()
Poul-Henning Kamp [Fri, 3 Jan 2003 05:51:11 +0000 (05:51 +0000)]
Remove unused second argument from BIO_STRATEGY()

21 years agopopen() is a function, not an argument.
Tim J. Robbins [Fri, 3 Jan 2003 05:21:59 +0000 (05:21 +0000)]
popen() is a function, not an argument.

21 years agoProtect pidlist with a mutex to avoid a race causing a duplicate free()
Tim J. Robbins [Fri, 3 Jan 2003 04:35:04 +0000 (04:35 +0000)]
Protect pidlist with a mutex to avoid a race causing a duplicate free()
when the same pipe FILE is pclosed()'d in different threads, and to avoid
corrupting the linked list when adding or removing items. The symptoms of
the linked list getting corrupted were pclose() either not finding the pipe
on the list, or the list becoming circular and pclose() looping infinitely.