projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use umount2 syscall for umount (new targets lack old 1-arg umount)
[oweals/musl.git]
/
src
/
network
/
recvmsg.c
1
#include <sys/socket.h>
2
#include "syscall.h"
3
#include "socketcall.h"
4
#include "libc.h"
5
6
ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
7
{
8
unsigned long args[] = { fd, (unsigned long)msg, flags };
9
ssize_t r;
10
CANCELPT_BEGIN;
11
r = syscall2(__NR_socketcall, SYS_RECVMSG, (long)args);
12
CANCELPT_END;
13
return r;
14
}