Remove the unusable api `ff_socketpair`.

Since F-Stack doesn't support AF_UNIX. ff_socketpair couldn't work and
should be removed.
dev
logwang 2017-12-27 14:56:42 +08:00
parent 2e360cf2b8
commit 23742d21d9
2 changed files with 0 additions and 15 deletions

View File

@ -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);

View File

@ -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)