Пример #1
0
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);
}
Пример #2
0
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);
}