* Overrides close(2) to react on EBADF */
| 65 | * Overrides close(2) to react on EBADF |
| 66 | */ |
| 67 | int __wrap_close(int fd) { |
| 68 | int ret = __real_close(fd); |
| 69 | if (ret == -1 && errno == EBADF) { |
| 70 | react(fd, "close", errno); |
| 71 | } |
| 72 | |
| 73 | return ret; |
| 74 | } |
| 75 | |
| 76 | /* |
| 77 | * The real recvfrom(2), renamed by GCC. |