summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* NODOCCOMPRESS -> NO_DOCCOMPRESSru2004-12-211-2/+2
| | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* 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@
* Have a single set of POSIX threads man pages. The LIBRARY sectionru2004-01-141-1/+0
| | | | | | | | of each manpage lists libraries that have corresponding interfaces implemented. Prodded by: threads Reviewed by: deischen
* 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-021-1/+1
| | | | | 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
* Zap now-unused SHLIB_MINORpeter2002-09-281-1/+0
|
* Sync SCM ID comments with libc.obrien2002-04-151-7/+9
|
* Add weak definitions for wrapped system calls. In general:deischen2001-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
* Bump the shared lib version. There seems to have been an incompatibleobrien2000-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.
* Enable _PTHREADS_INVARIANTS until the recent libc_r changes aredeischen2000-10-131-1/+1
| | | | shaken out.
* Add wrapper for kevent() syscalljlemon2000-08-071-1/+2
| | | | Noted as missing by: nicolas.leonard@animaths.com
* Remove DEBUG_FLAGS=-g3, which never should have been committed.jasone2000-07-051-2/+0
|
* Add a wrapper for the sendfile() system call.jasone2000-04-271-1/+3
| | | | PR: bin/17366
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-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
* Fix some minor POSIX/SUSv2 compliance nits.jasone1999-12-181-0/+1
| | | | PR: kern/11982
* add pthread_cancel, obtained from OpenBSD.alfred1999-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
* Add sigsuspend.o and sigpending.o to HIDDEN_SYSCALLS as well.marcel1999-10-141-2/+2
| | | | Pointed out by: jdp
* Add sigprocmask to HIDDEN_SYSCALLS. This renames the syscall tomarcel1999-09-301-1/+2
| | | | | | _thread_sys_sisprocmask in libc_r. This solves the undefined symbol... Reported by: Kenneth Wayne Culver
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Always use growable thread stacks on the i386. The VM_STACK kernel optionjasone1999-07-061-4/+1
| | | | | must be made default for the alpha before growable thread stacks are enabled for the alpha.
* Disable growable stacks by default, as advertised.jasone1999-07-051-2/+2
|
* Use growable stacks for thread stacks that are the default stack size.jasone1999-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.
* Remove -DNOPOLL from the compilation flags now that there is a poll wrapperjb1999-06-201-4/+4
| | | | | | | in libc_r. Bump the library version number (the scheduler now uses a poll syscall instead of select).
* Don't hide mknod, it doesn't need a wrapper and never has had one.jb1998-12-101-2/+2
|
* Don't compile in the use of poll() when building libc_r. This isn'tpeter1998-06-141-2/+2
| | | | | so much a "fix", rather a bandaid to buy time to fix it properly within the thread engine.
* Add poll to the list of hidden syscalls so that it gets renamed. Thisjb1998-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-)
* Add a commented out CFLAGS entry that can be uncommented to compile threadjb1998-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-)
* send and recv are wrappered in libc, so they shouldn't appear here.jb1998-06-011-3/+3
|
* Remove some syscalls that should have been renamed (libc_r doesn't needjb1998-05-311-6/+6
| | | | to wrapper them) and add a couple that should have been there.
* Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B anddufault1998-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.
* Add lib/libc/include as an directory to search for header files.jb1998-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.
* Use libc makefiles from now on instead of duplicating them in libc_r.jb1997-05-031-22/+3
| | | | Added Id strings too. It's useful to know who last made a change.
* Submitted by: John Birrelljulian1997-02-051-10/+0
| | | | uthreads update from the author.
* Don't create/install libc_r_pic.apeter1996-08-301-1/+0
|
* Submitted by: John Birrell <cimaxp1!jb@werple.net.au>julian1996-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.
* Sync libc_r with libc changes..peter1996-05-051-2/+2
|
* Reviewed by: julianjulian1996-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
OpenPOWER on IntegriCloud