Home
last modified time | relevance | path

Searched refs:fildes (Results 1 – 25 of 52) sorted by relevance

123

/external/elfutils/libelf/
Delf_begin.c53 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize, in file_read_ar() argument
59 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_ar()
75 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset, in get_shnum() argument
171 if (unlikely (pread_retry (fildes, &size, sizeof (Elf32_Word), in get_shnum()
219 if (unlikely (pread_retry (fildes, &size, sizeof (Elf64_Xword), in get_shnum()
248 file_read_elf (int fildes, void *map_address, unsigned char *e_ident, in file_read_elf() argument
264 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf()
282 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_elf()
506 __libelf_read_mmaped_file (int fildes, void *map_address, off_t offset, in __libelf_read_mmaped_file() argument
521 return file_read_elf (fildes, map_address, e_ident, offset, maxsize, in __libelf_read_mmaped_file()
[all …]
Delf_update.c50 if (unlikely (fstat (elf->fildes, &st) != 0)) in write_file()
64 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file()
74 MAP_SHARED, elf->fildes, 0); in write_file()
95 && unlikely (posix_fallocate (elf->fildes, 0, size) != 0)) in write_file()
124 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file()
136 && unlikely (fchmod (elf->fildes, st.st_mode) != 0)) in write_file()
206 else if (unlikely (elf->fildes == -1)) in elf_update()
Delf_readall.c75 if (elf->map_address == NULL && unlikely (elf->fildes == -1)) in __libelf_readall()
96 if (fstat (elf->fildes, &st) < 0) in __libelf_readall()
114 if (unlikely ((size_t) pread_retry (elf->fildes, mem, in __libelf_readall()
Delf_getarsym.c63 else if ((size_t) pread_retry (elf->fildes, &u, w, *offp) != w) in read_number_entries()
114 assert (elf->fildes != -1); in elf_getarsym()
115 if (pread_retry (elf->fildes, &elf->state.ar.ar_hdr, in elf_getarsym()
233 if ((size_t) pread_retry (elf->fildes, file_data, sz, off) != sz in elf_getarsym()
234 || ((size_t) pread_retry (elf->fildes, new_str, in elf_getarsym()
Delf_cntl.c47 if (elf->fildes == -1) in elf_cntl()
69 elf->fildes = -1; in elf_cntl()
Dcommon.h71 allocate_elf (int fildes, void *map_address, off_t offset, size_t maxsize, in allocate_elf() argument
82 result->fildes = fildes; in allocate_elf()
Delf32_updatefile.c550 if (unlikely (pwrite_retry (elf->fildes, out_ehdr, in __elfw2()
585 && unlikely (fill (elf->fildes, ehdr->e_ehsize, in __elfw2()
620 if (unlikely ((size_t) pwrite_retry (elf->fildes, out_phdr, in __elfw2()
718 if (unlikely (fill (elf->fildes, last_offset, in __elfw2()
767 ssize_t n = pwrite_retry (elf->fildes, buf, in __elfw2()
798 if (unlikely (fill (elf->fildes, last_offset, in __elfw2()
826 && unlikely (fill (elf->fildes, last_offset, in __elfw2()
833 && unlikely ((size_t) pwrite_retry (elf->fildes, shdr_data, in __elfw2()
Delf_getshdrstrndx.c137 if (unlikely (pread_retry (elf->fildes, &shdr_mem, in elf_getshdrstrndx()
198 if (unlikely (pread_retry (elf->fildes, &shdr_mem, in elf_getshdrstrndx()
Delf_clone.c56 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset, in elf_clone()
Delf32_getphdr.c177 else if (likely (elf->fildes != -1)) in ElfW2()
191 ssize_t n = pread_retry (elf->fildes, in ElfW2()
Delf32_getshdr.c171 else if (likely (elf->fildes != -1)) in ElfW2()
174 ssize_t n = pread_retry (elf->fildes, in ElfW2()
/external/libcap/libcap/
Dcap_file.c177 cap_t cap_get_fd(int fildes) in cap_get_fd() argument
190 sizeofcaps = fgetxattr(fildes, XATTR_NAME_CAPS, in cap_get_fd()
238 int cap_set_fd(int fildes, cap_t cap_d) in cap_set_fd() argument
244 if (fstat(fildes, &buf) != 0) { in cap_set_fd()
245 _cap_debug("unable to stat file descriptor %d", fildes); in cap_set_fd()
249 _cap_debug("file descriptor %d for non-regular file", fildes); in cap_set_fd()
256 return fremovexattr(fildes, XATTR_NAME_CAPS); in cap_set_fd()
263 return fsetxattr(fildes, XATTR_NAME_CAPS, &rawvfscap, sizeofcaps, 0); in cap_set_fd()
299 cap_t cap_get_fd(int fildes) in cap_get_fd() argument
311 int cap_set_fd(int fildes, cap_t cap_d) in cap_set_fd() argument
/external/pdfium/third_party/libopenjpeg20/
Dopj_includes.h79 # define OPJ_FSTAT(fildes,stat_buff) _fstati64(fildes,/* struct _stati64 */ stat_buff) argument
85 # define OPJ_FSTAT(fildes,stat_buff) fstat(fildes,stat_buff) argument
/external/fio/os/windows/
Dposix.c278 int fildes, off_t off) in mmap() argument
375 int fcntl(int fildes, int cmd, ...) in fcntl() argument
400 status = ioctlsocket((SOCKET)fildes, opt, &val); in fcntl()
531 int fsync(int fildes) in fsync() argument
533 HANDLE hFile = (HANDLE)_get_osfhandle(fildes); in fsync()
681 int fdatasync(int fildes) in fdatasync() argument
683 return fsync(fildes); in fdatasync()
686 ssize_t pwrite(int fildes, const void *buf, size_t nbyte, in pwrite() argument
689 int64_t pos = _telli64(fildes); in pwrite()
690 ssize_t len = _write(fildes, buf, nbyte); in pwrite()
[all …]
/external/fio/os/
Dos-windows.h102 int fsync(int fildes);
104 int fcntl(int fildes, int cmd, ...);
105 int fdatasync(int fildes);
109 ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
110 ssize_t pwrite(int fildes, const void *buf, size_t nbyte,
/external/pdfium/third_party/libtiff/
Dtiffiop.h293 #define _TIFF_lseek_f(fildes,offset,whence) _lseeki64(fildes,/* __int64 */ offset,whence) argument
296 #define _TIFF_fstat_f(fildes,stat_buff) _fstati64(fildes,/* struct _stati64 */ stat_buff) argument
303 #define _TIFF_lseek_f(fildes,offset,whence) lseek(fildes,offset,whence) argument
306 #define _TIFF_fstat_f(fildes,stat_buff) fstat(fildes,stat_buff) argument
/external/fio/os/windows/posix/include/sys/
Duio.h13 ssize_t readv(int fildes, const struct iovec *iov, int iovcnt);
14 ssize_t writev(int fildes, const struct iovec *iov, int iovcnt);
Dmman.h30 int fildes, off_t off);
/external/valgrind/memcheck/tests/x86-solaris/
Dscalar.stderr.exp4 Syscall param fstatat64(fildes) contains uninitialised byte(s)
27 Syscall param openat64(fildes) contains uninitialised byte(s)
43 Syscall param openat64(fildes) contains uninitialised byte(s)
62 Syscall param llseek(fildes) contains uninitialised byte(s)
/external/v8/src/base/platform/
Dplatform-aix.cc39 static inline void* mmapHelper(size_t len, int prot, int flags, int fildes, in mmapHelper() argument
42 return mmap(addr, len, prot, flags, fildes, off); in mmapHelper()
/external/netperf/src/
Dnetlib.c807 send_ring->fildes, in netperf_sendfile()
814 sv.sfv_fd = send_ring->fildes; in netperf_sendfile()
821 ret = sendfile(send_ring->fildes, in netperf_sendfile()
830 ret = sendfile(send_ring->fildes, in netperf_sendfile()
838 send_ring->fildes, in netperf_sendfile()
1843 int fildes; in alloc_sendfile_buf_ring() local
1862 fildes = mkstemp(temp_file); in alloc_sendfile_buf_ring()
1864 if (-1 != fildes) { in alloc_sendfile_buf_ring()
1887 if (write(fildes,temp_buffer,buffer_size+sizeof(int)) != in alloc_sendfile_buf_ring()
1906 fildes = open(local_fill_file , O_RDONLY); in alloc_sendfile_buf_ring()
[all …]
/external/clang/test/Analysis/
Dunix-api.c12 int close(int fildes);
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-x86-solaris.c632 PRE_REG_READ4(long, "fstatat64", int, fildes, const char *, path, in PRE()
660 PRE_REG_READ4(long, "openat64", int, fildes, const char *, filename, in PRE()
667 PRE_REG_READ3(long, "openat64", int, fildes, const char *, filename, in PRE()
692 PRE_REG_READ4(long, "llseek", int, fildes, vki_u32, offset_low, in PRE()
767 PRE_REG_READ2(long, "fstat64", int, fildes, struct stat64 *, buf); in PRE()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h719 #define __sanitizer_syscall_pre_pipe(fildes) \ argument
720 __sanitizer_syscall_pre_impl_pipe((long)(fildes))
721 #define __sanitizer_syscall_post_pipe(res, fildes) \ argument
722 __sanitizer_syscall_post_impl_pipe(res, (long)(fildes))
723 #define __sanitizer_syscall_pre_pipe2(fildes, flags) \ argument
724 __sanitizer_syscall_pre_impl_pipe2((long)(fildes), (long)(flags))
725 #define __sanitizer_syscall_post_pipe2(res, fildes, flags) \ argument
726 __sanitizer_syscall_post_impl_pipe2(res, (long)(fildes), (long)(flags))
727 #define __sanitizer_syscall_pre_dup(fildes) \ argument
728 __sanitizer_syscall_pre_impl_dup((long)(fildes))
[all …]
/external/llvm/include/llvm/Analysis/
DTargetLibraryInfo.def441 /// FILE *fdopen(int fildes, const char *mode);
570 /// int fstat(int fildes, struct stat *buf);
576 /// int fstatvfs(int fildes, struct statvfs *buf);
579 /// int fstatvfs64(int fildes, struct statvfs64 *buf);
802 /// ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
817 /// ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset);
824 /// ssize_t read(int fildes, void *buf, size_t nbyte);
1110 /// ssize_t write(int fildes, const void *buf, size_t nbyte);

123