projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
report that posix_spawn is supported in unistd.h and sysconf
[musl]
/
src
/
ipc
/
msgsnd.c
diff --git
a/src/ipc/msgsnd.c
b/src/ipc/msgsnd.c
index
26057f2
..
23f4a4c
100644
(file)
--- 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)
{
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
#else
- r
= syscall
(SYS_ipc, IPCOP_msgsnd, q, len, flag, m);
+ r
eturn syscall_cp
(SYS_ipc, IPCOP_msgsnd, q, len, flag, m);
#endif
#endif
- CANCELPT_END;
- return r;
}
}