ssize_t write(int fd, void *buf, size_t count) { if (smbw_fd(fd)) { return smbw_write(fd, buf, count); } return real_write(fd, buf, count); }
static ssize_t writex(int fd, void *buf, size_t count, ssize_t (* f)(int, void *, size_t)) { if (smbw_fd(fd)) { return smbw_write(fd, buf, count); } return (* f)(fd, buf, count); }