hook in truncate64(2) and ftruncate64(2)

This commit is contained in:
jdolecek 2002-05-19 17:55:42 +00:00
parent 973744c531
commit 98a5f2b671
5 changed files with 34 additions and 19 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.16 2002/05/12 15:04:59 jdolecek Exp $ */
/* $NetBSD: linux_syscall.h,v 1.17 2002/05/19 17:56:34 jdolecek Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.12 2002/05/12 15:04:27 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.13 2002/05/19 17:55:42 jdolecek Exp
*/
/* syscall: "syscall" ret: "int" args: */
@ -474,6 +474,12 @@
/* syscall: "ugetrlimit" ret: "int" args: "int" "struct rlimit *" */
#define LINUX_SYS_ugetrlimit 190
/* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */
#define LINUX_SYS_truncate64 193
/* syscall: "linux_ftruncate64" ret: "int" args: "int" "off_t" */
#define LINUX_SYS_linux_ftruncate64 194
/* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
#define LINUX_SYS_stat64 195

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.16 2002/05/12 15:04:59 jdolecek Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.17 2002/05/19 17:56:34 jdolecek Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.12 2002/05/12 15:04:27 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.13 2002/05/19 17:55:42 jdolecek Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@ -514,6 +514,11 @@ struct linux_sys_ugetrlimit_args {
syscallarg(struct rlimit *) rlp;
};
struct linux_sys_truncate64_args {
syscallarg(const char *) path;
syscallarg(off_t) length;
};
struct linux_sys_stat64_args {
syscallarg(const char *) path;
syscallarg(struct linux_stat64 *) sp;
@ -697,6 +702,8 @@ int sys___getcwd(struct proc *, void *, register_t *);
int linux_sys_sigaltstack(struct proc *, void *, register_t *);
int sys___vfork14(struct proc *, void *, register_t *);
int linux_sys_ugetrlimit(struct proc *, void *, register_t *);
int linux_sys_truncate64(struct proc *, void *, register_t *);
int sys_ftruncate(struct proc *, void *, register_t *);
int linux_sys_stat64(struct proc *, void *, register_t *);
int linux_sys_lstat64(struct proc *, void *, register_t *);
int linux_sys_fstat64(struct proc *, void *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.16 2002/05/12 15:04:59 jdolecek Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.17 2002/05/19 17:56:34 jdolecek Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.12 2002/05/12 15:04:27 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.13 2002/05/19 17:55:42 jdolecek Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.16 2002/05/12 15:04:59 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.17 2002/05/19 17:56:34 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -223,8 +223,8 @@ const char *const linux_syscallnames[] = {
"ugetrlimit", /* 190 = ugetrlimit */
"#191 (unimplemented / * unused * /)", /* 191 = unimplemented / * unused * / */
"#192 (unimplemented mmap2)", /* 192 = unimplemented mmap2 */
"#193 (unimplemented truncate64)", /* 193 = unimplemented truncate64 */
"#194 (unimplemented ftruncate64)", /* 194 = unimplemented ftruncate64 */
"truncate64", /* 193 = truncate64 */
"linux_ftruncate64", /* 194 = linux_ftruncate64 */
"stat64", /* 195 = stat64 */
"lstat64", /* 196 = lstat64 */
"fstat64", /* 197 = fstat64 */

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.16 2002/05/12 15:05:00 jdolecek Exp $ */
/* $NetBSD: linux_sysent.c,v 1.17 2002/05/19 17:56:34 jdolecek Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.12 2002/05/12 15:04:27 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.13 2002/05/19 17:55:42 jdolecek Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.16 2002/05/12 15:05:00 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.17 2002/05/19 17:56:34 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@ -416,10 +416,10 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 191 = unimplemented / * unused * / */
{ 0, 0, 0,
linux_sys_nosys }, /* 192 = unimplemented mmap2 */
{ 0, 0, 0,
linux_sys_nosys }, /* 193 = unimplemented truncate64 */
{ 0, 0, 0,
linux_sys_nosys }, /* 194 = unimplemented ftruncate64 */
{ 2, s(struct linux_sys_truncate64_args), 0,
linux_sys_truncate64 }, /* 193 = truncate64 */
{ 2, s(struct sys_ftruncate_args), 0,
sys_ftruncate }, /* 194 = linux_ftruncate64 */
{ 2, s(struct linux_sys_stat64_args), 0,
linux_sys_stat64 }, /* 195 = stat64 */
{ 2, s(struct linux_sys_lstat64_args), 0,

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.12 2002/05/12 15:04:27 jdolecek Exp $
$NetBSD: syscalls.master,v 1.13 2002/05/19 17:55:42 jdolecek Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@ -353,8 +353,10 @@
struct rlimit *rlp); }
191 UNIMPL /* unused */
192 UNIMPL mmap2
193 UNIMPL truncate64
194 UNIMPL ftruncate64
193 STD { int linux_sys_truncate64(const char *path, \
off_t length); }
194 NOARGS linux_ftruncate64 { int sys_ftruncate(int fd, \
off_t length); }
195 STD { int linux_sys_stat64(const char *path, \
struct linux_stat64 *sp); }
196 STD { int linux_sys_lstat64(const char *path, \