aboutsummaryrefslogtreecommitdiff
path: root/lib/libkse/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Remove the libkse directory. It was unhooked from the build and kernelBrooks Davis2014-04-161-48/+0
| | | | | | | | | | support removed in 2008 (prior to 8.0). Approved by: deischen, imp MFC after: 3 days Notes: svn path=/head/; revision=264543
* Fix typo in ".PATH"Sergey Kandaurov2012-04-181-1/+1
| | | | Notes: svn path=/head/; revision=234412
* Merge from tbemd:Warner Losh2010-06-131-3/+5
| | | | | | | | Convert from using MACHINE_ARCH to MACHINE_CPUARCH. Hoist path statement up into the top Makefile rather than repeating it on every arch Makefile. Notes: svn path=/head/; revision=209118
* Though these libraries are disconnected from the build and don'tRuslan Ermilov2010-02-151-20/+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
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-191-1/+1
| | | | | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson) Notes: svn path=/head/; revision=195767
* Honor WITHOUT_INSTALLLIB in some places.Jung-uk Kim2009-02-131-0/+2
| | | | Notes: svn path=/head/; revision=188583
* Previous commit had a typo that resulted in symbol versioning beingDag-Erling Smørgrav2008-02-061-1/+1
| | | | | | | | | (silently) disabled for libkse... Pointy hat to: des Notes: svn path=/head/; revision=176056
* Give libkse the same treatment as libthr re. symbol versioning.Dag-Erling Smørgrav2008-02-061-1/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=176055
* WARNS=3'ify.Daniel Eischen2007-11-301-2/+1
| | | | Notes: svn path=/head/; revision=174112
* To reduce the impact of possible removal of the syscalls required byBrooks Davis2007-11-291-3/+6
| | | | | | | | | | | | | libkse in FreeBSD 8.0, do not build or install static versions of libkse (i.e. libkse*.a) in the default case. Static versions will be built and installed if libthr is not built or if libkse is the default threading library. Discussed on: freebsd-arch MFC after: 3 days Notes: svn path=/head/; revision=174092
* These are the things that the tinderbox has problems with because itJohn Birrell2007-11-201-0/+1
| | | | | | | | | | | doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again. Notes: svn path=/head/; revision=173766
* For 7.0 make the shared lib "version" '3'.David E. O'Brien2007-10-101-1/+1
| | | | | | | Approved by: re(kensmith) Notes: svn path=/head/; revision=172505
* Repo copy libpthreads to libkse.David E. O'Brien2007-10-091-5/+5
| | | | | | | | | 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=172491
* Always install libpthread.* symlinks if at least one ofRuslan Ermilov2007-10-011-2/+3
| | | | | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith) Notes: svn path=/head/; revision=172403
* 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-11/+16
| | | | | | | | | | | | | 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 alpha left-overs.Ruslan Ermilov2006-08-221-1/+1
| | | | Notes: svn path=/head/; revision=161526
* Install shared libpthread library into /lib; needed by someRuslan Ermilov2006-04-121-0/+1
| | | | | | | /sbin programs. Notes: svn path=/head/; revision=157694
* Bring libpthread up to WARNS level 2.Dag-Erling Smørgrav2006-03-291-1/+1
| | | | | | | Reviewed by: deischen Notes: svn path=/head/; revision=157243
* Suuply the name of the version map and let bsd.lib.mk supplyDaniel Eischen2006-03-161-3/+7
| | | | | | | the link arguments. Notes: svn path=/head/; revision=156774
* Add compatibility symbol maps. libpthread (.so.1 and .so.2)Daniel Eischen2006-03-131-1/+4
| | | | | | | | | | | | | | 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
* 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
* 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
* 1. Add macro DTV_OFFSET to calculate dtv offset in tcb.David Xu2004-08-161-0/+1
| | | | | | | 2. Export symbols needed by debugger. Notes: svn path=/head/; revision=133801
* Now that libpthread is the default threading library, remove theMarcel Moolenaar2004-01-311-12/+0
| | | | | | | | compatibility link from libc_r to libpthread (previously a link from libc_r to libkse). Notes: svn path=/head/; revision=125258
* Change libkse back to libpthread and make it the defaultDaniel Eischen2004-01-301-0/+4
| | | | | | | | | | | | | | 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
* Relink libc_r.a, libc_r.so and libc_r_p.so from libthr to libkse.Marcel Moolenaar2003-09-271-0/+12
| | | | | | | | | | | | | | On ia64, where there's no libc_r at all, libkse is now the default thread library by virtue of these links. The reasons for this change are: 1. libkse is slated to become the default thread library anyway, 2. active development and maintenance is only present for libkse, 3. GNOME and KDE, both in the process of being supported on ia64, work better with KSE; even on ia64. Notes: svn path=/head/; revision=120533
* Rethink the way thr_libc.So is generated. Relying on GCC to extractAlexander Kabaev2003-09-021-6/+0
| | | | | | | | | only needed symbols from libc_pic is not working on sparc64. Requested by: jake Notes: svn path=/head/; revision=119693
* o Eliminate upcall for PTHREAD_SYSTEM_SCOPE thread, now itDavid Xu2003-07-171-0/+4
| | | | | | | | | | | | | | | | is system bound thread and when it is blocked, no upcall is generated. o Add ability to libkse to allow it run in pure 1:1 threading mode, defining SYSTEM_SCOPE_ONLY in Makefile can turn on this option. o Eliminate code for installing dummy signal handler for sigwait call. o Add hash table to find thread. Reviewed by: deischen Notes: svn path=/head/; revision=117706
* Take thr_support.c out of SRCS so that it does not end up in libraries.Ruslan Ermilov2003-07-021-0/+6
| | | | | | | | | Record the missing dependency of thr_libc.So on the libc_pic.a library. OK'ed by: kan Notes: svn path=/head/; revision=117178
* Unbreak "make checkdpadd".Ruslan Ermilov2003-07-011-1/+1
| | | | Notes: svn path=/head/; revision=117125
* Axe AINC.Ruslan Ermilov2003-07-011-1/+0
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=117120
* Move the machine specific files from sys/Makefile.inc and put themMarcel Moolenaar2003-06-231-2/+3
| | | | | | | | in a machine specific makefile. While here, sort the sub-directories in Makefile and remove _atomic_lock.S from all makefiles. Notes: svn path=/head/; revision=116705
* Attempt to eliminate PLT relocations from rwlock aquire/releaseAlexander Kabaev2003-05-301-0/+5
| | | | | | | | | | | | | | path, making them suitable for direct use by the dynamic loader. Register libpthread-specific locking API with rtld on startup. This still has some rough edges with signals which should be addresses later. Approved by: re (scottl) Notes: svn path=/head/; revision=115399
* Remove the %gs restoring hack (already commented out).Daniel Eischen2003-04-251-6/+1
| | | | | | | | | | Don't install man pages. Temporarily (again) rename the library to libkse. It will be put back to libpthread after more wide-spread testing. Notes: svn path=/head/; revision=113996
* Remove the i386-specific hack (well, we only run on i386 anyways)Daniel Eischen2003-04-231-4/+4
| | | | | | | | | to always set %gs when resuming a thread. Install this library as libpthread instead of libkse. Notes: svn path=/head/; revision=113943
* Add an i386-specifc hack to always set %gs. There still seemsDaniel Eischen2003-04-211-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to be instances where the kernel doesn't properly save and/or restore it. Use noupcall and nocompleted flags in the KSE mailbox. These require kernel changes to work which will be committed sometime later. Things still work without the changes. Remove the general kse entry function and use two different functions -- one for scope system threads and one for scope process threads. The scope system function is not yet enabled and we use the same function for all threads at the moment. Keep a copy of the KSE stack for the case that a KSE runs a scope system thread and uses the same stack as the thread (no upcalls are generated, so a separate stack isn't needed). This isn't enabled yet. Use a separate field for the KSE waiting flag. It isn't correct to use the mailbox flags field. The following fixes were provided by David Xu: o Initialize condition variable locks with thread versions of the low-level locking functions instead of the kse versions. o Enable threading before creating the first thread instead of after. o Don't enter critical regions when trying to malloc/free or call functions that malloc/free. o Take the scheduling lock when inheriting thread attributes. o Check the attribute's stack pointer instead of the attributes stack size for null when allocating a thread's stack. o Add a kseg reinit function so we don't have to destroy and then recreate the same lock. o Check the return value of kse_create() and return an appropriate error if it fails. o Don't forget to destroy a thread's locks when freeing it. o Examine the correct flags word for checking to see if a thread is in a synchronization queue. Things should now work on an SMP kernel. Notes: svn path=/head/; revision=113786
* Sorry folks; I accidentally committed a patch from what I was workingDaniel Eischen2003-04-181-1/+1
| | | | | | | | | on a couple of days ago. This should be the most recent changes. Noticed by: davidxu Notes: svn path=/head/; revision=113661
* Comment out the addition of -g to CFLAGS. This snuck in fromDaniel Eischen2003-04-181-1/+1
| | | | | | | my local version. Notes: svn path=/head/; revision=113659
* Revamp libpthread so that it has a chance of working in an SMPDaniel Eischen2003-04-181-3/+5
| | | | | | | | | | | | | | | | | | | | | | 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
* For now, build and install this as libkse instead of libpthread.Daniel Eischen2002-12-081-2/+2
| | | | | | | | | | This will avoid any accidental use of an experimental library. Suggested by: rwatson Approved by: re (jhb) Notes: svn path=/head/; revision=107687
* 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