summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make regular expression matching aware of multibyte characters. The generaltjr2004-07-125-324/+478
| | | | | | | | | | | | | | | | | 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.
* Use SO_REUSEADDR and SO_REUSEPORT when reconnecting NFS mounts.alfred2004-07-123-2/+31
| | | | | | | 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
* Add a new error code, REG_ILLSEQ, to indicate that a regular expressiontjr2004-07-123-1/+6
| | | | contains an illegal multibyte character sequence.
* Implement the PT_LWPINFO request. This request can be used by themarcel2004-07-125-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Cache a pointer to the old proc (as well as negative cache) to makealfred2004-07-121-2/+13
| | | | | | 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.
* Reserve a pointer "ki_udata" in kinfo_proc as a convenience for userland.alfred2004-07-121-3/+4
|
* Introduce a global mtx 'ngsocketlist_mtx' to protect the globalrwatson2004-07-121-0/+8
| | | | ng_socket list during insert/delete.
* Document the new PT_LWPINFO request. In fact, the request is so newmarcel2004-07-121-0/+19
| | | | | it hasn't even been implemented yet. I just wanted to be the first to try a new approach to development ;-)
* pmap_remove_pages() must not remove wired mappings. Sincealc2004-07-123-12/+0
| | | | | | pmap_remove_pages() is an optimization, its implementation is optional. Discussed with: grehan
* Mark 'makeup' in ng_frame_relay as const, as its values are immutable.rwatson2004-07-121-1/+1
|
* Remove spl's from netatalk in preparation to merge locking.rwatson2004-07-122-30/+1
|
* Call setlocale() with category LC_ALL instead of LC_MESSAGES. We needtjr2004-07-121-1/+1
| | | | | | LC_CTYPE and LC_COLLATE to correctly interpret regular expressions returned by nl_langinfo(YESEXPR), and it doesn't hurt to include the rest.
* Dump the actual bad values when this assertion is tripped.alfred2004-07-121-1/+3
|
* Chase the docproj ports required to build a release with NOPORTS butmurray2004-07-121-1/+6
| | | | | | | without NODOCS. PR: ports/68153 Submitted by: Dmitry Morozovsky <marck@rinet.ru>
* Make 'S' in interactive mode toggle display of system processes.alfred2004-07-123-3/+11
|
* Respect locale settings from the environment.tjr2004-07-121-0/+3
|
* Update the README notes to include the current list of supportedkientzle2004-07-121-49/+47
| | | | formats and remove some outdated comments about library limitations.
* Re-add the gdb command. It was removed to be replaced by somethingmarcel2004-07-121-0/+12
| | | | | | | | | 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@
* Make kdb_dbbe_select() available as an interface function. This allowsmarcel2004-07-122-9/+21
| | | | | | 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.
* Fix a typo that slipped in during my last commit to this file.keramida2004-07-121-1/+1
| | | | Submitted by: fox@vader.aacc.cc.md.us
* Use sockbuf_pushsync() to synchronize stack and socket buffer staterwatson2004-07-111-34/+47
| | | | | | | | | | | | | | | | | | | | | in soreceive() after removing an MT_SONAME mbuf from the head of the socket buffer. When processing MT_CONTROL mbufs in soreceive(), first remove all of the MT_CONTROL mbufs from the head of the socket buffer to a local mbuf chain, then feed them into dom_externalize() as a set, which both avoids thrashing the socket buffer lock when handling multiple control mbufs, and also avoids races with other threads acting on the socket buffer when the socket buffer mutex is released to enter the externalize code. Existing races that might occur if the protocol externalize method blocked during processing have also been closed. Now that we synchronize socket buffer and stack state following modifications to the socket buffer, turn the manual synchronization that previously followed control mbuf processing with a set of assertions. This can eventually be removed. The soreceive() code is now substantially more MPSAFE.
* Remove the last bits of SPECHASH.phk2004-07-111-6/+0
|
* Add sockbuf_pushsync(), an inline function that, following a change torwatson2004-07-111-0/+38
| | | | | | | | | | the head of the mbuf chains in a socket buffer, re-synchronizes the cache pointers used to optimize socket buffer appends. This will be used by soreceive() before dropping socket buffer mutexes to make sure a consistent version of the socket buffer is visible to other threads. While here, update copyright to account for substantial rewrite of much socket code required for fine-grained locking.
* Better descriptions of the cdev malloc class and mutex.phk2004-07-111-2/+2
|
* Whitespace cleanup. This will simplify a future merge fromcperciva2004-07-111-166/+161
| | | | IANA's official list of port assignments.
* Add additional annotations to soreceive(), documenting the effects ofrwatson2004-07-111-1/+35
| | | | | | | | | | | locking on 'nextrecord' and concerns regarding potentially inconsistent or stale use of socket buffer or stack fields if they aren't carefully synchronized whenever the socket buffer mutex is released. Document that the high-level sblock() prevents races against other readers on the socket. Also document the 'type' logic as to how soreceive() guarantees that it will only return one of normal data or inline out-of-band data.
* MFi386: rev 1.213 -- fix DELAY while the debugger is active.marcel2004-07-111-12/+23
| | | | | | This also fixes the (runtime) breakage introduced in the previous commit that was the result of a botched merge. This hasn't even been compile-tested...
* Partially revert previous commit. Calling getit() unconditionally fixedmarcel2004-07-112-22/+44
| | | | | | | | | | | | | | a problem that could also be fixed differently without reverting previous attempts to fix DELAY while the debugger is active (rev 1.204). The bug was that the i8254 implements a countdown timer, while for (k)db_active a countup timer was implemented. This resulted in premature termination and consequently the breakage of DELAY. The fix (relative to rev 1.211) is to implement a countdown timer for the kdb_active case. As such the ability to step clock initialization is preserved and DELAY does what is expected of it. Blushed: bde :-) Submitted by: bde
* Fix a few cases that relied on 'implicit int' (constraint violation in C99).stefanf2004-07-115-3/+5
|
* Resolve a couple of warnings and bump WARNS to 6.stefanf2004-07-112-10/+12
|
* Expand and rewrite documentation using doxygen markup so that we candfr2004-07-111-49/+206
| | | | generate funky web pages from it.
* Pass doxygen doc comments through to the output.dfr2004-07-111-8/+33
|
* Experimental support for using doxygen to generate kernel documentation.dfr2004-07-114-0/+482
|
* Document that sx_unlock() exists as a macro.darrenr2004-07-111-6/+23
| | | | | Remove redundant include file, <sys/kernel.h>, and clean up the function list at the top with the addition of a "Sx utility macro" section.
* Add sx_unlock() macro as a frontend to both sx_sunlock() and sx_xunlock(),darrenr2004-07-111-0/+7
| | | | | using sx_cnt to determine what state the lock is in and call the respective function appropriately.
* Until I'm ready to commit the better pccard probe/attach routines, effectivelyimp2004-07-111-0/+2
| | | | comment them out.
* Fix braino: Make sure there is a current backend before we return itsmarcel2004-07-111-2/+5
| | | | | | | name in the debug.kdb.current sysctl. All other dereferences are properly guarded, but this one was overlooked. Reported by: Morten Rodal (morten at rodal dot no)
* Introduce ttygone() which indicates that the hardware is detached.phk2004-07-1116-375/+117
| | | | Move dtrwait logic to the generic TTY level.
* Fix document year.tjr2004-07-111-1/+1
| | | | Noticed by: simon
* Add fairly standard ENVIRONMENT and DIAGNOSTICS sections.tjr2004-07-111-1/+12
|
* Respect locale settings from the environment.tjr2004-07-111-0/+3
|
* MFi386: revision 1.212.nyan2004-07-113-39/+33
|
* MFi386: revision 1.406nyan2004-07-111-1/+3
|
* Fix typo in 20040702 entry.simon2004-07-111-1/+1
| | | | Noticed by: Andre Guibert de Bruet <andy@siliconlandmark.com>
* Clean up a bunch of white-space difference with IPFilter source as well asdarrenr2004-07-111-9/+8
| | | | | remove some superfluous assignments for .d_version/.d_flags in a cdevsw structure initialisation that never sees the light of day in FreeBSD.
* Remove incomplete support for multi-character collating elements. Removetjr2004-07-112-262/+8
| | | | unused character category calculations.
* Add 3 new entries:marcel2004-07-111-0/+30
| | | | | | | | o __FreeBSD_version bumped to 502122 o Alpha console initialization requires the same sio(4) hints as on other platforms. Options NO_SIO and DEV_SC removed. o KDB framework: Added KDB and GDB; Renamed WITNESS_DDB, DDB_TRACE DDB_UNATTENDED. Removed GDB_REMOTE_CHAT and DDB_NOKLDSYM.
* Bump __FreeBSD_version for the following (weak) reasons:marcel2004-07-111-1/+1
| | | | | | | | | | o Sources that are shared between kernel and userland and that may contain references to DDB or any of its functions may need to know this. o Userland tools may include <machine/gdb_machdep.h> from now on. Think kernel debugger... o The kernel core file now contains the TID of the kernel thread that made the dump.
* The SC_DISABLE_DDBKEY options has been renamed to SC_DISABLE_KDBKEY.marcel2004-07-111-1/+1
|
* Add options KDB and GDB. KDB takes on the function of what DDB usedmarcel2004-07-115-5/+15
| | | | to be. Both DDB and GDB specify which KDB backends to include.
OpenPOWER on IntegriCloud