Exemple #1
0
int fcntl(int fd, int cmd, long arg)
{
    if (smbw_fd(fd)) {
        return smbw_fcntl(fd, cmd, arg);
    }

    return real_fcntl(fd, cmd, arg);
}
Exemple #2
0
static int fcntlx(int fd, int cmd, long arg, int (* f)(int, int, long))
{
	if (smbw_fd(fd)) {
		return smbw_fcntl(fd, cmd, arg);
	}
        
        return (* f)(fd, cmd, arg);
}