Home | History | Annotate | Download | only in Support

Lines Matching refs:FD

504   int FD;
505 EC = sys::fs::openFileForWrite(Filename, FD, Flags);
509 return FD;
516 /// FD is the file descriptor that this writes to. If ShouldClose is true, this
518 raw_fd_ostream::raw_fd_ostream(int fd, bool shouldClose, bool unbuffered)
519 : raw_pwrite_stream(unbuffered), FD(fd), ShouldClose(shouldClose),
521 if (FD < 0 ) {
527 off_t loc = ::lseek(FD, 0, SEEK_CUR);
531 std::error_code EC = status(FD, Status);
543 if (FD >= 0) {
545 if (ShouldClose && sys::Process::SafelyCloseFileDescriptor(FD))
553 // on FD == 2.
554 if (FD == 2) return;
567 assert(FD >= 0 && "File already closed.");
571 ssize_t ret = ::write(FD, Ptr, Size);
606 if (sys::Process::SafelyCloseFileDescriptor(FD))
608 FD = -1;
613 pos = ::lseek(FD, off, SEEK_SET);
630 assert(FD >= 0 && "File not yet open!");
632 if (fstat(FD, &statbuf) != 0)
638 if (S_ISCHR(statbuf.st_mode) && isatty(FD))
690 return sys::Process::FileDescriptorIsDisplayed(FD);
694 return sys::Process::FileDescriptorHasColors(FD);