diff options
author | Ed Schouten <ed@FreeBSD.org> | 2016-07-28 12:22:01 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2016-07-28 12:22:01 +0000 |
commit | d9c4cd2fbcd428e0eb4c17bfc9643f9a029b7bdb (patch) | |
tree | 1fa7a98a6e6262c313afeb821d3f76a80ddee7a7 /sys/kern/syscalls.master | |
parent | 4490696b3edf3ed9be81e695fb9dba03c94f89c8 (diff) | |
download | src-d9c4cd2fbcd428e0eb4c17bfc9643f9a029b7bdb.tar.gz src-d9c4cd2fbcd428e0eb4c17bfc9643f9a029b7bdb.zip |
Change the return type of msgrcv() to ssize_t as required by POSIX.
It looks like the msgrcv() system call is already written in such a way
that the size is internally computed as a size_t and written into all of
td_retval[0]. This means that it is effectively already returning
ssize_t. It's just that the userspace prototype doesn't match up.
Notes
Notes:
svn path=/head/; revision=303435
Diffstat (limited to 'sys/kern/syscalls.master')
-rw-r--r-- | sys/kern/syscalls.master | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index c9df7788e439..0c462feae623 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -428,7 +428,7 @@ 225 AUE_MSGGET NOSTD { int msgget(key_t key, int msgflg); } 226 AUE_MSGSND NOSTD { int msgsnd(int msqid, const void *msgp, \ size_t msgsz, int msgflg); } -227 AUE_MSGRCV NOSTD { int msgrcv(int msqid, void *msgp, \ +227 AUE_MSGRCV NOSTD { ssize_t msgrcv(int msqid, void *msgp, \ size_t msgsz, long msgtyp, int msgflg); } 228 AUE_SHMAT NOSTD { int shmat(int shmid, const void *shmaddr, \ int shmflg); } |