repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kernel - Remove debugging kprintf
[dragonfly.git]
/
lib
/
libc
/
gen
/
sysvipc_msgget.c
blob
46d3f3e6b91ce37147028b72316564acb58552a1
1
#include <sys/types.h>
2
#include <sys/ipc.h>
3
#include <sys/msg.h>
4
5
#include
"sysvipc_msg.h"
6
7
extern
char
sysvipc_userland
;
8
9
extern
int
__sys_msgget
(
key_t
,
int
);
10
11
int
msgget
(
key_t key
,
int
msgflg
)
12
{
13
if
(
sysvipc_userland
)
14
return
(
sysvipc_msgget
(
key
,
msgflg
));
15
16
return
(
__sys_msgget
(
key
,
msgflg
));
17
}