tmore netbsd support. - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 8e4ae643c3c66ee01ad84e369f6bf0e88fa2dc84
 (DIR) parent 5ba33c04daeca7f84d0d0148725e593a0c672343
 (HTM) Author: rsc <devnull@localhost>
       Date:   Mon, 28 Mar 2005 19:37:33 +0000
       
       more netbsd support.
       
       Diffstat:
         A src/cmd/9term/NetBSD.c              |       1 +
         M src/lib9/dirread.c                  |       2 +-
         A src/libmach/NetBSD.c                |       1 +
         A src/libthread/NetBSD.c              |       2 ++
         A src/libthread/NetBSDasm.s           |       7 +++++++
       
       5 files changed, 12 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/cmd/9term/NetBSD.c b/src/cmd/9term/NetBSD.c
       t@@ -0,0 +1 @@
       +#include "bsdpty.c"
 (DIR) diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c
       t@@ -18,7 +18,7 @@ mygetdents(int fd, struct dirent *buf, int n)
                nn = getdirentries(fd, (void*)buf, n, &off);
                return nn;
        }
       -#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
       +#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
        static int
        mygetdents(int fd, struct dirent *buf, int n)
        {
 (DIR) diff --git a/src/libmach/NetBSD.c b/src/libmach/NetBSD.c
       t@@ -0,0 +1 @@
       +#include "FreeBSD.c"
 (DIR) diff --git a/src/libthread/NetBSD.c b/src/libthread/NetBSD.c
       t@@ -0,0 +1,2 @@
       +#include "Linux.c"
       +
 (DIR) diff --git a/src/libthread/NetBSDasm.s b/src/libthread/NetBSDasm.s
       t@@ -0,0 +1,7 @@
       +.globl _tas
       +_tas:
       +        movl $0xCAFEBABE, %eax
       +        movl 4(%esp), %ecx
       +        xchgl %eax, 0(%ecx)
       +        ret
       +