diff options
Diffstat (limited to 'lib/libc/gen/msgsnd.c')
-rw-r--r-- | lib/libc/gen/msgsnd.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libc/gen/msgsnd.c b/lib/libc/gen/msgsnd.c new file mode 100644 index 0000000..ca9da96 --- /dev/null +++ b/lib/libc/gen/msgsnd.c @@ -0,0 +1,19 @@ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + +#include <sys/types.h> +#include <sys/ipc.h> +#include <sys/msg.h> + +#if __STDC__ +int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg) +#else +int msgsnd(msqid, msgp, msgsz, msgflg) + int msqid; + void *msgp; + size_t msgsz; + int msgflg; +#endif +{ + return (msgsys(2, msqid, msgp, msgsz, msgflg)); +} |