summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Kernel now supports per-thread sigaltstack, follow the change todavidxu2004-01-032-12/+2
| | | | enable sigaltstack for scope system thread.
* Return error code in errno, not in return value.davidxu2004-01-022-6/+12
|
* Fix a typo.davidxu2004-01-022-2/+2
|
* Reenable signals for threads after joining.deischen2003-12-311-0/+3
| | | | Submitted by: Marc Olzheim <marcolz@stack.nl>
* Removed MLINKS to nonimplemented/nonexistent functions.ru2003-12-301-3/+0
|
* Merge from libc_r: document pthread_attr_[gs]etstack().ru2003-12-302-1/+11
|
* Pull revision 1.13 from libpthread/man/pthread_mutex_init.3:ru2003-12-301-2/+0
| | | | | | | - Remove error code that can't be returned (and original description was not proper English) PR: docs/57434
* Pull some changes (mostly cosmetic) from libc_r manpagesru2003-12-3030-75/+143
| | | | in preparation for the merge.
* o Implement pthread_mutex_timedlock(), which does not block indefinitely onmtm2003-12-301-0/+32
| | | | | a mutex locked by another thread. o document it: pthread_mutex_timedlock(3)
* Make it possible for the library to specify a timeout value whenmtm2003-12-303-22/+49
| | | | | | | | | | waiting on a locked mutex. This involves passing a struct timespec from the pthread mutex locking interfaces all the way down to the function that suspends the thread until the mutex is released. The timeout is assumed to be an absolute time (i.e. not relative to the current time). Also, in _thread_suspend() make the passed in timespec const.
* Forgot to commit this file for last commit. :(davidxu2003-12-292-0/+8
|
* Implement sigaltstack() as per-threaded. Current only scope process threaddavidxu2003-12-299-48/+464
| | | | | | | | is supported, for scope system process, kernel signal bits need to be changed. Reviewed by: deischen Tested on : i386 amd64 ia64
* Describe kern.ipc.nsfbufsused and kern.ipc.nsfbufspeak.maxim2003-12-291-0/+9
| | | | Reviewed by: silby
* Correctly retrieve sigaction flags.davidxu2003-12-282-4/+4
|
* Don't block SIGTRAP - it makes it hard to debug programs with gdb.dfr2003-12-261-0/+1
| | | | Reviewed by: mtm
* Make sure we initialise dirp->dd_size if we aren't reading a unionfsdfr2003-12-261-0/+1
| | | | | | directory. Special thanks to: valgrind
* Preparations to make libthr work in multi-threaded fork()ing applications.mtm2003-12-263-63/+81
| | | | | | | | | | | | | o Remove some code duplication between _thread_init(), which is run once to initialize libthr and the intitial thread, and pthread_create(), which initializes newly created threads, into a new function called from both places: init_td_common() o Move initialization of certain parts of libthr into a separate function. These include: - Active threads list and it's lock - Dead threads list and it's lock & condition variable - Naming and insertion of the initial thread into the active threads list.
* Add restrict qualifiers. (docs)alfred2003-12-245-5/+5
| | | | | PR: 44394 Submitted by: Craig Rodrigues <rodrige@attbi.com>
* Properly advance "x/y/z" form slash-pointers in some rare casesache2003-12-241-4/+4
| | | | PR: 60539
* Back out previous commit due to incorrect content.trhodes2003-12-231-128/+62
| | | | Noticed by: wollman
* Document many of the missing posix.1b options.trhodes2003-12-231-62/+128
| | | | | | PR: 20528 Submitted by: bms (original version) Requested by: mike (awhile ago)
* Correct URI to USB specs.rushani2003-12-211-1/+1
| | | | | Submitted by: Lukas Ertl <l.ertl@univie.ac.at> PR: docs/60457
* Implement __cxa_atexit/__cxa_finalize as specified by the cross-vendorkan2003-12-192-13/+2
| | | | | | | | | | | | | รณ++ ABI document at http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor The ABI was initially defined for ia64, but GCC3 and Intel compilers have adopted it on other platforms. This is the patch from PR bin/59552 with a number of changes by me. PR: bin/59552 Submitted by: Bradley T Hughes (bhughes at trolltech dot com)
* Implement __cxa_atexit/__cxa_finalize as specified by the cross-vendorkan2003-12-191-7/+101
| | | | | | | | | | | | | C++ ABI document at http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor The ABI was initially defined for ia64, but GCC3 and Intel compilers have adopted it on other platforms. This is the patch from PR bin/59552 with a number of changes by me. PR: bin/59552 Submitted by: Bradley T Hughes (bhughes at trolltech dot com)
* Replace a comment with more accurated one, memory heap is now protected bydavidxu2003-12-192-6/+4
| | | | new fork() wrapper.
* Code clean up, remove unused MACROS and function prototypes.davidxu2003-12-192-36/+0
|
* First byte of GBK-like sequences is 0x81, not 0x80ache2003-12-191-1/+1
|
* Brucification: Don't initialize in declaration, make sure extra linesjkh2003-12-182-2/+5
| | | | follow declaration section.
* Return to the caller if write() returns 0.deischen2003-12-171-0/+2
| | | | PR: 59291
* Do comparison using appropriate casting first, as per SUSv3 (search for firstjkh2003-12-172-2/+4
| | | | [last] character, not int).
* Remove _giant_mutex and its associated macros.mtm2003-12-152-85/+0
|
* Comment out most of pthread_setschedparam. Pthread priorities didn'tmtm2003-12-151-1/+4
| | | | | | work before anyways, and I didn't want to fix broken code I had no way of testing. It was necessary however, in order to get rid of GIANT_LOCK. Pthread priorities will have to wait a little longer to get fixed.
* When creating a pthread in the suspended state their were twomtm2003-12-151-2/+4
| | | | | | | | problems: (1) The wrong flag was being checked for in the attribute (2) The pthread's state was not being set to indicate it was suspended. Noticed by: Igor Sysoev <is@rambler-co.ru>
* Document the effect of sysctl tunables controlling p_candebug(9) onjkoshy2003-12-141-1/+7
| | | | ktrace(2).
* Doh! Lock the thread passed in by the caller, not the current thread.mtm2003-12-121-2/+2
|
* Fix a strict aliasing issue. Also remove an unnecessary pam_get_item()des2003-12-111-8/+6
| | | | | | | call (pam_get_authtok() will return the previous token if try_first_pass or use_first_pass is specified). Incidentally fix an ugly bug where the buffer holding the prompt was freed immediately before use, instead of after.
* More strict aliasing fixes.des2003-12-111-26/+29
| | | | Submitted by: Andreas Hauser <andy-freebsd@splashground.de>
* Fix strict aliasing breakage in PAM modules (except pam_krb5, which needsdes2003-12-119-42/+44
| | | | more work than the others). This should make most modules build with -O2.
* Fixed English error in previous commit. Fixed some older English errors.bde2003-12-111-6/+5
| | | | Removed a redundant clause.
* Remove uses of GIANT_LOCK and replace with appropriate threadmtm2003-12-111-7/+12
| | | | and thread list locks.
* Add reference to standards/55112 for next time SHLIB_MAJOR is bumped.mikeh2003-12-101-0/+1
| | | | Suggested by: wollman
* Implement seeking to earlier offsets in gzipfs. This allows my loadergreen2003-12-101-15/+30
| | | | | to e.g. correctly load all .ko.gz's I've tried, as opposed to messing up trying to read section headers on some of them.
* Add sticky(8) cross reference.dds2003-12-101-1/+2
| | | | | | PR: docs/60068 Submitted by: Ken Stailey MFC after: 2 weeks
* PowerPC-conditional changes:grehan2003-12-101-1/+7
| | | | | | - include ashldi3.c/ashrdi3.c from libc for UFS 64-bit arith - pull in syncicache.c from libc, and define _STANDALONE for loader usage
* - Put manh/manl bitfields into correct-sized integral type.grehan2003-12-101-5/+4
| | | | - remove XXX normalization bit comment, code is correct.
* Add a short description of the kse_switchin(2) syscall to the ksemarcel2003-12-102-2/+14
| | | | | manpage and add a kse_switchin link. While here, list kse_thr_interrupt before kse_wakeup in the MLINKS variable and the synopsis.
* accept() returns a file descriptor when it succeeds which is verydeischen2003-12-094-4/+4
| | | | | | | | | likely to be non-zero. When leaving the cancellation point, check the return value against -1 to see if cancellation should be checked. While I'm here, make the same change to connect() just to be consisitent. Pointed out by: davidxu
* Remove an unused struct definition.deischen2003-12-092-24/+0
|
* Add cancellation points for accept() and connect().deischen2003-12-099-0/+208
|
* Take a stab at fixing some of the macro-nightmare.mtm2003-12-091-46/+23
| | | | | | PTHREAD_NEW_STATE should work as expected now: a thread marked PS_RUNNING will get sent a SIGTHR. Still more cleanups necessary.
OpenPOWER on IntegriCloud