Lines Matching defs:fd
60 int fd = open(file, O_RDWR);
68 if (fd < 0) {
74 ret = write(fd, str, strlen(str));
80 close(fd);
752 int fd;
772 fd = open(buf, O_RDONLY);
773 if (fd < 0) {
780 err = read(fd, buf, sizeof(buf)-1);
781 close(fd);
821 int fd;
826 fd = open("/dax/foo", O_RDWR);
827 pkey_assert(fd >= 0);
829 ptr = mmap(0, size, prot, MAP_SHARED, fd, 0);
837 close(fd);
925 void __save_test_fd(int fd)
927 pkey_assert(fd >= 0);
929 test_fds[nr_test_fds] = fd;