Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkMMapStream.cpp12 int fildes = open(filename, O_RDONLY); in SkMMAPStream() local
13 if (fildes < 0) in SkMMAPStream()
19 off_t offset = lseek(fildes, 0, SEEK_END); // find the file size in SkMMAPStream()
23 close(fildes); in SkMMAPStream()
26 (void)lseek(fildes, 0, SEEK_SET); // restore file offset to beginning in SkMMAPStream()
31 void* addr = mmap(NULL, size, PROT_READ, MAP_SHARED, fildes, 0); in SkMMAPStream()
35 close(fildes); in SkMMAPStream()
41 fFildes = fildes; in SkMMAPStream()
/external/elfutils/libelf/
Delf_begin.c40 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize, in file_read_ar() argument
46 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_ar()
62 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset, in get_shnum() argument
88 if ((size_t) pread (fildes, ehdr.p, len, offset) != len) in get_shnum()
130 if (pread (fildes, &size, sizeof (Elf32_Word), in get_shnum()
166 if (pread (fildes, &size, sizeof (Elf64_Word), in get_shnum()
186 file_read_elf (int fildes, void *map_address, off_t offset, size_t maxsize, in file_read_elf() argument
202 if (pread (fildes, e_ident, EI_NIDENT, offset) != EI_NIDENT) in file_read_elf()
222 scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf()
228 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_elf()
[all …]
Delf_update.c41 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file()
51 MAP_SHARED, elf->fildes, 0); in write_file()
79 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file()
151 else if (unlikely (elf->fildes == -1))
Delf_getarsym.c80 assert (elf->fildes != -1);
81 if (pread (elf->fildes, &elf->state.ar.ar_hdr,
131 if (pread (elf->fildes, &n, sizeof (n),
192 if ((size_t) pread (elf->fildes, file_data,
196 || ((size_t) pread (elf->fildes, new_str,
Dcommon.h56 allocate_elf (int fildes, void *map_address, off_t offset, size_t maxsize, in allocate_elf() argument
67 result->fildes = fildes; in allocate_elf()
Delf_cntl.c37 if (elf->fildes == -1)
59 elf->fildes = -1;
Delf_readall.c60 if (elf->map_address == NULL && unlikely (elf->fildes == -1))
81 if ((size_t) pread (elf->fildes, mem, elf->maximum_size,
Delf32_updatefile.c391 if (unlikely (pwrite (elf->fildes, out_ehdr, in __elfw2()
418 && unlikely (fill (elf->fildes, ehdr->e_ehsize, in __elfw2()
451 if (unlikely ((size_t) pwrite (elf->fildes, out_phdr, in __elfw2()
527 if (unlikely (fill (elf->fildes, last_offset, in __elfw2()
560 if (unlikely ((size_t) pwrite (elf->fildes, buf, in __elfw2()
602 && unlikely (fill (elf->fildes, last_offset, in __elfw2()
609 && unlikely ((size_t) pwrite (elf->fildes, shdr_data, in __elfw2()
Delf_getshstrndx.c103 if (pread (elf->fildes, &shdr_mem, sizeof (Elf32_Shdr),
142 if (pread (elf->fildes, &shdr_mem, sizeof (Elf64_Shdr),
Delf32_getshdr.c128 else if (elf->fildes != -1)
131 if ((size_t) pread (elf->fildes,
Dgelf_rawchunk.c62 if ((size_t) pread (elf->fildes, result, size, elf->start_offset + offset)
Delf32_getphdr.c140 else if (likely (elf->fildes != -1))
154 if ((size_t) pread (elf->fildes,
Delf_clone.c44 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset, in elf_clone()
DlibelfP.h237 int fildes; member
405 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,
Delf_getdata.c263 else if (elf->fildes != -1) in __libelf_set_rawdata()
275 if ((size_t) pread (elf->fildes, scn->rawdata.d.d_buf, size, in __libelf_set_rawdata()
/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.h164 extern Dwarf *dwarf_begin (int fildes, Dwarf_Cmd cmd);
/external/strace/
Dstream.c1222 tprintf(", filedes=%d, offset=%d}", sfi.fildes, sfi.offset);