summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add missing file.davidxu2004-02-041-0/+43
|
* A variety of further cleanups to ttyinfo():rwatson2004-02-041-77/+84
| | | | | | | | | | | | | | | | | | | | | | | | | - Rename temporary variable names ("tmp", "tmp2") to more informative names ("load", "pctcpu", "rss", ...) - Unclutter indentation and return paths: rather than lots of nested ifs, simply return earlier if it's not going to work out. Simplify general structure and avoid "deep" code. - Comment on the thread/process selection and locking. - Correct handling of "running"/"runnable" states, avoid "unknown" that people were seeing for running processes. This was due to a misunderstanding of the more complex state machine / inhibitors behavior of KSE. - Do perform ttyinfo() printing on KSE (P_SA) processes, it seems generally to work. While I initially attempted to formulate this as two commits (one layout, the other content), I concluded that the layout changes were really structural changes. Many elements submitted by: bde
* Import initial work of libpthread debugging. This is a debugger independentdavidxu2004-02-046-0/+900
| | | | | friend library for libpthread, the library will be used by debugger to read/write libpthread's internal data structures.
* - removed debug printf that was a false positive on non-OpenPIC systemsgrehan2004-02-041-7/+5
| | | | - white space nits
* Correct/improve the implementation of NdisMAllocateSharedMemoryAsync().wpaul2004-02-041-13/+50
| | | | | | | | | | | Since we have a worker thread now, we can actually do the allocation asynchronously in that thread's context. Also, we need to return a status value: if we're unable to queue up the async allocation, we return NDIS_STATUS_FAILURE, otherwise we return NDIS_STATUS_PENDING to indicate the allocation has been queued and will occur later. This replaces the kludge where we just invoked the callback routine right away in the current context.
* Add ifconfig support for network interface renaming. In the process,brooks2004-02-042-3/+49
| | | | | | | | reorganize the printing of the interface name when using wildcard cloning so it is not printed if it we either immediately rename or destroy the interface. Reviewed by: ru
* Add the kernel side of network interface renaming support.brooks2004-02-043-23/+64
| | | | | | | | | | | | | | | The basic process is to send a routing socket announcement that the interface has departed, change if_xname, update the sockaddr_dl associated with the interface, and announce the arrival of the interface on the routing socket. As part of this change, ifunit() is greatly simplified by testing if_xname directly. if_clone_destroy() now uses if_dname to look up the cloner for the interface and if_dunit to identify the unit number. Reviewed by: ru, sam (concept) Vincent Jardin <vjardin AT free.fr> Max Laier <max AT love2party.net>
* PowerPC ttys file.grehan2004-02-041-0/+313
|
* Add myself.josef2004-02-031-0/+1
| | | | Approved by: simon(mentor)
* Remove the band-aid (#include <time.h>).deischen2004-02-031-1/+0
|
* The sem_timedwait() and ksem_timedwait() functions bothdeischen2004-02-034-0/+6
| | | | | | need struct timespec, so define it here. Discussed in: standards (wollman)
* - Use a stock loader with forth support on the boot floppies.jhb2004-02-031-17/+24
| | | | | | | | | | | | | | - Use the regular forth scripts including the stock device.hints file on the boot floppies. - gzip all the various text files on the boot floppy that are larger than one sector to save on space. - Generate a loader.conf to load the kernel, acpi.ko, and mfsroot making use of the 'module_before' variables to prompt for a floppy to be entered when required and use a stock loader.rc. This enables the beastie menu on i386. - PC98 has been changed to split the mfsroot for now so that the floppies fit. When the PC98 bootstrap is updated to work with ELF files (which needs to happen anyway), then SPLIT_MFSROOT can be turned off for PC98.
* Revert the skipping of segment register reloads as it appears to actuallyjhb2004-02-032-34/+40
| | | | | be a pessimization on non Pentium4 CPUs. More importantly, it is buggy as it can cause GPF's when using APM or vm86.
* Remove RELENG_4, leaving only security branches.des2004-02-031-1/+1
|
* Add a "stable" config for 4-STABLE.des2004-02-031-0/+9
|
* Allow multiple configs to be specified to a single tbmaster instance.des2004-02-032-41/+75
|
* Fix "warning: value computed is not used".fjoe2004-02-031-1/+1
| | | | Found by: gcc 2.95.4 [FreeBSD]
* pass pcb rather than so. it is expected that per socket policyume2004-02-0315-154/+84
| | | | works again.
* Add <time.h> -- bandaid to unbreak world in <semaphore.h>.deischen2004-02-031-0/+1
|
* Remove a bogus assertion.jhb2004-02-031-1/+0
| | | | | Noticed by: bde Pointy hat to: jhb
* Document NO_VINUM, which is already listed in the man page.des2004-02-031-0/+1
|
* o Unbreak the individual jail starting patch that I broke whenmtm2004-02-031-28/+32
| | | | | | | | | I committed it. Apologies to Juergen Unger <j.unger@addict.de>. o When stopping jails output the hostname of the jails that were stopped. o Refactor o Remove extraneous empty line o Correct spelling error
* Add my birthday.le2004-02-031-0/+1
| | | | Approved by: joerg (mentor)
* Whitespace nit.des2004-02-031-1/+1
|
* Add support for initializing swap devices with random one-shot keys. Notedes2004-02-035-1/+119
| | | | | | | that the keys are currently generated by computing the MD5 checksum of 512 bytes read from /dev/random, and are passed to gbde on the command line. Sponsored by: Teleplan AS
* Mechanical whitespace cleanup. Also, note that previous commit wasdes2004-02-031-12/+12
| | | | Sponsored by: Teleplan AS
* Remove newline characters from error strings.des2004-02-031-2/+2
|
* Missed one in previous commit.des2004-02-031-1/+2
|
* Style fixes.des2004-02-031-5/+13
|
* Add prototype for sem_timedwait().deischen2004-02-032-0/+2
| | | | Reviewed by: standards (Stefan Farfeleder)
* A shorter version of keeping all -std= options out of CXXFLAGS.ru2004-02-031-1/+1
|
* Fixed MINUSLPAM:ru2004-02-031-13/+12
| | | | | | | | | | | | | | | | | | | | - Added missing NOCRYPT and NO_OPENSSL checks for Kerberos. - Don't depend on -lcrypto and -lcrypt in pam_ssh to resolve dependencies in pam_krb5 and pam_ksu -- the former may not be compiled at all if NO_OPENSSH knob is enabled. - Added missing -lcrypt to pam_ssh dependencies. - Moved librpcsvc after libypclnt. (The last two aren't strictly speaking necessary to resolve the dependencies of static versions of pam_ssh and pam_unix, respectively, but they correspond to dynamic dependencies of libssh and libypclnt, and are put here for consistency.) In collaboration with: bde Reviewed by: des
* Take signal.c out of sources.ru2004-02-031-1/+0
| | | | Reviewed by: nectar
* Put generated headers into SRCS so that we pick them up even ifru2004-02-032-1/+3
| | | | "make depend" was not run.
* Use device alias "mpic" to locate the macio OpenPIC. This worksgrehan2004-02-031-6/+5
| | | | | | on the new 12/15/17" PowerBooks that don't have the "interrupt-controller" property underneath "/chosen", which was the previous way of searching.
* Implement support for single packet sends. The Intel Centrino driverwpaul2004-02-033-7/+65
| | | | | | | | | | | | | | | | | | | | | | | | that Asus provides on its CDs has both a MiniportSend() routine and a MiniportSendPackets() function. The Microsoft NDIS docs say that if a driver has both, only the MiniportSendPackets() routine will be used. Although I think I implemented the support correctly, calling the MiniportSend() routine seems to result in no packets going out on the air, even though no error status is returned. The MiniportSendPackets() function does work though, so at least in this case it doesn't matter. In if_ndis.c:ndis_getstate_80211(), if ndis_get_assoc() returns an error, don't bother trying to obtain any other state since the calls may fail, or worse cause the underlying driver to crash. (The above two changes make the Asus-supplied Centrino work.) Also, when calling the OID_802_11_CONFIGURATION OID, remember to initialize the structure lengths correctly. In subr_ndis.c:ndis_open_file(), set the current working directory to rootvnode if we're in a thread that doesn't have a current working directory set.
* Configure a jail sysctl value only if it is different thanmtm2004-02-031-26/+33
| | | | | what the rc.conf(5) knob specifies. Also, correct a minor capitalization error.
* Removed bogus checks that (PCPU_GET(curpcb) != NULL). Rev.1.586 ofbde2004-02-031-3/+1
| | | | | | | | | | | | | machdep.c fixed the missing early initialization of curpcb, so curpcb is now always set together with curthread and it cannot be NULL except before the IDT has been set up (so trap() is unreachable) or after a memory error. In any case, it was often used without checking. curcpb shouldn't exist anyway. It doesn't exist for most non-i386 arches. It just caches curthread->td_pcb in a global. This was a better idea before it was per-cpu. trap() and some other places can get at it more efficiently using td->td_pcb instead of PCPU_GET(curpcb). The main exception is support.s which mostly wants only curpcb->pcb_onfault.
* Provide a userland version of non-pshared semaphores and add cancellationdeischen2004-02-034-338/+306
| | | | points to sem_wait() and sem_timedwait(). Also make sem_post signal-safe.
* Modify the implementation of libc semaphores so that they can bedeischen2004-02-031-146/+132
| | | | | | | | | | | | overridden by the threads library to provide a userland version of non-pshared semaphores and cancellation points. Also add a sem_timedwait(). The libc version of semaphores always uses kernel semaphores regardless of whether pshared is set or not. When threads are not present, it is difficult to get sem_wait() or sem_timedwait() to do the right thing (since pthread_cond_timedwait() and pthread_cond_wait() are stubs in libc and just return immediately).
* Regen.deischen2004-02-034-5/+7
|
* Sync with kern/syscalls.master.deischen2004-02-031-0/+1
|
* Regen after adding ksem_timedwait().deischen2004-02-035-7/+16
|
* Add ksem_timedwait() to complement ksem_wait().deischen2004-02-034-6/+64
| | | | Glanced at by: alfred
* Don't dec/inc the amountpipes counter every time we resize a pipe --rwatson2004-02-031-2/+3
| | | | | | | | | | instead, just dec/inc in the ctor/dtor. For now, increment/decrement in two's, since we're now performing the operation once per pair, not once per pipe. Not really any measurable performance change in my micro-benchmarks, but doing less work is good, especially when it comes to atomic operations. Suggested by: alc
* Notify the user (at kern.emerg) that the system will be shutting down ifnjl2004-02-033-6/+27
| | | | | | it is still above the critical temperature on the next poll cycle. This is a 10 second advance notice by default. Document the private (non-standard) notify we will be using with devd(8).
* Correct a typo and unbreak the build.nectar2004-02-031-1/+1
| | | | Pointy hat to: pjd
* Catch instances of (pipe == NULL) that were obsoleted with recentrwatson2004-02-031-6/+6
| | | | | | | | changes to jointly allocated pipe pairs. Replace these checks with pipe_present checks. This avoids a NULL pointer dereference when a pipe is half-closed. Submitted by: Peter Edwards <peter.edwards@openet-telecom.com>
* Add a note about the default media types and a simple reminder to keeptrhodes2004-02-031-0/+17
| | | | | | | | | | individules from asking a question which may result in the following answer: "Hi, please do not run a newfs utility on a file system if there is still data on it you would like to keep." PR: 56894 Submitted by: Marc Silver <marcs@draenor.org> (original version)
* Drop the reference count on the old vmspace after fully switching thejhb2004-02-021-2/+2
| | | | | | current thread to the new vmspace. Suggested by: dillon
OpenPOWER on IntegriCloud