Lines Matching refs:cmd
36 extern "C" int __fcntl(int fd, int cmd, ...);
38 int fcntl(int fd, int cmd, ...) { in fcntl() argument
40 va_start(args, cmd); in fcntl()
47 int rc = __fcntl(fd, cmd, arg); in fcntl()
48 if (cmd == F_DUPFD) { in fcntl()
50 } else if (cmd == F_DUPFD_CLOEXEC) { in fcntl()
61 int fcntl(int fd, int cmd, ...) { in fcntl() argument
64 va_start(ap, cmd); in fcntl()
68 if (cmd == F_DUPFD) { in fcntl()
69 return FDTRACK_CREATE_NAME("F_DUPFD", __fcntl64(fd, cmd, arg)); in fcntl()
70 } else if (cmd == F_DUPFD_CLOEXEC) { in fcntl()
71 return FDTRACK_CREATE_NAME("F_DUPFD_CLOEXEC", __fcntl64(fd, cmd, arg)); in fcntl()
73 return __fcntl64(fd, cmd, arg); in fcntl()