Searched refs:ScopedFd (Results 1 – 10 of 10) sorted by relevance
/bionic/libc/private/ |
D | ScopedFd.h | 36 class ScopedFd final { 38 explicit ScopedFd(int fd) : fd_(fd) { in ScopedFd() function 41 ScopedFd() : fd_(-1) { in ScopedFd() function 44 ~ScopedFd() { in ~ScopedFd() 63 BIONIC_DISALLOW_COPY_AND_ASSIGN(ScopedFd);
|
/bionic/libc/bionic/ |
D | android_profiling_dynamic.cpp | 128 ScopedFd sock_fd{ socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0 /*protocol*/) }; in HandleTracedPerfSignal() 142 ScopedFd maps_fd{ open("/proc/self/maps", O_RDONLY | O_CLOEXEC) }; in HandleTracedPerfSignal() 148 ScopedFd mem_fd{ open("/proc/self/mem", O_RDONLY | O_CLOEXEC) }; in HandleTracedPerfSignal()
|
D | bionic_netlink.h | 49 ScopedFd fd_;
|
D | fchmodat.cpp | 50 ScopedFd fd(openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC)); in fchmodat()
|
D | net_if.cpp | 48 ScopedFd s(socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC, 0)); in if_indextoname() 57 ScopedFd s(socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC, 0)); in if_nametoindex()
|
D | getentropy.cpp | 37 ScopedFd fd(TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_NOFOLLOW | O_CLOEXEC, 0))); in getentropy_urandom()
|
D | realpath.cpp | 54 ScopedFd fd(open(path, O_PATH | O_CLOEXEC)); in realpath()
|
D | system_property_set.cpp | 107 ScopedFd socket_;
|
D | grp_pwd_file.cpp | 234 ScopedFd fd(open(filename_, O_CLOEXEC | O_NOFOLLOW | O_RDONLY)); in DoMmap()
|
D | ifaddrs.cpp | 281 ScopedFd s(socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in get_interface_flags_via_ioctl()
|