aboutsummaryrefslogtreecommitdiff
path: root/src/libthread
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-28 03:42:11 +0000
committerrsc <devnull@localhost>2004-12-28 03:42:11 +0000
commit93eb807ac2b7c23cae2b0999957532b5b666f437 (patch)
tree22b181659fc901d7d87ae0af0f6f69cdaa22c57b /src/libthread
parentf5ff4947dd510fa5b6ab6fc71ce2515a313402ce (diff)
downloadplan9port-93eb807ac2b7c23cae2b0999957532b5b666f437.tar.gz
plan9port-93eb807ac2b7c23cae2b0999957532b5b666f437.tar.bz2
plan9port-93eb807ac2b7c23cae2b0999957532b5b666f437.zip
remove debugging
Diffstat (limited to 'src/libthread')
-rw-r--r--src/libthread/Linux.c3
-rw-r--r--src/libthread/mkfile2
-rw-r--r--src/libthread/pthread.c6
-rw-r--r--src/libthread/sysofiles.sh2
4 files changed, 8 insertions, 5 deletions
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