Exemple #1
0
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);
}
Exemple #2
0
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);
}