| 104 | } |
| 105 | } |
| 106 | ssize_t ff_hook_send(int fd, const void *buf, size_t nbyte, int flags) |
| 107 | { |
| 108 | if (ff_fdisused(fd)) { |
| 109 | return ff_send(fd, buf, nbyte, flags); |
| 110 | } else { |
| 111 | return mt_real_func(send)(fd, buf, nbyte, flags); |
| 112 | } |
| 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)) { |
no test coverage detected