HomeSort by: relevance | last modified time | path
    Searched refs:Fd (Results 1 - 6 of 6) sorted by relevancy

  /src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
FuzzerIO.h 73 FILE* OpenFile(int Fd, const char *Mode);
75 int CloseFile(int Fd);
77 int DuplicateFile(int Fd);
81 void DiscardOutput(int Fd);
83 intptr_t GetHandleFromFd(int fd);
FuzzerIOPosix.cpp 86 FILE* OpenFile(int Fd, const char* Mode) {
87 return fdopen(Fd, Mode);
90 int CloseFile(int fd) {
91 return close(fd);
94 int DuplicateFile(int Fd) {
95 return dup(Fd);
102 void DiscardOutput(int Fd) {
106 dup2(fileno(Temp), Fd);
110 intptr_t GetHandleFromFd(int fd) {
111 return static_cast<intptr_t>(fd);
    [all...]
FuzzerIOWindows.cpp 148 FILE* OpenFile(int Fd, const char* Mode) {
149 return _fdopen(Fd, Mode);
152 int CloseFile(int Fd) {
153 return _close(Fd);
156 int DuplicateFile(int Fd) {
157 return _dup(Fd);
164 void DiscardOutput(int Fd) {
168 _dup2(_fileno(Temp), Fd);
172 intptr_t GetHandleFromFd(int fd) {
173 return _get_osfhandle(fd);
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/xray/
xray_utils.h 35 explicit LogWriter(int Fd) : Fd(Fd) {}
54 int Fd = -1;
xray_utils.cc 133 internal_close(Fd);
140 while (auto Written = write(Fd, Begin, TotalBytes)) {
155 fsync(Fd);
176 int Fd = mkstemp(TmpFilename);
177 if (Fd == -1) {
186 new (LW) LogWriter(Fd);
xray_x86_64.cc 33 retryingReadSome(int Fd, char *Begin, char *End) XRAY_NEVER_INSTRUMENT {
37 while (BytesToRead && (BytesRead = read(Fd, Begin, BytesToRead))) {
54 int Fd = open(Filename, O_RDONLY | O_CLOEXEC);
55 if (Fd == -1)
61 std::tie(BytesRead, Success) = retryingReadSome(Fd, Line, Line + BufSize);
62 close(Fd);

Completed in 15 milliseconds