aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/freebsd32/syscalls.master
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2021-11-17 20:12:23 +0000
committerBrooks Davis <brooks@FreeBSD.org>2021-11-17 20:12:23 +0000
commitddae7b9aaa6c0f0ff747c029246ab0c5ad795d1c (patch)
tree327fae642a92ad99452e99b20b91e0a1c185fb08 /sys/compat/freebsd32/syscalls.master
parent70c9698f4037bbae2c51d7b628433e6835450448 (diff)
downloadsrc-ddae7b9aaa6c0f0ff747c029246ab0c5ad795d1c.tar.gz
src-ddae7b9aaa6c0f0ff747c029246ab0c5ad795d1c.zip
freebsd32: use size_t where the default ABI does
While the caller will never pass a larger value, we can use size_t due to it being unsigned. Reviewed by: kevans
Diffstat (limited to 'sys/compat/freebsd32/syscalls.master')
-rw-r--r--sys/compat/freebsd32/syscalls.master8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/freebsd32/syscalls.master b/sys/compat/freebsd32/syscalls.master
index 3fd815f62127..de85234343c1 100644
--- a/sys/compat/freebsd32/syscalls.master
+++ b/sys/compat/freebsd32/syscalls.master
@@ -110,7 +110,7 @@
28 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, \
const struct msghdr32 *msg, int flags); }
29 AUE_RECVFROM STD { int freebsd32_recvfrom(int s, void *buf, \
- uint32_t len, int flags, \
+ size_t len, int flags, \
struct sockaddr *from, \
uint32_t fromlenaddr); }
30 AUE_ACCEPT NOPROTO { int accept(int s, struct sockaddr *name, \
@@ -391,7 +391,7 @@
202 AUE_SYSCTL STD { int freebsd32___sysctl(int *name, \
u_int namelen, void *old, \
uint32_t *oldlenp, const void *new, \
- uint32_t newlen); }
+ size_t newlen); }
203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \
size_t len); }
204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \
@@ -424,7 +424,7 @@
221 AUE_SEMGET NOSTD|NOPROTO { int semget(key_t key, int nsems, \
int semflg); }
222 AUE_SEMOP NOSTD|NOPROTO { int semop(int semid, \
- struct sembuf *sops, u_int nsops); }
+ struct sembuf *sops, size_t nsops); }
223 AUE_NULL OBSOL semconfig
224 AUE_MSGCTL COMPAT7|NOSTD { int freebsd32_msgctl( \
int msqid, int cmd, \
@@ -440,7 +440,7 @@
int shmid, int cmd, \
struct shmid_ds32_old *buf); }
230 AUE_SHMDT NOSTD|NOPROTO { int shmdt(const void *shmaddr); }
-231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, int size, \
+231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, size_t size, \
int shmflg); }
;
232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \