MCPcopy Index your code
hub / github.com/F-Stack/f-stack / ff_bind

Function ff_bind

lib/ff_syscall_wrapper.c:1435–1449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1433}
1434
1435int
1436ff_bind(int s, const struct linux_sockaddr *addr, socklen_t addrlen)
1437{
1438 int rc;
1439 struct sockaddr_storage bsdaddr;
1440 linux2freebsd_sockaddr(addr, addrlen, (struct sockaddr *)&bsdaddr);
1441
1442 if ((rc = kern_bindat(curthread, AT_FDCWD, s, (struct sockaddr *)&bsdaddr)))
1443 goto kern_fail;
1444
1445 return (rc);
1446kern_fail:
1447 ff_os_errno(rc);
1448 return (-1);
1449}
1450
1451int
1452ff_connect(int s, const struct linux_sockaddr *name, socklen_t namelen)

Callers 7

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
bindFunction · 0.85
bindFunction · 0.85
ff_sys_bindFunction · 0.85
ff_hook_bindFunction · 0.85

Calls 2

linux2freebsd_sockaddrFunction · 0.85
ff_os_errnoFunction · 0.85

Tested by

no test coverage detected