Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/pecoff Regen.
details: https://anonhg.NetBSD.org/src/rev/3b2c77946e7f
branches: trunk
changeset: 545409:3b2c77946e7f
user: oki <oki%NetBSD.org@localhost>
date: Tue Apr 08 10:58:55 2003 +0000
description:
Regen.
diffstat:
sys/compat/pecoff/pecoff_syscall.h | 127 ++++++++++++++++++++-
sys/compat/pecoff/pecoff_syscallargs.h | 58 ++++++++-
sys/compat/pecoff/pecoff_syscalls.c | 120 +++++++++++-------
sys/compat/pecoff/pecoff_sysent.c | 206 ++++++++++++++++++--------------
4 files changed, 369 insertions(+), 142 deletions(-)
diffs (truncated from 725 to 300 lines):
diff -r 4993fe1042ad -r 3b2c77946e7f sys/compat/pecoff/pecoff_syscall.h
--- a/sys/compat/pecoff/pecoff_syscall.h Tue Apr 08 10:57:56 2003 +0000
+++ b/sys/compat/pecoff/pecoff_syscall.h Tue Apr 08 10:58:55 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pecoff_syscall.h,v 1.5 2003/01/18 23:41:13 thorpej Exp $ */
+/* $NetBSD: pecoff_syscall.h,v 1.6 2003/04/08 10:58:55 oki Exp $ */
/*
* System call numbers.
@@ -535,6 +535,21 @@
/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */
#define PECOFF_SYS_clock_getres 234
+/* syscall: "timer_create" ret: "int" args: "clockid_t" "struct sigevent *" "timer_t *" */
+#define PECOFF_SYS_timer_create 235
+
+/* syscall: "timer_delete" ret: "int" args: "timer_t" */
+#define PECOFF_SYS_timer_delete 236
+
+/* syscall: "timer_settime" ret: "int" args: "timer_t" "int" "const struct itimerspec *" "struct itimerspec *" */
+#define PECOFF_SYS_timer_settime 237
+
+/* syscall: "timer_gettime" ret: "int" args: "timer_t" "struct itimerspec *" */
+#define PECOFF_SYS_timer_gettime 238
+
+/* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */
+#define PECOFF_SYS_timer_getoverrun 239
+
/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
#define PECOFF_SYS_nanosleep 240
@@ -547,6 +562,45 @@
/* syscall: "munlockall" ret: "int" args: */
#define PECOFF_SYS_munlockall 243
+/* syscall: "__sigtimedwait" ret: "int" args: "const sigset_t *" "siginfo_t *" "struct timespec *" */
+#define PECOFF_SYS___sigtimedwait 244
+
+/* syscall: "_ksem_init" ret: "int" args: "unsigned int" "semid_t *" */
+#define PECOFF_SYS__ksem_init 247
+
+/* syscall: "_ksem_open" ret: "int" args: "const char *" "int" "mode_t" "unsigned int" "semid_t *" */
+#define PECOFF_SYS__ksem_open 248
+
+/* syscall: "_ksem_unlink" ret: "int" args: "const char *" */
+#define PECOFF_SYS__ksem_unlink 249
+
+/* syscall: "_ksem_close" ret: "int" args: "semid_t" */
+#define PECOFF_SYS__ksem_close 250
+
+/* syscall: "_ksem_post" ret: "int" args: "semid_t" */
+#define PECOFF_SYS__ksem_post 251
+
+/* syscall: "_ksem_wait" ret: "int" args: "semid_t" */
+#define PECOFF_SYS__ksem_wait 252
+
+/* syscall: "_ksem_trywait" ret: "int" args: "semid_t" */
+#define PECOFF_SYS__ksem_trywait 253
+
+/* syscall: "_ksem_getvalue" ret: "int" args: "semid_t" "unsigned int *" */
+#define PECOFF_SYS__ksem_getvalue 254
+
+/* syscall: "_ksem_destroy" ret: "int" args: "semid_t" */
+#define PECOFF_SYS__ksem_destroy 255
+
+ /* 247 is excluded sys__ksem_init */
+ /* 248 is excluded sys__ksem_open */
+ /* 249 is excluded sys__ksem_unlink */
+ /* 250 is excluded sys__ksem_close */
+ /* 251 is excluded sys__ksem_post */
+ /* 252 is excluded sys__ksem_wait */
+ /* 253 is excluded sys__ksem_trywait */
+ /* 254 is excluded sys__ksem_getvalue */
+ /* 255 is excluded sys__ksem_destroy */
/* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
#define PECOFF_SYS___posix_rename 270
@@ -662,5 +716,74 @@
/* syscall: "utrace" ret: "int" args: "const char *" "void *" "size_t" */
#define PECOFF_SYS_utrace 306
-#define PECOFF_SYS_MAXSYSCALL 340
+/* syscall: "getcontext" ret: "int" args: "struct __ucontext *" */
+#define PECOFF_SYS_getcontext 307
+
+/* syscall: "setcontext" ret: "int" args: "const struct __ucontext *" */
+#define PECOFF_SYS_setcontext 308
+
+/* syscall: "_lwp_create" ret: "int" args: "const struct __ucontext *" "u_long" "lwpid_t *" */
+#define PECOFF_SYS__lwp_create 309
+
+/* syscall: "_lwp_exit" ret: "int" args: */
+#define PECOFF_SYS__lwp_exit 310
+
+/* syscall: "_lwp_self" ret: "lwpid_t" args: */
+#define PECOFF_SYS__lwp_self 311
+
+/* syscall: "_lwp_wait" ret: "int" args: "lwpid_t" "lwpid_t *" */
+#define PECOFF_SYS__lwp_wait 312
+
+/* syscall: "_lwp_suspend" ret: "int" args: "lwpid_t" */
+#define PECOFF_SYS__lwp_suspend 313
+
+/* syscall: "_lwp_continue" ret: "int" args: "lwpid_t" */
+#define PECOFF_SYS__lwp_continue 314
+
+/* syscall: "_lwp_wakeup" ret: "int" args: "lwpid_t" */
+#define PECOFF_SYS__lwp_wakeup 315
+
+/* syscall: "_lwp_getprivate" ret: "void *" args: */
+#define PECOFF_SYS__lwp_getprivate 316
+
+/* syscall: "_lwp_setprivate" ret: "void" args: "void *" */
+#define PECOFF_SYS__lwp_setprivate 317
+
+/* syscall: "sa_register" ret: "int" args: "sa_upcall_t" "sa_upcall_t *" "int" */
+#define PECOFF_SYS_sa_register 330
+
+/* syscall: "sa_stacks" ret: "int" args: "int" "stack_t *" */
+#define PECOFF_SYS_sa_stacks 331
+
+/* syscall: "sa_enable" ret: "int" args: */
+#define PECOFF_SYS_sa_enable 332
+
+/* syscall: "sa_setconcurrency" ret: "int" args: "int" */
+#define PECOFF_SYS_sa_setconcurrency 333
+
+/* syscall: "sa_yield" ret: "int" args: */
+#define PECOFF_SYS_sa_yield 334
+
+/* syscall: "sa_preempt" ret: "int" args: "int" */
+#define PECOFF_SYS_sa_preempt 335
+
+/* syscall: "__sigaction_sigtramp" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" "void *" "int" */
+#define PECOFF_SYS___sigaction_sigtramp 340
+
+/* syscall: "pmc_get_info" ret: "int" args: "int" "int" "void *" */
+#define PECOFF_SYS_pmc_get_info 341
+
+/* syscall: "pmc_control" ret: "int" args: "int" "int" "void *" */
+#define PECOFF_SYS_pmc_control 342
+
+/* syscall: "rasctl" ret: "int" args: "caddr_t" "size_t" "int" */
+#define PECOFF_SYS_rasctl 343
+
+/* syscall: "kqueue" ret: "int" args: */
+#define PECOFF_SYS_kqueue 344
+
+/* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec *" */
+#define PECOFF_SYS_kevent 345
+
+#define PECOFF_SYS_MAXSYSCALL 354
#define PECOFF_SYS_NSYSENT 512
diff -r 4993fe1042ad -r 3b2c77946e7f sys/compat/pecoff/pecoff_syscallargs.h
--- a/sys/compat/pecoff/pecoff_syscallargs.h Tue Apr 08 10:57:56 2003 +0000
+++ b/sys/compat/pecoff/pecoff_syscallargs.h Tue Apr 08 10:58:55 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pecoff_syscallargs.h,v 1.6 2003/01/18 23:41:13 thorpej Exp $ */
+/* $NetBSD: pecoff_syscallargs.h,v 1.7 2003/04/08 10:58:55 oki Exp $ */
/*
* System call argument lists.
@@ -173,6 +173,17 @@
syscallarg(gid_t) gid;
};
+struct pecoff_sys___posix_lchown_args {
+ syscallarg(const char *) path;
+ syscallarg(uid_t) uid;
+ syscallarg(gid_t) gid;
+};
+
+struct pecoff_sys_lchflags_args {
+ syscallarg(const char *) path;
+ syscallarg(u_long) flags;
+};
+
/*
* System call prototypes.
*/
@@ -374,10 +385,28 @@
int sys_clock_gettime(struct lwp *, void *, register_t *);
int sys_clock_settime(struct lwp *, void *, register_t *);
int sys_clock_getres(struct lwp *, void *, register_t *);
+int sys_timer_create(struct lwp *, void *, register_t *);
+int sys_timer_delete(struct lwp *, void *, register_t *);
+int sys_timer_settime(struct lwp *, void *, register_t *);
+int sys_timer_gettime(struct lwp *, void *, register_t *);
+int sys_timer_getoverrun(struct lwp *, void *, register_t *);
int sys_nanosleep(struct lwp *, void *, register_t *);
int sys_fdatasync(struct lwp *, void *, register_t *);
int sys_mlockall(struct lwp *, void *, register_t *);
int sys_munlockall(struct lwp *, void *, register_t *);
+int sys___sigtimedwait(struct lwp *, void *, register_t *);
+#if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL)
+int sys__ksem_init(struct lwp *, void *, register_t *);
+int sys__ksem_open(struct lwp *, void *, register_t *);
+int sys__ksem_unlink(struct lwp *, void *, register_t *);
+int sys__ksem_close(struct lwp *, void *, register_t *);
+int sys__ksem_post(struct lwp *, void *, register_t *);
+int sys__ksem_wait(struct lwp *, void *, register_t *);
+int sys__ksem_trywait(struct lwp *, void *, register_t *);
+int sys__ksem_getvalue(struct lwp *, void *, register_t *);
+int sys__ksem_destroy(struct lwp *, void *, register_t *);
+#else
+#endif
int pecoff_sys___posix_rename(struct lwp *, void *, register_t *);
int sys_swapctl(struct lwp *, void *, register_t *);
int sys_getdents(struct lwp *, void *, register_t *);
@@ -393,7 +422,7 @@
int sys___vfork14(struct lwp *, void *, register_t *);
int pecoff_sys___posix_chown(struct lwp *, void *, register_t *);
int sys___posix_fchown(struct lwp *, void *, register_t *);
-int sys___posix_lchown(struct lwp *, void *, register_t *);
+int pecoff_sys___posix_lchown(struct lwp *, void *, register_t *);
int sys_getsid(struct lwp *, void *, register_t *);
int sys___clone(struct lwp *, void *, register_t *);
#if defined(KTRACE) || !defined(_KERNEL)
@@ -424,7 +453,30 @@
int sys___shmctl13(struct lwp *, void *, register_t *);
#else
#endif
-int sys_lchflags(struct lwp *, void *, register_t *);
+int pecoff_sys_lchflags(struct lwp *, void *, register_t *);
int sys_issetugid(struct lwp *, void *, register_t *);
int sys_utrace(struct lwp *, void *, register_t *);
+int sys_getcontext(struct lwp *, void *, register_t *);
+int sys_setcontext(struct lwp *, void *, register_t *);
+int sys__lwp_create(struct lwp *, void *, register_t *);
+int sys__lwp_exit(struct lwp *, void *, register_t *);
+int sys__lwp_self(struct lwp *, void *, register_t *);
+int sys__lwp_wait(struct lwp *, void *, register_t *);
+int sys__lwp_suspend(struct lwp *, void *, register_t *);
+int sys__lwp_continue(struct lwp *, void *, register_t *);
+int sys__lwp_wakeup(struct lwp *, void *, register_t *);
+int sys__lwp_getprivate(struct lwp *, void *, register_t *);
+int sys__lwp_setprivate(struct lwp *, void *, register_t *);
+int sys_sa_register(struct lwp *, void *, register_t *);
+int sys_sa_stacks(struct lwp *, void *, register_t *);
+int sys_sa_enable(struct lwp *, void *, register_t *);
+int sys_sa_setconcurrency(struct lwp *, void *, register_t *);
+int sys_sa_yield(struct lwp *, void *, register_t *);
+int sys_sa_preempt(struct lwp *, void *, register_t *);
+int sys___sigaction_sigtramp(struct lwp *, void *, register_t *);
+int sys_pmc_get_info(struct lwp *, void *, register_t *);
+int sys_pmc_control(struct lwp *, void *, register_t *);
+int sys_rasctl(struct lwp *, void *, register_t *);
+int sys_kqueue(struct lwp *, void *, register_t *);
+int sys_kevent(struct lwp *, void *, register_t *);
#endif /* _PECOFF_SYS__SYSCALLARGS_H_ */
diff -r 4993fe1042ad -r 3b2c77946e7f sys/compat/pecoff/pecoff_syscalls.c
--- a/sys/compat/pecoff/pecoff_syscalls.c Tue Apr 08 10:57:56 2003 +0000
+++ b/sys/compat/pecoff/pecoff_syscalls.c Tue Apr 08 10:58:55 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pecoff_syscalls.c,v 1.5 2003/01/18 23:41:14 thorpej Exp $ */
+/* $NetBSD: pecoff_syscalls.c,v 1.6 2003/04/08 10:58:55 oki Exp $ */
/*
* System call names.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pecoff_syscalls.c,v 1.5 2003/01/18 23:41:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pecoff_syscalls.c,v 1.6 2003/04/08 10:58:55 oki Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -18,6 +18,7 @@
#include "opt_compat_netbsd.h"
#include "opt_sysv.h"
#include "opt_compat_43.h"
+#include "opt_posix.h"
#include "fs_lfs.h"
#include "fs_nfs.h"
#endif
@@ -343,38 +344,51 @@
"clock_gettime", /* 232 = clock_gettime */
"clock_settime", /* 233 = clock_settime */
"clock_getres", /* 234 = clock_getres */
- "#235 (unimplemented timer_create)", /* 235 = unimplemented timer_create */
- "#236 (unimplemented timer_delete)", /* 236 = unimplemented timer_delete */
- "#237 (unimplemented timer_settime)", /* 237 = unimplemented timer_settime */
- "#238 (unimplemented timer_gettime)", /* 238 = unimplemented timer_gettime */
- "#239 (unimplemented timer_getoverrun)", /* 239 = unimplemented timer_getoverrun */
+ "timer_create", /* 235 = timer_create */
+ "timer_delete", /* 236 = timer_delete */
+ "timer_settime", /* 237 = timer_settime */
+ "timer_gettime", /* 238 = timer_gettime */
+ "timer_getoverrun", /* 239 = timer_getoverrun */
"nanosleep", /* 240 = nanosleep */
"fdatasync", /* 241 = fdatasync */
"mlockall", /* 242 = mlockall */
"munlockall", /* 243 = munlockall */
- "#244 (unimplemented)", /* 244 = unimplemented */
- "#245 (unimplemented)", /* 245 = unimplemented */
+ "__sigtimedwait", /* 244 = __sigtimedwait */
+ "#245 (unimplemented sys_sigqueue)", /* 245 = unimplemented sys_sigqueue */
"#246 (unimplemented)", /* 246 = unimplemented */
- "#247 (unimplemented)", /* 247 = unimplemented */
Home |
Main Index |
Thread Index |
Old Index