| 113 | |
| 114 | } |
| 115 | int ff_hook_setsockopt(int fd, int level, int option_name, const void *option_value, socklen_t option_len) |
| 116 | { |
| 117 | if (ff_fdisused(fd)) { |
| 118 | return ff_setsockopt(fd, level, option_name, option_value, option_len); |
| 119 | } else { |
| 120 | return mt_real_func(setsockopt)(fd, level, option_name, option_value, option_len); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | int ff_hook_ioctl(int fd, int cmd, void *arg) |
| 125 | { |
no test coverage detected