/illumos-gate/usr/src/cmd/dtrace/ |
H A D | dtrace.c | 300 size_t sz, i, j, mark, len; in dof_prune() local 319 if (read(fd, buf, sz) != sz) in dof_prune() 322 buf[sz] = '\0'; in dof_prune() 330 for (mark = 0, i = 0; i < sz; i++) { in dof_prune() 362 if ((mark = j + 1) >= sz) in dof_prune() 368 if (mark < sz) { in dof_prune() 369 if (write(fd, &buf[mark], sz - mark) != sz - mark) in dof_prune() 381 size_t sz; in etcsystem_prune() local 395 if (read(fd, buf, sz) != sz) in etcsystem_prune() 398 buf[sz] = '\0'; in etcsystem_prune() [all …]
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_soft_ring.c | 358 size_t sz; in mac_rx_soft_ring_drain() local 382 sz = ringp->s_ring_size; in mac_rx_soft_ring_drain() 403 MAC_UPDATE_SRS_SIZE_LOCKED(mac_srs, sz); in mac_rx_soft_ring_drain() 540 size_t sz = 0; in mac_soft_ring_poll() local 559 sz = ringp->s_ring_size; in mac_soft_ring_poll() 562 while (mp && sz <= bytes_to_pickup) { in mac_soft_ring_poll() 563 sz += msgdsize(mp); in mac_soft_ring_poll() 569 ringp->s_ring_size -= sz; in mac_soft_ring_poll() 587 MAC_UPDATE_SRS_SIZE_LOCKED(mac_srs, sz); in mac_soft_ring_poll()
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | directory_server.c | 250 bin_list_dav(directory_values_rpc *lvals, const void *array, int n, size_t sz) in bin_list_dav() argument 265 dav[i].directory_value_rpc_val = uu_memdup(inbuf, sz); in bin_list_dav() 268 dav[i].directory_value_rpc_len = sz; in bin_list_dav() 269 inbuf += sz; in bin_list_dav()
|
/illumos-gate/usr/src/cmd/pcidr/ |
H A D | pcidr.c | 368 size_t sz; in parse_path() local 387 sz = strlcat(buf, pathp, bufsize); in parse_path() 388 assert(sz < bufsize); in parse_path() 402 sz = strlcat(buf, sibuf, bufsize); in parse_path() 403 assert(sz < bufsize); in parse_path() 413 sz = strlcat(buf, pathp, bufsize); in parse_path() 414 assert(sz < bufsize); in parse_path()
|
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/ |
H A D | smf_response.c | 128 size_t sz = sizeof (struct smf_uuid_cache) + in uuid_cache_persist() local 131 fmd_buf_write(hdl, NULL, UUID_CACHE_BUFNAME, uuid_cache, sz); in uuid_cache_persist() 191 size_t sz = fmd_buf_size(hdl, NULL, UUID_CACHE_BUFNAME); in uuid_cache_restore() local 193 if (sz == 0) in uuid_cache_restore() 196 uuid_cache = fmd_hdl_alloc(hdl, sz, FMD_SLEEP); in uuid_cache_restore() 197 fmd_buf_read(hdl, NULL, UUID_CACHE_BUFNAME, uuid_cache, sz); in uuid_cache_restore()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_import.c | 272 #define STR_ADJ_SZ(sz, buf, s) (sz - STR_DIFF(buf, s)) in i_getln_to_argv() argument 310 int sz; in i_getln_to_argv() local 313 sz = sizeof (*a) + in i_getln_to_argv() 315 a = (arg_t *)realloc(a, sz); in i_getln_to_argv()
|
/illumos-gate/usr/src/lib/libnvpair/ |
H A D | nvpair_json.c | 51 size_t sz; in nvlist_print_json_string() local 56 while ((sz = mbrtowc(&c, input, MB_CUR_MAX, &mbr)) > 0) { in nvlist_print_json_string() 97 input += sz; in nvlist_print_json_string() 100 if (sz == (size_t)-1 || sz == (size_t)-2) { in nvlist_print_json_string()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_get.c | 185 size_t sz; local 192 sz = t->bt_rdata.size;; *p++ = ch, --sz) { 203 if (sz == 0) { 205 t->bt_rdata.size += (sz = 256);
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/generic_cpu/ |
H A D | gcpu.c | 158 ssize_t sz; in cmih_walk_init() local 186 if ((sz = mdb_readvar(&awsp->chip_tab, "cmi_chip_tab")) == -1) { in cmih_walk_init() 191 } else if (sz < sizeof (awsp->chip_tab)) { in cmih_walk_init() 193 sizeof (awsp->chip_tab), sz); in cmih_walk_init() 200 sz = CMI_MAX_STRANDS_PER_CHIP(awsp->core_nbits, awsp->strand_nbits) * in cmih_walk_init() 205 pg = mdb_alloc(sz, UM_SLEEP); in cmih_walk_init() 206 if (mdb_vread(pg, sz, (uintptr_t)awsp->chip_tab[i]) != sz) { in cmih_walk_init() 209 mdb_free(pg, sz); in cmih_walk_init()
|
/illumos-gate/usr/src/cmd/ptools/pmadvise/ |
H A D | pmadvise.c | 370 size_t sz = 0; in atosz() local 375 sz = strtoll(optarg, endptr, 0); in atosz() 380 sz *= KILOBYTE; in atosz() 384 sz *= KILOBYTE; in atosz() 388 sz *= KILOBYTE; in atosz() 392 sz *= KILOBYTE; in atosz() 396 sz *= KILOBYTE; in atosz() 400 sz *= KILOBYTE; in atosz() 409 return (sz); in atosz()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did.c | 86 int sz; in di_devtype_get() local 95 if (di_bytes_get(mp, src, DI_DEVTYPPROP, &sz, &buf) == 0) { in di_devtype_get() 160 int sz; in di_physlotinfo_get() local 174 if (di_bytes_get(mp, src, DI_SLOTPROP, &sz, &buf) == 0 && in di_physlotinfo_get() 175 sz > 4) { in di_physlotinfo_get() 282 int sz = -1; in di_slotinfo_get() local 286 if (di_bytes_get(mp, src, DI_SLOTPROP, &sz, &slotbuf) < 0) in di_slotinfo_get() 288 if (sz < sizeof (uint_t)) in di_slotinfo_get()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | sobj.c | 56 sobj_type_to_text(int type, char *out, size_t sz) in sobj_type_to_text() argument 60 mdb_snprintf(out, sz, "<none>"); in sobj_type_to_text() 67 mdb_snprintf(out, sz, "%s", in sobj_type_to_text() 72 mdb_snprintf(out, sz, "<unk:%02x>", type); in sobj_type_to_text() 76 sobj_ops_to_text(uintptr_t addr, char *out, size_t sz) in sobj_ops_to_text() argument 81 mdb_snprintf(out, sz, "<none>"); in sobj_ops_to_text() 85 mdb_snprintf(out, sz, "??", ops.sobj_type); in sobj_ops_to_text() 89 sobj_type_to_text(ops.sobj_type, out, sz); in sobj_ops_to_text()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | devpolicy.c | 404 devpolicy_load(int nitems, size_t sz, devplcysys_t *uitmp) in devpolicy_load() argument 431 if (sz != sizeof (devplcysys_t) || nitems > maxdevpolicy || nitems < 1) in devpolicy_load() 434 mem = nitems * sz; in devpolicy_load() 579 devpolicy_get(int *nitemp, size_t sz, devplcysys_t *uitmp) in devpolicy_get() argument 589 if (sz != sizeof (devplcysys_t)) in devpolicy_get() 649 devpolicy_getbyname(size_t sz, devplcysys_t *uitmp, char *devname) in devpolicy_getbyname() argument 656 if (sz != sizeof (devplcysys_t)) in devpolicy_getbyname() 680 if (copyout(&itm, uitmp, sz)) in devpolicy_getbyname()
|
/illumos-gate/usr/src/cmd/stat/arcstat/ |
H A D | arcstat.pl | 236 my $sz = $_[0]; 252 return sprintf("%*d", $sz, $num) if ($index == 0); 254 return sprintf("%*.1f%s", $sz - 1, $num,$suffix[$index]); 256 return sprintf("%*d%s", $sz - 1, $num,$suffix[$index]);
|
/illumos-gate/usr/src/cmd/fm/schemes/mem/ |
H A D | mem_read.c | 151 ssize_t sz; in mem_get_serid() local 156 if ((sz = read(fd, buf, sizeof (buf))) < 0) { in mem_get_serid() 164 switch (sz) { in mem_get_serid()
|
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/ |
H A D | pcmu_util.c | 196 uint32_t sz = pcmu_rp->pci_size_low; in pcmu_xlate_reg() local 204 sz = sz ? MIN(sz, PCI_CONF_HDR_SIZE) : PCI_CONF_HDR_SIZE; in pcmu_xlate_reg() 207 reg_end = reg_begin + sz - 1; in pcmu_xlate_reg() 229 new_rp->regspec_size = sz; in pcmu_xlate_reg() 232 n, new_rp->regspec_bustype, new_rp->regspec_addr, sz); in pcmu_xlate_reg()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_scfutil.c | 253 char *valstr, size_t sz) in smb_smf_get_string_property() argument 267 if (scf_value_get_astring(value, valstr, sz) < 0) { in smb_smf_get_string_property() 474 void *voidval, size_t sz) in smb_smf_set_opaque_property() argument 494 if (scf_value_set_opaque(value, voidval, sz) == 0) { in smb_smf_set_opaque_property() 535 void *v, size_t sz) in smb_smf_get_opaque_property() argument 549 if (scf_value_get_opaque(value, (char *)v, sz) != sz) { in smb_smf_get_opaque_property()
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tbl_data.c | 200 size_t sz; in tbl_cdata() local 227 sz = strlen(p + pos) + strlen(dat->string) + 2; in tbl_cdata() 228 dat->string = mandoc_realloc(dat->string, sz); in tbl_cdata() 229 (void)strlcat(dat->string, " ", sz); in tbl_cdata() 230 (void)strlcat(dat->string, p + pos, sz); in tbl_cdata()
|
/illumos-gate/usr/src/lib/libsctp/common/ |
H A D | sctp.c | 66 socklen_t sz; in sctp_bindx() local 76 sz = sizeof (struct sockaddr_in); in sctp_bindx() 79 sz = sizeof (struct sockaddr_in6); in sctp_bindx() 89 sz * addrcnt)); in sctp_bindx() 92 sz * addrcnt)); in sctp_bindx()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nlspath_checks.c | 257 extract_format(const char *fmt, char *norm, size_t sz, int strict) in extract_format() argument 269 (void) memset(norm, '\0', sz); in extract_format() 329 STORE(norm, sz, argp, '*'); in extract_format() 349 STORE(norm, sz, argp, '*'); in extract_format() 459 STORE(norm, sz, arg, conv); in extract_format()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cpupart.c | 223 int i, sz; in cpupart_lpl_initialize() local 225 sz = cp->cp_nlgrploads = lgrp_plat_max_lgrps(); in cpupart_lpl_initialize() 226 cp->cp_lgrploads = kmem_zalloc(sizeof (lpl_t) * sz, KM_SLEEP); in cpupart_lpl_initialize() 228 for (i = 0; i < sz; i++) { in cpupart_lpl_initialize() 234 cp->cp_lgrploads[i].lpl_rset_sz = sz + 1; in cpupart_lpl_initialize() 236 kmem_zalloc(sizeof (struct lgrp_ld *) * (sz + 1), KM_SLEEP); in cpupart_lpl_initialize() 238 kmem_zalloc(sizeof (int) * (sz + 1), KM_SLEEP); in cpupart_lpl_initialize() 249 int i, sz; in cpupart_lpl_teardown() local 255 sz = lpl->lpl_rset_sz; in cpupart_lpl_teardown() 256 kmem_free(lpl->lpl_rset, sizeof (struct lgrp_ld *) * sz); in cpupart_lpl_teardown() [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | stable.c | 72 stable_init(unsigned sz) in stable_init() argument 75 if (sz == 0) in stable_init() 78 Stablesz = sz; in stable_init()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4x_dispatch.c | 32 size_t sz; in rfs4_err_resp() local 35 sz = resp->array_len * sizeof (nfs_resop4); in rfs4_err_resp() 36 resp->array = kmem_zalloc(sz, KM_SLEEP); in rfs4_err_resp()
|
/illumos-gate/usr/src/lib/libscf/common/ |
H A D | scf_tmpl.c | 182 char *buf = malloc(sz); in _scf_tmpl_get_fmri() 4169 name = malloc(sz); in _make_value_name() 4186 if (strlcat(name, encoded, sz) >= sz) { in _make_value_name() 4193 if (strlcat(name, "_", sz) >= sz) { in _make_value_name() 4200 if (strlcat(name, desc_name, sz) >= sz) { in _make_value_name() 4207 if (strlcat(name, "_", sz) >= sz) { in _make_value_name() 5003 buf = malloc(sz); in _val_to_string() 5786 vstr = malloc(sz); in _value_in_constraint() 5937 sz = (sz - ret) > 0 ? sz - ret : 0; in scf_tmpl_strerror() 5944 sz = (sz - ret) > 0 ? sz - ret : 0; in scf_tmpl_strerror() [all …]
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioGain.cc | 345 Double sz; in process_weighted() local 350 sz = (Double) frames; in process_weighted() 358 gain_cache_size = sz; in process_weighted() 359 } else if (sz > gain_cache_size) { in process_weighted()
|