summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
Commit message (Collapse)AuthorAgeFilesLines
* Remove alpha left-overs.ru2006-08-222-46/+1
|
* Fix a symlink.ru2006-04-121-1/+1
|
* Convert NO_PROFILE and NO_LIB32 to new style.ru2006-03-181-1/+1
|
* - Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.stefanf2005-08-192-3/+3
| | | | | | - Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. OK'ed by: deischen
* Bump the shared library version number of all libraries that have notkensmith2005-07-221-1/+1
| | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
* Mark _thread_exit() and __sys_exit() as __dead2 to quiet some warnings.jhb2005-05-311-2/+2
|
* Style tweak.jhb2005-05-311-1/+2
|
* Provide more POSIX-complaint ttyname_r(3) interface[1], which is slightlydelphij2005-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@
* Increase the default stacksizes:marcus2005-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
* More fixes to the copyright notice.hsu2005-01-082-2/+2
| | | | Submitted by: Ken Smith <kensmith@cse.Buffalo.EDU>
* Fix copyright notice.hsu2005-01-082-2/+2
|
* NODOCCOMPRESS -> NO_DOCCOMPRESSru2004-12-211-2/+2
| | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE
* Add pthread_atfork().grog2004-12-105-1/+92
| | | | | PR: bin/68841 Submitted by: Dan Nelson <dnelson@allantgroup.com>
* Don't include sys/user.h merely for its side-effect of recursivelydas2004-11-274-3/+5
| | | | including other headers.
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* Avoid using void pointers in additive expressions.stefanf2004-08-142-2/+5
| | | | PR: 56653
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-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)
* Correct the link for the profiling library.deischen2004-01-311-1/+1
|
* Change libkse back to libpthread and make it the defaultdeischen2004-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@
* Initialize the (i386) frame pointer when setting up a threaddeischen2004-01-221-1/+4
| | | | | | | context. Submitted by: Marc Olzheim <marcolz@stack.nl> Tested by: Marc Olzheim <marcolz@stack.nl>
* Have a single set of POSIX threads man pages. The LIBRARY sectionru2004-01-1455-4929/+0
| | | | | | | | of each manpage lists libraries that have corresponding interfaces implemented. Prodded by: threads Reviewed by: deischen
* The libc_r/man/sigwait.3 manpage has been repocopied to libc/sys/sigwait.2.ru2004-01-142-88/+1
| | | | | Reviewed by: deischen Repocopy by: markm
* - libc/sys/sem.c was repocopied to libc/gen/sem.c.ru2004-01-147-662/+1
| | | | | | | - sem_*(3) manpages were repocopied from libc_r. Reviewed by: deischen Repocopy by: markm
* MFlibpthread: Add a simple work-around for deadlocking on recursivedeischen2004-01-082-44/+82
| | | | readlocks on a rwlock while there are writers waiting.
* Reenable signals for threads after joining.deischen2003-12-311-0/+3
| | | | Submitted by: Marc Olzheim <marcolz@stack.nl>
* 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
* Return to the caller if write() returns 0.deischen2003-12-171-0/+2
| | | | PR: 59291
* For the amd64 we need to do some extra stack alignment fixups. Otherwisepeter2003-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)
* If __sys_write() returns 0, allow that to exit the loop in libc_r'sdeischen2003-09-291-2/+2
| | | | | | wrapped version of write(). Submitted by: dan@langille.org
* Get rid of duplicates.ru2003-09-141-1/+1
|
* mdoc(7): Use the new feature of the .In macro.ru2003-09-081-1/+1
|
* Add wrapper for kqueue() to keep track of the allocated fd and allow it tomp2003-07-252-0/+54
| | | | | | | be closed. This fixes a file descriptor leak when closing a kqueue() fd. Reviewed by: deischen MFC after: 1 week
* Remove -D_THREAD_SAFE.deischen2003-07-131-1/+1
| | | | Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
* Make libc/${MACHINE_ARCH} include directory not required by Alpha.ru2003-07-022-2/+2
| | | | | Submitted by: bde Tested by: beast
* libc/${MACHINE_ARCH} include directory is required by Alpha,kan2003-07-021-1/+1
| | | | add it to CFLAGS.
* Axe AINC.ru2003-07-011-1/+0
| | | | Submitted by: bde
* Sanity check fd before using it as an array index.netchild2003-06-091-1/+2
| | | | | Noticed by: ted@NLnetLabs.nl (Ted Lindgreen) Approved by: ru
* The .Fn functioncharnier2003-06-081-3/+6
|
* Make this compile without warnings on 64-bit architectures:marcel2003-06-041-6/+7
| | | | | Don't cast thread_self() to int. Cast to uintptr_t. Pull in the predefined printf format from <inttypes.h>
* Make this compile without warnings on 64-bit architectures:marcel2003-06-041-1/+1
| | | | | In recurse(), cast the pointer difference to int to match the format. The difference is expected to fit in an int.
* If the library is not able to create a thread because resourcesmtm2003-06-041-0/+4
| | | | | | don't allow it at the moment, the correct thing to do is try again. Otherwise, libthr would fail this test because it doesn't allow an unlimited number of concurrent threads per application.
* Update for amd64 after repocopy from i386/peter2003-06-021-2/+1
|
* Port libc_r to amd64, and turn it back on for amd64. It passes all ofpeter2003-06-021-0/+18
| | | | the same src/lib/libc_r/test/* tests that the other platforms pass.
* Revert accidental change: don't change the thread library for testing torwatson2003-06-021-1/+1
| | | | | | libthr. Oops, sorry about that. Submitted by: "Simon L. Nielsen" <simon@nitro.dk>
* Include string.h for memset().rwatson2003-06-012-1/+2
|
* Fixed another bug in the threaded close() call; clear theru2003-05-311-0/+4
| | | | | | | | | stale stdio descriptors flags. PR: bin/51535 Submitted by: Enache Adrian <enache@rdslink.ro> Reviewed by: deischen Approved by: re (scottl)
* If an application closes one of its stdio descriptors (0..2),ru2003-05-311-2/+4
| | | | | | | | | | | | | | | | | an excessive close() on one of these descriptors would cause a memory for this descriptor to be allocated in the internal descriptor table. When this descriptor gets used again, e.g. through the call to open() or socket(), the descriptor would be erroneously left in the blocking mode, and the whole application would get stuck on a blocking operation, e.g., in accept(2). Prevent this bug from happening by disallowing close() against non-active descriptors (return -1 and set errno to EBADF in this case). Reviewed by: deischen Approved by: re (scottl)
* mdoc(7) fixes.ru2003-05-241-19/+27
| | | | Approved by: re (blanket)
* Add stub implementations of pthread_[gs]etconcurrency to libc_r andjdp2003-04-204-0/+170
| | | | | | | | | libthr. No changes were made to libpthread by request of deischen, who will soon commit a real implementation for that library. PR: standards/50848 Submitted by: Sergey A. Osokin <osa@freebsd.org.ru> MFC after: 1 week
* - Define a _spinunlock() function so that threading implementations may dojeff2003-03-261-0/+6
| | | | | | more complicated things than just setting the lock to 0. - Implement stubs for this function in libc and the two threading libraries that are currently in the tree.
OpenPOWER on IntegriCloud