repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
bits/syscall.h: add landlock syscalls from linux v5.13
[musl.git]
/
src
/
mq
/
mq_unlink.c
blob
6a08a4c57eaa69088e4dc20afd55a69989a0eacd
1
#include <mqueue.h>
2
#include <errno.h>
3
#include
"syscall.h"
4
5
int
mq_unlink
(
const char
*
name
)
6
{
7
int
ret
;
8
if
(*
name
==
'/'
)
name
++;
9
ret
=
__syscall
(
SYS_mq_unlink
,
name
);
10
if
(
ret
<
0
) {
11
if
(
ret
== -
EPERM
)
ret
= -
EACCES
;
12
errno
= -
ret
;
13
return
-
1
;
14
}
15
return
ret
;
16
}