示例#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
文件: wrapper.c 项目: AllardJ/Tomato
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);
}