| 96 | } |
| 97 | |
| 98 | static int |
| 99 | sockaddr_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 | |
| 117 | static int |
| 118 | ff_sys_socket(struct ff_socket_args *args) |