diff options
Diffstat (limited to 'userland/libc/sys/socket/connect.c')
-rw-r--r-- | userland/libc/sys/socket/connect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/userland/libc/sys/socket/connect.c b/userland/libc/sys/socket/connect.c new file mode 100644 index 0000000..9b692ef --- /dev/null +++ b/userland/libc/sys/socket/connect.c @@ -0,0 +1,6 @@ +#include <sys/socket.h> +#include <syscall.h> + +int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen) { + RC_ERRNO(syscall(SYS_CONNECT, sockfd, addr, addrlen, 0, 0)); +} |