aboutsummaryrefslogtreecommitdiff
path: root/lib/libpthread/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Zap now-unused SHLIB_MINORPeter Wemm2002-09-281-1/+0
| | | | Notes: svn path=/head/; revision=104073
* Mechanically change all libc_r references to libpthread.Jonathan Mini2002-09-161-1/+1
| | | | Notes: svn path=/head/; revision=103412
* Make the changes needed for libpthread to compile in its new home.Jonathan Mini2002-09-161-4/+4
| | | | | | | | | | | 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
* Sync SCM ID comments with libc.David E. O'Brien2002-04-151-7/+9
| | | | Notes: svn path=/head/; revision=94797
* Add weak definitions for wrapped system calls. In general:Daniel Eischen2001-01-241-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _foo - wrapped system call foo - weak definition to _foo and for cancellation points: _foo - wrapped system call __foo - enter cancellation point, call _foo(), leave cancellation point foo - weak definition to __foo Change use of global _thread_run to call a function to get the currently running thread. Make all pthread_foo functions weak definitions to _pthread_foo, where _pthread_foo is the implementation. This allows an application to provide its own pthread functions. Provide slightly different versions of pthread_mutex_lock and pthread_mutex_init so that we can tell the difference between a libc mutex and an application mutex. Threads holding mutexes internal to libc should never be allowed to exit, call signal handlers, or cancel. Approved by: -arch Notes: svn path=/head/; revision=71581
* Bump the shared lib version. There seems to have been an incompatibleDavid E. O'Brien2000-11-141-1/+1
| | | | | | | | change committed to RELENG_4 where a bump there is now necessary. We've got to go before RELENG_4 does. Notes: svn path=/head/; revision=68699
* Enable _PTHREADS_INVARIANTS until the recent libc_r changes areDaniel Eischen2000-10-131-1/+1
| | | | | | | shaken out. Notes: svn path=/head/; revision=67099
* Add wrapper for kevent() syscallJonathan Lemon2000-08-071-1/+2
| | | | | | | Noted as missing by: nicolas.leonard@animaths.com Notes: svn path=/head/; revision=64346
* Remove DEBUG_FLAGS=-g3, which never should have been committed.Jason Evans2000-07-051-2/+0
| | | | Notes: svn path=/head/; revision=62641
* Add a wrapper for the sendfile() system call.Jason Evans2000-04-271-1/+3
| | | | | | | PR: bin/17366 Notes: svn path=/head/; revision=59671
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen Notes: svn path=/head/; revision=56698
* Fix some minor POSIX/SUSv2 compliance nits.Jason Evans1999-12-181-0/+1
| | | | | | | PR: kern/11982 Notes: svn path=/head/; revision=54757
* add pthread_cancel, obtained from OpenBSD.Alfred Perlstein1999-11-281-3/+7
| | | | | | | | | | | | | | | | | eischen (Daniel Eischen) added wrappers to protect against cancled threads orphaning internal resources. the cancelability code is still a bit fuzzy but works for test programs of my own, OpenBSD's and some examples from ORA's books. add readdir_r to both libc and libc_r add some 'const' attributes to function parameters Reviewed by: eischen, jasone Notes: svn path=/head/; revision=53812
* Add sigsuspend.o and sigpending.o to HIDDEN_SYSCALLS as well.Marcel Moolenaar1999-10-141-2/+2
| | | | | | | Pointed out by: jdp Notes: svn path=/head/; revision=52233
* Add sigprocmask to HIDDEN_SYSCALLS. This renames the syscall toMarcel Moolenaar1999-09-301-1/+2
| | | | | | | | | _thread_sys_sisprocmask in libc_r. This solves the undefined symbol... Reported by: Kenneth Wayne Culver Notes: svn path=/head/; revision=51818
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Always use growable thread stacks on the i386. The VM_STACK kernel optionJason Evans1999-07-061-4/+1
| | | | | | | | must be made default for the alpha before growable thread stacks are enabled for the alpha. Notes: svn path=/head/; revision=48609
* Disable growable stacks by default, as advertised.Jason Evans1999-07-051-2/+2
| | | | Notes: svn path=/head/; revision=48570
* Use growable stacks for thread stacks that are the default stack size.Jason Evans1999-07-051-2/+5
| | | | | | | | | | | | | | | | Cache discarded default thread stacks for use in subsequent thread creations. Create a red zone at the end of each stack (including the initial thread stack), with the hope of causing a segfault if a stack overflows. To activate these modifications, add -D_PTHREAD_GSTACK to CFLAGS in src/lib/libc_r/Makefile. Since the modifications depend on the VM_STACK kernel option, I'm not sure how to safely use growable stacks by default. Testing, as well as algorithmic and stylistic comments are welcome. Notes: svn path=/head/; revision=48569
* Remove -DNOPOLL from the compilation flags now that there is a poll wrapperJohn Birrell1999-06-201-4/+4
| | | | | | | | | | in libc_r. Bump the library version number (the scheduler now uses a poll syscall instead of select). Notes: svn path=/head/; revision=48047
* Don't hide mknod, it doesn't need a wrapper and never has had one.John Birrell1998-12-101-2/+2
| | | | Notes: svn path=/head/; revision=41660
* Don't compile in the use of poll() when building libc_r. This isn'tPeter Wemm1998-06-141-2/+2
| | | | | | | | so much a "fix", rather a bandaid to buy time to fix it properly within the thread engine. Notes: svn path=/head/; revision=36967
* Add poll to the list of hidden syscalls so that it gets renamed. ThisJohn Birrell1998-06-121-2/+2
| | | | | | | | | | | | | | propagates a bug (that there is no poll wrapper in libc_r), but it prevents GNU configure scripts from trying to use it in preference to select. libc_r really needs to change it's wait interface to use poll instead of select because poll is more a superset of select that the other way around. This should allow the Roxen web server to work out-of-the-box. It's configuration intercae is kinda neat. The code isn't. Shiver. 8-) Notes: svn path=/head/; revision=36905
* Add a commented out CFLAGS entry that can be uncommented to compile threadJohn Birrell1998-06-091-1/+6
| | | | | | | | lock debug into libc_r. I don't know if this is the best place to document this, but at least it is recorded somewhere. 8-) Notes: svn path=/head/; revision=36831
* send and recv are wrappered in libc, so they shouldn't appear here.John Birrell1998-06-011-3/+3
| | | | Notes: svn path=/head/; revision=36552
* Remove some syscalls that should have been renamed (libc_r doesn't needJohn Birrell1998-05-311-6/+6
| | | | | | | to wrapper them) and add a couple that should have been there. Notes: svn path=/head/; revision=36551
* Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B andPeter Dufault1998-03-281-4/+4
| | | | | | | | | | | | | | | | | | | _KPOSIX_PRIORITY_SCHEDULING options to work. Changes: Change all "posix4" to "p1003_1b". Misnamed files are left as "posix4" until I'm told if I can simply delete them and add new ones; Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux; Add man pages for _POSIX_PRIORITY_SCHEDULING system calls; Add options to LINT; Minor fixes to P1003_1B code during testing. Notes: svn path=/head/; revision=34925
* Add lib/libc/include as an directory to search for header files.John Birrell1998-03-091-3/+16
| | | | | | | | | | | | | Change MACHINE references to MACHINE_ARCH. Declare the names of the syscalls that need to be renamed to allow for the functions that libc_r provides replacements for. This list used to be in lib/libc/sys/Makefile.inc, but has been moved here to keep that makefile tidy and remove the temptation for people to add things to the list without adding a libc_r replacement function. Notes: svn path=/head/; revision=34366
* Use libc makefiles from now on instead of duplicating them in libc_r.John Birrell1997-05-031-22/+3
| | | | | | | Added Id strings too. It's useful to know who last made a change. Notes: svn path=/head/; revision=25402
* Submitted by: John BirrellJulian Elischer1997-02-051-10/+0
| | | | | | | uthreads update from the author. Notes: svn path=/head/; revision=22315
* Don't create/install libc_r_pic.aPeter Wemm1996-08-301-1/+0
| | | | Notes: svn path=/head/; revision=17928
* Submitted by: John Birrell <cimaxp1!jb@werple.net.au>Julian Elischer1996-08-201-18/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended). I've created a new header (pthread_np.h) for the non-POSIX stuff. The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags. also: Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc. also: I should have sent this diff with the pthread(3) man page. It allows people to type make -DWANT_LIBC_R world to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r. also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r. Notes: svn path=/head/; revision=17706
* Sync libc_r with libc changes..Peter Wemm1996-05-051-2/+2
| | | | Notes: svn path=/head/; revision=15635
* Reviewed by: julianJulian Elischer1996-01-221-0/+66
Submitted by: john birrel One version of the pthreads library another will follow with differnt actions under some cases.. not QUITE complete Notes: svn path=/head/; revision=13546