ssize_t read(int fd, void *buf, size_t count) { if (smbw_fd(fd)) { return smbw_read(fd, buf, count); } return real_read(fd, buf, count); }
static ssize_t readx(int fd, void *buf, size_t count, ssize_t (* f)(int, void *, size_t)) { if (smbw_fd(fd)) { return smbw_read(fd, buf, count); } return (* f)(fd, buf, count); }