| 365 | } |
| 366 | |
| 367 | int |
| 368 | ioctl(int sockfd, int request, void *p) |
| 369 | { |
| 370 | if (unlikely(inited == 0)) { |
| 371 | INIT_FUNCTION(ioctl); |
| 372 | return real_ioctl(sockfd, request, p); |
| 373 | } |
| 374 | |
| 375 | if (ff_fdisused(sockfd)) { |
| 376 | return ff_ioctl(sockfd, request, p); |
| 377 | } else { |
| 378 | return real_ioctl(sockfd, request, p); |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | int fcntl(int sockfd, int cmd, void *p) |
| 383 | { |