Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys regen
details: https://anonhg.NetBSD.org/src/rev/ea16380a1473
branches: trunk
changeset: 797609:ea16380a1473
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jul 24 12:01:05 2014 +0000
description:
regen
diffstat:
sys/kern/init_sysent.c | 4 +-
sys/kern/syscalls.c | 4 +-
sys/rump/include/rump/rump_syscalls.h | 2 +-
sys/rump/librump/rumpkern/rump_syscalls.c | 1368 ++++++++++++++++++++++++----
sys/sys/syscall.h | 2 +-
sys/sys/syscallargs.h | 2 +-
6 files changed, 1142 insertions(+), 240 deletions(-)
diffs (truncated from 2936 to 300 lines):
diff -r 97c97c77a73e -r ea16380a1473 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c Thu Jul 24 11:58:45 2014 +0000
+++ b/sys/kern/init_sysent.c Thu Jul 24 12:01:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_sysent.c,v 1.285 2014/07/23 11:43:29 pooka Exp $ */
+/* $NetBSD: init_sysent.c,v 1.286 2014/07/24 12:01:05 pooka Exp $ */
/*
* System call switch table.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.285 2014/07/23 11:43:29 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.286 2014/07/24 12:01:05 pooka Exp $");
#include "opt_modular.h"
#include "opt_ntp.h"
diff -r 97c97c77a73e -r ea16380a1473 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c Thu Jul 24 11:58:45 2014 +0000
+++ b/sys/kern/syscalls.c Thu Jul 24 12:01:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscalls.c,v 1.276 2014/07/23 11:43:29 pooka Exp $ */
+/* $NetBSD: syscalls.c,v 1.277 2014/07/24 12:01:05 pooka Exp $ */
/*
* System call names.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.276 2014/07/23 11:43:29 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.277 2014/07/24 12:01:05 pooka Exp $");
#if defined(_KERNEL_OPT)
#include "opt_modular.h"
diff -r 97c97c77a73e -r ea16380a1473 sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h Thu Jul 24 11:58:45 2014 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h Thu Jul 24 12:01:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_syscalls.h,v 1.77 2014/07/23 11:43:29 pooka Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.78 2014/07/24 12:01:05 pooka Exp $ */
/*
* System call protos in rump namespace.
diff -r 97c97c77a73e -r ea16380a1473 sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Thu Jul 24 11:58:45 2014 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Thu Jul 24 12:01:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_syscalls.c,v 1.102 2014/07/23 11:43:29 pooka Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.103 2014/07/24 12:01:05 pooka Exp $ */
/*
* System call vector and marshalling for rump.
@@ -15,7 +15,7 @@
#ifdef __NetBSD__
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.102 2014/07/23 11:43:29 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.103 2014/07/24 12:01:05 pooka Exp $");
#include <sys/fstypes.h>
#include <sys/proc.h>
@@ -50,13 +50,8 @@
#define rsys_seterrno(error) rumpuser_seterrno(error)
#endif
-#ifdef RUMP_KERNEL_IS_LIBC
-#define rsys_aliases(what,where) \
- __weak_alias(what,where); \
- __weak_alias(_##what,where); \
- __strong_alias(_sys_##what,where);
-#else
-#define rsys_aliases(a,b)
+#ifndef RUMP_KERNEL_IS_LIBC
+#define RUMP_SYS_COMPAT
#endif
#if BYTE_ORDER == BIG_ENDIAN
@@ -92,7 +87,11 @@
}
return rv;
}
-rsys_aliases(read,rump___sysimpl_read);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(read,rump___sysimpl_read);
+__weak_alias(_read,rump___sysimpl_read);
+__strong_alias(_sys_read,rump___sysimpl_read);
+#endif /* RUMP_KERNEL_IS_LIBC */
ssize_t rump___sysimpl_write(int, const void *, size_t);
ssize_t
@@ -118,7 +117,11 @@
}
return rv;
}
-rsys_aliases(write,rump___sysimpl_write);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(write,rump___sysimpl_write);
+__weak_alias(_write,rump___sysimpl_write);
+__strong_alias(_sys_write,rump___sysimpl_write);
+#endif /* RUMP_KERNEL_IS_LIBC */
int rump___sysimpl_open(const char *, int, mode_t);
int
@@ -144,7 +147,11 @@
}
return rv;
}
-rsys_aliases(open,rump___sysimpl_open);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(open,rump___sysimpl_open);
+__weak_alias(_open,rump___sysimpl_open);
+__strong_alias(_sys_open,rump___sysimpl_open);
+#endif /* RUMP_KERNEL_IS_LIBC */
int rump___sysimpl_close(int);
int
@@ -168,7 +175,11 @@
}
return rv;
}
-rsys_aliases(close,rump___sysimpl_close);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(close,rump___sysimpl_close);
+__weak_alias(_close,rump___sysimpl_close);
+__strong_alias(_sys_close,rump___sysimpl_close);
+#endif /* RUMP_KERNEL_IS_LIBC */
int rump___sysimpl_link(const char *, const char *);
int
@@ -193,7 +204,11 @@
}
return rv;
}
-rsys_aliases(link,rump___sysimpl_link);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(link,rump___sysimpl_link);
+__weak_alias(_link,rump___sysimpl_link);
+__strong_alias(_sys_link,rump___sysimpl_link);
+#endif /* RUMP_KERNEL_IS_LIBC */
int rump___sysimpl_unlink(const char *);
int
@@ -217,7 +232,11 @@
}
return rv;
}
-rsys_aliases(unlink,rump___sysimpl_unlink);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(unlink,rump___sysimpl_unlink);
+__weak_alias(_unlink,rump___sysimpl_unlink);
+__strong_alias(_sys_unlink,rump___sysimpl_unlink);
+#endif /* RUMP_KERNEL_IS_LIBC */
int rump___sysimpl_chdir(const char *);
int
@@ -241,7 +260,11 @@
}
return rv;
}
-rsys_aliases(chdir,rump___sysimpl_chdir);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(chdir,rump___sysimpl_chdir);
+__weak_alias(_chdir,rump___sysimpl_chdir);
+__strong_alias(_sys_chdir,rump___sysimpl_chdir);
+#endif /* RUMP_KERNEL_IS_LIBC */
int rump___sysimpl_fchdir(int);
int
@@ -265,8 +288,13 @@
}
return rv;
}
-rsys_aliases(fchdir,rump___sysimpl_fchdir);
-
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(fchdir,rump___sysimpl_fchdir);
+__weak_alias(_fchdir,rump___sysimpl_fchdir);
+__strong_alias(_sys_fchdir,rump___sysimpl_fchdir);
+#endif /* RUMP_KERNEL_IS_LIBC */
+
+#ifdef RUMP_SYS_COMPAT
int rump___sysimpl_mknod(const char *, mode_t, uint32_t);
int
rump___sysimpl_mknod(const char * path, mode_t mode, uint32_t dev)
@@ -291,7 +319,12 @@
}
return rv;
}
-rsys_aliases(compat_50_mknod,rump___sysimpl_mknod);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(mknod,rump___sysimpl_mknod);
+__weak_alias(_mknod,rump___sysimpl_mknod);
+__strong_alias(_sys_mknod,rump___sysimpl_mknod);
+#endif /* RUMP_KERNEL_IS_LIBC */
+#endif /* RUMP_SYS_COMPAT */
int rump___sysimpl_chmod(const char *, mode_t);
int
@@ -316,7 +349,11 @@
}
return rv;
}
-rsys_aliases(chmod,rump___sysimpl_chmod);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(chmod,rump___sysimpl_chmod);
+__weak_alias(_chmod,rump___sysimpl_chmod);
+__strong_alias(_sys_chmod,rump___sysimpl_chmod);
+#endif /* RUMP_KERNEL_IS_LIBC */
int rump___sysimpl_chown(const char *, uid_t, gid_t);
int
@@ -342,7 +379,11 @@
}
return rv;
}
-rsys_aliases(chown,rump___sysimpl_chown);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(chown,rump___sysimpl_chown);
+__weak_alias(_chown,rump___sysimpl_chown);
+__strong_alias(_sys_chown,rump___sysimpl_chown);
+#endif /* RUMP_KERNEL_IS_LIBC */
pid_t rump___sysimpl_getpid(void);
pid_t
@@ -358,7 +399,11 @@
rv = *retval;
return rv;
}
-rsys_aliases(getpid,rump___sysimpl_getpid);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(getpid,rump___sysimpl_getpid);
+__weak_alias(_getpid,rump___sysimpl_getpid);
+__strong_alias(_sys_getpid,rump___sysimpl_getpid);
+#endif /* RUMP_KERNEL_IS_LIBC */
int rump___sysimpl_unmount(const char *, int);
int
@@ -383,7 +428,11 @@
}
return rv;
}
-rsys_aliases(unmount,rump___sysimpl_unmount);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(unmount,rump___sysimpl_unmount);
+__weak_alias(_unmount,rump___sysimpl_unmount);
+__strong_alias(_sys_unmount,rump___sysimpl_unmount);
+#endif /* RUMP_KERNEL_IS_LIBC */
int rump___sysimpl_setuid(uid_t);
int
@@ -407,7 +456,11 @@
}
return rv;
}
-rsys_aliases(setuid,rump___sysimpl_setuid);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(setuid,rump___sysimpl_setuid);
+__weak_alias(_setuid,rump___sysimpl_setuid);
+__strong_alias(_sys_setuid,rump___sysimpl_setuid);
+#endif /* RUMP_KERNEL_IS_LIBC */
uid_t rump___sysimpl_getuid(void);
uid_t
@@ -423,7 +476,11 @@
rv = *retval;
return rv;
}
-rsys_aliases(getuid,rump___sysimpl_getuid);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(getuid,rump___sysimpl_getuid);
+__weak_alias(_getuid,rump___sysimpl_getuid);
+__strong_alias(_sys_getuid,rump___sysimpl_getuid);
+#endif /* RUMP_KERNEL_IS_LIBC */
uid_t rump___sysimpl_geteuid(void);
uid_t
@@ -439,7 +496,11 @@
rv = *retval;
return rv;
}
-rsys_aliases(geteuid,rump___sysimpl_geteuid);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(geteuid,rump___sysimpl_geteuid);
+__weak_alias(_geteuid,rump___sysimpl_geteuid);
+__strong_alias(_sys_geteuid,rump___sysimpl_geteuid);
+#endif /* RUMP_KERNEL_IS_LIBC */
ssize_t rump___sysimpl_recvmsg(int, struct msghdr *, int);
ssize_t
@@ -465,7 +526,11 @@
}
return rv;
}
-rsys_aliases(recvmsg,rump___sysimpl_recvmsg);
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(recvmsg,rump___sysimpl_recvmsg);
+__weak_alias(_recvmsg,rump___sysimpl_recvmsg);
+__strong_alias(_sys_recvmsg,rump___sysimpl_recvmsg);
Home |
Main Index |
Thread Index |
Old Index