Lines Matching refs:fd
38 #include <fs/fd.h>
92 int fd;
1425 int fd = open(path, O_RDWR | O_NOCACHE, S_IRUSR | S_IWUSR);
1426 if (fd < 0)
1431 if (fstat(fd, &st) < 0) {
1432 close(fd);
1437 close(fd);
1442 close(fd);
1447 file_descriptor* descriptor = get_fd(get_current_io_context(true), fd);
1452 close(fd);
1459 close(fd);
1463 swap->fd = fd;
1471 close(fd);
1535 close(swapFile->fd);
1738 int fd = open(swapPath, O_RDWR | O_CREAT | O_NOCACHE, S_IRUSR | S_IWUSR);
1739 if (fd < 0) {
1747 status_t error = _kern_write_stat(fd, NULL, false, &stat,
1754 close(fd);