mirror of https://github.com/F-Stack/f-stack.git
Remove the unusable api `ff_socketpair`.
Since F-Stack doesn't support AF_UNIX. ff_socketpair couldn't work and should be removed.
This commit is contained in:
parent
2e360cf2b8
commit
23742d21d9
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue