Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libdemangle/common/
H A Dstr.c22 #define IS_REF(s) ((s)->str_s != NULL && (s)->str_size == 0)
48 xfree(s->str_ops, s->str_s, s->str_size); in str_fini()
89 dest->str_size = len; in str_copy()
106 if ((amt > 0) && (s->str_len + amt <= s->str_size)) in str_reserve()
119 temp = xrealloc(s->str_ops, s->str_s, s->str_size, newsize); in str_reserve()
125 s->str_size = newsize; in str_reserve()
190 .str_size = 0 in str_insert()
278 sp->strp_r.str_len = sp->strp_r.str_size = 0; in str_pair_merge()
H A Dstr.h33 size_t str_size; member
H A Dcxx.c2758 num.str_size = fd->max_demangled_size + 1; in parse_floating_literal()
2759 num.str_s = zalloc(db->cpp_ops, num.str_size); in parse_floating_literal()
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dutils.c425 size_t str_size; in compress() local
430 str_size = o_size+1; in compress()
431 strings = malloc(str_size); in compress()
451 if (next_str >= str_size) { in compress()
452 str_size *= 2; in compress()
454 realloc(strings, str_size)) == NULL) { in compress()
463 if (next_str >= str_size) { in compress()
464 str_size *= 2; in compress()
466 realloc(strings, str_size)) == NULL) { in compress()
H A Dmcs.h155 size_t str_size; /* size of string to be appended */ member
H A Dmain.c119 cmd_info->str_size += strlen(optarg) + 1; in main()
H A Dfile.c549 state->new_sec_string = calloc(1, cmd_info->str_size + 1); in traverse_file()
/illumos-gate/usr/src/cmd/tic/
H A Dtic_read.c164 header.str_size = swap(header.str_size); in read_entry()
216 pst = malloc((unsigned)header.str_size); in read_entry()
276 numread = read(fd, pst, header.str_size); in read_entry()
278 if (numread != header.str_size) in read_entry()
H A Dtic_parse.c706 header.str_size = swap(l_next_free); in write_object()
713 header.str_size = l_next_free; in write_object()
/illumos-gate/usr/src/cmd/boot/common/
H A Dbblk_einfo.c223 if (einfo->str_off + einfo->str_size > bufsize) { in print_einfo()
254 einfo->str_size); in print_einfo()
340 einfo->str_size = strlen(infostr); in prepare_and_write_einfo()
342 if (einfo->str_off + einfo->str_size > maxsize) { in prepare_and_write_einfo()
349 (void) memcpy(data, infostr, einfo->str_size); in prepare_and_write_einfo()
350 *used_space = einfo->str_off + einfo->str_size; in prepare_and_write_einfo()
H A Dbblk_einfo.h48 uint16_t str_size; member
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Dcpu_prop_update.c82 int type_size, str_size, total_size, type_flag; in add_tlb_props() local
93 str_size = strlen((char *)type + total_size) + 1; in add_tlb_props()
100 total_size += str_size; in add_tlb_props()
136 int type_size, str_size, total_size, type_flag; in add_cache_props() local
151 str_size = strlen((char *)type + total_size) + 1; in add_cache_props()
158 total_size += str_size; in add_cache_props()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c83 sp->str_size = 1; in dt_strtab_create()
246 hp->str_off = sp->str_size; in dt_strtab_insert()
258 sp->str_size += len + 1; in dt_strtab_insert()
267 return (sp->str_size); in dt_strtab_size()
287 if (total == 0 && sp->str_size != 0) in dt_strtab_write()
H A Ddt_strtab.h52 size_t str_size; /* total size of strings in bytes */ member
/illumos-gate/usr/src/cmd/svr4pkg/pkgproto/
H A Dmain.c376 size_t str_size; in scan_raw_ln() local
385 str_size = ((ptrdiff_t)next_dir - (ptrdiff_t)this_dir); in scan_raw_ln()
392 if (strncmp(this_dir, link_name, str_size) == 0) { in scan_raw_ln()
396 targ_ptr = (char *)(targ_ptr+str_size); in scan_raw_ln()
398 link_name = (char *)(link_name+str_size); in scan_raw_ln()
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dsetup.c157 short str_size; member
184 (header.str_size = getnum(fd)) < 0) { in __m_read_terminfo()
231 if ((tp->_str_table = (char *) malloc(header.str_size)) == NULL) in __m_read_terminfo()
254 if (read(fd, tp->_str_table, header.str_size) != header.str_size) in __m_read_terminfo()
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dsetup.c374 derive_devstr(const caddr_t dev, caddr_t devstr, size_t str_size) in derive_devstr() argument
391 if (!(check_mnttab(dev, devstr, str_size) || in derive_devstr()
392 check_vfstab(dev, devstr, str_size))) { in derive_devstr()
401 (void) strlcpy(devstr, dev, str_size); in derive_devstr()
405 (void) strlcpy(devstr, unrawname(dev), str_size); in derive_devstr()
444 check_mount_state(caddr_t devstr, size_t str_size) in check_mount_state() argument
461 if ((mountedfs = mounted(devstr, devstr, str_size)) != M_NOMNT) { in check_mount_state()
485 (void) strlcpy(devstr, rawname(devstr), str_size); in check_mount_state()
H A Dutilities.c1058 mounted(caddr_t name, caddr_t devstr, size_t str_size) in mounted() argument
1063 mntent = search_mnttab(NULL, unrawname(name), devstr, str_size); in mounted()
1083 if (devstr != NULL && str_size > 0) in mounted()
1084 (void) strlcpy(devstr, mntent->mnt_special, str_size); in mounted()
1526 check_vfstab(caddr_t name, caddr_t devstr, size_t str_size) in check_vfstab() argument
1528 return (NULL != search_vfstab(name, NULL, devstr, str_size)); in check_vfstab()
1537 check_mnttab(caddr_t name, caddr_t devstr, size_t str_size) in check_mnttab() argument
1539 return (NULL != search_mnttab(name, NULL, devstr, str_size)); in check_mnttab()
1570 if (devstr != NULL && str_size > 0 && \
1573 str_size); \
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dsetup.c141 || (header.str_size = getnum(fd)) < 0)
190 if ((tp->_str_table = (char *) malloc(header.str_size)) == (char *) 0)
215 if (read(fd, tp->_str_table, header.str_size) != header.str_size)
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dobject.h126 short str_size; /* Size of string table */ member
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dcap.c224 Elf_cap_entry(Lm_list *lml, Cap *cap, int ndx, const char *str, size_t str_size, in Elf_cap_entry() argument
238 if (str && (cap->c_un.c_ptr < str_size)) { in Elf_cap_entry()
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dphdr.c519 Word str_size; /* Size of new interp string + NULL */ in cmd_body_set_interp() local
565 str_size = strlen(argstate->argv[0]) + 1; in cmd_body_set_interp()
583 (str_size <= strsec->sec_shdr->sh_size)) { in cmd_body_set_interp()
602 EC_WORD(str_size), in cmd_body_set_interp()
640 interp.phdr->p_filesz = str_size; in cmd_body_set_interp()
H A Dcap.c393 size_t str_size; in print_cap() local
420 str_size = 0; in print_cap()
423 str_size = argstate->str.sec->sec_data->d_size; in print_cap()
466 Elf_cap_entry(NULL, cap, ndx, str, str_size, in print_cap()
/illumos-gate/usr/src/head/
H A Dnss_dbdefs.h388 #define NSS_XbyY_ALLOC(bufpp, str_size, buf_size) (\ argument
390 ? (*bufpp) = _nss_XbyY_buf_alloc(str_size, buf_size) \
/illumos-gate/usr/src/cmd/svc/configd/
H A Drc_node.c3678 size_t str_size = 0; in generate_value_list() local
3727 str_size = strlcat(values, "\" ", byte_count); in generate_value_list()
3728 assert(str_size < byte_count); in generate_value_list()
3730 if (str_size > 0) in generate_value_list()
3731 values[str_size - 1] = 0; /* get rid of trailing space */ in generate_value_list()