summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Adjust for brain outage that affected the previous commit.Jacques Vidrine2004-01-061-1/+1
| | | | | | | Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Notes: svn path=/head/; revision=124193
* Add required headers.Jacques Vidrine2004-01-062-0/+4
| | | | Notes: svn path=/head/; revision=124191
* Add required headers and function declarations.Jacques Vidrine2004-01-062-0/+3
| | | | Notes: svn path=/head/; revision=124190
* Remove unused variables. Add required headers and functionJacques Vidrine2004-01-067-6/+12
| | | | | | | declarations. Notes: svn path=/head/; revision=124182
* Use ANSI C function definition for `_mcount' and remove `static'Jacques Vidrine2004-01-061-2/+2
| | | | | | | | | prototype from header file. Discussed with: bde, maybe one year ago Notes: svn path=/head/; revision=124180
* Add missing declaration.Jacques Vidrine2004-01-061-0/+2
| | | | Notes: svn path=/head/; revision=124178
* Work around a `warning: zero-length printf format string'.Jacques Vidrine2004-01-061-1/+1
| | | | Notes: svn path=/head/; revision=124177
* Avoid undefined behavior:Jacques Vidrine2004-01-061-2/+2
| | | | | | | foo[i] = bar[++i]; /* Which operator [] will be evaluated first? */ Notes: svn path=/head/; revision=124176
* Make intentions explicit with additional parenthesis.Jacques Vidrine2004-01-062-8/+8
| | | | Notes: svn path=/head/; revision=124175
* Remove unused variables and function declarations. Add missing headers.Jacques Vidrine2004-01-065-8/+6
| | | | Notes: svn path=/head/; revision=124174
* Kernel now supports per-thread sigaltstack, follow the change toDavid Xu2004-01-032-12/+2
| | | | | | | enable sigaltstack for scope system thread. Notes: svn path=/head/; revision=124095
* Return error code in errno, not in return value.David Xu2004-01-022-6/+12
| | | | Notes: svn path=/head/; revision=124056
* Fix a typo.David Xu2004-01-022-2/+2
| | | | Notes: svn path=/head/; revision=124055
* Reenable signals for threads after joining.Daniel Eischen2003-12-311-0/+3
| | | | | | | Submitted by: Marc Olzheim <marcolz@stack.nl> Notes: svn path=/head/; revision=124018
* Removed MLINKS to nonimplemented/nonexistent functions.Ruslan Ermilov2003-12-301-3/+0
| | | | Notes: svn path=/head/; revision=124000
* Merge from libc_r: document pthread_attr_[gs]etstack().Ruslan Ermilov2003-12-302-1/+11
| | | | Notes: svn path=/head/; revision=123999
* Pull revision 1.13 from libpthread/man/pthread_mutex_init.3:Ruslan Ermilov2003-12-301-2/+0
| | | | | | | | | | - Remove error code that can't be returned (and original description was not proper English) PR: docs/57434 Notes: svn path=/head/; revision=123997
* Pull some changes (mostly cosmetic) from libc_r manpagesRuslan Ermilov2003-12-3030-75/+143
| | | | | | | in preparation for the merge. Notes: svn path=/head/; revision=123995
* o Implement pthread_mutex_timedlock(), which does not block indefinitely onMike Makonnen2003-12-301-0/+32
| | | | | | | | a mutex locked by another thread. o document it: pthread_mutex_timedlock(3) Notes: svn path=/head/; revision=123987
* Make it possible for the library to specify a timeout value whenMike Makonnen2003-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. Notes: svn path=/head/; revision=123986
* Forgot to commit this file for last commit. :(David Xu2003-12-292-0/+8
| | | | Notes: svn path=/head/; revision=123975
* Implement sigaltstack() as per-threaded. Current only scope process threadDavid Xu2003-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 Notes: svn path=/head/; revision=123974
* Describe kern.ipc.nsfbufsused and kern.ipc.nsfbufspeak.Maxim Konovalov2003-12-291-0/+9
| | | | | | | Reviewed by: silby Notes: svn path=/head/; revision=123968
* Correctly retrieve sigaction flags.David Xu2003-12-282-4/+4
| | | | Notes: svn path=/head/; revision=123933
* Don't block SIGTRAP - it makes it hard to debug programs with gdb.Doug Rabson2003-12-261-0/+1
| | | | | | | Reviewed by: mtm Notes: svn path=/head/; revision=123862
* Make sure we initialise dirp->dd_size if we aren't reading a unionfsDoug Rabson2003-12-261-0/+1
| | | | | | | | | directory. Special thanks to: valgrind Notes: svn path=/head/; revision=123861
* Preparations to make libthr work in multi-threaded fork()ing applications.Mike Makonnen2003-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. Notes: svn path=/head/; revision=123859
* Add restrict qualifiers. (docs)Alfred Perlstein2003-12-245-5/+5
| | | | | | | | PR: 44394 Submitted by: Craig Rodrigues <rodrige@attbi.com> Notes: svn path=/head/; revision=123814
* Properly advance "x/y/z" form slash-pointers in some rare casesAndrey A. Chernov2003-12-241-4/+4
| | | | | | | PR: 60539 Notes: svn path=/head/; revision=123801
* Back out previous commit due to incorrect content.Tom Rhodes2003-12-231-128/+62
| | | | | | | Noticed by: wollman Notes: svn path=/head/; revision=123780
* Document many of the missing posix.1b options.Tom Rhodes2003-12-231-62/+128
| | | | | | | | | PR: 20528 Submitted by: bms (original version) Requested by: mike (awhile ago) Notes: svn path=/head/; revision=123773
* Correct URI to USB specs.Hideyuki KURASHINA2003-12-211-1/+1
| | | | | | | | Submitted by: Lukas Ertl <l.ertl@univie.ac.at> PR: docs/60457 Notes: svn path=/head/; revision=123705
* Implement __cxa_atexit/__cxa_finalize as specified by the cross-vendorAlexander Kabaev2003-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) Notes: svn path=/head/; revision=123674
* Implement __cxa_atexit/__cxa_finalize as specified by the cross-vendorAlexander Kabaev2003-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) Notes: svn path=/head/; revision=123673
* Replace a comment with more accurated one, memory heap is now protected byDavid Xu2003-12-192-6/+4
| | | | | | | new fork() wrapper. Notes: svn path=/head/; revision=123668
* Code clean up, remove unused MACROS and function prototypes.David Xu2003-12-192-36/+0
| | | | Notes: svn path=/head/; revision=123666
* First byte of GBK-like sequences is 0x81, not 0x80Andrey A. Chernov2003-12-191-1/+1
| | | | Notes: svn path=/head/; revision=123665
* Brucification: Don't initialize in declaration, make sure extra linesJordan K. Hubbard2003-12-182-2/+5
| | | | | | | follow declaration section. Notes: svn path=/head/; revision=123631
* Return to the caller if write() returns 0.Daniel Eischen2003-12-171-0/+2
| | | | | | | PR: 59291 Notes: svn path=/head/; revision=123610
* Do comparison using appropriate casting first, as per SUSv3 (search for firstJordan K. Hubbard2003-12-172-2/+4
| | | | | | | [last] character, not int). Notes: svn path=/head/; revision=123584
* Remove _giant_mutex and its associated macros.Mike Makonnen2003-12-152-85/+0
| | | | Notes: svn path=/head/; revision=123552
* Comment out most of pthread_setschedparam. Pthread priorities didn'tMike Makonnen2003-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. Notes: svn path=/head/; revision=123551
* When creating a pthread in the suspended state their were twoMike Makonnen2003-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> Notes: svn path=/head/; revision=123542
* Document the effect of sysctl tunables controlling p_candebug(9) onJoseph Koshy2003-12-141-1/+7
| | | | | | | ktrace(2). Notes: svn path=/head/; revision=123534
* Doh! Lock the thread passed in by the caller, not the current thread.Mike Makonnen2003-12-121-2/+2
| | | | Notes: svn path=/head/; revision=123489
* Fix a strict aliasing issue. Also remove an unnecessary pam_get_item()Dag-Erling Smørgrav2003-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. Notes: svn path=/head/; revision=123455
* More strict aliasing fixes.Dag-Erling Smørgrav2003-12-111-26/+29
| | | | | | | Submitted by: Andreas Hauser <andy-freebsd@splashground.de> Notes: svn path=/head/; revision=123454
* Fix strict aliasing breakage in PAM modules (except pam_krb5, which needsDag-Erling Smørgrav2003-12-119-42/+44
| | | | | | | more work than the others). This should make most modules build with -O2. Notes: svn path=/head/; revision=123448
* Fixed English error in previous commit. Fixed some older English errors.Bruce Evans2003-12-111-6/+5
| | | | | | | Removed a redundant clause. Notes: svn path=/head/; revision=123440
* Remove uses of GIANT_LOCK and replace with appropriate threadMike Makonnen2003-12-111-7/+12
| | | | | | | and thread list locks. Notes: svn path=/head/; revision=123439