Lines Matching refs:fd
342 void SetBaseDirectory(int fd)
344 fBaseDirectory = fd;
492 int fd = -1;
501 fd = openat(parentFD, entryName, O_RDWR | O_CREAT | O_EXCL,
506 if (fd < 0) {
514 fd);
551 if (fd < 0 && (!implicit || S_ISDIR(entry->Mode()))) {
552 fd = openat(parentFD, entryName, O_RDONLY | O_NOTRAVERSE);
553 if (fd < 0) {
559 token->fd = fd;
564 futimens(fd, times);
583 int entryFD = token->fd;
586 int fd = fs_fopen_attr(entryFD, attribute->Name(), attribute->Type(),
588 if (fd < 0) {
601 fd);
603 fs_close_attr(fd);
650 int fd;
656 fd(-1),
663 if (fd >= 0)
664 close(fd);
690 ? ((Token*)entry->Parent()->UserToken())->fd : fBaseDirectory;
710 const typename VersionPolicy::PackageData& data, int fd)
734 ssize_t bytesWritten = write_pos(fd, offset, fDataBuffer, toCopy);