Commit graph

41 commits

Author SHA1 Message Date
Tor Egge
1f3d93cdba Document that FreeBSD source code is needed to build linuxthreads port.
Add sanity check for presence of needed FreeBSD source code.
Unbreak compilation on 5.0-CURRENT, DEFS.h is no longer available.
Bump port revision.
2002-03-10 01:24:23 +00:00
Tor Egge
d48c47551a Handle internal race that caused pthread_cond_timedwait() to block
waiting for a signal that wasn't sent.
2001-09-13 16:01:44 +00:00
Tor Egge
60032d4ed7 Add an optional experimental patch that reduce the number of context
switches on UP systems when the thread waiting on a condition has a
higher priority than the thread signalling the condition.

Bump port revision.
2001-09-09 01:12:47 +00:00
Tor Egge
85ca10cdc3 Set frame pointer to 0 before calling function in child process to indicate
that the stack frame chain stops here.
2001-09-09 00:57:11 +00:00
Tor Egge
33ddbc7387 Use libc version of _flockfile() and _funlockfile() on 5.0-CURRENT. 2001-09-09 00:53:07 +00:00
Tor Egge
b55a292b53 Backout library major number bump. It wasn't needed. Additionally,
ldconfig -r didn't list the library, making it impossible for other
ports to depend on the linuxthreads port.
2001-07-01 17:36:25 +00:00
Tor Egge
71819868ea Update from version 2.1.3 to 2.2.3 of LinuxThreads. 2001-06-14 01:34:18 +00:00
Tor Egge
5f887dac56 Calling the libc .cerror from outside libc doesn't work when libc
is a shared library.  Use a copy of .cerror to avoid this problem.

PR:		24845
2001-02-26 14:15:28 +00:00
Tor Egge
3c409910e0 Use __error() from liblthread instead of the libc version. 2001-02-26 14:09:46 +00:00
Tor Egge
6938e8f7c5 Reference _flockfile to ensure that the linuxthreads version is used. 2001-02-25 09:15:19 +00:00
Tor Egge
ea51d128f0 Initialize attributes for new threads with default values when a NULL
pthread_attr_t is provided as argument to pthread_create.

liblgcc_r_pic.a no longer exists.

Put the liblgcc_r.a version of __get_eh_info() and __register_frame_info()
into the shared linuxthreads library to avoid using the incompatible
libgcc.a version.  Shared libraries that use exceptions still represent a
problem if linked before the linuxthreads library.

Compile liblgcc_r.a before the main linuxthreads library to provide
the object files that contains __get_eh_info() and __register_frame_info().

Add minimal wrappers for native thread library functions used by
5.0-CURRENT libc.  The wrappers try to call corresponding functions
in the linuxthreads library after performing argument conversion.
2001-02-20 00:34:57 +00:00
Tor Egge
3af7108f66 Take over linuxthreads port maintainership.
Approved by:	jasone
2001-02-18 21:59:43 +00:00
Maxim Sobolev
2b1a883dc4 Massive style enforcement - use ^I instead of spaces for variables identation. 2001-01-16 17:33:20 +00:00
Jason Evans
06bce9d9d7 Use the correct pthread.h when compiling liblgcc_r. Allow thread stacks
larger than 16kB.  Make sure to call global destructors during shutdown.

