summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement zero system call thread switching. Performance ofdeischen2000-10-1377-3389/+5243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thread switches should be on par with that under scheduler activations. o Timing is achieved through the use of a fixed interval timer (ITIMER_PROF) to count scheduling ticks instead of retrieving the time-of-day upon every thread switch and calculating elapsed real time. o Polling for I/O readiness is performed once for each scheduling tick instead of every thread switch. o The non-signal saving/restoring versions of setjmp/longjmp are used to save and restore thread contexts. This may allow the removal of _THREAD_SAFE macros from setjmp() and longjmp() - needs more investigation. Change signal handling so that signals are handled in the context of the thread that is receiving the signal. When signals are dispatched to a thread, a special signal handling frame is created on top of the target threads stack. The frame contains the threads saved state information and a new context in which the thread can run. The applications signal handler is invoked through a wrapper routine that knows how to restore the threads saved state and unwind to previous frames. Fix interruption of threads due to signals. Some states were being improperly interrupted while other states were not being interrupted. This should fix several PRs. Signal handlers, which are invoked as a result of a process signal (not by pthread_kill()), are now called with the code (or siginfo_t if SA_SIGINFO was set in sa_flags) and sigcontext_t as received from the process signal handler. Modify the search for a thread to which a signal is delivered. The search algorithm is now: o First thread found in sigwait() with signal in wait mask. o First thread found sigsuspend()'d on the signal. o Current thread if signal is unmasked. o First thread found with signal unmasked. Collapse machine dependent support into macros defined in pthread_private.h. These should probably eventually be moved into separate MD files. Change the range of settable priorities to be compliant with POSIX (0-31). The threads library uses higher priorities internally for real-time threads (not yet implemented) and threads executing signal handlers. Real-time threads and threads running signal handlers add 64 and 32, respectively, to a threads base priority. Some other small changes and cleanups. PR: 17757 18559 21943 Reviewed by: jasone
* o Introduce cap_from_text() and cap_to_text() implementations.rwatson2000-10-134-2/+1146
| | | | | | Reviewed by: green Obtained from: TrustedBSD Project Security audited by: imp, green
* o Simplify capability types away from an array of ints to a singlerwatson2000-10-134-16/+20
| | | | | | | | | | | | | | | | | | u_int64_t flag field, bounding the number of capabilities at 64, but substantially cleaning up capability logic (there are currently 43 defined capabilities). o Heads up to anyone actually using capabilities: the constant assignments for various capabilities have been redone, so any persistent binary capability stores (i.e., '$posix1e.cap' EA backing files) must be recreated. If you have one of these, you'll know about it, so if you have no idea what this means, don't worry. o Update libposix1e to reflect this new definition, fixing the exposed functions that directly manipulate the flags fields. Obtained from: TrustedBSD Project
* Use the right user namedes2000-10-131-3/+3
|
* Document recent changes in URL parsing and proxy handlingdes2000-10-121-10/+20
|
* ftp.c needs _http_request()des2000-10-121-0/+11
|
* Rework proxy handling so that proxies can be specified as URLs.des2000-10-122-206/+156
| | | | As a side effect, remove a lot of duplicate and now redundant code.
* Relax URL syntax so that schemeless URLs are supported.des2000-10-121-24/+23
|
* Add macros for the names of the URL schemes we support.des2000-10-121-0/+5
|
* o Update BUGS entry to indicate in a more precise manner the implementationrwatson2000-10-1218-46/+30
| | | | | | | status of capabilities (library is complete, kernel work is maintained outside the tree). Obtained from: TrustedBSD Project
* Make the ENVIRONMENT section more legible, and mention that HTTP_AUTH isdes2000-10-121-4/+10
| | | | colon-separated.
* Fix pthread cancellation point propagation.jasone2000-10-121-5/+5
|
* Fix a buildworld hiccup with build-tools that wasn't present in standalonepeter2000-10-112-2/+2
| | | | library builds.
* Oops, beforedepend isn't needed. The build problem I had was due topeter2000-10-112-4/+0
| | | | something else.
* Update for ncurses 5.1-20001009 importpeter2000-10-112-6/+20
|
* Update for ncurses 20001009 importpeter2000-10-112-6/+20
|
* Update after ncurses 20001009 importpeter2000-10-112-6/+24
|
* Update bmake glue after ncurses 5.1-20001009 import.peter2000-10-114-20/+60
|
* Fix alphabetical ordering for libsmutilgshapiro2000-10-101-1/+1
|
* Use sendmail's version of vacation. It is command line and databasegshapiro2000-10-101-6/+1
| | | | | | | | | compatible with the old version but includes new functionality and bug fixes. Since it is not part of the NO_SENDMAIL make.conf option, libsmdb and libsmutil should always be built for vacation's sake. PR: 15227
* Inital PowerPC loader build support.obrien2000-10-102-1/+8
| | | | Submitted by: Benno Rice <benno@jeamland.net>
* Fix the embeded VCS ID for FreeBSD vs. NetBSD.obrien2000-10-101-3/+2
|
* Architecture-specific setjump()/longjmp() bits for the PowerPCobrien2000-10-101-0/+39
| | | | | | | needed by the loader. Submitted by: Benno Rice <benno@jeamland.net> Obtained from: NetBSD (Wolfgang Solfrank <ws@@tools.de>)
* Initiate deorbit burn sequence for <machine/console.h>.phk2000-10-087-7/+13
| | | | | | | | | Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/console.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/console.h> files will be removed.
* o Introduce a MAINTAINER entry for libposix1e, since it is activelyrwatson2000-10-022-0/+2
| | | | developed and maintained.
* Include fcntl.hbrian2000-10-021-0/+1
| | | | | PR: 21697 Submitted by: Barak Enat <barak_enat@yahoo.com>
* Correct uu_lock_txfr. I don't think this ever worked correctly.brian2000-10-021-5/+6
|
* A bit of indentation reformatting.ru2000-10-021-33/+21
|
* Use issetugid instead of comparing get[ug]id and gete[ug]id.nectar2000-09-301-5/+2
| | | | Suggested by: Don Lewis <Don.Lewis@tsc.tdk.com>
* Document passwd_format further.green2000-09-301-0/+4
|
* Ignore HESIOD_CONFIG and HES_DOMAIN environmental variables fornectar2000-09-291-2/+12
| | | | | | set-user-ID and set-group-ID programs. Suggested by: Danny Braniss <danny@cs.huji.ac.il>
* Add man pages for mod*(2). Shamelessly cut/pasted from the kld*(2) manpeter2000-09-2810-0/+307
| | | | pages by Chris Costello.
* Fix typophantom2000-09-271-1/+1
| | | | | PR: misc/21596 Submitted by: TOGAWA Satoshi <toga@puyo.org>
* off-by-1 error in string length validationitojun2000-09-251-7/+6
| | | | From: Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
* Work around buggy servers such as NCSA httpd which send an incompletedes2000-09-241-9/+18
| | | | HTTP-Version on the Status-Line (see RFC2616 sections 3.1 and 6.1).
* o Minor whitespace, comment cleanupsrwatson2000-09-222-54/+28
| | | | | | | o Removal of unneeded enum o Removal of commented out debugging printf()'s. Obtained from: TrustedBSD Project
* Better documentation of append mode. This should have gone in -currenteivind2000-09-221-0/+8
| | | | | | directly. Now also .Xr fseek reference. Prodded by: sheldonh
* Resurrect documentation of chflags(2)'s SF_ARCHIVED.rse2000-09-221-2/+2
| | | | | PR: 21428 Reviewed by: ben
* Add a couple of debug register helper functions to assist in settingbsd2000-09-215-4/+249
| | | | | | and clearing watchpoints. Reviewed by: jwd@FreeBSD.org, -hackers@
* Fixed the calculations with UDP header length field.ru2000-09-211-2/+2
| | | | | | | The field is in network byte order and contains the size of the header. Reviewed by: brian
* IN_CLASS*() macros assume host order and s_addr is network byteps2000-09-201-2/+2
| | | | order, so we must convert them to host order.
* Oops, un-spam this file - the last commit was an accident.brian2000-09-201-1/+0
| | | | Pointed out by: phk
* Only realloc() environ if we're sure that we know where it came from.brian2000-09-202-5/+5
| | | | | | The recent problems with sshd were due to sshd reassigning `environ' when setenv() thinks it owns it. setenv() subsequently realloc()s the new version of environ and *boom*
* o Whitespace reduction appled to FreeBSD CVS IDrwatson2000-09-192-2/+2
| | | | Obtained from: TrustedBSD Project
* o General warning fixing commitrwatson2000-09-1914-18/+12
| | | | | | | | - Include <stdlib.h> and <string.h> as needed for prototypes - Remove unneeded "error" variables o Make cap_init() use cap_clear() instead of bzero() Obtained from: TrustedBSD Project
* o Add cap_from_text(3) and cap_to_text(3) man pages.rwatson2000-09-196-0/+464
| | | | | | | o Implementations will remain in the seperately distributed capability patch until the cap_t type changes are synchronized. Obtained from: TrustedBSD Project
* o EACCES is not a possible error for acl_from_text(), so fixrwatson2000-09-1920-28/+22
| | | | | | | | acl_from_text.3 o Minor whitespace cleanups relative to the TrustedBSD tree to reduce content-free differences. Obtained from: TrustedBSD Project
* Add thread-safe wrapper for fpathconf(2) syscall.sobomax2000-09-197-0/+52
| | | | Reviewed by: jlemon
* Document RTLD_DEFAULT and the search algorithm used for resolvingjdp2000-09-191-6/+43
| | | | undefined symbols.
* Make a somewhat unsatisfactory attempt to describe the effects ofjdp2000-09-191-1/+18
| | | | the RTLD_GLOBAL and RTLD_LOCAL flags which can be passed to dlopen().
OpenPOWER on IntegriCloud