Home
last modified time | relevance | path

Searched defs:CloseFD (Results 1 – 3 of 3) sorted by relevance

/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/src/filesystem/
H A Dops-common.h408 struct CloseFD { in _GLIBCXX_VISIBILITY() struct
409 ~CloseFD() { if (fd != -1) posix::close(fd); } in _GLIBCXX_VISIBILITY()
410 bool close() { return posix::close(std::exchange(fd, -1)) == 0; } in _GLIBCXX_VISIBILITY()
411 int fd; in _GLIBCXX_VISIBILITY()
H A Dstd-ops.cc363 struct CloseFD { in do_copy_file() struct
364 ~CloseFD() { if (fd != -1) ::close(fd); } in do_copy_file()
365 bool close() { return ::close(std::exchange(fd, -1)) == 0; } in do_copy_file()
366 int fd; in do_copy_file()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/
H A Dops-common.h466 struct CloseFD { in _GLIBCXX_VISIBILITY() struct
467 ~CloseFD() { if (fd != -1) posix::close(fd); } in _GLIBCXX_VISIBILITY()
468 bool close() { return posix::close(std::__exchange(fd, -1)) == 0; } in _GLIBCXX_VISIBILITY()
469 int fd; in _GLIBCXX_VISIBILITY()