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
/
connect.c
1
#include <sys/socket.h>
2
#include "syscall.h"
3
#include "socketcall.h"
4
#include "libc.h"
5
6
int connect(int fd, const struct sockaddr *addr, socklen_t len)
7
{
8
unsigned long args[] = { fd, (unsigned long)addr, len };
9
int ret;
10
CANCELPT_BEGIN;
11
ret = syscall2(__NR_socketcall, SYS_CONNECT, (long)args);
12
CANCELPT_END;
13
return ret;
14
}