Import unproven-pthreads, the mit-pthreads based cleanup I'm hacking on.
Why am I using MIT-Pthreads? Because all the alternatives seem to have very low level problems. PTL2 has a locking problem of some sort that I cannot track down, and the author insists that lock = PTHREAD_MUTEX_INIT; is always to be legal, so he uses a pointer for locks. This means pthread_lock() can break in out of memory situations, and therefore so can pthread_once(), and if you're using that to protect logging, and you need to report a memory depletion, you're screwed. --Michael
This commit is contained in:
parent
91ea3762eb
commit
e6659b3746
5 changed files with 81 additions and 0 deletions
35
devel/unproven-pthreads/Makefile
Normal file
35
devel/unproven-pthreads/Makefile
Normal file
|
@ -0,0 +1,35 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 1999/11/12 20:27:16 explorer Exp $
|
||||
#
|
||||
|
||||
DISTNAME= unproven-pthreads-0.5
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ftp://ftp.flame.org/pub/netbsd/
|
||||
|
||||
MAINTAINER= explorer@netbsd.org
|
||||
#HOMEPAGE= http://www.mit.edu:8001/people/proven/pthreads.html
|
||||
|
||||
#ONLY_FOR_PLATFORM= NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \
|
||||
# NetBSD-*-sparc NetBSD-*-m68k
|
||||
ONLY_FOR_PLATFORM= NetBSD-*-i386
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
MAKE_ENV+= NOLINT=1 NOPROFILE=1 OBJECT_FMT=${OBJECT_FMT}
|
||||
CONFIGURE_ARGS+= --prefix=${PREFIX}/pthreads
|
||||
|
||||
post-configure:
|
||||
@echo "#define HAVE_SYSCALL_SIGACTION 1" >> ${WRKSRC}/config.h
|
||||
@echo "#define HAVE_SYSCALL_SIGPAUSE 1" >> ${WRKSRC}/config.h
|
||||
@echo "#define HAVE_SYSCALL_SIGPROCMASK 1" >> ${WRKSRC}/config.h
|
||||
@echo "#define HAVE_SYSCALL_SIGSUSPEND 1" >> ${WRKSRC}/config.h
|
||||
|
||||
pre-install:
|
||||
${MKDIR} ${PREFIX}/pthreads
|
||||
|
||||
post-install:
|
||||
@${RM} -f ${PREFIX}/pthreads/lib/libpthread_pic.a
|
||||
@find ${PREFIX}/pthreads/include -name '*.orig'|xargs rm
|
||||
@find ${PREFIX}/pthreads/include -type f -print|xargs chmod 644
|
||||
@find ${PREFIX}/pthreads/include -type d -print|xargs chmod 755
|
||||
@${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/pthreads/include
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
3
devel/unproven-pthreads/files/md5
Normal file
3
devel/unproven-pthreads/files/md5
Normal file
|
@ -0,0 +1,3 @@
|
|||
$NetBSD: md5,v 1.1.1.1 1999/11/12 20:27:17 explorer Exp $
|
||||
|
||||
MD5 (unproven-pthreads-0.5.tar.gz) = 4077f8e30af6c232cd7bb5ad80abcfa3
|
1
devel/unproven-pthreads/pkg/COMMENT
Normal file
1
devel/unproven-pthreads/pkg/COMMENT
Normal file
|
@ -0,0 +1 @@
|
|||
Chris Provenzano's (MIT) POSIX threads library
|
6
devel/unproven-pthreads/pkg/DESCR
Normal file
6
devel/unproven-pthreads/pkg/DESCR
Normal file
|
@ -0,0 +1,6 @@
|
|||
This is Chris Provenzano's MIT Pthreads library.
|
||||
|
||||
Pthreads stands for POSIX threads and is based on the POSIX 1003.1c 1995
|
||||
thread standard. This standard passed international Standards Organization
|
||||
(ISO) Committee Document (CD) balloting in February 1995 and got the
|
||||
IEEE Standards Board approval in June 1995.
|
36
devel/unproven-pthreads/pkg/PLIST
Normal file
36
devel/unproven-pthreads/pkg/PLIST
Normal file
|
@ -0,0 +1,36 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 1999/11/12 20:27:17 explorer Exp $
|
||||
pthreads/bin/pgcc
|
||||
pthreads/bin/pg++
|
||||
pthreads/lib/libpthread.a
|
||||
pthreads/lib/libpthread.so.1.60
|
||||
pthreads/include/Makefile.inc
|
||||
pthreads/include/netdb.h
|
||||
pthreads/include/pthread.h
|
||||
pthreads/include/resolv.h
|
||||
pthreads/include/sched.h
|
||||
pthreads/include/arpa/nameser.h
|
||||
pthreads/include/pthread/cleanup.h
|
||||
pthreads/include/pthread/cond.h
|
||||
pthreads/include/pthread/debug_out.h
|
||||
pthreads/include/pthread/fd.h
|
||||
pthreads/include/pthread/fd_pipe.h
|
||||
pthreads/include/pthread/kernel.h
|
||||
pthreads/include/pthread/kthread.h
|
||||
pthreads/include/pthread/mutex.h
|
||||
pthreads/include/pthread/prio_queue.h
|
||||
pthreads/include/pthread/pthread_attr.h
|
||||
pthreads/include/pthread/pthread_once.h
|
||||
pthreads/include/pthread/queue.h
|
||||
pthreads/include/pthread/sleep.h
|
||||
pthreads/include/pthread/specific.h
|
||||
pthreads/include/pthread/state.def
|
||||
pthreads/include/pthread/unistd.h
|
||||
pthreads/include/pthread/util.h
|
||||
pthreads/include/pthread/version.h
|
||||
pthreads/include/pthread/machdep.h
|
||||
@dirrm pthreads/lib
|
||||
@dirrm pthreads/bin
|
||||
@dirrm pthreads/include/arpa
|
||||
@dirrm pthreads/include/pthread
|
||||
@dirrm pthreads/include
|
||||
@dirrm pthreads
|
Loading…
Reference in a new issue