/external/skia/src/core/ |
D | SkMMapStream.cpp | 19 int fildes = open(filename, O_RDONLY); in SkMMAPStream() local 20 if (fildes < 0) in SkMMAPStream() 26 off_t offset = lseek(fildes, 0, SEEK_END); // find the file size in SkMMAPStream() 30 close(fildes); in SkMMAPStream() 33 (void)lseek(fildes, 0, SEEK_SET); // restore file offset to beginning in SkMMAPStream() 38 void* addr = mmap(NULL, size, PROT_READ, MAP_SHARED, fildes, 0); in SkMMAPStream() 44 close(fildes); in SkMMAPStream()
|
/external/elfutils/libelf/ |
D | elf_begin.c | 73 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize, in file_read_ar() argument 79 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_ar() 95 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset, in get_shnum() argument 190 if (unlikely (pread_retry (fildes, &size, sizeof (Elf32_Word), in get_shnum() 237 if (unlikely (pread_retry (fildes, &size, sizeof (Elf64_Word), in get_shnum() 266 file_read_elf (int fildes, void *map_address, unsigned char *e_ident, in file_read_elf() argument 282 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf() 288 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_elf() 483 __libelf_read_mmaped_file (int fildes, void *map_address, off_t offset, in __libelf_read_mmaped_file() argument 498 return file_read_elf (fildes, map_address, e_ident, offset, maxsize, in __libelf_read_mmaped_file() [all …]
|
D | elf_update.c | 70 if (unlikely (fstat (elf->fildes, &st) != 0)) in write_file() 84 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file() 97 MAP_SHARED, elf->fildes, 0); in write_file() 126 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file() 138 && unlikely (fchmod (elf->fildes, st.st_mode) != 0)) in write_file() 210 else if (unlikely (elf->fildes == -1))
|
D | elf_getarsym.c | 106 assert (elf->fildes != -1); 107 if (pread_retry (elf->fildes, &elf->state.ar.ar_hdr, 158 if (pread_retry (elf->fildes, &n, sizeof (n), 217 if ((size_t) pread_retry (elf->fildes, file_data, 223 || ((size_t) pread_retry (elf->fildes, new_str,
|
D | elf_cntl.c | 70 if (elf->fildes == -1) 92 elf->fildes = -1;
|
D | common.h | 92 allocate_elf (int fildes, void *map_address, off_t offset, size_t maxsize, in allocate_elf() argument 103 result->fildes = fildes; in allocate_elf()
|
D | elf_readall.c | 95 if (elf->map_address == NULL && unlikely (elf->fildes == -1)) 116 if (unlikely ((size_t) pread_retry (elf->fildes, mem,
|
D | elf_getshstrndx.c | 138 if (unlikely (pread_retry (elf->fildes, &shdr_mem, 176 if (unlikely (pread_retry (elf->fildes, &shdr_mem,
|
D | elf32_updatefile.c | 507 if (unlikely (pwrite_retry (elf->fildes, out_ehdr, in __elfw2() 534 && unlikely (fill (elf->fildes, ehdr->e_ehsize, in __elfw2() 569 if (unlikely ((size_t) pwrite_retry (elf->fildes, out_phdr, in __elfw2() 636 if (unlikely (fill (elf->fildes, last_offset, in __elfw2() 675 ssize_t n = pwrite_retry (elf->fildes, buf, in __elfw2() 717 && unlikely (fill (elf->fildes, last_offset, in __elfw2() 724 && unlikely ((size_t) pwrite_retry (elf->fildes, shdr_data, in __elfw2()
|
D | elf_clone.c | 77 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset, in elf_clone()
|
D | elf32_getphdr.c | 168 else if (likely (elf->fildes != -1)) 182 ssize_t n = pread_retry (elf->fildes,
|
D | elf32_getshdr.c | 165 else if (likely (elf->fildes != -1)) in ElfW2() 168 ssize_t n = pread_retry (elf->fildes, in ElfW2()
|
D | elf_getdata_rawchunk.c | 130 if (unlikely ((size_t) pread_retry (elf->fildes, rawchunk, size,
|
D | libelfP.h | 294 int fildes; member 480 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,
|
D | elf_getdata.c | 278 else if (likely (elf->fildes != -1)) in __libelf_set_rawdata_wrlock() 290 ssize_t n = pread_retry (elf->fildes, scn->rawdata.d.d_buf, size, in __libelf_set_rawdata_wrlock()
|
/external/stlport/test/eh/ |
D | mwerks_console_OS_X.c | 163 char *__ttyname(long fildes) in __ttyname() argument 165 #pragma unused (fildes) in __ttyname() 169 if (fildes >= 0 && fildes <= 2) in __ttyname()
|
/external/elfutils/libdwfl/ |
D | core-file.c | 104 else if (unlikely (pread_retry (parent->fildes, in elf_begin_rand() 366 ssize_t nread = pread_retry (elf->fildes, into, *buffer_available, start); in dwfl_elf_phdr_memory_callback()
|
/external/clang/test/Analysis/ |
D | unix-fns.c | 27 int close(int fildes);
|
/external/netperf/ |
D | netlib.c | 1526 int fildes; in alloc_sendfile_buf_ring() local 1547 fildes = open(temp_file,O_RDWR | O_EXCL | O_CREAT,0600); in alloc_sendfile_buf_ring() 1548 if (-1 != fildes) { in alloc_sendfile_buf_ring() 1571 if (write(fildes,temp_buffer,buffer_size+sizeof(int)) != in alloc_sendfile_buf_ring() 1595 fildes = open(fill_file , O_RDONLY); in alloc_sendfile_buf_ring() 1596 if (fildes == -1){ in alloc_sendfile_buf_ring() 1645 temp_link->fildes = fildes; /* from which file do we send? */ in alloc_sendfile_buf_ring()
|
D | netlib.h | 365 int fildes; /* the file descriptor of the source member
|
D | nettest_bsd.c | 3839 send_ring->fildes, 3846 sv.sfv_fd = send_ring->fildes; 3853 if ((sendfile(send_ring->fildes, 3863 if ((sendfile(send_ring->fildes, 3872 send_ring->fildes,
|
/external/elfutils/libelf-po/ |
D | libelf.pot | 124 msgid "archive/member fildes mismatch"
|
/external/elfutils/libdw/ |
D | libdw.h | 210 extern Dwarf *dwarf_begin (int fildes, Dwarf_Cmd cmd);
|
/external/elfutils/ |
D | android.patch | 334 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize,
|
/external/strace/ |
D | stream.c | 1317 tprintf(", filedes=%d, offset=%d}", sfi.fildes, sfi.offset);
|