X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fipc%2Fmsgsnd.c;h=23f4a4cbf58cc204343eb8fedb34f83bc2bd4de0;hb=de80ea9f1c2821cbb4205533b86d5d17f9e8d376;hp=26057f2e8cbdb32a8e9c346331d275932db0086d;hpb=104d0134419eea7539cb5e0cc0405e5c6c9a0dff;p=musl diff --git a/src/ipc/msgsnd.c b/src/ipc/msgsnd.c index 26057f2e..23f4a4cb 100644 --- a/src/ipc/msgsnd.c +++ b/src/ipc/msgsnd.c @@ -5,13 +5,9 @@ int msgsnd(int q, const void *m, size_t len, int flag) { - ssize_t r; - CANCELPT_BEGIN; -#ifdef __NR_msgsnd - r = syscall(SYS_msgsnd, q, m, len, flag); +#ifdef SYS_msgsnd + return syscall_cp(SYS_msgsnd, q, m, len, flag); #else - r = syscall(SYS_ipc, IPCOP_msgsnd, q, len, flag, m); + return syscall_cp(SYS_ipc, IPCOP_msgsnd, q, len, flag, m); #endif - CANCELPT_END; - return r; }