Lines Matching refs:fd
440 int fd = _kern_dup(fFd);
442 return (fd >= 0 ? fd : -1);
467 \param fd the file descriptor this BNode should be set to (may be -1).
473 BNode::set_fd(int fd)
478 fFd = fd;
522 In the first case, \a fd must not be \c NULL; the node it refers to will
523 be opened. If absolute, \a fd is ignored. If relative and \a fd is >= 0,
524 it will be reckoned off the directory identified by \a fd, otherwise off
533 \param fd Either a directory FD or a value < 0. In the latter case \a path
535 \param path Either \a NULL in which case \a fd must be given, absolute, or
536 relative to the directory specified by \a fd (if given) or to the
538 \param traverse If the node identified by \a fd and \a path is a symlink
544 BNode::_SetTo(int fd, const char* path, bool traverse)
548 status_t error = (fd >= 0 || path ? B_OK : B_BAD_VALUE);
551 fFd = _kern_open(fd, path, O_RDWR | O_CLOEXEC | traverseFlag, 0);
554 fFd = _kern_open(fd, path, O_RDONLY | O_CLOEXEC | traverseFlag, 0);