Home
last modified time | relevance | path

Searched refs:ScopedFd (Results 1 – 10 of 10) sorted by relevance

/bionic/libc/private/
DScopedFd.h36 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/
Dandroid_profiling_dynamic.cpp128 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()
Dbionic_netlink.h49 ScopedFd fd_;
Dfchmodat.cpp50 ScopedFd fd(openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC)); in fchmodat()
Dnet_if.cpp48 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()
Dgetentropy.cpp37 ScopedFd fd(TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_NOFOLLOW | O_CLOEXEC, 0))); in getentropy_urandom()
Drealpath.cpp54 ScopedFd fd(open(path, O_PATH | O_CLOEXEC)); in realpath()
Dsystem_property_set.cpp107 ScopedFd socket_;
Dgrp_pwd_file.cpp234 ScopedFd fd(open(filename_, O_CLOEXEC | O_NOFOLLOW | O_RDONLY)); in DoMmap()
Difaddrs.cpp281 ScopedFd s(socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in get_interface_flags_via_ioctl()