summaryrefslogtreecommitdiff
path: root/lib/libc_r
Commit message (Collapse)AuthorAgeFilesLines
* Remove libc_r threading library. It has been disconnected from the buildEd Maste2010-11-13167-23451/+0
| | | | | | | | | for four years (since r162846). Submitted by: Alexander Best arundel@ Notes: svn path=/head/; revision=215269
* MFtbemd:Warner Losh2010-08-231-1/+1
| | | | | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform. Notes: svn path=/head/; revision=211725
* Though these libraries are disconnected from the build and don'tRuslan Ermilov2010-02-151-16/+0
| | | | | | | | | | | | | | currently build, they should be kept. [1] Unbreak their makefiles by removing the support for the long gone DEFAULT_THREAD_LIB knob. (Allows the tools/make_libdeps.sh script to succeed.) According to: davidxu and deischen [1] MFC after: 3 days Notes: svn path=/head/; revision=203918
* Use, in uncovered part, the END() macro in order to improve debugging.Attilio Rao2009-05-252-0/+2
| | | | | | | | | | | | In this specific case, Valgrind won't get confused when analyzing such functions. Sponsored by: Sandvine Incorporated Tested by: emaste MFC: 3 days Notes: svn path=/head/; revision=192760
* Honor WITHOUT_INSTALLLIB in some places.Jung-uk Kim2009-02-131-0/+2
| | | | Notes: svn path=/head/; revision=188583
* Fix leak of kqueue() file descriptors when linked with staticDaniel Eischen2009-02-081-0/+1
| | | | | | | | | | libc_r. PR: 58687 Submitted by: Jonathon Lennox <lennox at cs dot columbia dot edu> Notes: svn path=/head/; revision=188300
* Call the fcntl compatiblity wrapper from the thread library fcntl wrappersDoug Rabson2008-05-301-1/+3
| | | | | | | | | so that they get the benefit of the (limited) forward ABI compatibility. MFC after: 1 week Notes: svn path=/head/; revision=179434
* Fix some "in in" typos in comments.Christian Brueffer2008-03-261-1/+1
| | | | | | | | | | PR: 121490 Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com> Approved by: rwatson (mentor), jkoshy MFC after: 3 days Notes: svn path=/head/; revision=177626
* Bump library versions in preparation for 7.0.Daniel Eischen2007-05-211-1/+1
| | | | | | | Ok'd by: kan Notes: svn path=/head/; revision=169807
* Fix a logic bug I re-introduced in my patch I sent to DanielRuslan Ermilov2007-05-181-1/+1
| | | | | | | | | | that would cause the selected shared threading library to be overwritten with its 32-bit version on amd64. PR: amd64/112509 Notes: svn path=/head/; revision=169669
* Allow DEFAULT_THREAD_LIB to be set from /etc/src.conf.Daniel Eischen2007-05-171-4/+4
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=169648
* Enable symbol versioning by default. Use WITHOUT_SYMVER to disable it.Daniel Eischen2007-05-131-1/+8
| | | | | | | | | | | | | Warning, after symbol versioning is enabled, going back is not easy (use WITHOUT_SYMVER at your own risk). Change the default thread library to libthr. There most likely still needs to be a version bump for at least the thread libraries. If necessary, this will happen later. Notes: svn path=/head/; revision=169524
* Remove 3rd clause, renumber, ok per emailWarner Losh2007-01-1285-340/+85
| | | | Notes: svn path=/head/; revision=165967
* Backout unblocking of signal if no threads can currently handle it.Tor Egge2006-10-141-3/+2
| | | | | | | | The check for pending signal after direct invocation of signal handler is sufficient. Notes: svn path=/head/; revision=163336
* Delay unblocking signal and restoring process signal mask until theTor Egge2006-10-131-19/+41
| | | | | | | | | | | | thread signal mask has been updated to avoid stack overflow during signal bursts. Don't block signal forever if no threads can currently handle signal. Check for pending signal after direct invocation of signal handler. Notes: svn path=/head/; revision=163323
* Delay setting wakeup time until after poll array has been allocated.Tor Egge2006-10-131-20/+20
| | | | | | | Blocking on the malloc spinlock would cause the select timeout to be lost. Notes: svn path=/head/; revision=163322
* Sync thread jump table with libc and other thread libraries.Tor Egge2006-10-131-4/+35
| | | | Notes: svn path=/head/; revision=163321
* Remove alpha left-overs.Ruslan Ermilov2006-08-222-46/+1
| | | | Notes: svn path=/head/; revision=161526
* Fix a symlink.Ruslan Ermilov2006-04-121-1/+1
| | | | Notes: svn path=/head/; revision=157695
* Convert NO_PROFILE and NO_LIB32 to new style.Ruslan Ermilov2006-03-181-1/+1
| | | | Notes: svn path=/head/; revision=156854
* - Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.Stefan Farfeleder2005-08-192-3/+3
| | | | | | | | | - Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. OK'ed by: deischen Notes: svn path=/head/; revision=149298
* Bump the shared library version number of all libraries that have notKen Smith2005-07-221-1/+1
| | | | | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...) Notes: svn path=/head/; revision=148297
* Mark _thread_exit() and __sys_exit() as __dead2 to quiet some warnings.John Baldwin2005-05-311-2/+2
| | | | Notes: svn path=/head/; revision=146831
* Style tweak.John Baldwin2005-05-311-1/+2
| | | | Notes: svn path=/head/; revision=146830
* Provide more POSIX-complaint ttyname_r(3) interface[1], which is slightlyXin LI2005-05-131-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | different from what has been offered in libc_r (the one spotted in the original PR which is found in libthr has already been removed by David's commit, which is rev. 1.44 of lib/libthr/thread/thr_private.h): - Use POSIX standard prototype for ttyname_r, which is, int ttyname_r(int, char *, size_t); Instead of: char *ttyname_r(int, char *, size_t); This is to conform IEEE Std 1003.1, 2004 Edition [1]. - Since we need to use standard errno for return code, include errno.h in ttyname.c - Update ttyname(3) implementation according to reflect the API change. - Document new ttyname_r(3) behavior - Since we already make use of a thread local storage for ttyname(3), remove the BUGS section. - Remove conflicting ttyname_r related declarations found in libc_r. Hopefully this change should not have changed the API/ABI, as the ttyname_r symbol was never introduced before the last unistd.h change which happens a couple of days before. [1] http://www.opengroup.org/onlinepubs/009695399/functions/ttyname.html Requested by: Tom McLaughlin <tmclaugh sdf lonestar org> Through PR: threads/76938 Patched by: Craig Rodrigues <rodrigc crodrigues org> (with minor changes) Prompted by: mezz@ Notes: svn path=/head/; revision=146186
* Increase the default stacksizes:Joe Marcus Clarke2005-02-283-20/+30
| | | | | | | | | | | | 32-bit 64-bit main thread 2 MB 4 MB other threads 1 MB 2 MB Adapted from: libpthread Approved by: deischen Notes: svn path=/head/; revision=142808
* More fixes to the copyright notice.Jeffrey Hsu2005-01-082-2/+2
| | | | | | | Submitted by: Ken Smith <kensmith@cse.Buffalo.EDU> Notes: svn path=/head/; revision=139908
* Fix copyright notice.Jeffrey Hsu2005-01-082-2/+2
| | | | Notes: svn path=/head/; revision=139890
* NODOCCOMPRESS -> NO_DOCCOMPRESSRuslan Ermilov2004-12-211-2/+2
| | | | | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE Notes: svn path=/head/; revision=139106
* Add pthread_atfork().Greg Lehey2004-12-105-1/+92
| | | | | | | | PR: bin/68841 Submitted by: Dan Nelson <dnelson@allantgroup.com> Notes: svn path=/head/; revision=138646
* Don't include sys/user.h merely for its side-effect of recursivelyDavid Schultz2004-11-274-3/+5
| | | | | | | including other headers. Notes: svn path=/head/; revision=138129
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Avoid using void pointers in additive expressions.Stefan Farfeleder2004-08-142-2/+5
| | | | | | | PR: 56653 Notes: svn path=/head/; revision=133723
* style cleanup: Remove duplicate $FreeBSD$ tags.Colin Percival2004-02-101-2/+0
| | | | | | | | | | | These files had tags after teh copyright notice, inside the comment block (incorrect, removed), and outside the comment block (correct). Approved by: rwatson (mentor) Notes: svn path=/head/; revision=125669
* Correct the link for the profiling library.Daniel Eischen2004-01-311-1/+1
| | | | Notes: svn path=/head/; revision=125266
* Change libkse back to libpthread and make it the defaultDaniel Eischen2004-01-301-0/+10
| | | | | | | | | | | | | | thread library for i386, amd64, and ia64. For alpha and sparc64 the library is not changed and remains libkse, and links are installed so that libpthread -> libc_r. The gcc -pthread option will be changed in a separate commit so that it links to -lpthread instead of -lc_r. Approved by: re@ Notes: svn path=/head/; revision=125230
* Initialize the (i386) frame pointer when setting up a threadDaniel Eischen2004-01-221-1/+4
| | | | | | | | | | context. Submitted by: Marc Olzheim <marcolz@stack.nl> Tested by: Marc Olzheim <marcolz@stack.nl> Notes: svn path=/head/; revision=124841
* Have a single set of POSIX threads man pages. The LIBRARY sectionRuslan Ermilov2004-01-1455-4929/+0
| | | | | | | | | | | of each manpage lists libraries that have corresponding interfaces implemented. Prodded by: threads Reviewed by: deischen Notes: svn path=/head/; revision=124535
* The libc_r/man/sigwait.3 manpage has been repocopied to libc/sys/sigwait.2.Ruslan Ermilov2004-01-142-88/+1
| | | | | | | | Reviewed by: deischen Repocopy by: markm Notes: svn path=/head/; revision=124533
* - libc/sys/sem.c was repocopied to libc/gen/sem.c.Ruslan Ermilov2004-01-147-662/+1
| | | | | | | | | | - sem_*(3) manpages were repocopied from libc_r. Reviewed by: deischen Repocopy by: markm Notes: svn path=/head/; revision=124530
* MFlibpthread: Add a simple work-around for deadlocking on recursiveDaniel Eischen2004-01-082-44/+82
| | | | | | | readlocks on a rwlock while there are writers waiting. Notes: svn path=/head/; revision=124253
* 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
* 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
* Return to the caller if write() returns 0.Daniel Eischen2003-12-171-0/+2
| | | | | | | PR: 59291 Notes: svn path=/head/; revision=123610
* For the amd64 we need to do some extra stack alignment fixups. OtherwisePeter Wemm2003-12-033-6/+27
| | | | | | | | | | | | we can end up with some threads with a non-16-byte-aligned stack. This causes some interesting side effects, including general protection faults leading to a SIGBUS when doing floating point or varargs. This should be just a verbose NOP for the other platforms. Approved by: re (scottl) Notes: svn path=/head/; revision=123117
* If __sys_write() returns 0, allow that to exit the loop in libc_r'sDaniel Eischen2003-09-291-2/+2
| | | | | | | | | wrapped version of write(). Submitted by: dan@langille.org Notes: svn path=/head/; revision=120575
* Get rid of duplicates.Ruslan Ermilov2003-09-141-1/+1
| | | | Notes: svn path=/head/; revision=120054
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119893
* Add wrapper for kqueue() to keep track of the allocated fd and allow it toMark Peek2003-07-252-0/+54
| | | | | | | | | | be closed. This fixes a file descriptor leak when closing a kqueue() fd. Reviewed by: deischen MFC after: 1 week Notes: svn path=/head/; revision=118019
* Remove -D_THREAD_SAFE.Daniel Eischen2003-07-131-1/+1
| | | | | | | Submitted by: Craig Rodrigues <rodrigc@crodrigues.org> Notes: svn path=/head/; revision=117500