From 93eb807ac2b7c23cae2b0999957532b5b666f437 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 28 Dec 2004 03:42:11 +0000 Subject: remove debugging --- src/libthread/Linux.c | 3 --- src/libthread/mkfile | 2 +- src/libthread/pthread.c | 6 ++++++ src/libthread/sysofiles.sh | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src/libthread') diff --git a/src/libthread/Linux.c b/src/libthread/Linux.c index 1c9d8c20..be97f5a7 100644 --- a/src/libthread/Linux.c +++ b/src/libthread/Linux.c @@ -8,9 +8,6 @@ #include "thread.h" #include "threadimpl.h" -int ngetpid; - - /* * spin locks */ diff --git a/src/libthread/mkfile b/src/libthread/mkfile index fc681492..259bcff1 100644 --- a/src/libthread/mkfile +++ b/src/libthread/mkfile @@ -1,7 +1,7 @@ <$PLAN9/src/mkhdr SYSOFILES=`{sh ./sysofiles.sh} - +x=`{echo $SYSOFILES> xx} LIB=libthread.a OFILES=\ $SYSOFILES\ diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c index 2ddd8c72..c1804a43 100644 --- a/src/libthread/pthread.c +++ b/src/libthread/pthread.c @@ -130,3 +130,9 @@ _pthreadinit(void) pthread_key_create(&prockey, 0); } +void +threadexitsall(char *msg) +{ + exits(msg); +} + diff --git a/src/libthread/sysofiles.sh b/src/libthread/sysofiles.sh index 235cd76a..7734f776 100644 --- a/src/libthread/sysofiles.sh +++ b/src/libthread/sysofiles.sh @@ -1,6 +1,6 @@ #!/bin/sh -tag="${SYSNAME:-`uname -m`}-${OBJTYPE:-`uname`}-`uname -r`-${CC9:-cc}" +tag="${OBJTYPE:-`uname -m`}-${SYSNAME:-`uname`}-`uname -r`-${CC9:-cc}" case "$tag" in *-Linux-2.6.*) echo pthread.o -- cgit v1.2.3