blob: d96c397df1131c621bbf3b9f19c879c9fbe41adb [file] [log] [blame]
Viet-Trung Luu96b05c12016-01-11 11:26:36 -08001#include <sys/socket.h>
2#include "syscall.h"
3#include "libc.h"
4
George Kulakowski17e3b042016-02-18 15:59:50 -08005int accept(int fd, struct sockaddr* restrict addr, socklen_t* restrict len) {
George Kulakowskiad00c8e2016-02-26 10:36:44 -08006 return syscall_cp(SYS_accept, fd, addr, len, 0, 0, 0);
Viet-Trung Luu96b05c12016-01-11 11:26:36 -08007}