Lines Matching defs:size
45 #define _INIT_AS_CAP 128 /* initial archive string table size */
46 #define _INIT_SYMOFF_CAP (256*(sizeof(uint32_t))) /* initial so table size */
47 #define _INIT_SYMNAME_CAP 1024 /* initial sn table size */
95 obj->size = sb.st_size;
96 if ((obj->maddr = malloc(obj->size)) == NULL)
99 if ((size_t) read(fd, obj->maddr, obj->size) != obj->size)
107 ecp->rela_off += _ARHDR_LEN + obj->size + obj->size % 2;
189 size_t s_sz; /* size of archive symbol table. */
190 size_t pm_sz; /* size of pseudo members */
196 * for other members. The size of sn table includes the pad bit.
203 * The difference is that the size of archive string table counts
204 * in the pad bit, while normal members' size fileds do not.
210 * If there is a symbol table, calculate the size of pseudo members,
378 size_t size;
405 size = archive_entry_size(entry);
407 if (size > 0) {
408 if ((buff = malloc(size)) == NULL)
410 if (archive_read_data(a, buff, size) != (ssize_t)size) {
424 if ((ecp->ein = elf_memory(buff, size)) == NULL)
483 archive_entry_set_size(entry, obj->size);
487 ac_write_data(a, obj->maddr, obj->size);