aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-21 20:21:12 +0000
committerrsc <devnull@localhost>2005-01-21 20:21:12 +0000
commit7ca705927e1a2b2ba37f13cc46b87abc23f1e50b (patch)
treef65f5a3791e6e769d627174a2d9eecab3b5ba502
parent7e91400c0d41bc628fd5c39d8d4183cbfaf734a5 (diff)
downloadplan9port-7ca705927e1a2b2ba37f13cc46b87abc23f1e50b.tar.gz
plan9port-7ca705927e1a2b2ba37f13cc46b87abc23f1e50b.tar.bz2
plan9port-7ca705927e1a2b2ba37f13cc46b87abc23f1e50b.zip
use better versions
-rwxr-xr-xINSTALL4
-rw-r--r--lib/linux-isnptl.c1
-rw-r--r--src/cmd/auxclog.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/INSTALL b/INSTALL
index 945f2a83..6bf7a674 100755
--- a/INSTALL
+++ b/INSTALL
@@ -16,10 +16,10 @@ if [ `uname` = Linux ]; then
if ./a.out
then
echo " NPTL found."
- echo "SYSVERSION=2.6" >$PLAN9/config
+ echo "SYSVERSION=2.6.x" >$PLAN9/config
else
echo " NPTL not found."
- echo "SYSVERSION=2.4" >$PLAN9/config
+ echo "SYSVERSION=2.4.x" >$PLAN9/config
fi
rm -f ./a.out
fi
diff --git a/lib/linux-isnptl.c b/lib/linux-isnptl.c
index d28fe878..e4c23c63 100644
--- a/lib/linux-isnptl.c
+++ b/lib/linux-isnptl.c
@@ -9,6 +9,7 @@ main(void)
ulong x;
x = (ulong)pthread_self();
+ printf("%lx\n", x);
if(x < 1024*1024)
exit(1); /* NOT NPTL */
exit(0);
diff --git a/src/cmd/auxclog.c b/src/cmd/auxclog.c
index aa558336..5e065927 100644
--- a/src/cmd/auxclog.c
+++ b/src/cmd/auxclog.c
@@ -29,7 +29,7 @@ main(int argc, char **argv)
char buf[8192];
argv0 = argv[0];
- if(argc < 3){
+ if(argc > 3){
fprint(2, "usage: %s console logfile \n", argv0);
exits("usage");
}