Lines Matching refs:fd
450 int fd = _kern_dup(fFd);
452 return (fd >= 0 ? fd : -1);
477 \param fd the file descriptor this BNode should be set to (may be -1).
483 BNode::set_fd(int fd)
488 fFd = fd;
532 In the first case, \a fd must not be \c NULL; the node it refers to will
533 be opened. If absolute, \a fd is ignored. If relative and \a fd is >= 0,
534 it will be reckoned off the directory identified by \a fd, otherwise off
543 \param fd Either a directory FD or a value < 0. In the latter case \a path
545 \param path Either \a NULL in which case \a fd must be given, absolute, or
546 relative to the directory specified by \a fd (if given) or to the
548 \param traverse If the node identified by \a fd and \a path is a symlink
554 BNode::_SetTo(int fd, const char* path, bool traverse)
558 status_t error = (fd >= 0 || path ? B_OK : B_BAD_VALUE);
561 fFd = _kern_open(fd, path, O_RDWR | O_CLOEXEC | traverseFlag, 0);
564 fFd = _kern_open(fd, path, O_RDONLY | O_CLOEXEC | traverseFlag, 0);