summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_attr_setguardsize.c
Commit message (Collapse)AuthorAgeFilesLines
* Repo copy libpthreads to libkse.David E. O'Brien2007-10-091-56/+0
| | | | | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith) Notes: svn path=/head/; revision=172492
* Add compatibility symbol maps. libpthread (.so.1 and .so.2)Daniel Eischen2006-03-131-0/+3
| | | | | | | | | | | | | | used LIBTHREAD_1_0 as its version definition, but now needs to define its symbols in the same namespace used by libc. The compatibility hooks allows you to use libraries and binaries built and linked to libpthread before libc was built with symbol versioning. The shims can be removed if libpthread is given a version bump. Reviewed by: davidxu Notes: svn path=/head/; revision=156611
* Respect POSIX specification, a value return from pthread_attr_getguardsizeDavid Xu2003-09-141-8/+0
| | | | | | | | | | | | should be a value past to pthread_attr_setguardsize, not a rounded up value. Also fix a stack size matching bug in thr_stack.c, now stack matching code uses number of pages but not bytes length to match stack size, so for example, size 512 bytes and size 513 bytes should both match 1 page stack size. Reviewed by: deischen Notes: svn path=/head/; revision=120072
* Revamp libpthread so that it has a chance of working in an SMPDaniel Eischen2003-04-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | environment. This includes support for multiple KSEs and KSEGs. The ability to create more than 1 KSE via pthread_setconcurrency() is in the works as well as support for PTHREAD_SCOPE_SYSTEM threads. Those should come shortly. There are still some known issues which davidxu and I are working on, but it'll make it easier for us by committing what we have. This library now passes all of the ACE tests that libc_r passes with the exception of one. It also seems to work OK with KDE including konqueror, kwrite, etc. I haven't been able to get mozilla to run due to lack of java plugin, so I'd be interested to see how it works with that. Reviewed by: davidxu Notes: svn path=/head/; revision=113658
* Make the changes needed for libpthread to compile in its new home.Jonathan Mini2002-09-161-1/+1
| | | | | | | | | | | The new libpthread will provide POSIX threading support using KSE. These files were previously repo-copied from src/lib/libc_r. Reviewed by: deischen Approved by: -arch Notes: svn path=/head/; revision=103388
* Undo namespace pollution by prefixing the globals pthread_guard_default andAlfred Perlstein2002-05-151-4/+4
| | | | | | | | | | | pthread_page_size. Fix a bunch line wrapping. Pointed out by: deischen Notes: svn path=/head/; revision=96636
* Don't use PAGE_SIZE in userland, instead use getpagesize(), this is toAlfred Perlstein2002-05-131-3/+7
| | | | | | | | | | allow running on other arches when the instructions are supported but the page size granularity is not. Glanced at by: peter Notes: svn path=/head/; revision=96501
* Implement pthread_attr_[gs]etguardsize(). Non-default-size stacks used toJason Evans2001-07-201-0/+57
be malloc()ed, but they are now allocated using mmap(), just as the default-size stacks are. A separate cache of stacks is kept for non-default-size stacks. Collaboration with: deischen Notes: svn path=/head/; revision=80021