diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libthread/Linux.c | 3 | ||||
-rw-r--r-- | src/libthread/mkfile | 2 | ||||
-rw-r--r-- | src/libthread/pthread.c | 6 | ||||
-rw-r--r-- | src/libthread/sysofiles.sh | 2 |
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 |