From 23742d21d91485c106dacf2a54594d628a4fe923 Mon Sep 17 00:00:00 2001 From: logwang Date: Wed, 27 Dec 2017 14:56:42 +0800 Subject: [PATCH] Remove the unusable api `ff_socketpair`. Since F-Stack doesn't support AF_UNIX. ff_socketpair couldn't work and should be removed. --- lib/ff_api.h | 2 -- lib/ff_syscall_wrapper.c | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/lib/ff_api.h b/lib/ff_api.h index 0e1639560..bbd44cbb3 100644 --- a/lib/ff_api.h +++ b/lib/ff_api.h @@ -67,8 +67,6 @@ int ff_setsockopt(int s, int level, int optname, const void *optval, int ff_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); -int ff_socketpair(int domain, int type, int protocol, int *sv); - int ff_listen(int s, int backlog); int ff_bind(int s, const struct linux_sockaddr *addr, socklen_t addrlen); int ff_accept(int s, struct linux_sockaddr *addr, socklen_t *addrlen); diff --git a/lib/ff_syscall_wrapper.c b/lib/ff_syscall_wrapper.c index a0d7b388f..a710a9cad 100644 --- a/lib/ff_syscall_wrapper.c +++ b/lib/ff_syscall_wrapper.c @@ -703,19 +703,6 @@ kern_fail: return (-1); } -int -ff_socketpair(int domain, int type, int protocol, int *sv) -{ - int rc; - if ((rc = kern_socketpair(curthread, domain, type, protocol, sv))) - goto kern_fail; - - return (rc); -kern_fail: - ff_os_errno(rc); - return (-1); -} - int ff_accept(int s, struct linux_sockaddr * addr, socklen_t * addrlen)