MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sockaddr_unbind

Function sockaddr_unbind

adapter/syscall/ff_socket_ops.c:98–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static int
99sockaddr_unbind(int fd)
100{
101 int i;
102
103 for (i = 0; i < FF_MAX_BOUND_NUM; i++) {
104 struct ff_bound_info *info = &ff_bound_fds[i];
105 if (info->fd != fd) {
106 continue;
107 }
108
109 info->fd = 0;
110
111 return 0;
112 }
113
114 return -1;
115}
116
117static int
118ff_sys_socket(struct ff_socket_args *args)

Callers 1

ff_sys_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected