int fcntl(int fd, int cmd, long arg) { if (smbw_fd(fd)) { return smbw_fcntl(fd, cmd, arg); } return real_fcntl(fd, cmd, arg); }
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); }