H A D | fd.cpp | 15 Fd::Fd(const char* pathname, int flags, const Sys* sys) : in Fd() argument 16 sys(sys), fd(sys->open(pathname, flags)) in Fd() 24 static int dup(int oldfd, const Sys* sys) in dup() argument 26 int fd = sys->dup(oldfd); in dup() 34 Fd::Fd(int fd, const Sys* sys) : sys(sys), fd(dup(fd, sys)) {} in Fd() argument 36 Fd::Fd(int fd, std::false_type, const Sys* sys) : sys(sys), fd(fd) {} in Fd() argument 50 Fd::Fd(const Fd& other) : sys(other.sys), fd(dup(other.fd, sys)) {} in Fd() 57 sys = other.sys; in operator =() 58 fd = dup(other.fd, sys); in operator =() 63 Fd::Fd(Fd&& other) : sys(other.sys), fd(std::move(other.fd)) in Fd() [all …]
|