diff options
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 + |