/bionic/libc/bionic/ |
H A D | statvfs.cpp | 26 # define __fstatfs64(fd,size,buf) __fstatfs(fd,buf) 51 int fstatfs(int fd, struct statfs* result) { argument 52 int rc = __fstatfs64(fd, sizeof(*result), result); 82 int fstatvfs(int fd, struct statvfs* result) { argument 84 int rc = fstatfs(fd, &tmp);
|
H A D | mmap.cpp | 44 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { argument 61 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); 75 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { argument 76 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset));
|
H A D | open.cpp | 73 int openat(int fd, const char *pathname, int flags, ...) { argument 83 return __openat(fd, pathname, force_O_LARGEFILE(flags), mode); 87 int __openat_2(int fd, const char* pathname, int flags) { argument 92 return __openat(fd, pathname, force_O_LARGEFILE(flags), 0);
|
H A D | dirent.cpp | 59 static DIR* __allocate_DIR(int fd) { argument 64 d->fd_ = fd; 76 DIR* fdopendir(int fd) { argument 77 // Is 'fd' actually a directory? 79 if (fstat(fd, &sb) == -1) { 87 return __allocate_DIR(fd); 91 int fd = open(path, O_CLOEXEC | O_DIRECTORY | O_RDONLY); local 92 return (fd != -1) ? __allocate_DIR(fd) : NULL; 152 int fd local [all...] |
H A D | fortify.cpp | 84 int __FD_ISSET_chk(int fd, fd_set* set, size_t set_size) { argument 85 __check_fd_set("FD_ISSET", fd, set_size); 86 return FD_ISSET(fd, set); 89 void __FD_CLR_chk(int fd, fd_set* set, size_t set_size) { argument 90 __check_fd_set("FD_CLR", fd, set_size); 91 FD_CLR(fd, set); 94 void __FD_SET_chk(int fd, fd_set* set, size_t set_size) { argument 95 __check_fd_set("FD_SET", fd, set_size); 96 FD_SET(fd, set); 177 ssize_t __pread64_chk(int fd, voi argument 183 __pread_chk(int fd, void* buf, size_t count, off_t offset, size_t buf_size) argument 189 __pwrite64_chk(int fd, const void* buf, size_t count, off64_t offset, size_t buf_size) argument 196 __pwrite_chk(int fd, const void* buf, size_t count, off_t offset, size_t buf_size) argument 203 __read_chk(int fd, void* buf, size_t count, size_t buf_size) argument 455 __write_chk(int fd, const void* buf, size_t count, size_t buf_size) argument [all...] |
/bionic/tests/ |
H A D | bug_26110743_test.cpp | 32 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); local 33 ASSERT_NE(-1, fd); 34 snprintf(buf, sizeof(buf), "/proc/self/fd/%d", fd); 40 close(fd); 74 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); local 75 ASSERT_NE(-1, fd); 79 snprintf(buf, sizeof(buf), "/proc/%d/task/%d/fd/%d", mypid, mytid, fd); 84 close(fd); [all...] |
H A D | stdlib_test.cpp | 252 int flags = fcntl(tf.fd, F_GETFD); 259 int flags = fcntl(tf.fd, F_GETFD); 267 ASSERT_EQ(0, fstat64(tf.fd, &sb)); 268 ASSERT_EQ(O_LARGEFILE, fcntl(tf.fd, F_GETFL) & O_LARGEFILE); 274 ASSERT_EQ(0, fstat(tf.fd, &sb)); 428 int fd = getpt(); local 429 ASSERT_NE(-1, fd); 432 ASSERT_EQ(0, grantpt(fd)); 436 ASSERT_EQ(0, ptsname_r(fd, name_r, sizeof(name_r))); 440 close(fd); 444 int fd = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC); local 457 int fd = getpt(); local 467 int fd = getpt(); local 477 int fd = getpt(); local 489 int fd = open("/dev/null", O_WRONLY); local 498 int fd = getpt(); local 508 int fd = getpt(); local 518 int fd = open("/dev/null", O_WRONLY); local [all...] |
H A D | unistd_test.cpp | 168 ASSERT_EQ(0, close(tf.fd)); 178 ASSERT_EQ(0, close(tf.fd)); 188 ASSERT_EQ(0, ftruncate(tf.fd, 123)); 189 ASSERT_EQ(0, close(tf.fd)); 198 ASSERT_EQ(0, ftruncate64(tf.fd, 123)); 199 ASSERT_EQ(0, close(tf.fd)); 209 ASSERT_EQ(-1, ftruncate(tf.fd, -123)); 228 int fd = open("/proc/version", O_RDONLY); local 229 ASSERT_TRUE(fd != -1); 232 ASSERT_EQ(5, read(fd, bu 379 int fd; local 1030 int fd = open("/proc/version", O_RDONLY); local [all...] |
/bionic/libc/include/sys/ |
H A D | xattr.h | 38 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) 45 ssize_t fgetxattr(int fd, const char* name, void* value, size_t size) __INTRODUCED_IN(16); 51 ssize_t flistxattr(int fd, char* list, size_t size) __INTRODUCED_IN(16); 55 int fremovexattr(int fd, const char* name) __INTRODUCED_IN(16);
|
H A D | socket.h | 340 ssize_t recvfrom(int fd, void* const buf __pass_object_size0, size_t len, 348 ssize_t recvfrom(int fd, void* const buf __pass_object_size0, size_t len, 354 return __call_bypassing_fortify(recvfrom)(fd, buf, len, flags, src_addr, 358 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len); 364 ssize_t sendto(int fd, const void* buf, size_t len, int flags, 372 ssize_t sendto(int fd, const void* const buf __pass_object_size0, size_t len, 378 return __call_bypassing_fortify(sendto)(fd, buf, len, flags, dest_addr, 382 return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len); 403 ssize_t recvfrom(int fd, void* buf, size_t len, int flags, 408 return __recvfrom_real(fd, bu [all...] |
/bionic/libc/kernel/uapi/linux/ |
H A D | vtpm_proxy.h | 31 __u32 fd; member in struct:vtpm_proxy_new_dev
|
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/ |
H A D | vtpm_proxy.h | 31 __u32 fd; member in struct:vtpm_proxy_new_dev
|
/bionic/linker/ |
H A D | linker_mapped_file_fragment.h | 40 bool Map(int fd, off64_t base_offset, size_t elf_offset, size_t size);
|
/bionic/tools/versioner/current/sys/ |
H A D | xattr.h | 38 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) 45 ssize_t fgetxattr(int fd, const char* name, void* value, size_t size) __INTRODUCED_IN(16); 51 ssize_t flistxattr(int fd, char* list, size_t size) __INTRODUCED_IN(16); 55 int fremovexattr(int fd, const char* name) __INTRODUCED_IN(16);
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
H A D | eventlib_p.h | 81 int fd; member in struct:evConn 85 #define EV_CONN_BLOCK 0x0004 /*%< Listener fd was blocking. */ 92 int fd; member in struct:evAccept 117 int fd; member in struct:evFile 133 int fd; member in struct:evStream 193 extern short *__fd_eventfield(int fd, __evEmulMask *maskp); 195 extern void __fd_clr(int fd, __evEmulMask *maskp); 196 extern void __fd_set(int fd, __evEmulMask *maskp); 202 #define FD_SET(fd, maskp) \ 203 __fd_set(fd, mask [all...] |
H A D | ev_streams.c | 51 static void writable(evContext opaqueCtx, void *uap, int fd, int evmask); 52 static void readable(evContext opaqueCtx, void *uap, int fd, int evmask); 67 evWrite(evContext opaqueCtx, int fd, const struct iovec *iov, int iocnt, argument 77 new->fd = fd; 79 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0) 101 evRead(evContext opaqueCtx, int fd, const struct iovec *iov, int iocnt, argument 111 new->fd = fd; 113 if (evSelectFD(opaqueCtx, fd, EV_REA 270 writable(evContext opaqueCtx, void *uap, int fd, int evmask) argument 293 readable(evContext opaqueCtx, void *uap, int fd, int evmask) argument [all...] |
/bionic/libc/include/ |
H A D | unistd.h | 316 ssize_t pread(int fd, void* buf, size_t count, off_t offset) __overloadable 320 ssize_t pread(int fd, void* buf, size_t count, off_t offset) __overloadable 325 ssize_t pread(int fd, void* const __pass_object_size0 buf, size_t count, 330 return __PREAD_PREFIX(real)(fd, buf, count, offset); 333 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos); 337 ssize_t pread64(int fd, void* buf, size_t count, off64_t offset) __overloadable 341 ssize_t pread64(int fd, void* buf, size_t count, off64_t offset) __overloadable 346 ssize_t pread64(int fd, void* const __pass_object_size0 buf, size_t count, 351 return __pread64_real(fd, buf, count, offset); 354 return __pread64_chk(fd, bu 551 pread(int fd, void* buf, size_t count, off_t offset) argument 574 pread64(int fd, void* buf, size_t count, off64_t offset) argument 599 pwrite(int fd, const void* buf, size_t count, off_t offset) argument 622 pwrite64(int fd, const void* buf, size_t count, off64_t offset) argument 647 read(int fd, void* buf, size_t count) argument 672 write(int fd, const void* buf, size_t count) argument [all...] |
/bionic/tools/relocation_packer/src/ |
H A D | main.cc | 97 android::base::unique_fd fd(open(file, O_RDWR)); 98 if (fd.get() == -1) { 109 if (TEMP_FAILURE_RETRY(read(fd.get(), e_ident, EI_NIDENT) != EI_NIDENT)) { 114 if (TEMP_FAILURE_RETRY(lseek(fd.get(), 0, SEEK_SET)) != 0) { 122 relocation_packer::ElfFile<ELF32_traits> elf_file(fd.get()); 131 relocation_packer::ElfFile<ELF64_traits> elf_file(fd.get());
|
/bionic/tools/versioner/current/ |
H A D | unistd.h | 316 ssize_t pread(int fd, void* buf, size_t count, off_t offset) __overloadable 320 ssize_t pread(int fd, void* buf, size_t count, off_t offset) __overloadable 325 ssize_t pread(int fd, void* const __pass_object_size0 buf, size_t count, 330 return __PREAD_PREFIX(real)(fd, buf, count, offset); 333 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos); 337 ssize_t pread64(int fd, void* buf, size_t count, off64_t offset) __overloadable 341 ssize_t pread64(int fd, void* buf, size_t count, off64_t offset) __overloadable 346 ssize_t pread64(int fd, void* const __pass_object_size0 buf, size_t count, 351 return __pread64_real(fd, buf, count, offset); 354 return __pread64_chk(fd, bu 551 pread(int fd, void* buf, size_t count, off_t offset) argument 574 pread64(int fd, void* buf, size_t count, off64_t offset) argument 599 pwrite(int fd, const void* buf, size_t count, off_t offset) argument 622 pwrite64(int fd, const void* buf, size_t count, off64_t offset) argument 647 read(int fd, void* buf, size_t count) argument 672 write(int fd, const void* buf, size_t count) argument [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | vdprintf.c | 51 vdprintf(int fd, const char * __restrict fmt, va_list ap) argument 66 f._cookie = &fd;
|
/bionic/libc/kernel/android/uapi/linux/usb/ |
H A D | f_mtp.h | 25 int fd; member in struct:mtp_file_range
|
/bionic/libc/kernel/uapi/asm-generic/ |
H A D | poll.h | 54 int fd; member in struct:pollfd
|
/bionic/libc/versioner-dependencies/common/kernel_android_uapi/linux/usb/ |
H A D | f_mtp.h | 25 int fd; member in struct:mtp_file_range
|
/bionic/libc/versioner-dependencies/common/kernel_uapi/asm-generic/ |
H A D | poll.h | 54 int fd; member in struct:pollfd
|
/bionic/tools/versioner/src/ |
H A D | VFS.cpp | 52 unique_fd fd(open(file_path, O_RDONLY | O_CLOEXEC)); 53 if (fd == -1) { 57 auto buffer_opt = llvm::MemoryBuffer::getOpenFile(fd, file_path, -1, false, false);
|