/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | prb_proc.c | 909 int bufsz = BUFSZ; local 929 prbstat = prb_proc_read(proc_p, addr + offset, buffer, bufsz); 936 if (bufsz > 1) { 937 bufsz = 1; 948 for (i = 0; i < bufsz; i++) { 959 /* bummer, need to grab another bufsz characters */ 960 offset += bufsz; 962 ptr = (char *)realloc(ptr, offset + bufsz);
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | ctf.c | 748 size_t bufsz = h->cth_objtoff - h->cth_lbloff; local 754 for (ctl = (ctf_lblent_t *)buf; (caddr_t)ctl < buf + bufsz; ctl++) { 793 size_t bufsz = h->cth_funcoff - h->cth_objtoff; local 797 for (dptr = buf; dptr < buf + bufsz; dptr += 2) { 806 dptr - buf, bufsz); 836 size_t bufsz = h->cth_typeoff - h->cth_funcoff; local 845 while (dptr < buf + bufsz) { 905 size_t bufsz = h->cth_stroff - h->cth_typeoff; local 933 for (dptr = buf, tcnt = 0, tid = 1; dptr < buf + bufsz; tcnt++, tid++) { 1236 ctf_load(char *file, caddr_t buf, size_t bufsz, symit_data_ argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/loader/ |
H A D | main.c | 847 UINTN bufsz = 0, i, j; local 851 status = BS->LocateHandle(AllHandles, NULL, NULL, &bufsz, buffer); 857 if ((buffer = malloc(bufsz)) == NULL) { 862 status = BS->LocateHandle(AllHandles, NULL, NULL, &bufsz, buffer); 871 for (i = 0; i < (bufsz / sizeof (EFI_HANDLE)); i++) { 971 UINTN bufsz = 0, i; local 978 status = BS->LocateHandle(ByProtocol, &serial_io, NULL, &bufsz, buffer); 984 if ((buffer = malloc(bufsz)) == NULL) { 992 status = BS->LocateHandle(ByProtocol, &serial_io, NULL, &bufsz, buffer); 1000 for (i = 0; i < (bufsz / sizeo [all...] |
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | dfs.c | 1055 char *linkpath, size_t bufsz) 1064 (void) snprintf(linkpath, bufsz, "%s/%s", rootdir, relpath); 1077 (void) snprintf(linkpath, bufsz, "%s/%s", rootdir, relpath); 1281 dfs_root_encode(dfs_info_t *info, char **buf, size_t *bufsz) argument 1305 rc = nvlist_pack(nvl, buf, bufsz, NV_ENCODE_NATIVE, 0); 1317 dfs_root_decode(dfs_info_t *info, char *buf, size_t bufsz, uint32_t infolvl) argument 1328 if (nvlist_unpack(buf, bufsz, &nvl, 0) != 0) 1518 dfs_link_encode(dfs_info_t *info, char *buf, size_t bufsz) argument 1528 sz = snprintf(buf, bufsz, "%u:%u:%u:%u:%s:%u:%u:%s", 1533 if (sz > bufsz) { 1054 dfs_namespace_findlink(const char *name, char *relpath, char *linkpath, size_t bufsz) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_sg.c | 745 int len = 0, bufsz = (int)bufsize; local 747 ip2str(&srv->sd_addr, buf, bufsz, 0); 750 bufsz -= len; 761 inc = snprintf(buf+len, bufsz, ":%d", h_min); 763 inc = snprintf(buf+len, bufsz, ":%d-%d", h_min, h_max); 765 if (inc > bufsz) /* too little space */
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | lufs_top.c | 698 caddr_t buf, uint32_t bufsz) 711 ASSERT((bufsz & DEV_BMASK) == 0); 716 for (hmof = vamof - (va - buf), nb1 = nb; bufsz; 717 bufsz -= hnb, hmof += hnb, buf += hnb, nb1 -= hnb) { 719 if (hnb > bufsz) 720 hnb = bufsz; 697 top_log(ufsvfs_t *ufsvfsp, char *va, offset_t vamof, off_t nb, caddr_t buf, uint32_t bufsz) argument
|
H A D | lufs_map.c | 1212 uint32_t bufsz) /* Size of buf */ 1225 ASSERT((bufsz & DEV_BMASK) == 0); 1282 (crb->c_nb != bufsz)) { 1286 bufsz); 1311 ASSERT(crb->c_nb == bufsz); 1312 bcopy(buf, crb->c_buf, bufsz); 1329 if (((ufs_crb_size + bufsz) < ufs_crb_limit) && 1330 (kmem_avail() > bufsz)) { 1336 crbsav->c_buf = kmem_alloc(bufsz, KM_NOSLEEP); 1339 (uint64_t)bufsz); 1206 logmap_add_buf( ml_unit_t *ul, char *va, offset_t bufmof, mapentry_t *melist, caddr_t buf, uint32_t bufsz) argument [all...] |
/illumos-gate/usr/src/lib/libshare/autofs/ |
H A D | libshare_autofs.c | 445 int ret = SA_OK, bufsz = 0, i; local 455 bufsz = PATH_MAX; 457 instance, sctype, AUTOFS_FMRI, &bufsz);
|
/illumos-gate/usr/src/cmd/acctadm/ |
H A D | res.c | 345 buf2str(ac_res_t *buffer, size_t bufsz, int state, int type) argument 351 if ((buf = malloc(bufsz)) == NULL || 355 (void) memcpy(buf, buffer, bufsz);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | pool_pset.c | 848 size_t bufsz; local 894 bufsz = 0; 895 (void) nvlist_pack(nvl, &buf, &bufsz, 897 (void) ea_attach_item(eo_cpu, buf, bufsz, 900 kmem_free(buf, bufsz); 909 bufsz = 0; 910 (void) nvlist_pack(nvl, &buf, &bufsz, NV_ENCODE_NATIVE, 0); 911 (void) ea_attach_item(eo_pset, buf, bufsz, 914 kmem_free(buf, bufsz);
|
H A D | pool.c | 761 size_t bufsz = 0; local 782 (void) nvlist_pack(pool_sys_prop, &buf, &bufsz, NV_ENCODE_NATIVE, 0); 783 (void) ea_attach_item(eo_system, buf, bufsz, 785 kmem_free(buf, bufsz); 797 size_t bufsz; local 807 bufsz = 0; 815 (void) nvlist_pack(pool->pool_props, &buf, &bufsz, 817 (void) ea_attach_item(eo_pool, buf, bufsz, 819 kmem_free(buf, bufsz);
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | ncgrpw.c | 598 size_t bufsz; local 601 bufsz = strlen(instroot) + strlen(GROUP) + 1; 602 if ((buf = (char *)malloc(bufsz)) == NULL) { 607 (void) snprintf(buf, bufsz, "%s%s", instroot, GROUP);
|
/illumos-gate/usr/src/lib/lvm/libsvm/common/ |
H A D | update_mdconf.c | 239 int bufsz, /* buffer size */ 261 while (fgets(buf, bufsz, fp) != NULL) { 235 snarf_n_modify_bootlist( FILE *fp, char *tname, char *buf, int bufsz, ftype_t mddb_file ) argument
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | pdu.c | 116 size_t bufsz = SNMP_DEF_PKTBUF_SZ; local 128 if ((p = asn_build_sequence(buf, &bufsz, id, 0)) == NULL) { 138 if ((p = asn_build_int(p, &bufsz, id, pdu->version)) == NULL) { 147 p = asn_build_string(p, &bufsz, id, pdu->community, pdu->community_len); 156 if ((p = snmp_build_pdu(pdu, p, &bufsz)) == NULL) {
|
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_isoch_chan.c | 704 size_t nbufs, bufsz, tailsz; local 721 bufsz = segsz / nbufs; 722 tailsz = bufsz + (segsz - bufsz * nbufs); 726 *bufszp = bufsz * pktsz;
|
/illumos-gate/usr/src/cmd/ptools/pargs/ |
H A D | pargs.c | 978 size_t inleft, outleft, bufsz = 64; local 983 outstrptr = outstr = safe_zalloc(bufsz + 1); 984 outleft = bufsz; 1002 *(outstr + (bufsz - outleft)) = '\0'; 1005 bufsz *= 2;
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsmap.c | 1556 * bufsz length of the buffer 1561 get_install_devlink(char *physpath, char *buf, size_t bufsz) argument 1608 return (strlcpy(buf, devname, bufsz)); 1618 * bufsz length of the buffer 1623 get_target_devlink(char *rootdir, char *physpath, char *buf, size_t bufsz) argument 1666 bufsz)); 1729 * bufsz length of the buffer 1735 size_t bufsz) 1742 if (rootdir == NULL || devname == NULL || buf == NULL || bufsz == 0) 1779 return (get_install_devlink(physpath, buf, bufsz)); 1734 devfs_target2install(const char *rootdir, const char *devname, char *buf, size_t bufsz) argument 1795 devfs_install2target(const char *rootdir, const char *devname, char *buf, size_t bufsz) argument [all...] |
/illumos-gate/usr/src/uts/intel/io/drm/ |
H A D | radeon_state.c | 291 if (4 * *cmdsz > cmdbuf->bufsz) { 2834 if (sz * sizeof (int) > cmdbuf->bufsz) { 2850 cmdbuf->bufsz -= sz * sizeof (int); 2870 cmdbuf->bufsz -= sz * sizeof (int); 2893 cmdbuf->bufsz -= sz * sizeof (int); 2915 cmdbuf->bufsz -= sz * sizeof (int); 2929 if (sz * 4 > cmdbuf->bufsz) 2941 cmdbuf->bufsz -= sz * sizeof (int); 2966 cmdbuf->bufsz -= cmdsz * 4; 3028 cmdbuf->bufsz [all...] |
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_main.c | 118 int ret = 0, bufsz; local 129 bufsz = 6; 131 DEFAULT_INSTANCE, SCF_TYPE_BOOLEAN, AUTOMOUNTD, &bufsz); 138 bufsz = 6; 140 SCF_TYPE_BOOLEAN, AUTOMOUNTD, &bufsz); 147 bufsz = 6; 149 SCF_TYPE_INTEGER, AUTOMOUNTD, &bufsz);
|
/illumos-gate/usr/src/uts/common/fs/devfs/ |
H A D | devfs_vnops.c | 872 size_t bufsz; local 907 bufsz = uiop->uio_iov->iov_len; 908 de = bufp = kmem_alloc(bufsz, KM_SLEEP); 919 if ((movesz + reclen) > bufsz) 937 if ((movesz + reclen) > bufsz) 975 if ((movesz + reclen) > bufsz) { 1021 kmem_free(bufp, bufsz);
|
/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | ioctl.c | 372 int bufsz = 1<<20; local 389 buf = malloc(bufsz); 399 zc.zc_nvlist_dst_size = bufsz;
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/ |
H A D | hermon_wr.h | 187 hermon_workq_hdr_t *hermon_wrid_wqhdr_create(int bufsz);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | socks.c | 102 * Read single line from a descriptor into buffer up to bufsz bytes, 107 proxy_read_line(int fd, char *buf, size_t bufsz) argument 112 if (off >= bufsz)
|
/illumos-gate/usr/src/cmd/svc/svcprop/ |
H A D | svcprop.c | 200 ssize_t bufsz, r; local 202 bufsz = scf_value_get_as_string(val, NULL, 0) + 1; 203 if (bufsz - 1 < 0) 206 buf = safe_malloc(bufsz); 208 r = scf_value_get_as_string(val, buf, bufsz); 209 assert(r + 1 == bufsz);
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiocmi/ |
H A D | audiocmi.c | 196 PUT16(dev, port->reg_bufsz, (port->bufsz / 4) - 1); 197 PUT16(dev, port->reg_fragsz, (port->bufsz / 4) - 1); 235 offset = (port->bufsz / 4) - (GET16(dev, port->reg_bufsz) + 1); 239 count = ((port->bufsz / 4) - port->offset) + offset; 788 port->bufsz = port->nframes * port->nchan * 2; 795 if (ddi_dma_mem_alloc(port->dmah, port->bufsz, &buf_attr,
|