Regen syscalls.

This commit is contained in:
rmind 2007-09-07 18:58:46 +00:00
parent 2cecf9bbe9
commit 4492a08ad7
4 changed files with 151 additions and 40 deletions

View File

@ -1,14 +1,14 @@
/* $NetBSD: init_sysent.c,v 1.197 2007/08/15 12:09:13 ad Exp $ */
/* $NetBSD: init_sysent.c,v 1.198 2007/09/07 18:58:46 rmind Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.176 2007/08/15 12:08:38 ad Exp
* created from NetBSD: syscalls.master,v 1.177 2007/09/07 18:56:09 rmind Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.197 2007/08/15 12:09:13 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.198 2007/09/07 18:58:46 rmind Exp $");
#include "opt_nfsserver.h"
#include "opt_ntp.h"
@ -743,26 +743,26 @@ struct sysent sysent[] = {
{ 0, 0, 0,
sys_nosys }, /* 256 = unimplemented sys__ksem_timedwait */
#endif
{ 0, 0, 0,
sys_nosys }, /* 257 = unimplemented sys_mq_open */
{ 0, 0, 0,
sys_nosys }, /* 258 = unimplemented sys_mq_close */
{ 0, 0, 0,
sys_nosys }, /* 259 = unimplemented sys_mq_unlink */
{ 0, 0, 0,
sys_nosys }, /* 260 = unimplemented sys_mq_getattr */
{ 0, 0, 0,
sys_nosys }, /* 261 = unimplemented sys_mq_setattr */
{ 0, 0, 0,
sys_nosys }, /* 262 = unimplemented sys_mq_notify */
{ 0, 0, 0,
sys_nosys }, /* 263 = unimplemented sys_mq_send */
{ 0, 0, 0,
sys_nosys }, /* 264 = unimplemented sys_mq_receive */
{ 0, 0, 0,
sys_nosys }, /* 265 = unimplemented sys_mq_timedsend */
{ 0, 0, 0,
sys_nosys }, /* 266 = unimplemented sys_mq_timedreceive */
{ 4, s(struct sys_mq_open_args), 0,
sys_mq_open }, /* 257 = mq_open */
{ 1, s(struct sys_mq_close_args), 0,
sys_mq_close }, /* 258 = mq_close */
{ 1, s(struct sys_mq_unlink_args), 0,
sys_mq_unlink }, /* 259 = mq_unlink */
{ 2, s(struct sys_mq_getattr_args), 0,
sys_mq_getattr }, /* 260 = mq_getattr */
{ 3, s(struct sys_mq_setattr_args), 0,
sys_mq_setattr }, /* 261 = mq_setattr */
{ 2, s(struct sys_mq_notify_args), 0,
sys_mq_notify }, /* 262 = mq_notify */
{ 4, s(struct sys_mq_send_args), 0,
sys_mq_send }, /* 263 = mq_send */
{ 4, s(struct sys_mq_receive_args), 0,
sys_mq_receive }, /* 264 = mq_receive */
{ 5, s(struct sys_mq_timedsend_args), 0,
sys_mq_timedsend }, /* 265 = mq_timedsend */
{ 5, s(struct sys_mq_timedreceive_args), 0,
sys_mq_timedreceive }, /* 266 = mq_timedreceive */
{ 0, 0, 0,
sys_nosys }, /* 267 = unimplemented */
{ 0, 0, 0,

View File

@ -1,14 +1,14 @@
/* $NetBSD: syscalls.c,v 1.190 2007/08/15 12:09:13 ad Exp $ */
/* $NetBSD: syscalls.c,v 1.191 2007/09/07 18:58:51 rmind Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.176 2007/08/15 12:08:38 ad Exp
* created from NetBSD: syscalls.master,v 1.177 2007/09/07 18:56:09 rmind Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.190 2007/08/15 12:09:13 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.191 2007/09/07 18:58:51 rmind Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfsserver.h"
@ -370,16 +370,16 @@ const char *const syscallnames[] = {
"#255 (excluded sys__ksem_destroy)", /* 255 = excluded sys__ksem_destroy */
"#256 (unimplemented sys__ksem_timedwait)", /* 256 = unimplemented sys__ksem_timedwait */
#endif
"#257 (unimplemented sys_mq_open)", /* 257 = unimplemented sys_mq_open */
"#258 (unimplemented sys_mq_close)", /* 258 = unimplemented sys_mq_close */
"#259 (unimplemented sys_mq_unlink)", /* 259 = unimplemented sys_mq_unlink */
"#260 (unimplemented sys_mq_getattr)", /* 260 = unimplemented sys_mq_getattr */
"#261 (unimplemented sys_mq_setattr)", /* 261 = unimplemented sys_mq_setattr */
"#262 (unimplemented sys_mq_notify)", /* 262 = unimplemented sys_mq_notify */
"#263 (unimplemented sys_mq_send)", /* 263 = unimplemented sys_mq_send */
"#264 (unimplemented sys_mq_receive)", /* 264 = unimplemented sys_mq_receive */
"#265 (unimplemented sys_mq_timedsend)", /* 265 = unimplemented sys_mq_timedsend */
"#266 (unimplemented sys_mq_timedreceive)", /* 266 = unimplemented sys_mq_timedreceive */
"mq_open", /* 257 = mq_open */
"mq_close", /* 258 = mq_close */
"mq_unlink", /* 259 = mq_unlink */
"mq_getattr", /* 260 = mq_getattr */
"mq_setattr", /* 261 = mq_setattr */
"mq_notify", /* 262 = mq_notify */
"mq_send", /* 263 = mq_send */
"mq_receive", /* 264 = mq_receive */
"mq_timedsend", /* 265 = mq_timedsend */
"mq_timedreceive", /* 266 = mq_timedreceive */
"#267 (unimplemented)", /* 267 = unimplemented */
"#268 (unimplemented)", /* 268 = unimplemented */
"#269 (unimplemented)", /* 269 = unimplemented */

View File

@ -1,10 +1,10 @@
/* $NetBSD: syscall.h,v 1.188 2007/08/15 12:09:12 ad Exp $ */
/* $NetBSD: syscall.h,v 1.189 2007/09/07 18:58:52 rmind Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.176 2007/08/15 12:08:38 ad Exp
* created from NetBSD: syscalls.master,v 1.177 2007/09/07 18:56:09 rmind Exp
*/
#ifndef _SYS_SYSCALL_H_
@ -764,6 +764,36 @@
/* 254 is excluded sys__ksem_getvalue */
/* 255 is excluded sys__ksem_destroy */
#endif
/* syscall: "mq_open" ret: "mqd_t" args: "const char *" "int" "mode_t" "struct mq_attr *" */
#define SYS_mq_open 257
/* syscall: "mq_close" ret: "int" args: "mqd_t" */
#define SYS_mq_close 258
/* syscall: "mq_unlink" ret: "int" args: "const char *" */
#define SYS_mq_unlink 259
/* syscall: "mq_getattr" ret: "int" args: "mqd_t" "struct mq_attr *" */
#define SYS_mq_getattr 260
/* syscall: "mq_setattr" ret: "int" args: "mqd_t" "const struct mq_attr *" "struct mq_attr *" */
#define SYS_mq_setattr 261
/* syscall: "mq_notify" ret: "int" args: "mqd_t" "const struct sigevent *" */
#define SYS_mq_notify 262
/* syscall: "mq_send" ret: "int" args: "mqd_t" "const char *" "size_t" "unsigned" */
#define SYS_mq_send 263
/* syscall: "mq_receive" ret: "ssize_t" args: "mqd_t" "char *" "size_t" "unsigned *" */
#define SYS_mq_receive 264
/* syscall: "mq_timedsend" ret: "int" args: "mqd_t" "const char *" "size_t" "unsigned" "const struct timespec *" */
#define SYS_mq_timedsend 265
/* syscall: "mq_timedreceive" ret: "ssize_t" args: "mqd_t" "char *" "size_t" "unsigned *" "const struct timespec *" */
#define SYS_mq_timedreceive 266
/* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
#define SYS___posix_rename 270

View File

@ -1,10 +1,10 @@
/* $NetBSD: syscallargs.h,v 1.170 2007/08/15 12:09:13 ad Exp $ */
/* $NetBSD: syscallargs.h,v 1.171 2007/09/07 18:58:52 rmind Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.176 2007/08/15 12:08:38 ad Exp
* created from NetBSD: syscalls.master,v 1.177 2007/09/07 18:56:09 rmind Exp
*/
#ifndef _SYS_SYSCALLARGS_H_
@ -1143,6 +1143,67 @@ struct sys__ksem_destroy_args {
#else
#endif
struct sys_mq_open_args {
syscallarg(const char *) name;
syscallarg(int) oflag;
syscallarg(mode_t) mode;
syscallarg(struct mq_attr *) attr;
};
struct sys_mq_close_args {
syscallarg(mqd_t) mqdes;
};
struct sys_mq_unlink_args {
syscallarg(const char *) name;
};
struct sys_mq_getattr_args {
syscallarg(mqd_t) mqdes;
syscallarg(struct mq_attr *) mqstat;
};
struct sys_mq_setattr_args {
syscallarg(mqd_t) mqdes;
syscallarg(const struct mq_attr *) mqstat;
syscallarg(struct mq_attr *) omqstat;
};
struct sys_mq_notify_args {
syscallarg(mqd_t) mqdes;
syscallarg(const struct sigevent *) notification;
};
struct sys_mq_send_args {
syscallarg(mqd_t) mqdes;
syscallarg(const char *) msg_ptr;
syscallarg(size_t) msg_len;
syscallarg(unsigned) msg_prio;
};
struct sys_mq_receive_args {
syscallarg(mqd_t) mqdes;
syscallarg(char *) msg_ptr;
syscallarg(size_t) msg_len;
syscallarg(unsigned *) msg_prio;
};
struct sys_mq_timedsend_args {
syscallarg(mqd_t) mqdes;
syscallarg(const char *) msg_ptr;
syscallarg(size_t) msg_len;
syscallarg(unsigned) msg_prio;
syscallarg(const struct timespec *) abs_timeout;
};
struct sys_mq_timedreceive_args {
syscallarg(mqd_t) mqdes;
syscallarg(char *) msg_ptr;
syscallarg(size_t) msg_len;
syscallarg(unsigned *) msg_prio;
syscallarg(const struct timespec *) abs_timeout;
};
struct sys___posix_rename_args {
syscallarg(const char *) from;
syscallarg(const char *) to;
@ -2276,6 +2337,26 @@ int sys__ksem_destroy(struct lwp *, void *, register_t *);
#else
#endif
int sys_mq_open(struct lwp *, void *, register_t *);
int sys_mq_close(struct lwp *, void *, register_t *);
int sys_mq_unlink(struct lwp *, void *, register_t *);
int sys_mq_getattr(struct lwp *, void *, register_t *);
int sys_mq_setattr(struct lwp *, void *, register_t *);
int sys_mq_notify(struct lwp *, void *, register_t *);
int sys_mq_send(struct lwp *, void *, register_t *);
int sys_mq_receive(struct lwp *, void *, register_t *);
int sys_mq_timedsend(struct lwp *, void *, register_t *);
int sys_mq_timedreceive(struct lwp *, void *, register_t *);
int sys___posix_rename(struct lwp *, void *, register_t *);
int sys_swapctl(struct lwp *, void *, register_t *);