PR:		ports/22429
Submitted by:	tegge
2000-11-06 19:43:33 +00:00
Satoshi Asami
7acef1cd7a Change PKGDIR from pkg/ to . Also fix places where ${PKGDIR} is
spelled out (many of which are ${PKGDIR}/MESSAGE -> ${PKGMESSAGE} type
fixes that shouldn't have been necessary) and the string "/pkg/"
appear.
2000-10-08 10:23:48 +00:00
Satoshi Asami
5e5841f2cd Eliminate WRKSRC=${WRKDIR}/${PKGNAME} lines, as these will break when
PORTREVISION or PORTEPOCH are defined.

Most of these Makefiles were defining DISTNAME and WRKSRC (and
sometimes EXTRACT_SUFX) -- change those to define DISTFILES only.
Also, some of the WRKSRC lines were not even necessary, as they were
defining it to the default value.

Instigated by:	Peter Pentchev <roam@orbitel.bg> and kris
2000-09-25 12:21:43 +00:00
Jason Evans
7a90df77ff Remove call to deprecated function, dllockinit(). 2000-07-12 16:32:11 +00:00
Jason Evans
8ec27f4ca8 Fix a mistake in the directions for creating symlinks. Add instructions for
creating a gcc specs file (prompted by Dima Ruben).  Remove obsolete
information and update various tidbits.
2000-07-12 02:08:45 +00:00
Jason Evans
fbdae04681 Rather than copying the entirety of src/gnu/lib/libgcc/Makefile, .include it
and override variables as necessary.  This vastly shortens this file, makes
tracking toolchain changes more automatic, and makes the linuxthreads port
build on both -stable and -current.
2000-07-12 01:43:01 +00:00
Satoshi Asami
40c06420b7 Add lib/liblgcc_r_p.a.
Submitted by:	bento
2000-06-07 21:43:41 +00:00
Jason Evans
7f8cdb6f00 Update from version 2.1.2 to 2.1.3 of LinuxThreads. 2000-05-24 04:14:41 +00:00
Michael Haro
e78fe5bbfb portlint - mostly moving around variables. 2000-04-16 23:12:33 +00:00
Michael Haro
ed33fb7de0 PORTNAME/PORTVERSION update 2000-04-11 21:30:15 +00:00
Jason Evans
bf00c85054 Require a more recent OSVERSION, since linuxthreads uses dllockinit(),
which only very recently started to work correctly with linuxthreads.
2000-02-01 03:39:26 +00:00
Jason Evans
1f730767b7 Mark linuxthreads as requiring at least FreeBSD 4.0 and only working on
i386.
2000-01-29 11:13:43 +00:00
Jason Evans
d66ea1cc3d Back out changes to lock functions passed to dllockinit().
Don't compile the lockfile.c that comes with LinuxThreads.
2000-01-29 03:15:24 +00:00
Jason Evans
85bfda41f7 Don't use the pthreads rwlock implementation for dllockinit(), since it
causes infinite recursion while trying to initialize the internal library
state.  Instead, use a simple spinlock-based rwlock implementation.

Make minor cancellation cleanups.
2000-01-25 22:37:11 +00:00
Jason Evans
e3e63d3abc Commit the updated Makefile too. I'm baffled as to how 'fcvs com' has
neglected the Makefile twice.

Submitted by:	dick
2000-01-04 18:21:16 +00:00
Jason Evans
1c274b738e Clean up the port considerably, and fix several serious bugs. There are
still some problems, at least with signal handling and locking on SMP.

Submitted by:	dick
2000-01-04 00:05:24 +00:00
Peter Wemm
e881919f5a Add #define _KERNEL around #include of <sys/errno.h> - this is to avoid
the C-style externs in this assembler file. (!)
1999-12-29 05:30:01 +00:00
Jason Evans
d721b24892 Make __pthread_attr_init() pthread_attr_init().
Submitted by:	"Russell L. Carter" <rcarter@pinyon.org>
1999-12-28 18:11:25 +00:00
Tim Vanderhoek
8cd82c0318 General comment cleanups. 1999-12-28 16:30:10 +00:00
Jason Evans
0b6722e45b Somehow, I missed the Makefile when committing the updated linuxthreads
port.

PR:		15724
1999-12-28 15:18:32 +00:00
Jason Evans
4ebeef489c Update to the most recent release of LinuxThreads, glibc-linuxthreads-2.1.2,
which is rather tightly coupled with GNU libc, unlike the older version
of this port.

LinuxThreads has added many features since it was integrated with GNU libc,
which means that a number of interfaces that were borrowed from libc_r are
no longer needed.

This updated port required a lot of reworking of the port, so there are
likely to be new bugs.
1999-12-24 01:12:08 +00:00
Julian Elischer
5f3af4fa5d New documentation from Richard and Russell.
Change Maintainer to Jason Evans

Submitted by: "Richard Seaman, Jr." <dick@tar.com>
1999-12-04 18:45:00 +00:00
Julian Elischer
a49359d57b Submitted by: "Russell L. Carter" <rcarter@consys.com>
more tuning
1999-12-02 02:14:16 +00:00
Julian Elischer
554f2563a1 Mark as only x86
Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
1999-12-01 00:08:28 +00:00
Julian Elischer
8a5bdc235b I misunderstood Richard's instructions.
Put the Message file in the right place.
1999-11-30 20:55:46 +00:00
Julian Elischer
61b377a1eb Update some of the Documentation files.
Submitted by: "Richard Seaman, Jr." <dick@tar.com>, rcarter@pinyon.org
1999-11-30 20:21:56 +00:00
Bill Fumerola
22a4d4918b Smarter WRKSRC definition. 1999-11-30 15:59:40 +00:00
Julian Elischer
3254235ecc Reviewed by: Russell Carter
Submitted by:	"Richard Seaman, Jr." <dick@tar.com>

Native FreeBSD port of the linuxthreads library
Includes added files and stuff you need to add to the rest of your system.
This is for -current  I'm sure Richard's older version might be
a good place to start for a 3.x version.
1999-11-30 09:07:29 +00:00