Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat move sparc32 to netbsd32; split out MD part (sign...
details: https://anonhg.NetBSD.org/src/rev/9d4b219a1c84
branches: trunk
changeset: 467525:9d4b219a1c84
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Mar 25 16:22:49 1999 +0000
description:
move sparc32 to netbsd32; split out MD part (signal handling) (mostly via repository copy, rename and perl -pi :-)
diffstat:
sys/compat/netbsd32/Makefile | 12 +-
sys/compat/netbsd32/files.netbsd32 | 24 +-
sys/compat/netbsd32/netbsd32.h | 377 +-
sys/compat/netbsd32/netbsd32_compat_09.c | 24 +-
sys/compat/netbsd32/netbsd32_compat_10.c | 18 +-
sys/compat/netbsd32/netbsd32_compat_12.c | 76 +-
sys/compat/netbsd32/netbsd32_compat_13.c | 22 +-
sys/compat/netbsd32/netbsd32_compat_43.c | 256 +-
sys/compat/netbsd32/netbsd32_exec.c | 300 +-
sys/compat/netbsd32/netbsd32_exec.h | 24 +-
sys/compat/netbsd32/netbsd32_ioctl.c | 156 +-
sys/compat/netbsd32/netbsd32_ioctl.h | 68 +-
sys/compat/netbsd32/netbsd32_netbsd.c | 1573 ++++----
sys/compat/netbsd32/netbsd32_syscall.h | 760 ++--
sys/compat/netbsd32/netbsd32_syscallargs.h | 1310 +++---
sys/compat/netbsd32/netbsd32_syscalls.c | 430 +-
sys/compat/netbsd32/netbsd32_sysent.c | 844 ++--
sys/compat/netbsd32/syscalls.conf | 16 +-
sys/compat/netbsd32/syscalls.master | 446 +-
sys/compat/sparc32/Makefile | 11 -
sys/compat/sparc32/files.sparc32 | 18 -
sys/compat/sparc32/sparc32.h | 461 --
sys/compat/sparc32/sparc32_compat_09.c | 94 -
sys/compat/sparc32/sparc32_compat_10.c | 252 -
sys/compat/sparc32/sparc32_compat_12.c | 230 -
sys/compat/sparc32/sparc32_compat_13.c | 73 -
sys/compat/sparc32/sparc32_compat_43.c | 754 ----
sys/compat/sparc32/sparc32_exec.c | 610 ---
sys/compat/sparc32/sparc32_exec.h | 55 -
sys/compat/sparc32/sparc32_ioctl.c | 593 ---
sys/compat/sparc32/sparc32_ioctl.h | 313 -
sys/compat/sparc32/sparc32_netbsd.c | 5154 ----------------------------
sys/compat/sparc32/sparc32_syscall.h | 643 ---
sys/compat/sparc32/sparc32_syscallargs.h | 1428 -------
sys/compat/sparc32/sparc32_syscalls.c | 415 --
sys/compat/sparc32/sparc32_sysent.c | 784 ----
sys/compat/sparc32/syscalls.conf | 13 -
sys/compat/sparc32/syscalls.master | 466 --
38 files changed, 3221 insertions(+), 15882 deletions(-)
diffs (truncated from 24554 to 300 lines):
diff -r fce19fd0d5aa -r 9d4b219a1c84 sys/compat/netbsd32/Makefile
--- a/sys/compat/netbsd32/Makefile Thu Mar 25 16:17:36 1999 +0000
+++ b/sys/compat/netbsd32/Makefile Thu Mar 25 16:22:49 1999 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.1 1998/08/26 10:20:33 mrg Exp $
+# $NetBSD: Makefile,v 1.2 1999/03/25 16:22:49 mrg Exp $
DEP= syscalls.conf syscalls.master ../../kern/makesyscalls.sh
-OBJS= sparc32_sysent.c sparc32_syscalls.c sparc32_syscall.h sparc32_syscallargs.h
+OBJS= netbsd32_sysent.c netbsd32_syscalls.c netbsd32_syscall.h netbsd32_syscallargs.h
${OBJS}: ${DEP}
- -mv -f sparc32_sysent.c sparc32_sysent.c.bak
- -mv -f sparc32_syscalls.c sparc32_syscalls.c.bak
- -mv -f sparc32_syscall.h sparc32_syscall.h.bak
- -mv -f sparc32_syscallargs.h sparc32_syscallargs.h.bak
+ -mv -f netbsd32_sysent.c netbsd32_sysent.c.bak
+ -mv -f netbsd32_syscalls.c netbsd32_syscalls.c.bak
+ -mv -f netbsd32_syscall.h netbsd32_syscall.h.bak
+ -mv -f netbsd32_syscallargs.h netbsd32_syscallargs.h.bak
sh ../../kern/makesyscalls.sh syscalls.conf syscalls.master
diff -r fce19fd0d5aa -r 9d4b219a1c84 sys/compat/netbsd32/files.netbsd32
--- a/sys/compat/netbsd32/files.netbsd32 Thu Mar 25 16:17:36 1999 +0000
+++ b/sys/compat/netbsd32/files.netbsd32 Thu Mar 25 16:22:49 1999 +0000
@@ -1,18 +1,18 @@
-# $NetBSD: files.netbsd32,v 1.2 1998/10/01 14:27:56 eeh Exp $
+# $NetBSD: files.netbsd32,v 1.3 1999/03/25 16:22:49 mrg Exp $
#
-# config file description for machine-independent sparc32 compat code.
+# config file description for machine-independent netbsd32 compat code.
# included by ports that need it.
# ports should define any machine-specific files they need in their
# own file lists.
-file compat/sparc32/sparc32_exec.c compat_sparc32
-file compat/sparc32/sparc32_netbsd.c compat_sparc32
-file compat/sparc32/sparc32_ioctl.c compat_sparc32
-file compat/sparc32/sparc32_sysent.c compat_sparc32
-file compat/sparc32/sparc32_compat_09.c compat_sparc32 & compat_09
-file compat/sparc32/sparc32_compat_10.c compat_sparc32 & compat_10
-file compat/sparc32/sparc32_compat_12.c compat_sparc32 & compat_12
-file compat/sparc32/sparc32_compat_13.c compat_sparc32 & compat_13
-file compat/sparc32/sparc32_compat_43.c compat_sparc32 & compat_43
-file compat/sparc32/sparc32_syscalls.c compat_sparc32 & syscall_debug
+file compat/netbsd32/netbsd32_exec.c compat_netbsd32
+file compat/netbsd32/netbsd32_netbsd.c compat_netbsd32
+file compat/netbsd32/netbsd32_ioctl.c compat_netbsd32
+file compat/netbsd32/netbsd32_sysent.c compat_netbsd32
+file compat/netbsd32/netbsd32_compat_09.c compat_netbsd32 & compat_09
+file compat/netbsd32/netbsd32_compat_10.c compat_netbsd32 & compat_10
+file compat/netbsd32/netbsd32_compat_12.c compat_netbsd32 & compat_12
+file compat/netbsd32/netbsd32_compat_13.c compat_netbsd32 & compat_13
+file compat/netbsd32/netbsd32_compat_43.c compat_netbsd32 & compat_43
+file compat/netbsd32/netbsd32_syscalls.c compat_netbsd32 & syscall_debug
diff -r fce19fd0d5aa -r 9d4b219a1c84 sys/compat/netbsd32/netbsd32.h
--- a/sys/compat/netbsd32/netbsd32.h Thu Mar 25 16:17:36 1999 +0000
+++ b/sys/compat/netbsd32/netbsd32.h Thu Mar 25 16:22:49 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32.h,v 1.3 1998/10/01 14:27:56 eeh Exp $ */
+/* $NetBSD: netbsd32.h,v 1.4 1999/03/25 16:22:49 mrg Exp $ */
/*
* Copyright (c) 1998 Matthew R. Green
@@ -44,201 +44,201 @@
* first, define all the types we need.
*/
-typedef int32_t sparc32_long;
-typedef u_int32_t sparc32_u_long;
+typedef int32_t netbsd32_long;
+typedef u_int32_t netbsd32_u_long;
-typedef u_int32_t sparc32_clock_t;
-typedef u_int32_t sparc32_size_t;
-typedef int32_t sparc32_ssize_t;
-typedef int32_t sparc32_clockid_t;
-typedef u_int32_t sparc32_caddr_t;
-typedef int32_t sparc32_key_t;
+typedef u_int32_t netbsd32_clock_t;
+typedef u_int32_t netbsd32_size_t;
+typedef int32_t netbsd32_ssize_t;
+typedef int32_t netbsd32_clockid_t;
+typedef u_int32_t netbsd32_caddr_t;
+typedef int32_t netbsd32_key_t;
/* all pointers are u_int32_t */
-typedef u_int32_t sparc32_voidp;
-typedef u_int32_t sparc32_u_shortp;
-typedef u_int32_t sparc32_charp;
-typedef u_int32_t sparc32_u_charp;
-typedef u_int32_t sparc32_charpp;
-typedef u_int32_t sparc32_size_tp;
-typedef u_int32_t sparc32_intp;
-typedef u_int32_t sparc32_longp;
-typedef u_int32_t sparc32_caddrp;
-typedef u_int32_t sparc32_caddr;
-typedef u_int32_t sparc32_gid_tp;
-typedef u_int32_t sparc32_fsid_tp_t;
+typedef u_int32_t netbsd32_voidp;
+typedef u_int32_t netbsd32_u_shortp;
+typedef u_int32_t netbsd32_charp;
+typedef u_int32_t netbsd32_u_charp;
+typedef u_int32_t netbsd32_charpp;
+typedef u_int32_t netbsd32_size_tp;
+typedef u_int32_t netbsd32_intp;
+typedef u_int32_t netbsd32_longp;
+typedef u_int32_t netbsd32_caddrp;
+typedef u_int32_t netbsd32_caddr;
+typedef u_int32_t netbsd32_gid_tp;
+typedef u_int32_t netbsd32_fsid_tp_t;
/*
* now, the compatibility structures and their fake pointer types.
*/
/* from <sys/types.h> */
-typedef u_int32_t sparc32_fd_setp_t;
+typedef u_int32_t netbsd32_fd_setp_t;
/* from <sys/uio.h> */
-typedef u_int32_t sparc32_iovecp_t;
-struct sparc32_iovec {
- sparc32_voidp iov_base; /* Base address. */
- sparc32_size_t iov_len; /* Length. */
+typedef u_int32_t netbsd32_iovecp_t;
+struct netbsd32_iovec {
+ netbsd32_voidp iov_base; /* Base address. */
+ netbsd32_size_t iov_len; /* Length. */
};
/* from <sys/time.h> */
-typedef int32_t sparc32_timer_t;
+typedef int32_t netbsd32_timer_t;
-typedef u_int32_t sparc32_timespecp_t;
-struct sparc32_timespec {
+typedef u_int32_t netbsd32_timespecp_t;
+struct netbsd32_timespec {
time_t tv_sec; /* seconds */
- sparc32_long tv_nsec; /* and nanoseconds */
+ netbsd32_long tv_nsec; /* and nanoseconds */
};
-typedef u_int32_t sparc32_timevalp_t;
-struct sparc32_timeval {
- sparc32_long tv_sec; /* seconds */
- sparc32_long tv_usec; /* and microseconds */
+typedef u_int32_t netbsd32_timevalp_t;
+struct netbsd32_timeval {
+ netbsd32_long tv_sec; /* seconds */
+ netbsd32_long tv_usec; /* and microseconds */
};
-typedef u_int32_t sparc32_timezonep_t;
-struct sparc32_timezone {
+typedef u_int32_t netbsd32_timezonep_t;
+struct netbsd32_timezone {
int tz_minuteswest; /* minutes west of Greenwich */
int tz_dsttime; /* type of dst correction */
};
-typedef u_int32_t sparc32_itimervalp_t;
-struct sparc32_itimerval {
- struct sparc32_timeval it_interval; /* timer interval */
- struct sparc32_timeval it_value; /* current value */
+typedef u_int32_t netbsd32_itimervalp_t;
+struct netbsd32_itimerval {
+ struct netbsd32_timeval it_interval; /* timer interval */
+ struct netbsd32_timeval it_value; /* current value */
};
/* from <sys/mount.h> */
-typedef u_int32_t sparc32_fidp_t;
+typedef u_int32_t netbsd32_fidp_t;
-typedef u_int32_t sparc32_fhandlep_t;
+typedef u_int32_t netbsd32_fhandlep_t;
-typedef u_int32_t sparc32_statfsp_t;
-struct sparc32_statfs {
+typedef u_int32_t netbsd32_statfsp_t;
+struct netbsd32_statfs {
short f_type; /* type of file system */
u_short f_flags; /* copy of mount flags */
- sparc32_long f_bsize; /* fundamental file system block size */
- sparc32_long f_iosize; /* optimal transfer block size */
- sparc32_long f_blocks; /* total data blocks in file system */
- sparc32_long f_bfree; /* free blocks in fs */
- sparc32_long f_bavail; /* free blocks avail to non-superuser */
- sparc32_long f_files; /* total file nodes in file system */
- sparc32_long f_ffree; /* free file nodes in fs */
+ netbsd32_long f_bsize; /* fundamental file system block size */
+ netbsd32_long f_iosize; /* optimal transfer block size */
+ netbsd32_long f_blocks; /* total data blocks in file system */
+ netbsd32_long f_bfree; /* free blocks in fs */
+ netbsd32_long f_bavail; /* free blocks avail to non-superuser */
+ netbsd32_long f_files; /* total file nodes in file system */
+ netbsd32_long f_ffree; /* free file nodes in fs */
fsid_t f_fsid; /* file system id */
uid_t f_owner; /* user that mounted the file system */
- sparc32_long f_spare[4]; /* spare for later */
+ netbsd32_long f_spare[4]; /* spare for later */
char f_fstypename[MFSNAMELEN]; /* fs type name */
char f_mntonname[MNAMELEN]; /* directory on which mounted */
char f_mntfromname[MNAMELEN]; /* mounted file system */
};
/* from <sys/poll.h> */
-typedef u_int32_t sparc32_pollfdp_t;
+typedef u_int32_t netbsd32_pollfdp_t;
/* from <sys/resource.h> */
-typedef u_int32_t sparc32_rusagep_t;
-struct sparc32_rusage {
- struct sparc32_timeval ru_utime;/* user time used */
- struct sparc32_timeval ru_stime;/* system time used */
- sparc32_long ru_maxrss; /* max resident set size */
- sparc32_long ru_ixrss; /* integral shared memory size */
- sparc32_long ru_idrss; /* integral unshared data " */
- sparc32_long ru_isrss; /* integral unshared stack " */
- sparc32_long ru_minflt; /* page reclaims */
- sparc32_long ru_majflt; /* page faults */
- sparc32_long ru_nswap; /* swaps */
- sparc32_long ru_inblock; /* block input operations */
- sparc32_long ru_oublock; /* block output operations */
- sparc32_long ru_msgsnd; /* messages sent */
- sparc32_long ru_msgrcv; /* messages received */
- sparc32_long ru_nsignals; /* signals received */
- sparc32_long ru_nvcsw; /* voluntary context switches */
- sparc32_long ru_nivcsw; /* involuntary " */
+typedef u_int32_t netbsd32_rusagep_t;
+struct netbsd32_rusage {
+ struct netbsd32_timeval ru_utime;/* user time used */
+ struct netbsd32_timeval ru_stime;/* system time used */
+ netbsd32_long ru_maxrss; /* max resident set size */
+ netbsd32_long ru_ixrss; /* integral shared memory size */
+ netbsd32_long ru_idrss; /* integral unshared data " */
+ netbsd32_long ru_isrss; /* integral unshared stack " */
+ netbsd32_long ru_minflt; /* page reclaims */
+ netbsd32_long ru_majflt; /* page faults */
+ netbsd32_long ru_nswap; /* swaps */
+ netbsd32_long ru_inblock; /* block input operations */
+ netbsd32_long ru_oublock; /* block output operations */
+ netbsd32_long ru_msgsnd; /* messages sent */
+ netbsd32_long ru_msgrcv; /* messages received */
+ netbsd32_long ru_nsignals; /* signals received */
+ netbsd32_long ru_nvcsw; /* voluntary context switches */
+ netbsd32_long ru_nivcsw; /* involuntary " */
};
-typedef u_int32_t sparc32_orlimitp_t;
+typedef u_int32_t netbsd32_orlimitp_t;
-typedef u_int32_t sparc32_rlimitp_t;
+typedef u_int32_t netbsd32_rlimitp_t;
/* from <sys/ipc.h> */
-typedef u_int32_t sparc32_ipc_permp_t;
-struct sparc32_ipc_perm {
+typedef u_int32_t netbsd32_ipc_permp_t;
+struct netbsd32_ipc_perm {
ushort cuid; /* creator user id */
ushort cgid; /* creator group id */
ushort uid; /* user id */
ushort gid; /* group id */
ushort mode; /* r/w permission */
ushort seq; /* sequence # (to generate unique msg/sem/shm id) */
- sparc32_key_t key; /* user specified msg/sem/shm key */
+ netbsd32_key_t key; /* user specified msg/sem/shm key */
};
/* from <sys/msg.h> */
-typedef u_int32_t sparc32_msgp_t;
-struct sparc32_msg {
- sparc32_msgp_t msg_next; /* next msg in the chain */
- sparc32_long msg_type; /* type of this message */
+typedef u_int32_t netbsd32_msgp_t;
+struct netbsd32_msg {
+ netbsd32_msgp_t msg_next; /* next msg in the chain */
+ netbsd32_long msg_type; /* type of this message */
/* >0 -> type of this message */
/* 0 -> free header */
u_short msg_ts; /* size of this message */
short msg_spot; /* location of start of msg in buffer */
};
-typedef u_int32_t sparc32_msqid_dsp_t;
-struct sparc32_msqid_ds {
- struct sparc32_ipc_perm msg_perm; /* msg queue permission bits */
- sparc32_msgp_t msg_first; /* first message in the queue */
- sparc32_msgp_t msg_last; /* last message in the queue */
- sparc32_u_long msg_cbytes; /* number of bytes in use on the queue */
- sparc32_u_long msg_qnum; /* number of msgs in the queue */
- sparc32_u_long msg_qbytes; /* max # of bytes on the queue */
+typedef u_int32_t netbsd32_msqid_dsp_t;
+struct netbsd32_msqid_ds {
+ struct netbsd32_ipc_perm msg_perm; /* msg queue permission bits */
+ netbsd32_msgp_t msg_first; /* first message in the queue */
Home |
Main Index |
Thread Index |
Old Index