| 307 | } |
| 308 | |
| 309 | ssize_t write(int sockfd, const void *buf, size_t count) |
| 310 | { |
| 311 | if (unlikely(inited == 0)) { |
| 312 | INIT_FUNCTION(write); |
| 313 | return real_write(sockfd, buf, count); |
| 314 | } |
| 315 | |
| 316 | if (ff_fdisused(sockfd)) { |
| 317 | return ff_write(sockfd, buf, count); |
| 318 | } else { |
| 319 | return real_write(sockfd, buf, count); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | ssize_t |
| 324 | writev(int sockfd, const struct iovec *iov, int iovcnt) |