version 1.28.2.1, 2009/05/13 17:22:58 |
version 1.28.2.2, 2009/07/23 23:32:54 |
|
|
* System call vector and marshalling for rump. |
* System call vector and marshalling for rump. |
* |
* |
* DO NOT EDIT-- this file is automatically generated. |
* DO NOT EDIT-- this file is automatically generated. |
* created from NetBSD: syscalls.master,v 1.226 2009/03/28 16:33:40 pooka Exp |
* created from NetBSD: syscalls.master,v 1.228 2009/07/19 02:50:44 rmind Exp |
*/ |
*/ |
|
|
#include <sys/cdefs.h> |
#include <sys/cdefs.h> |
Line 1058 rump_sys_nfssvc(int flag, void * argp) |
|
Line 1058 rump_sys_nfssvc(int flag, void * argp) |
|
} |
} |
__weak_alias(sys_nfssvc,rump_enosys); |
__weak_alias(sys_nfssvc,rump_enosys); |
|
|
ssize_t rump_sys_pread(int, void *, size_t, int, off_t); |
ssize_t rump_sys_pread(int, void *, size_t, off_t); |
ssize_t |
ssize_t |
rump_sys_pread(int fd, void * buf, size_t nbyte, int pad, off_t offset) |
rump_sys_pread(int fd, void * buf, size_t nbyte, off_t offset) |
{ |
{ |
register_t retval = 0; |
register_t retval = 0; |
int error = 0; |
int error = 0; |
Line 1069 rump_sys_pread(int fd, void * buf, size_ |
|
Line 1069 rump_sys_pread(int fd, void * buf, size_ |
|
SPARG(&callarg, fd) = fd; |
SPARG(&callarg, fd) = fd; |
SPARG(&callarg, buf) = buf; |
SPARG(&callarg, buf) = buf; |
SPARG(&callarg, nbyte) = nbyte; |
SPARG(&callarg, nbyte) = nbyte; |
SPARG(&callarg, pad) = pad; |
SPARG(&callarg, PAD) = 0; |
SPARG(&callarg, offset) = offset; |
SPARG(&callarg, offset) = offset; |
|
|
error = rump_sysproxy(SYS_pread, rump_sysproxy_arg, |
error = rump_sysproxy(SYS_pread, rump_sysproxy_arg, |
Line 1082 rump_sys_pread(int fd, void * buf, size_ |
|
Line 1082 rump_sys_pread(int fd, void * buf, size_ |
|
} |
} |
__weak_alias(sys_pread,rump_enosys); |
__weak_alias(sys_pread,rump_enosys); |
|
|
ssize_t rump_sys_pwrite(int, const void *, size_t, int, off_t); |
ssize_t rump_sys_pwrite(int, const void *, size_t, off_t); |
ssize_t |
ssize_t |
rump_sys_pwrite(int fd, const void * buf, size_t nbyte, int pad, off_t offset) |
rump_sys_pwrite(int fd, const void * buf, size_t nbyte, off_t offset) |
{ |
{ |
register_t retval = 0; |
register_t retval = 0; |
int error = 0; |
int error = 0; |
Line 1093 rump_sys_pwrite(int fd, const void * buf |
|
Line 1093 rump_sys_pwrite(int fd, const void * buf |
|
SPARG(&callarg, fd) = fd; |
SPARG(&callarg, fd) = fd; |
SPARG(&callarg, buf) = buf; |
SPARG(&callarg, buf) = buf; |
SPARG(&callarg, nbyte) = nbyte; |
SPARG(&callarg, nbyte) = nbyte; |
SPARG(&callarg, pad) = pad; |
SPARG(&callarg, PAD) = 0; |
SPARG(&callarg, offset) = offset; |
SPARG(&callarg, offset) = offset; |
|
|
error = rump_sysproxy(SYS_pwrite, rump_sysproxy_arg, |
error = rump_sysproxy(SYS_pwrite, rump_sysproxy_arg, |
Line 1106 rump_sys_pwrite(int fd, const void * buf |
|
Line 1106 rump_sys_pwrite(int fd, const void * buf |
|
} |
} |
__weak_alias(sys_pwrite,rump_enosys); |
__weak_alias(sys_pwrite,rump_enosys); |
|
|
off_t rump_sys_lseek(int, int, off_t, int); |
off_t rump_sys_lseek(int, off_t, int); |
off_t |
off_t |
rump_sys_lseek(int fd, int pad, off_t offset, int whence) |
rump_sys_lseek(int fd, off_t offset, int whence) |
{ |
{ |
register_t retval = 0; |
register_t retval = 0; |
int error = 0; |
int error = 0; |
struct sys_lseek_args callarg; |
struct sys_lseek_args callarg; |
|
|
SPARG(&callarg, fd) = fd; |
SPARG(&callarg, fd) = fd; |
SPARG(&callarg, pad) = pad; |
SPARG(&callarg, PAD) = 0; |
SPARG(&callarg, offset) = offset; |
SPARG(&callarg, offset) = offset; |
SPARG(&callarg, whence) = whence; |
SPARG(&callarg, whence) = whence; |
|
|
Line 1129 rump_sys_lseek(int fd, int pad, off_t of |
|
Line 1129 rump_sys_lseek(int fd, int pad, off_t of |
|
} |
} |
__weak_alias(sys_lseek,rump_enosys); |
__weak_alias(sys_lseek,rump_enosys); |
|
|
int rump_sys_truncate(const char *, int, off_t); |
int rump_sys_truncate(const char *, off_t); |
int |
int |
rump_sys_truncate(const char * path, int pad, off_t length) |
rump_sys_truncate(const char * path, off_t length) |
{ |
{ |
register_t retval = 0; |
register_t retval = 0; |
int error = 0; |
int error = 0; |
struct sys_truncate_args callarg; |
struct sys_truncate_args callarg; |
|
|
SPARG(&callarg, path) = path; |
SPARG(&callarg, path) = path; |
SPARG(&callarg, pad) = pad; |
SPARG(&callarg, PAD) = 0; |
SPARG(&callarg, length) = length; |
SPARG(&callarg, length) = length; |
|
|
error = rump_sysproxy(SYS_truncate, rump_sysproxy_arg, |
error = rump_sysproxy(SYS_truncate, rump_sysproxy_arg, |
Line 1151 rump_sys_truncate(const char * path, int |
|
Line 1151 rump_sys_truncate(const char * path, int |
|
} |
} |
__weak_alias(sys_truncate,rump_enosys); |
__weak_alias(sys_truncate,rump_enosys); |
|
|
int rump_sys_ftruncate(int, int, off_t); |
int rump_sys_ftruncate(int, off_t); |
int |
int |
rump_sys_ftruncate(int fd, int pad, off_t length) |
rump_sys_ftruncate(int fd, off_t length) |
{ |
{ |
register_t retval = 0; |
register_t retval = 0; |
int error = 0; |
int error = 0; |
struct sys_ftruncate_args callarg; |
struct sys_ftruncate_args callarg; |
|
|
SPARG(&callarg, fd) = fd; |
SPARG(&callarg, fd) = fd; |
SPARG(&callarg, pad) = pad; |
SPARG(&callarg, PAD) = 0; |
SPARG(&callarg, length) = length; |
SPARG(&callarg, length) = length; |
|
|
error = rump_sysproxy(SYS_ftruncate, rump_sysproxy_arg, |
error = rump_sysproxy(SYS_ftruncate, rump_sysproxy_arg, |
Line 2090 rump_sys___getfh30(const char * fname, v |
|
Line 2090 rump_sys___getfh30(const char * fname, v |
|
} |
} |
__weak_alias(sys___getfh30,rump_enosys); |
__weak_alias(sys___getfh30,rump_enosys); |
|
|
|
int rump_sys___fhopen40(const void *, size_t, int); |
|
int |
|
rump_sys___fhopen40(const void * fhp, size_t fh_size, int flags) |
|
{ |
|
register_t retval = 0; |
|
int error = 0; |
|
struct sys___fhopen40_args callarg; |
|
|
|
SPARG(&callarg, fhp) = fhp; |
|
SPARG(&callarg, fh_size) = fh_size; |
|
SPARG(&callarg, flags) = flags; |
|
|
|
error = rump_sysproxy(SYS___fhopen40, rump_sysproxy_arg, |
|
(uint8_t *)&callarg, sizeof(callarg), &retval); |
|
if (error) { |
|
retval = -1; |
|
rumpuser_seterrno(error); |
|
} |
|
return retval; |
|
} |
|
__weak_alias(sys___fhopen40,rump_enosys); |
|
|
|
int rump_sys___fhstatvfs140(const void *, size_t, struct statvfs *, int); |
|
int |
|
rump_sys___fhstatvfs140(const void * fhp, size_t fh_size, struct statvfs * buf, int flags) |
|
{ |
|
register_t retval = 0; |
|
int error = 0; |
|
struct sys___fhstatvfs140_args callarg; |
|
|
|
SPARG(&callarg, fhp) = fhp; |
|
SPARG(&callarg, fh_size) = fh_size; |
|
SPARG(&callarg, buf) = buf; |
|
SPARG(&callarg, flags) = flags; |
|
|
|
error = rump_sysproxy(SYS___fhstatvfs140, rump_sysproxy_arg, |
|
(uint8_t *)&callarg, sizeof(callarg), &retval); |
|
if (error) { |
|
retval = -1; |
|
rumpuser_seterrno(error); |
|
} |
|
return retval; |
|
} |
|
__weak_alias(sys___fhstatvfs140,rump_enosys); |
|
|
int rump_sys___mount50(const char *, const char *, int, void *, size_t); |
int rump_sys___mount50(const char *, const char *, int, void *, size_t); |
int |
int |
rump_sys___mount50(const char * type, const char * path, int flags, void * data, size_t data_len) |
rump_sys___mount50(const char * type, const char * path, int flags, void * data, size_t data_len) |
Line 3257 struct sysent rump_sysent[] = { |
|
Line 3302 struct sysent rump_sysent[] = { |
|
(sy_call_t *)sys___socket30 }, /* 394 = __socket30 */ |
(sy_call_t *)sys___socket30 }, /* 394 = __socket30 */ |
{ ns(struct sys___getfh30_args), 0, |
{ ns(struct sys___getfh30_args), 0, |
(sy_call_t *)sys___getfh30 }, /* 395 = __getfh30 */ |
(sy_call_t *)sys___getfh30 }, /* 395 = __getfh30 */ |
{ 0, 0, 0, |
{ ns(struct sys___fhopen40_args), 0, |
(sy_call_t *)rump_enosys }, /* 396 = unrumped */ |
(sy_call_t *)sys___fhopen40 }, /* 396 = __fhopen40 */ |
{ 0, 0, 0, |
{ ns(struct sys___fhstatvfs140_args), 0, |
(sy_call_t *)rump_enosys }, /* 397 = unrumped */ |
(sy_call_t *)sys___fhstatvfs140 }, /* 397 = __fhstatvfs140 */ |
{ 0, 0, 0, |
{ 0, 0, 0, |
(sy_call_t *)rump_enosys }, /* 398 = unrumped */ |
(sy_call_t *)rump_enosys }, /* 398 = unrumped */ |
{ 0, 0, 0, |
{ 0, 0, 0, |