summaryrefslogtreecommitdiffstats
path: root/sys/amd64/linux32/syscalls.master
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-11-29 14:55:24 +0000
committerkib <kib@FreeBSD.org>2008-11-29 14:55:24 +0000
commitbfe2c8cb22c42d50fb6fe83d2e151ff32f7af3b5 (patch)
treed0e9219e58adcb026ccfa6ff28841b0418f85d70 /sys/amd64/linux32/syscalls.master
parent7a6d0a128f2abd041034ac5092a012538437e540 (diff)
downloadFreeBSD-src-bfe2c8cb22c42d50fb6fe83d2e151ff32f7af3b5.zip
FreeBSD-src-bfe2c8cb22c42d50fb6fe83d2e151ff32f7af3b5.tar.gz
Fix iovec32 for linux32/amd64.
Add a custom version of copyiniov() to deal with the 32-bit iovec pointers from userland (to be used later). Adjust prototypes for linux_readv() and linux_writev() to use new l_iovec32 definition and to match actual linux code. In particular, use ulong for fd (why ?). Submitted by: dchagin
Diffstat (limited to 'sys/amd64/linux32/syscalls.master')
-rw-r--r--sys/amd64/linux32/syscalls.master8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/linux32/syscalls.master b/sys/amd64/linux32/syscalls.master
index fe0485e..9aff0fc 100644
--- a/sys/amd64/linux32/syscalls.master
+++ b/sys/amd64/linux32/syscalls.master
@@ -252,10 +252,10 @@
143 AUE_FLOCK NOPROTO { int flock(int fd, int how); }
144 AUE_MSYNC STD { int linux_msync(l_ulong addr, \
l_size_t len, l_int fl); }
-145 AUE_READV STD { int linux_readv(int fd, struct iovec32 *iovp, \
- u_int iovcnt); }
-146 AUE_WRITEV STD { int linux_writev(int fd, struct iovec32 *iovp, \
- u_int iovcnt); }
+145 AUE_READV STD { int linux_readv(l_ulong fd, struct l_iovec32 *iovp, \
+ l_ulong iovcnt); }
+146 AUE_WRITEV STD { int linux_writev(l_ulong fd, struct l_iovec32 *iovp, \
+ l_ulong iovcnt); }
147 AUE_GETSID STD { int linux_getsid(l_pid_t pid); }
148 AUE_NULL STD { int linux_fdatasync(l_uint fd); }
149 AUE_SYSCTL STD { int linux_sysctl( \
OpenPOWER on IntegriCloud