regen: ioctl
This commit is contained in:
parent
e3b0fcf963
commit
7555810672
|
@ -1,14 +1,14 @@
|
|||
/* $NetBSD: rump_syscalls.c,v 1.18 2008/10/15 13:02:01 pooka Exp $ */
|
||||
/* $NetBSD: rump_syscalls.c,v 1.19 2008/10/16 19:33:11 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* System call marshalling for rump.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.210 2008/10/15 13:01:15 pooka Exp
|
||||
* created from NetBSD: syscalls.master,v 1.211 2008/10/16 19:30:49 pooka Exp
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.18 2008/10/15 13:02:01 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.19 2008/10/16 19:33:11 pooka Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -251,6 +251,23 @@ rump_sys_sync(int *error)
|
|||
}
|
||||
__weak_alias(sys_sync,rump_enosys);
|
||||
|
||||
int
|
||||
rump_sys_ioctl(int fd, u_long com, void * data, int *error)
|
||||
{
|
||||
register_t retval = 0;
|
||||
struct sys_ioctl_args arg;
|
||||
|
||||
SPARG(&arg, fd) = fd;
|
||||
SPARG(&arg, com) = com;
|
||||
SPARG(&arg, data) = data;
|
||||
|
||||
*error = sys_ioctl(curlwp, &arg, &retval);
|
||||
if (*error)
|
||||
retval = -1;
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_ioctl,rump_enosys);
|
||||
|
||||
int
|
||||
rump_sys_symlink(const char * path, const char * link, int *error)
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/* $NetBSD: rump_syscalls.h,v 1.18 2008/10/15 13:02:01 pooka Exp $ */
|
||||
/* $NetBSD: rump_syscalls.h,v 1.19 2008/10/16 19:33:11 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* System call protos in rump namespace.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.210 2008/10/15 13:01:15 pooka Exp
|
||||
* created from NetBSD: syscalls.master,v 1.211 2008/10/16 19:30:49 pooka Exp
|
||||
*/
|
||||
|
||||
ssize_t rump_sys_read(int, void *, size_t, int *);
|
||||
|
@ -21,6 +21,7 @@ int rump_sys_chown(const char *, uid_t, gid_t, int *);
|
|||
int rump_sys_unmount(const char *, int, int *);
|
||||
int rump_sys_chflags(const char *, u_long, int *);
|
||||
void rump_sys_sync(int *);
|
||||
int rump_sys_ioctl(int, u_long, void *, int *);
|
||||
int rump_sys_symlink(const char *, const char *, int *);
|
||||
ssize_t rump_sys_readlink(const char *, char *, size_t, int *);
|
||||
int rump_sys_fsync(int, int *);
|
||||
|
|
Loading…
Reference in New Issue