Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys regen: NOERR syscalls
details: https://anonhg.NetBSD.org/src/rev/6e2c348244c4
branches: trunk
changeset: 762493:6e2c348244c4
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Feb 21 23:31:00 2011 +0000
description:
regen: NOERR syscalls
diffstat:
sys/kern/init_sysent.c | 6 +-
sys/kern/syscalls.c | 6 +-
sys/rump/include/rump/rump_syscalls.h | 4 +-
sys/rump/librump/rumpkern/rump_syscalls.c | 85 +++++++-----------------------
sys/sys/syscall.h | 4 +-
sys/sys/syscallargs.h | 4 +-
6 files changed, 32 insertions(+), 77 deletions(-)
diffs (260 lines):
diff -r 49931d66fdce -r 6e2c348244c4 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c Mon Feb 21 23:30:12 2011 +0000
+++ b/sys/kern/init_sysent.c Mon Feb 21 23:31:00 2011 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.252 2011/01/31 00:06:57 christos Exp $ */
+/* $NetBSD: init_sysent.c,v 1.253 2011/02/21 23:31:00 pooka Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.243 2011/01/31 00:05:29 christos Exp
+ * created from NetBSD: syscalls.master,v 1.245 2011/02/21 23:20:19 pooka Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.252 2011/01/31 00:06:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.253 2011/02/21 23:31:00 pooka Exp $");
#include "opt_modular.h"
#include "opt_ntp.h"
diff -r 49931d66fdce -r 6e2c348244c4 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c Mon Feb 21 23:30:12 2011 +0000
+++ b/sys/kern/syscalls.c Mon Feb 21 23:31:00 2011 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls.c,v 1.243 2011/01/31 00:06:57 christos Exp $ */
+/* $NetBSD: syscalls.c,v 1.244 2011/02/21 23:31:00 pooka Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.243 2011/01/31 00:05:29 christos Exp
+ * created from NetBSD: syscalls.master,v 1.245 2011/02/21 23:20:19 pooka Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.243 2011/01/31 00:06:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.244 2011/02/21 23:31:00 pooka Exp $");
#if defined(_KERNEL_OPT)
#include "opt_modular.h"
diff -r 49931d66fdce -r 6e2c348244c4 sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h Mon Feb 21 23:30:12 2011 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h Mon Feb 21 23:31:00 2011 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.h,v 1.42 2011/02/21 12:49:49 pooka Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.43 2011/02/21 23:31:00 pooka Exp $ */
/*
* System call protos in rump namespace.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.244 2011/02/21 12:49:06 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.245 2011/02/21 23:20:19 pooka Exp
*/
#ifndef _RUMP_RUMP_SYSCALLS_H_
diff -r 49931d66fdce -r 6e2c348244c4 sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Mon Feb 21 23:30:12 2011 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Mon Feb 21 23:31:00 2011 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: rump_syscalls.c,v 1.64 2011/02/21 12:49:49 pooka Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.65 2011/02/21 23:31:00 pooka Exp $ */
/*
* System call vector and marshalling for rump.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.244 2011/02/21 12:49:06 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.245 2011/02/21 23:20:19 pooka Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.64 2011/02/21 12:49:49 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.65 2011/02/21 23:31:00 pooka Exp $");
#include <sys/param.h>
#include <sys/fstypes.h>
@@ -291,13 +291,8 @@
rump___sysimpl_getpid(void )
{
register_t rval[2] = {0, 0};
- int error = 0;
-
- error = rsys_syscall(SYS_getpid, NULL, 0, rval);
- rsys_seterrno(error);
- if (error) {
- rval[0] = -1;
- }
+
+ rsys_syscall(SYS_getpid, NULL, 0, rval);
return rval[0];
}
rsys_alias(sys_getpid_with_ppid,rump_enosys)
@@ -346,13 +341,8 @@
rump___sysimpl_getuid(void )
{
register_t rval[2] = {0, 0};
- int error = 0;
-
- error = rsys_syscall(SYS_getuid, NULL, 0, rval);
- rsys_seterrno(error);
- if (error) {
- rval[0] = -1;
- }
+
+ rsys_syscall(SYS_getuid, NULL, 0, rval);
return rval[0];
}
rsys_alias(sys_getuid_with_euid,rump_enosys)
@@ -362,13 +352,8 @@
rump___sysimpl_geteuid(void )
{
register_t rval[2] = {0, 0};
- int error = 0;
-
- error = rsys_syscall(SYS_geteuid, NULL, 0, rval);
- rsys_seterrno(error);
- if (error) {
- rval[0] = -1;
- }
+
+ rsys_syscall(SYS_geteuid, NULL, 0, rval);
return rval[0];
}
rsys_alias(sys_geteuid,rump_enosys)
@@ -567,13 +552,8 @@
rump___sysimpl_sync(void )
{
register_t rval[2] = {0, 0};
- int error = 0;
-
- error = rsys_syscall(SYS_sync, NULL, 0, rval);
- rsys_seterrno(error);
- if (error) {
- rval[0] = -1;
- }
+
+ rsys_syscall(SYS_sync, NULL, 0, rval);
}
rsys_alias(sys_sync,rump_enosys)
@@ -582,13 +562,8 @@
rump___sysimpl_getppid(void )
{
register_t rval[2] = {0, 0};
- int error = 0;
-
- error = rsys_syscall(SYS_getppid, NULL, 0, rval);
- rsys_seterrno(error);
- if (error) {
- rval[0] = -1;
- }
+
+ rsys_syscall(SYS_getppid, NULL, 0, rval);
return rval[0];
}
rsys_alias(sys_getppid,rump_enosys)
@@ -617,13 +592,8 @@
rump___sysimpl_getegid(void )
{
register_t rval[2] = {0, 0};
- int error = 0;
-
- error = rsys_syscall(SYS_getegid, NULL, 0, rval);
- rsys_seterrno(error);
- if (error) {
- rval[0] = -1;
- }
+
+ rsys_syscall(SYS_getegid, NULL, 0, rval);
return rval[0];
}
rsys_alias(sys_getegid,rump_enosys)
@@ -633,13 +603,8 @@
rump___sysimpl_getgid(void )
{
register_t rval[2] = {0, 0};
- int error = 0;
-
- error = rsys_syscall(SYS_getgid, NULL, 0, rval);
- rsys_seterrno(error);
- if (error) {
- rval[0] = -1;
- }
+
+ rsys_syscall(SYS_getgid, NULL, 0, rval);
return rval[0];
}
rsys_alias(sys_getgid_with_egid,rump_enosys)
@@ -2170,13 +2135,8 @@
rump___sysimpl_issetugid(void )
{
register_t rval[2] = {0, 0};
- int error = 0;
-
- error = rsys_syscall(SYS_issetugid, NULL, 0, rval);
- rsys_seterrno(error);
- if (error) {
- rval[0] = -1;
- }
+
+ rsys_syscall(SYS_issetugid, NULL, 0, rval);
return rval[0];
}
rsys_alias(sys_issetugid,rump_enosys)
@@ -3115,7 +3075,6 @@
rump___sysimpl_posix_fadvise50(int fd, off_t offset, off_t len, int advice)
{
register_t rval[2] = {0, 0};
- int error = 0;
struct sys___posix_fadvise50_args callarg;
SPARG(&callarg, fd) = fd;
@@ -3124,11 +3083,7 @@
SPARG(&callarg, len) = len;
SPARG(&callarg, advice) = advice;
- error = rsys_syscall(SYS___posix_fadvise50, &callarg, sizeof(callarg), rval);
- rsys_seterrno(error);
- if (error) {
- rval[0] = -1;
- }
+ rsys_syscall(SYS___posix_fadvise50, &callarg, sizeof(callarg), rval);
return rval[0];
}
rsys_alias(sys___posix_fadvise50,rump_enosys)
diff -r 49931d66fdce -r 6e2c348244c4 sys/sys/syscall.h
--- a/sys/sys/syscall.h Mon Feb 21 23:30:12 2011 +0000
+++ b/sys/sys/syscall.h Mon Feb 21 23:31:00 2011 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscall.h,v 1.239 2011/01/31 00:06:57 christos Exp $ */
+/* $NetBSD: syscall.h,v 1.240 2011/02/21 23:31:01 pooka Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.243 2011/01/31 00:05:29 christos Exp
+ * created from NetBSD: syscalls.master,v 1.245 2011/02/21 23:20:19 pooka Exp
*/
#ifndef _SYS_SYSCALL_H_
diff -r 49931d66fdce -r 6e2c348244c4 sys/sys/syscallargs.h
--- a/sys/sys/syscallargs.h Mon Feb 21 23:30:12 2011 +0000
+++ b/sys/sys/syscallargs.h Mon Feb 21 23:31:00 2011 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscallargs.h,v 1.222 2011/01/31 00:06:57 christos Exp $ */
+/* $NetBSD: syscallargs.h,v 1.223 2011/02/21 23:31:01 pooka Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.243 2011/01/31 00:05:29 christos Exp
+ * created from NetBSD: syscalls.master,v 1.245 2011/02/21 23:20:19 pooka Exp
*/
#ifndef _SYS_SYSCALLARGS_H_
Home |
Main Index |
Thread Index |
Old Index