]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoDocument sysctl variables.
pjd [Tue, 13 Jul 2004 12:32:20 +0000 (12:32 +0000)]
Document sysctl variables.

Based on: simon's patch

20 years agoThose sysctl are used to control GEOM class, not a userland utility.
pjd [Tue, 13 Jul 2004 12:30:11 +0000 (12:30 +0000)]
Those sysctl are used to control GEOM class, not a userland utility.

Reviewed by: simon

20 years agoRemove unused macro.
pjd [Tue, 13 Jul 2004 12:01:29 +0000 (12:01 +0000)]
Remove unused macro.

20 years agoDecrease log level of one debug message, so there is no hole (level 2
pjd [Tue, 13 Jul 2004 12:01:11 +0000 (12:01 +0000)]
Decrease log level of one debug message, so there is no hole (level 2
wasn't used at all).

20 years agoDocument sysctls variables used by GEOM_STRIPE class.
pjd [Tue, 13 Jul 2004 11:28:40 +0000 (11:28 +0000)]
Document sysctls variables used by GEOM_STRIPE class.

Submitted by: simon

20 years agoMinor sysctl description fixes.
pjd [Tue, 13 Jul 2004 11:23:31 +0000 (11:23 +0000)]
Minor sysctl description fixes.

Submitted by: simon

20 years agoAnother LINT compilation fix
phk [Tue, 13 Jul 2004 09:47:27 +0000 (09:47 +0000)]
Another LINT compilation fix

20 years agoMake LINT compile
phk [Tue, 13 Jul 2004 09:46:46 +0000 (09:46 +0000)]
Make LINT compile

20 years agoRe-enable debugger port.
simokawa [Tue, 13 Jul 2004 09:41:45 +0000 (09:41 +0000)]
Re-enable debugger port.

20 years agoReplace DDB with KDB.
simokawa [Tue, 13 Jul 2004 09:37:49 +0000 (09:37 +0000)]
Replace DDB with KDB.

20 years agoAdd code to support debugging threaded process.
davidxu [Tue, 13 Jul 2004 07:33:40 +0000 (07:33 +0000)]
Add code to support debugging threaded process.

  1. Add tm_lwpid into kse_thr_mailbox to indicate which kernel
     thread current user thread is running on. Add tm_dflags into
     kse_thr_mailbox, the flags is written by debugger, it tells
     UTS and kernel what should be done when the process is being
     debugged, current, there two flags TMDF_SSTEP and TMDF_DONOTRUNUSER.

     TMDF_SSTEP is used to tell kernel to turn on single stepping,
     or turn off if it is not set.

     TMDF_DONOTRUNUSER is used to tell kernel to schedule upcall
     whenever possible, to UTS, it means do not run the user thread
     until debugger clears it, this behaviour is necessary because
     gdb wants to resume only one thread when the thread's pc is
     at a breakpoint, and thread needs to go forward, in order to
     avoid other threads sneak pass the breakpoints, it needs to remove
     breakpoint, only wants one thread to go. Also, add km_lwp to
     kse_mailbox, the lwp id is copied to kse_thr_mailbox at context
     switch time when process is not being debugged, so when process
     is attached, debugger can map kernel thread to user thread.

  2. Add p_xthread to proc strcuture and td_xsig to thread structure.
     p_xthread is used by a thread when it wants to report event
     to debugger, every thread can set the pointer, especially, when
     it is used in ptracestop, it is the last thread reporting event
     will win the race. Every thread has a td_xsig to exchange signal
     with debugger, thread uses TDF_XSIG flag to indicate it is reporting
     signal to debugger, if the flag is not cleared, thread will keep
     retrying until it is cleared by debugger, p_xthread may be
     used by debugger to indicate CURRENT thread. The p_xstat is still
     in proc structure to keep wait() to work, in future, we may
     just use td_xsig.

  3. Add TDF_DBSUSPEND flag, the flag is used by debugger to suspend
     a thread. When process stops, debugger can set the flag for
     thread, thread will check the flag in thread_suspend_check,
     enters a loop, unless it is cleared by debugger, process is
     detached or process is existing. The flag is also checked in
     ptracestop, so debugger can temporarily suspend a thread even
     if the thread wants to exchange signal.

  4. Current, in ptrace, we always resume all threads, but if a thread
     has already a TDF_DBSUSPEND flag set by debugger, it won't run.

Encouraged by: marcel, julian, deischen

20 years agoImplement following commands: PT_CLEARSTEP, PT_SETSTEP, PT_SUSPEND
davidxu [Tue, 13 Jul 2004 07:25:24 +0000 (07:25 +0000)]
Implement following commands: PT_CLEARSTEP, PT_SETSTEP, PT_SUSPEND
PT_RESUME, PT_GETNUMLWPS, PT_GETLWPLIST.

20 years agoAdd ptrace_clear_single_step(), alpha already has it for years, the function
davidxu [Tue, 13 Jul 2004 07:22:56 +0000 (07:22 +0000)]
Add ptrace_clear_single_step(), alpha already has it for years, the function
will be used by ptrace to clear a thread's single step state.

20 years agoAdd code to support debugging threaded process.
davidxu [Tue, 13 Jul 2004 07:20:10 +0000 (07:20 +0000)]
Add code to support debugging threaded process.

1. Add tm_lwpid into kse_thr_mailbox to indicate which kernel
   thread current user thread is running on. Add tm_dflags into
   kse_thr_mailbox, the flags is written by debugger, it tells
   UTS and kernel what should be done when the process is being
   debugged, current, there two flags TMDF_SSTEP and TMDF_DONOTRUNUSER.

   TMDF_SSTEP is used to tell kernel to turn on single stepping,
   or turn off if it is not set.

   TMDF_DONOTRUNUSER is used to tell kernel to schedule upcall
   whenever possible, to UTS, it means do not run the user thread
   until debugger clears it, this behaviour is necessary because
   gdb wants to resume only one thread when the thread's pc is
   at a breakpoint, and thread needs to go forward, in order to
   avoid other threads sneak pass the breakpoints, it needs to remove
   breakpoint, only wants one thread to go. Also, add km_lwp to
   kse_mailbox, the lwp id is copied to kse_thr_mailbox at context
   switch time when process is not being debugged, so when process
   is attached, debugger can map kernel thread to user thread.

2. Add p_xthread to proc strcuture and td_xsig to thread structure.
   p_xthread is used by a thread when it wants to report event
   to debugger, every thread can set the pointer, especially, when
   it is used in ptracestop, it is the last thread reporting event
   will win the race. Every thread has a td_xsig to exchange signal
   with debugger, thread uses TDF_XSIG flag to indicate it is reporting
   signal to debugger, if the flag is not cleared, thread will keep
   retrying until it is cleared by debugger, p_xthread may be
   used by debugger to indicate CURRENT thread. The p_xstat is still
   in proc structure to keep wait() to work, in future, we may
   just use td_xsig.

3. Add TDF_DBSUSPEND flag, the flag is used by debugger to suspend
   a thread. When process stops, debugger can set the flag for
   thread, thread will check the flag in thread_suspend_check,
   enters a loop, unless it is cleared by debugger, process is
   detached or process is existing. The flag is also checked in
   ptracestop, so debugger can temporarily suspend a thread even
   if the thread wants to exchange signal.

4. Current, in ptrace, we always resume all threads, but if a thread
   has already a TDF_DBSUSPEND flag set by debugger, it won't run.

Encouraged by: marcel, julian, deischen

20 years agoDo not call sorecieve() in the context of a socket callback as it causes
alfred [Tue, 13 Jul 2004 07:05:38 +0000 (07:05 +0000)]
Do not call sorecieve() in the context of a socket callback as it causes
lock order reversals so->inpcb since we're called with the socket lock
held.

20 years agoSimplify pmap_protect().
alc [Tue, 13 Jul 2004 06:54:23 +0000 (06:54 +0000)]
Simplify pmap_protect().

20 years agoTurn off SO_REUSEADDR and SO_REUSEPORT, they were causing EADDRINUSE
alfred [Tue, 13 Jul 2004 05:42:59 +0000 (05:42 +0000)]
Turn off SO_REUSEADDR and SO_REUSEPORT, they were causing EADDRINUSE
to be returned from the protocol stack.

Pointy hat to me for not groking what those options _really_ mean.

20 years agoOverhaul lputs() to deal with multibyte characters, characters that take
tjr [Tue, 13 Jul 2004 04:35:43 +0000 (04:35 +0000)]
Overhaul lputs() to deal with multibyte characters, characters that take
up more than one column position, and null bytes.

20 years agoPush down the acquisition and release of the page queues lock into
alc [Tue, 13 Jul 2004 02:49:22 +0000 (02:49 +0000)]
Push down the acquisition and release of the page queues lock into
pmap_remove_pages().  (The implementation of pmap_remove_pages() is
optional.  If pmap_remove_pages() is unimplemented, the acquisition and
release of the page queues lock is unnecessary.)

Remove spl calls from the alpha, arm, and ia64 pmap_remove_pages().

20 years agoSet fdc_dev in attach
imp [Tue, 13 Jul 2004 02:44:40 +0000 (02:44 +0000)]
Set fdc_dev in attach

20 years agoDon't depend on implicit include of machine/bus.h in sys/rman.h, but instead
imp [Tue, 13 Jul 2004 02:42:23 +0000 (02:42 +0000)]
Don't depend on implicit include of machine/bus.h in sys/rman.h, but instead
explicitly include it.

20 years agopccard no longer requires a count because the floppy driver that
imp [Tue, 13 Jul 2004 02:37:40 +0000 (02:37 +0000)]
pccard no longer requires a count because the floppy driver that
nominally had a non-working reference to card.h has been removed.

20 years agoAdd support for multibyte characters.
tjr [Tue, 13 Jul 2004 02:18:21 +0000 (02:18 +0000)]
Add support for multibyte characters.

20 years agoRemove even more references to generating usbdevs_data.h, et al.
imp [Mon, 12 Jul 2004 23:11:09 +0000 (23:11 +0000)]
Remove even more references to generating usbdevs_data.h, et al.

Noticed by: njl

20 years agoRemove the instructions for regenerating usbdevs.h: that's now no
imp [Mon, 12 Jul 2004 22:57:06 +0000 (22:57 +0000)]
Remove the instructions for regenerating usbdevs.h: that's now no
longer necessary.

20 years agoRename low-level code ddb -> db. Use KDB instead of DDB.
grehan [Mon, 12 Jul 2004 22:32:08 +0000 (22:32 +0000)]
Rename low-level code ddb -> db. Use KDB instead of DDB.
Fix bug in setup of stack frame where 8 bytes wasn't being
saved for the callee's frame pointer and saved LR.

20 years agoBring into KDB new order.
grehan [Mon, 12 Jul 2004 22:26:20 +0000 (22:26 +0000)]
Bring into KDB new order.

20 years ago- DDB -> KDB, with kdb routines
grehan [Mon, 12 Jul 2004 22:25:09 +0000 (22:25 +0000)]
- DDB -> KDB, with kdb routines
- ddb -> db for low-level trapcode
- implement makectx. I think it only matters that the stack is setup
  correctly.
- bring over ddb_trap_glue and rename to db_trap_glue

20 years agoNo need for ddb option. Never a need for ipkdb option.
grehan [Mon, 12 Jul 2004 22:22:53 +0000 (22:22 +0000)]
No need for ddb option. Never a need for ipkdb option.

20 years agoCatch up with gratuitous ddb -> db renaming
grehan [Mon, 12 Jul 2004 22:22:09 +0000 (22:22 +0000)]
Catch up with gratuitous ddb -> db renaming

20 years agoBring into line with KDB. Bring in NetBSD updates for backtrace routine,
grehan [Mon, 12 Jul 2004 22:21:34 +0000 (22:21 +0000)]
Bring into line with KDB. Bring in NetBSD updates for backtrace routine,
although it really needs a decent re-work.

20 years agoRemove unused NetBSD code. Bring mem r/w routines into here in line
grehan [Mon, 12 Jul 2004 22:20:01 +0000 (22:20 +0000)]
Remove unused NetBSD code. Bring mem r/w routines into here in line
with sparc64, although keep the size deref checks: they are useful
when accessing PCI space where some devices may not implement byte
access.

20 years agoGratuitous namechange to avoid low-level association with ddb.
grehan [Mon, 12 Jul 2004 22:18:02 +0000 (22:18 +0000)]
Gratuitous namechange to avoid low-level association with ddb.

20 years agoAdd prototype for KDB's makectx routine
grehan [Mon, 12 Jul 2004 22:17:20 +0000 (22:17 +0000)]
Add prototype for KDB's makectx routine

20 years agoRemove old NetBSD-derived unused code and stuff that is now obsolete
grehan [Mon, 12 Jul 2004 22:16:50 +0000 (22:16 +0000)]
Remove old NetBSD-derived unused code and stuff that is now obsolete
due to KDB.

20 years agoDDB -> KDB, and rename low-level trap handler to avoid name conflict.
grehan [Mon, 12 Jul 2004 22:16:04 +0000 (22:16 +0000)]
DDB -> KDB, and rename low-level trap handler to avoid name conflict.

20 years agokdb.h for PowerPC. Stubs for now.
grehan [Mon, 12 Jul 2004 22:15:03 +0000 (22:15 +0000)]
kdb.h for PowerPC. Stubs for now.

20 years agoAdd new KDB option, and also drop in long-held fxp/dc eth drivers.
grehan [Mon, 12 Jul 2004 22:14:21 +0000 (22:14 +0000)]
Add new KDB option, and also drop in long-held fxp/dc eth drivers.

20 years agodb_memrw.c has been subsumed into db_interface.c ala sparc64
grehan [Mon, 12 Jul 2004 22:13:27 +0000 (22:13 +0000)]
db_memrw.c has been subsumed into db_interface.c ala sparc64

20 years agoRemove stray line with just a tab
imp [Mon, 12 Jul 2004 21:59:06 +0000 (21:59 +0000)]
Remove stray line with just a tab
Remove usbdevs_data.h, it isn't used by the module

Noticed by: Pawel Worach

20 years agoRename Alfred's kern_setsockopt to so_setsockopt, as this seems a
dwmalone [Mon, 12 Jul 2004 21:42:33 +0000 (21:42 +0000)]
Rename Alfred's kern_setsockopt to so_setsockopt, as this seems a
a better name. I have a kern_[sg]etsockopt which I plan to commit
shortly, but the arguments to these function will be quite different
from so_setsockopt.

Approved by: alfred

20 years agoUpdate to kdb.
cognet [Mon, 12 Jul 2004 21:25:01 +0000 (21:25 +0000)]
Update to kdb.

20 years agoRemove the kbd_trap() declaration.
cognet [Mon, 12 Jul 2004 21:24:21 +0000 (21:24 +0000)]
Remove the kbd_trap() declaration.

20 years agoProtect setjmp.h with #ifndef _MACHINE_SETJMP_H_.
cognet [Mon, 12 Jul 2004 21:23:58 +0000 (21:23 +0000)]
Protect setjmp.h with #ifndef _MACHINE_SETJMP_H_.

20 years agoForward declare "struct pcb", so that one does not need to include
cognet [Mon, 12 Jul 2004 21:22:40 +0000 (21:22 +0000)]
Forward declare "struct pcb", so that one does not need to include
<machine/pcb.h> before including <machine/pmap.h>.

20 years agoImplement a stub breakpoint().
cognet [Mon, 12 Jul 2004 21:20:38 +0000 (21:20 +0000)]
Implement a stub breakpoint().

20 years agoImplement makectx().
cognet [Mon, 12 Jul 2004 21:19:43 +0000 (21:19 +0000)]
Implement makectx().

20 years agoPrototype makectx().
cognet [Mon, 12 Jul 2004 21:19:22 +0000 (21:19 +0000)]
Prototype makectx().

20 years agoImport bus_memio.h and bus_pio.h for arm.
cognet [Mon, 12 Jul 2004 21:18:30 +0000 (21:18 +0000)]
Import bus_memio.h and bus_pio.h for arm.

20 years agoImport a kdb.h for arm, which contains stubs right now.
cognet [Mon, 12 Jul 2004 21:17:51 +0000 (21:17 +0000)]
Import a kdb.h for arm, which contains stubs right now.

20 years agoRemove unnecessary softc bzero calls.
njl [Mon, 12 Jul 2004 21:15:36 +0000 (21:15 +0000)]
Remove unnecessary softc bzero calls.

20 years agoAdd the ability to detach a battery. Now batteries that are detached are
njl [Mon, 12 Jul 2004 20:53:04 +0000 (20:53 +0000)]
Add the ability to detach a battery.  Now batteries that are detached are
also removed from the battery list.

20 years agoUpdate in preparation for adding the ACPI attachment.
njl [Mon, 12 Jul 2004 20:49:26 +0000 (20:49 +0000)]
Update in preparation for adding the ACPI attachment.
* Add an fdtype ivar.  This will be the equivalent of fd->type.
* Move enabling the FIFO to the end of attach.
* Unify reset code into fdc_initial_reset().
* Add fdc_write_ivar().
* Update isa and pccard attachments accordingly.
* Set the flags unconditionally in probe since they may be overridden by
  other probe routines.  Both before and now, we're depending on probe
  being called a final time on the winning driver so the flags we get are
  the ones we intended.
* Use the bus accessor macros instead of defining our own.
* Remove duplicate assigns of fd->type.

20 years agoTeach gcore about the pathname field of '/proc/*/map' so that it doesn't
rwatson [Mon, 12 Jul 2004 20:19:40 +0000 (20:19 +0000)]
Teach gcore about the pathname field of '/proc/*/map' so that it doesn't
spin when its parser gets confused by a lack of end-of-line.

Submitted by: Dan Nelson <dan@dan.emsphone.com>
PR: 68839

20 years agoConstify 'rpcclnt_backoff'.
rwatson [Mon, 12 Jul 2004 19:37:08 +0000 (19:37 +0000)]
Constify 'rpcclnt_backoff'.

20 years agoConstify 'spx_backoff'.
rwatson [Mon, 12 Jul 2004 19:35:29 +0000 (19:35 +0000)]
Constify 'spx_backoff'.

20 years agoAfter each label in tcp_input(), assert the inpcbinfo and inpcb lock
rwatson [Mon, 12 Jul 2004 19:28:07 +0000 (19:28 +0000)]
After each label in tcp_input(), assert the inpcbinfo and inpcb lock
state that we expect.

20 years agoProcotol control block locking for netatalk DDP.
rwatson [Mon, 12 Jul 2004 18:39:59 +0000 (18:39 +0000)]
Procotol control block locking for netatalk DDP.

20 years agoImperfect synchronization solution to imperfect code: use a static 256
rwatson [Mon, 12 Jul 2004 18:37:31 +0000 (18:37 +0000)]
Imperfect synchronization solution to imperfect code: use a static 256
byte buffer in the stack for temporary printf results rather than a
global buffer without synchronization.

20 years agoRemove 'Not used' comment: at_org_code is used, just not in netatalk/.
rwatson [Mon, 12 Jul 2004 18:35:30 +0000 (18:35 +0000)]
Remove 'Not used' comment: at_org_code is used, just not in netatalk/.

20 years agoRemove an unused and unimplemented sysctl. (For the record, it was marked
alc [Mon, 12 Jul 2004 17:45:37 +0000 (17:45 +0000)]
Remove an unused and unimplemented sysctl.  (For the record, it was marked
as unimplemented in revision 1.129 nearly six years ago.)

20 years agowriters must hold both sched_lock and the process lock; therefore, readers
mtm [Mon, 12 Jul 2004 15:28:31 +0000 (15:28 +0000)]
writers must hold both sched_lock and the process lock; therefore, readers
need only obtain the process lock.

20 years agodocument the 'I' and 't' commands in the help screen in top(1).
alfred [Mon, 12 Jul 2004 15:22:44 +0000 (15:22 +0000)]
document the 'I' and 't' commands in the help screen in top(1).

Submitted by: Alex Vasylenko lxv omut.org

20 years agoRemove 'td = curthread' that shadows the arguments to coda_root().
rwatson [Mon, 12 Jul 2004 14:11:26 +0000 (14:11 +0000)]
Remove 'td = curthread' that shadows the arguments to coda_root().

Missed by: alfred

20 years agoMimic ls(1) by putting an extra space before the year in old dates
kientzle [Mon, 12 Jul 2004 13:15:13 +0000 (13:15 +0000)]
Mimic ls(1) by putting an extra space before the year in old dates

20 years agoFix tab/space screwup in long_help()
kientzle [Mon, 12 Jul 2004 13:13:42 +0000 (13:13 +0000)]
Fix tab/space screwup in long_help()

20 years agoAdd fwip module.
dfr [Mon, 12 Jul 2004 13:13:17 +0000 (13:13 +0000)]
Add fwip module.

20 years agoAdd fwip module.
dfr [Mon, 12 Jul 2004 13:12:56 +0000 (13:12 +0000)]
Add fwip module.

Submitted by: simokawa

20 years agoMake if_fwsubr.c dependant on fwip instead of firewire - there is not
dfr [Mon, 12 Jul 2004 11:52:14 +0000 (11:52 +0000)]
Make if_fwsubr.c dependant on fwip instead of firewire - there is not
much point including it if you aren't using IP over firewire.

20 years agoRemove an entry from the BUGS section: we have multibyte character
tjr [Mon, 12 Jul 2004 11:03:42 +0000 (11:03 +0000)]
Remove an entry from the BUGS section: we have multibyte character
support now.

20 years agoAttempt to handle suspend/resume better.
sos [Mon, 12 Jul 2004 10:50:50 +0000 (10:50 +0000)]
Attempt to handle suspend/resume better.

20 years agoRemove BUGS section that talked about missing multibyte character support.
tjr [Mon, 12 Jul 2004 10:46:55 +0000 (10:46 +0000)]
Remove BUGS section that talked about missing multibyte character support.
We have support now that the regular expression routines do.

20 years agoRemove BUGS section that talked about missing multibyte character support.
tjr [Mon, 12 Jul 2004 10:17:02 +0000 (10:17 +0000)]
Remove BUGS section that talked about missing multibyte character support.
We have support now that the regular expression routines do.

20 years agoAdd p5-File-Spec and p5-File-Temp.
murray [Mon, 12 Jul 2004 10:12:51 +0000 (10:12 +0000)]
Add p5-File-Spec and p5-File-Temp.

Submitted by: Dmitry Morozovsky <marck@rinet.ru>
PR: ports/68153
MFC After: 3 days

20 years agoDocument thread parameter passed to VFS_ROOT and vflush.
alfred [Mon, 12 Jul 2004 09:06:51 +0000 (09:06 +0000)]
Document thread parameter passed to VFS_ROOT and vflush.

20 years agoBump __FreeBSD_version for VFS_ROOT, vflush and kinfo_proc changes.
alfred [Mon, 12 Jul 2004 08:23:10 +0000 (08:23 +0000)]
Bump __FreeBSD_version for VFS_ROOT, vflush and kinfo_proc changes.

20 years agoAdjust the show_self code (the test got inadvertantly reversed a couple of
des [Mon, 12 Jul 2004 08:22:32 +0000 (08:22 +0000)]
Adjust the show_self code (the test got inadvertantly reversed a couple of
revisions ago)

Submitted by: Alex Vasylenko <lxv@omut.org>

20 years agoMake VFS_ROOT() and vflush() take a thread argument.
alfred [Mon, 12 Jul 2004 08:14:09 +0000 (08:14 +0000)]
Make VFS_ROOT() and vflush() take a thread argument.
This is to allow filesystems to decide based on the passed thread
which vnode to return.
Several filesystems used curthread, they now use the passed thread.

20 years agoSet BATCH=yes to avoid bumping into interactivity in the port builds.
kris [Mon, 12 Jul 2004 07:59:25 +0000 (07:59 +0000)]
Set BATCH=yes to avoid bumping into interactivity in the port builds.

XXX /usr/ports is still hardcoded, should be ${PORTSDIR}

20 years agokse_switchin ABI was changed in kernel.
davidxu [Mon, 12 Jul 2004 07:41:01 +0000 (07:41 +0000)]
kse_switchin ABI was changed in kernel.

20 years agoChange kse_switchin to accept kse_thr_mailbox pointer, the syscall
davidxu [Mon, 12 Jul 2004 07:39:20 +0000 (07:39 +0000)]
Change kse_switchin to accept kse_thr_mailbox pointer, the syscall
will be used heavily in debugging KSE threads. This breaks libpthread
on IA64, but because libpthread was not in 5.2.1 release, I would like
to change it so we needn't to introduce another syscall.

20 years agoMake regular expression matching aware of multibyte characters. The general
tjr [Mon, 12 Jul 2004 07:35:59 +0000 (07:35 +0000)]
Make regular expression matching aware of multibyte characters. The general
idea is that we perform multibyte->wide character conversion while parsing
and compiling, then convert byte sequences to wide characters when they're
needed for comparison and stepping through the string during execution.

As with tr(1), the main complication is to efficiently represent sets of
characters in bracket expressions. The old bitmap representation is replaced
by a bitmap for the first 256 characters combined with a vector of individual
wide characters, a vector of character ranges (for [A-Z] etc.), and a vector
of character classes (for [[:alpha:]] etc.).

One other point of interest is that although the Boyer-Moore algorithm had
to be disabled in the general multibyte case, it is still enabled for UTF-8
because of its self-synchronizing nature. This greatly speeds up matching
by reducing the number of multibyte conversions that need to be done.

20 years agoUse SO_REUSEADDR and SO_REUSEPORT when reconnecting NFS mounts.
alfred [Mon, 12 Jul 2004 06:22:42 +0000 (06:22 +0000)]
Use SO_REUSEADDR and SO_REUSEPORT when reconnecting NFS mounts.
Tune the timeout from 5 seconds to 12 seconds.
Provide a sysctl to show how many reconnects the NFS client has done.

Seems to fix IPv6 from: kuriyama

20 years agoAdd a new error code, REG_ILLSEQ, to indicate that a regular expression
tjr [Mon, 12 Jul 2004 06:07:26 +0000 (06:07 +0000)]
Add a new error code, REG_ILLSEQ, to indicate that a regular expression
contains an illegal multibyte character sequence.

20 years agoImplement the PT_LWPINFO request. This request can be used by the
marcel [Mon, 12 Jul 2004 05:07:50 +0000 (05:07 +0000)]
Implement the PT_LWPINFO request. This request can be used by the
tracing process to obtain information about the LWP that caused the
traced process to stop. Debuggers can use this information to select
the thread currently running on the LWP as the current thread.

The request has been made compatible with NetBSD for as much as
possible. This implementation differs from NetBSD in the following
ways:
1.  The data argument is allowed to be smaller than the size of the
    ptrace_lwpinfo structure known to the kernel, but not 0. This
    is opposite to what NetBSD allows. The reason for this is that
    we can extend the structure without affecting older binaries.
2.  On NetBSD the tracing process is to set the pl_lwpid field to
    the Id of the LWP it wants information of. We don't do that.
    Our ptrace interface allows passing the LWP Id instead of the
    PID. The tracing process is to set the PID to the LWP Id it
    wants information of.
3.  When the PID is actually the PID of the tracing process, this
    request returns the information about the LWP that caused the
    process to stop. This was the whole purpose of the request in
    the first place.

When the traced process has exited, this request will return the
LWP Id 0, indicating that the process state is not the result of
an event specific to a LWP.

20 years agoCache a pointer to the old proc (as well as negative cache) to make
alfred [Mon, 12 Jul 2004 04:55:07 +0000 (04:55 +0000)]
Cache a pointer to the old proc (as well as negative cache) to make
computing the io statistics over and over not as expensive.
This is a bit of a cop out, as I should just allocate a struct with
the computed values, but this will do for now.

20 years agoReserve a pointer "ki_udata" in kinfo_proc as a convenience for userland.
alfred [Mon, 12 Jul 2004 04:53:33 +0000 (04:53 +0000)]
Reserve a pointer "ki_udata" in kinfo_proc as a convenience for userland.

20 years agoIntroduce a global mtx 'ngsocketlist_mtx' to protect the global
rwatson [Mon, 12 Jul 2004 04:45:46 +0000 (04:45 +0000)]
Introduce a global mtx 'ngsocketlist_mtx' to protect the global
ng_socket list during insert/delete.

20 years agoDocument the new PT_LWPINFO request. In fact, the request is so new
marcel [Mon, 12 Jul 2004 04:43:58 +0000 (04:43 +0000)]
Document the new PT_LWPINFO request. In fact, the request is so new
it hasn't even been implemented yet. I just wanted to be the first
to try a new approach to development ;-)

20 years agopmap_remove_pages() must not remove wired mappings. Since
alc [Mon, 12 Jul 2004 04:40:26 +0000 (04:40 +0000)]
pmap_remove_pages() must not remove wired mappings.  Since
pmap_remove_pages() is an optimization, its implementation is optional.

Discussed with: grehan

20 years agoMark 'makeup' in ng_frame_relay as const, as its values are immutable.
rwatson [Mon, 12 Jul 2004 04:35:42 +0000 (04:35 +0000)]
Mark 'makeup' in ng_frame_relay as const, as its values are immutable.

20 years agoRemove spl's from netatalk in preparation to merge locking.
rwatson [Mon, 12 Jul 2004 04:33:58 +0000 (04:33 +0000)]
Remove spl's from netatalk in preparation to merge locking.

20 years agoCall setlocale() with category LC_ALL instead of LC_MESSAGES. We need
tjr [Mon, 12 Jul 2004 04:18:44 +0000 (04:18 +0000)]
Call setlocale() with category LC_ALL instead of LC_MESSAGES. We need
LC_CTYPE and LC_COLLATE to correctly interpret regular expressions
returned by nl_langinfo(YESEXPR), and it doesn't hurt to include the
rest.

20 years agoDump the actual bad values when this assertion is tripped.
alfred [Mon, 12 Jul 2004 04:13:38 +0000 (04:13 +0000)]
Dump the actual bad values when this assertion is tripped.

20 years agoChase the docproj ports required to build a release with NOPORTS but
murray [Mon, 12 Jul 2004 04:09:39 +0000 (04:09 +0000)]
Chase the docproj ports required to build a release with NOPORTS but
without NODOCS.

PR: ports/68153
Submitted by: Dmitry Morozovsky <marck@rinet.ru>

20 years agoMake 'S' in interactive mode toggle display of system processes.
alfred [Mon, 12 Jul 2004 03:00:50 +0000 (03:00 +0000)]
Make 'S' in interactive mode toggle display of system processes.

20 years agoRespect locale settings from the environment.
tjr [Mon, 12 Jul 2004 02:48:40 +0000 (02:48 +0000)]
Respect locale settings from the environment.

20 years agoUpdate the README notes to include the current list of supported
kientzle [Mon, 12 Jul 2004 01:54:37 +0000 (01:54 +0000)]
Update the README notes to include the current list of supported
formats and remove some outdated comments about library limitations.

20 years agoRe-add the gdb command. It was removed to be replaced by something
marcel [Mon, 12 Jul 2004 01:38:07 +0000 (01:38 +0000)]
Re-add the gdb command. It was removed to be replaced by something
more generic, but that didn't actually happen. Since the feature to
switch backends (and historically this means from DDB to GDB) is
important, make sure people can do just that until such the generic
mechanism actually sees the light of day.

Suggested by: rwatson@

20 years agoMake kdb_dbbe_select() available as an interface function. This allows
marcel [Mon, 12 Jul 2004 01:15:55 +0000 (01:15 +0000)]
Make kdb_dbbe_select() available as an interface function. This allows
changing the backend from outside the KDB frontend. For example from
within a backend. Rewrite kdb_sysctl_current to make use of this
function as well.