Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkMMapStream.cpp19 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/
Delf_begin.c73 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 …]
Delf_update.c70 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))
Delf_getarsym.c106 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,
Delf_cntl.c70 if (elf->fildes == -1)
92 elf->fildes = -1;
Dcommon.h92 allocate_elf (int fildes, void *map_address, off_t offset, size_t maxsize, in allocate_elf() argument
103 result->fildes = fildes; in allocate_elf()
Delf_readall.c95 if (elf->map_address == NULL && unlikely (elf->fildes == -1))
116 if (unlikely ((size_t) pread_retry (elf->fildes, mem,
Delf_getshstrndx.c138 if (unlikely (pread_retry (elf->fildes, &shdr_mem,
176 if (unlikely (pread_retry (elf->fildes, &shdr_mem,
Delf32_updatefile.c507 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()
Delf_clone.c77 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset, in elf_clone()
Delf32_getphdr.c168 else if (likely (elf->fildes != -1))
182 ssize_t n = pread_retry (elf->fildes,
Delf32_getshdr.c165 else if (likely (elf->fildes != -1)) in ElfW2()
168 ssize_t n = pread_retry (elf->fildes, in ElfW2()
Delf_getdata_rawchunk.c130 if (unlikely ((size_t) pread_retry (elf->fildes, rawchunk, size,
DlibelfP.h294 int fildes; member
480 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,
Delf_getdata.c278 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/
Dmwerks_console_OS_X.c163 char *__ttyname(long fildes) in __ttyname() argument
165 #pragma unused (fildes) in __ttyname()
169 if (fildes >= 0 && fildes <= 2) in __ttyname()
/external/elfutils/libdwfl/
Dcore-file.c104 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/
Dunix-fns.c27 int close(int fildes);
/external/netperf/
Dnetlib.c1526 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()
Dnetlib.h365 int fildes; /* the file descriptor of the source member
Dnettest_bsd.c3839 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/
Dlibelf.pot124 msgid "archive/member fildes mismatch"
/external/elfutils/libdw/
Dlibdw.h210 extern Dwarf *dwarf_begin (int fildes, Dwarf_Cmd cmd);
/external/elfutils/
Dandroid.patch334 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize,
/external/strace/
Dstream.c1317 tprintf(", filedes=%d, offset=%d}", sfi.fildes, sfi.offset);

12