| 151 | } |
| 152 | |
| 153 | int |
| 154 | socket(int domain, int type, int protocol) |
| 155 | { |
| 156 | int rc; |
| 157 | |
| 158 | if (unlikely(inited == 0)) { |
| 159 | INIT_FUNCTION(socket); |
| 160 | return real_socket(domain, type, protocol); |
| 161 | } |
| 162 | |
| 163 | if ((AF_INET != domain && AF_INET6 != domain) || (SOCK_STREAM != type && SOCK_DGRAM != type)) { |
| 164 | rc = real_socket(domain, type, protocol); |
| 165 | return rc; |
| 166 | } |
| 167 | |
| 168 | rc = ff_socket(domain, type, protocol); |
| 169 | |
| 170 | return rc; |
| 171 | } |
| 172 | |
| 173 | int |
| 174 | bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen) |
no test coverage detected