Module Name: src
Committed By: stacktic
Date: Mon Mar 4 19:12:56 UTC 2013
Modified Files:
src/sys/rump/kern/lib/libsys_linux: rump_linux_syscallargs.h
rump_linux_syscalls.c rump_linux_sysent.c syscalls.master
Log Message:
Regen to use getdents64 instead of getdents
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h \
src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c \
src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c \
src/sys/rump/kern/lib/libsys_linux/syscalls.master
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h
diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.2 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.3
--- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.2 Sun Feb 17 15:17:40 2013
+++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h Mon Mar 4 19:12:55 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_linux_syscallargs.h,v 1.2 2013/02/17 15:17:40 stacktic Exp $ */
+/* $NetBSD: rump_linux_syscallargs.h,v 1.3 2013/03/04 19:12:55 stacktic Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.1 2012/09/19 21:45:40 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.2 2013/02/17 15:17:40 stacktic Exp
*/
#ifndef _RUMP_LINUX_SYS_SYSCALLARGS_H_
@@ -273,12 +273,12 @@ struct sys___getcwd_args;
struct sys_fchroot_args;
-struct linux_sys_getdents_args {
+struct linux_sys_getdents64_args {
syscallarg(int) fd;
- syscallarg(struct linux_dirent *) dent;
+ syscallarg(struct linux_dirent64 *) dent;
syscallarg(unsigned int) count;
};
-check_syscall_args(linux_sys_getdents)
+check_syscall_args(linux_sys_getdents64)
struct linux_sys_socket_args {
syscallarg(int) domain;
@@ -479,7 +479,7 @@ int sys___getcwd(struct lwp *, const str
int sys_fchroot(struct lwp *, const struct sys_fchroot_args *, register_t *);
-int linux_sys_getdents(struct lwp *, const struct linux_sys_getdents_args *, register_t *);
+int linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *);
int linux_sys_socket(struct lwp *, const struct linux_sys_socket_args *, register_t *);
Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c
diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c:1.2 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c:1.3
--- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c:1.2 Sun Feb 17 15:17:40 2013
+++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c Mon Mar 4 19:12:55 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: rump_linux_syscalls.c,v 1.2 2013/02/17 15:17:40 stacktic Exp $ */
+/* $NetBSD: rump_linux_syscalls.c,v 1.3 2013/03/04 19:12:55 stacktic Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.1 2012/09/19 21:45:40 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.2 2013/02/17 15:17:40 stacktic Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_linux_syscalls.c,v 1.2 2013/02/17 15:17:40 stacktic Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_linux_syscalls.c,v 1.3 2013/03/04 19:12:55 stacktic Exp $");
#if defined(_KERNEL_OPT)
#include <sys/param.h>
@@ -414,7 +414,7 @@ const char *const rump_linux_syscallname
/* 387 */ "#387 (unimplemented stat30)",
/* 388 */ "#388 (unimplemented fstat30)",
/* 389 */ "#389 (unimplemented lstat30)",
- /* 390 */ "getdents",
+ /* 390 */ "getdents64",
/* 391 */ "#391 (unimplemented old posix_fadvise)",
/* 392 */ "#392 (unimplemented fhstat)",
/* 393 */ "#393 (unimplemented ntp_gettime)",
Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c
diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c:1.2 src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c:1.3
--- src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c:1.2 Sun Feb 17 15:17:40 2013
+++ src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c Mon Mar 4 19:12:56 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: rump_linux_sysent.c,v 1.2 2013/02/17 15:17:40 stacktic Exp $ */
+/* $NetBSD: rump_linux_sysent.c,v 1.3 2013/03/04 19:12:56 stacktic Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.1 2012/09/19 21:45:40 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.2 2013/02/17 15:17:40 stacktic Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_linux_sysent.c,v 1.2 2013/02/17 15:17:40 stacktic Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_linux_sysent.c,v 1.3 2013/03/04 19:12:56 stacktic Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -806,8 +806,8 @@ struct sysent rump_linux_sysent[] = {
linux_sys_nosys }, /* 388 = unimplemented fstat30 */
{ 0, 0, 0,
linux_sys_nosys }, /* 389 = unimplemented lstat30 */
- { ns(struct linux_sys_getdents_args), SYCALL_ARG_PTR,
- (sy_call_t *)linux_sys_getdents }, /* 390 = getdents */
+ { ns(struct linux_sys_getdents64_args), SYCALL_ARG_PTR,
+ (sy_call_t *)linux_sys_getdents64 },/* 390 = getdents64 */
{ 0, 0, 0,
linux_sys_nosys }, /* 391 = unimplemented old posix_fadvise */
{ 0, 0, 0,
Index: src/sys/rump/kern/lib/libsys_linux/syscalls.master
diff -u src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.2 src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.3
--- src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.2 Sun Feb 17 15:17:40 2013
+++ src/sys/rump/kern/lib/libsys_linux/syscalls.master Mon Mar 4 19:12:56 2013
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.2 2013/02/17 15:17:40 stacktic Exp $
+ $NetBSD: syscalls.master,v 1.3 2013/03/04 19:12:56 stacktic Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -498,8 +498,8 @@
387 UNIMPL stat30
388 UNIMPL fstat30
389 UNIMPL lstat30
-390 NODEF { int|linux_sys||getdents(int fd, \
- struct linux_dirent *dent, unsigned int count); }
+390 NODEF { int|linux_sys||getdents64(int fd, \
+ struct linux_dirent64 *dent, unsigned int count); }
391 UNIMPL old posix_fadvise
392 UNIMPL fhstat
393 UNIMPL ntp_gettime