Lines Matching refs:fd

158 	virtual fssh_status_t Init(const char *path, int fd,
161 fFD = fd;
165 fAttrDir = fs_fopen_attr_dir(fd);
243 virtual fssh_status_t Init(const char *path, int fd,
246 fssh_status_t error = HostNode::Init(path, fd, st);
325 virtual fssh_status_t Init(const char *path, int fd,
328 fssh_status_t error = HostNode::Init(path, fd, st);
358 int fd = fssh_open(path, openMode);
359 if (fd < 0)
364 if (fssh_fstat(fd, &st) < 0) {
365 fssh_close(fd);
382 fssh_close(fd);
387 fssh_status_t error = node->Init(path, fd, st);
402 int fd = fssh_creat(path, st.fssh_st_mode & FSSH_S_IUMSK);
403 if (fd < 0)
407 fssh_status_t error = _ApplyStat(fd, st);
409 fssh_close(fd);
415 error = file->Init(path, fd, st);
433 int fd = fssh_open(path, FSSH_O_RDONLY | FSSH_O_NOTRAVERSE);
434 if (fd < 0)
438 fssh_status_t error = _ApplyStat(fd, st);
440 fssh_close(fd);
446 error = dir->Init(path, fd, st);
464 int fd = fssh_open(path, FSSH_O_RDONLY | FSSH_O_NOTRAVERSE);
465 if (fd < 0)
469 fssh_status_t error = _ApplyStat(fd, st);
471 fssh_close(fd);
477 error = link->Init(path, fd, st);
496 fssh_status_t _ApplyStat(int fd, const struct fssh_stat &st)
524 virtual fssh_status_t Init(const char *path, int fd,
527 fFD = fd;
531 fAttrDir = _kern_open_attr_dir(fd, NULL);
645 virtual fssh_status_t Init(const char *path, int fd,
648 fssh_status_t error = GuestNode::Init(path, fd, st);
652 fDir = _kern_open_dir(fd, NULL);
722 int fd = _kern_open(-1, path, openMode, 0);
723 if (fd < 0)
724 return fd;
728 fssh_status_t error = _kern_read_stat(fd, NULL, false, &st, sizeof(st));
730 _kern_close(fd);
747 _kern_close(fd);
752 error = node->Init(path, fd, st);
767 int fd = _kern_open(-1, path, FSSH_O_RDWR | FSSH_O_EXCL | FSSH_O_CREAT,
769 if (fd < 0)
770 return fd;
773 fssh_status_t error = _ApplyStat(fd, st);
775 _kern_close(fd);
781 error = file->Init(path, fd, st);
801 int fd = _kern_open(-1, path, FSSH_O_RDONLY | FSSH_O_NOTRAVERSE, 0);
802 if (fd < 0)
803 return fd;
806 error = _ApplyStat(fd, st);
808 _kern_close(fd);
814 error = dir->Init(path, fd, st);
834 int fd = _kern_open(-1, path, FSSH_O_RDONLY | FSSH_O_NOTRAVERSE, 0);
835 if (fd < 0)
836 return fd;
839 error = _ApplyStat(fd, st);
841 _kern_close(fd);
847 error = link->Init(path, fd, st);
863 fssh_status_t _ApplyStat(int fd, const struct fssh_stat &st)