This commit is contained in:
ad 2007-01-16 01:32:52 +00:00
parent b9b02583e6
commit 2ec3e26f21
4 changed files with 132 additions and 22 deletions

View File

@ -1,14 +1,14 @@
/* $NetBSD: init_sysent.c,v 1.182 2006/10/17 15:07:22 christos Exp $ */
/* $NetBSD: init_sysent.c,v 1.183 2007/01/16 01:32:52 ad Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.160 2006/10/17 15:06:18 christos Exp
* created from NetBSD: syscalls.master,v 1.161 2007/01/16 01:30:45 ad Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.182 2006/10/17 15:07:22 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.183 2007/01/16 01:32:52 ad Exp $");
#include "opt_ktrace.h"
#include "opt_nfsserver.h"
@ -886,16 +886,29 @@ struct sysent sysent[] = {
sys__lwp_getprivate }, /* 316 = _lwp_getprivate */
{ 1, s(struct sys__lwp_setprivate_args), 0,
sys__lwp_setprivate }, /* 317 = _lwp_setprivate */
#if !defined(_KERNEL)
{ 2, s(struct sys__lwp_kill_args), 0,
sys__lwp_kill }, /* 318 = _lwp_kill */
{ 1, s(struct sys__lwp_detach_args), 0,
sys__lwp_detach }, /* 319 = _lwp_detach */
{ 3, s(struct sys__lwp_park_args), 0,
sys__lwp_park }, /* 320 = _lwp_park */
{ 2, s(struct sys__lwp_unpark_args), 0,
sys__lwp_unpark }, /* 321 = _lwp_unpark */
{ 3, s(struct sys__lwp_unpark_all_args), 0,
sys__lwp_unpark_all }, /* 322 = _lwp_unpark_all */
#else
{ 0, 0, 0,
sys_nosys }, /* 318 = unimplemented */
sys_nosys }, /* 318 = excluded sys__lwp_kill */
{ 0, 0, 0,
sys_nosys }, /* 319 = unimplemented */
sys_nosys }, /* 319 = excluded sys__lwp_detach */
{ 0, 0, 0,
sys_nosys }, /* 320 = unimplemented */
sys_nosys }, /* 320 = excluded sys__lwp_park */
{ 0, 0, 0,
sys_nosys }, /* 321 = unimplemented */
sys_nosys }, /* 321 = excluded sys__lwp_unpark */
{ 0, 0, 0,
sys_nosys }, /* 322 = unimplemented */
sys_nosys }, /* 322 = excluded sys__lwp_unpark_all */
#endif
{ 0, 0, 0,
sys_nosys }, /* 323 = unimplemented */
{ 0, 0, 0,
@ -950,8 +963,13 @@ struct sysent sysent[] = {
sys_nosys }, /* 348 = unimplemented sys_sched_setscheduler */
{ 0, 0, 0,
sys_nosys }, /* 349 = unimplemented sys_sched_getscheduler */
#if !defined(KERNEL)
{ 0, 0, 0,
sys_nosys }, /* 350 = unimplemented sys_sched_yield */
sys_sched_yield }, /* 350 = sched_yield */
#else
{ 0, 0, 0,
sys_nosys }, /* 350 = excluded sys_sched_yield */
#endif
{ 0, 0, 0,
sys_nosys }, /* 351 = unimplemented sys_sched_get_priority_max */
{ 0, 0, 0,

View File

@ -1,14 +1,14 @@
/* $NetBSD: syscalls.c,v 1.178 2006/10/17 15:07:22 christos Exp $ */
/* $NetBSD: syscalls.c,v 1.179 2007/01/16 01:32:52 ad Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.160 2006/10/17 15:06:18 christos Exp
* created from NetBSD: syscalls.master,v 1.161 2007/01/16 01:30:45 ad Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.178 2006/10/17 15:07:22 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.179 2007/01/16 01:32:52 ad Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ktrace.h"
@ -453,11 +453,19 @@ const char *const syscallnames[] = {
"_lwp_wakeup", /* 315 = _lwp_wakeup */
"_lwp_getprivate", /* 316 = _lwp_getprivate */
"_lwp_setprivate", /* 317 = _lwp_setprivate */
"#318 (unimplemented)", /* 318 = unimplemented */
"#319 (unimplemented)", /* 319 = unimplemented */
"#320 (unimplemented)", /* 320 = unimplemented */
"#321 (unimplemented)", /* 321 = unimplemented */
"#322 (unimplemented)", /* 322 = unimplemented */
#if !defined(_KERNEL)
"_lwp_kill", /* 318 = _lwp_kill */
"_lwp_detach", /* 319 = _lwp_detach */
"_lwp_park", /* 320 = _lwp_park */
"_lwp_unpark", /* 321 = _lwp_unpark */
"_lwp_unpark_all", /* 322 = _lwp_unpark_all */
#else
"#318 (excluded sys__lwp_kill)", /* 318 = excluded sys__lwp_kill */
"#319 (excluded sys__lwp_detach)", /* 319 = excluded sys__lwp_detach */
"#320 (excluded sys__lwp_park)", /* 320 = excluded sys__lwp_park */
"#321 (excluded sys__lwp_unpark)", /* 321 = excluded sys__lwp_unpark */
"#322 (excluded sys__lwp_unpark_all)", /* 322 = excluded sys__lwp_unpark_all */
#endif
"#323 (unimplemented)", /* 323 = unimplemented */
"#324 (unimplemented)", /* 324 = unimplemented */
"#325 (unimplemented)", /* 325 = unimplemented */
@ -485,7 +493,11 @@ const char *const syscallnames[] = {
"#347 (unimplemented sys_sched_getparam)", /* 347 = unimplemented sys_sched_getparam */
"#348 (unimplemented sys_sched_setscheduler)", /* 348 = unimplemented sys_sched_setscheduler */
"#349 (unimplemented sys_sched_getscheduler)", /* 349 = unimplemented sys_sched_getscheduler */
"#350 (unimplemented sys_sched_yield)", /* 350 = unimplemented sys_sched_yield */
#if !defined(KERNEL)
"sched_yield", /* 350 = sched_yield */
#else
"#350 (excluded sys_sched_yield)", /* 350 = excluded sys_sched_yield */
#endif
"#351 (unimplemented sys_sched_get_priority_max)", /* 351 = unimplemented sys_sched_get_priority_max */
"#352 (unimplemented sys_sched_get_priority_min)", /* 352 = unimplemented sys_sched_get_priority_min */
"#353 (unimplemented sys_sched_rr_get_interval)", /* 353 = unimplemented sys_sched_rr_get_interval */

View File

@ -1,10 +1,10 @@
/* $NetBSD: syscall.h,v 1.175 2006/10/17 15:07:21 christos Exp $ */
/* $NetBSD: syscall.h,v 1.176 2007/01/16 01:32:52 ad Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.160 2006/10/17 15:06:18 christos Exp
* created from NetBSD: syscalls.master,v 1.161 2007/01/16 01:30:45 ad Exp
*/
#ifndef _SYS_SYSCALL_H_
@ -928,6 +928,29 @@
/* syscall: "_lwp_setprivate" ret: "void" args: "void *" */
#define SYS__lwp_setprivate 317
#if !defined(_KERNEL)
/* syscall: "_lwp_kill" ret: "int" args: "lwpid_t" "int" */
#define SYS__lwp_kill 318
/* syscall: "_lwp_detach" ret: "int" args: "lwpid_t" */
#define SYS__lwp_detach 319
/* syscall: "_lwp_park" ret: "int" args: "const struct timespec *" "struct __ucontext *" "const void *" */
#define SYS__lwp_park 320
/* syscall: "_lwp_unpark" ret: "int" args: "lwpid_t" "const void *" */
#define SYS__lwp_unpark 321
/* syscall: "_lwp_unpark_all" ret: "int" args: "const lwpid_t *" "size_t" "const void *" */
#define SYS__lwp_unpark_all 322
#else
/* 318 is excluded sys__lwp_kill */
/* 319 is excluded sys__lwp_detach */
/* 320 is excluded sys__lwp_park */
/* 321 is excluded sys__lwp_unpark */
/* 322 is excluded sys__lwp_unpark_all */
#endif
/* syscall: "sa_register" ret: "int" args: "sa_upcall_t" "sa_upcall_t *" "int" "ssize_t" */
#define SYS_sa_register 330
@ -965,6 +988,13 @@
/* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec *" */
#define SYS_kevent 345
#if !defined(KERNEL)
/* syscall: "sched_yield" ret: "int" args: */
#define SYS_sched_yield 350
#else
/* 350 is excluded sys_sched_yield */
#endif
/* syscall: "fsync_range" ret: "int" args: "int" "int" "off_t" "off_t" */
#define SYS_fsync_range 354

View File

@ -1,10 +1,10 @@
/* $NetBSD: syscallargs.h,v 1.157 2006/10/17 15:07:21 christos Exp $ */
/* $NetBSD: syscallargs.h,v 1.158 2007/01/16 01:32:52 ad Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.160 2006/10/17 15:06:18 christos Exp
* created from NetBSD: syscalls.master,v 1.161 2007/01/16 01:30:45 ad Exp
*/
#ifndef _SYS_SYSCALLARGS_H_
@ -1385,6 +1385,35 @@ struct sys__lwp_wakeup_args {
struct sys__lwp_setprivate_args {
syscallarg(void *) ptr;
};
#if !defined(_KERNEL)
struct sys__lwp_kill_args {
syscallarg(lwpid_t) target;
syscallarg(int) signo;
};
struct sys__lwp_detach_args {
syscallarg(lwpid_t) target;
};
struct sys__lwp_park_args {
syscallarg(const struct timespec *) ts;
syscallarg(struct __ucontext *) ucp;
syscallarg(const void *) hint;
};
struct sys__lwp_unpark_args {
syscallarg(lwpid_t) target;
syscallarg(const void *) hint;
};
struct sys__lwp_unpark_all_args {
syscallarg(const lwpid_t *) targets;
syscallarg(size_t) ntargets;
syscallarg(const void *) hint;
};
#else
#endif
struct sys_sa_register_args {
syscallarg(sa_upcall_t) new;
@ -1440,6 +1469,9 @@ struct sys_kevent_args {
syscallarg(size_t) nevents;
syscallarg(const struct timespec *) timeout;
};
#if !defined(KERNEL)
#else
#endif
struct sys_fsync_range_args {
syscallarg(int) fd;
@ -2331,6 +2363,19 @@ int sys__lwp_getprivate(struct lwp *, void *, register_t *);
int sys__lwp_setprivate(struct lwp *, void *, register_t *);
#if !defined(_KERNEL)
int sys__lwp_kill(struct lwp *, void *, register_t *);
int sys__lwp_detach(struct lwp *, void *, register_t *);
int sys__lwp_park(struct lwp *, void *, register_t *);
int sys__lwp_unpark(struct lwp *, void *, register_t *);
int sys__lwp_unpark_all(struct lwp *, void *, register_t *);
#else
#endif
int sys_sa_register(struct lwp *, void *, register_t *);
int sys_sa_stacks(struct lwp *, void *, register_t *);
@ -2355,6 +2400,11 @@ int sys_kqueue(struct lwp *, void *, register_t *);
int sys_kevent(struct lwp *, void *, register_t *);
#if !defined(KERNEL)
int sys_sched_yield(struct lwp *, void *, register_t *);
#else
#endif
int sys_fsync_range(struct lwp *, void *, register_t *);
int sys_uuidgen(struct lwp *, void *, register_t *);