diff options
author | rsc <devnull@localhost> | 2005-03-28 19:37:33 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-03-28 19:37:33 +0000 |
commit | 8e4ae643c3c66ee01ad84e369f6bf0e88fa2dc84 (patch) | |
tree | 241eda456f534e074c2eb079087ea74ed73513fb /src | |
parent | 5ba33c04daeca7f84d0d0148725e593a0c672343 (diff) | |
download | plan9port-8e4ae643c3c66ee01ad84e369f6bf0e88fa2dc84.tar.gz plan9port-8e4ae643c3c66ee01ad84e369f6bf0e88fa2dc84.tar.bz2 plan9port-8e4ae643c3c66ee01ad84e369f6bf0e88fa2dc84.zip |
more netbsd support.
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/9term/NetBSD.c | 1 | ||||
-rw-r--r-- | src/lib9/dirread.c | 2 | ||||
-rw-r--r-- | src/libmach/NetBSD.c | 1 | ||||
-rw-r--r-- | src/libthread/NetBSD.c | 2 | ||||
-rw-r--r-- | src/libthread/NetBSDasm.s | 7 |
5 files changed, 12 insertions, 1 deletions
diff --git a/src/cmd/9term/NetBSD.c b/src/cmd/9term/NetBSD.c new file mode 100644 index 00000000..eec79c28 --- /dev/null +++ b/src/cmd/9term/NetBSD.c @@ -0,0 +1 @@ +#include "bsdpty.c" diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c index a68cfaad..989f9547 100644 --- a/src/lib9/dirread.c +++ b/src/lib9/dirread.c @@ -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) { diff --git a/src/libmach/NetBSD.c b/src/libmach/NetBSD.c new file mode 100644 index 00000000..bae94f0d --- /dev/null +++ b/src/libmach/NetBSD.c @@ -0,0 +1 @@ +#include "FreeBSD.c" diff --git a/src/libthread/NetBSD.c b/src/libthread/NetBSD.c new file mode 100644 index 00000000..cb195149 --- /dev/null +++ b/src/libthread/NetBSD.c @@ -0,0 +1,2 @@ +#include "Linux.c" + diff --git a/src/libthread/NetBSDasm.s b/src/libthread/NetBSDasm.s new file mode 100644 index 00000000..197f12b5 --- /dev/null +++ b/src/libthread/NetBSDasm.s @@ -0,0 +1,7 @@ +.globl _tas +_tas: + movl $0xCAFEBABE, %eax + movl 4(%esp), %ecx + xchgl %eax, 0(%ecx) + ret + |