diff mbox series

[2/7] bsd-user: Remove netbsd system call inclusion and defines

Message ID 20230331141833.3647-3-imp@bsdimp.com (mailing list archive)
State New, archived
Headers show
Series bsd-user: remove bitrotted NetBSD and OpenBSD bsd-user support | expand

Commit Message

Warner Losh March 31, 2023, 2:18 p.m. UTC
Remove NetBSD system call inclusion and defines. We've not supported
building all the BSDs into one module for some time, and the NetBSD
support hasn't even built since the meson conversion.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/syscall_defs.h | 16 ----------------
 1 file changed, 16 deletions(-)
diff mbox series

Patch

diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h
index b6d113d24a..8352ab783c 100644
--- a/bsd-user/syscall_defs.h
+++ b/bsd-user/syscall_defs.h
@@ -26,7 +26,6 @@ 
 #include "errno_defs.h"
 
 #include "freebsd/syscall_nr.h"
-#include "netbsd/syscall_nr.h"
 #include "openbsd/syscall_nr.h"
 
 /*
@@ -40,9 +39,6 @@ 
  * FreeBSD uses a 64bits time_t except on i386
  * so we have to add a special case here.
  *
- * On NetBSD time_t is always defined as an int64_t.  On OpenBSD time_t
- * is always defined as an int.
- *
  */
 #if (!defined(TARGET_I386))
 typedef int64_t target_freebsd_time_t;
@@ -69,18 +65,6 @@  struct target_iovec {
 
 #define TARGET_FREEBSD_MAP_FLAGMASK     0x1ff7
 
-#define TARGET_NETBSD_MAP_INHERIT       0x0080  /* region is retained after */
-                                                /* exec */
-#define TARGET_NETBSD_MAP_TRYFIXED      0x0400  /* attempt hint address, even */
-                                                /* within break */
-#define TARGET_NETBSD_MAP_WIRED         0x0800  /* mlock() mapping when it is */
-                                                /* established */
-
-#define TARGET_NETBSD_MAP_STACK         0x2000  /* allocated from memory, */
-                                                /* swap space (stack) */
-
-#define TARGET_NETBSD_MAP_FLAGMASK      0x3ff7
-
 #define TARGET_OPENBSD_MAP_INHERIT      0x0080  /* region is retained after */
                                                 /* exec */
 #define TARGET_OPENBSD_MAP_NOEXTEND     0x0100  /* for MAP_FILE, don't change */