/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | statfs.c | 25 cnvtvfs64(struct statfs64 *buf, struct statvfs64 *vbuf) in cnvtvfs64() argument 28 buf->f_bsize = vbuf->f_frsize; in cnvtvfs64() 29 buf->f_blocks = vbuf->f_blocks; in cnvtvfs64() 30 buf->f_bfree = vbuf->f_bfree; in cnvtvfs64() 31 buf->f_bavail = vbuf->f_bavail; in cnvtvfs64() 32 buf->f_files = vbuf->f_files; in cnvtvfs64() 33 buf->f_ffree = vbuf->f_ffree; in cnvtvfs64() 34 buf->f_fsid.val[0] = vbuf->f_fsid; in cnvtvfs64() 42 struct statvfs64 vbuf; in statfs64() local 49 if ((ret = statvfs64(path, &vbuf)) != -1) in statfs64() [all …]
|
/illumos-gate/usr/src/cmd/picl/prtpicl/ |
H A D | prtpicl.c | 134 print_bytearray(int lvl, uint8_t *vbuf, size_t nbytes) in print_bytearray() argument 170 (void) printf(" %02x ", vbuf[i]); in print_bytearray() 185 void *vbuf; in print_propval() local 198 vbuf = alloca(propinfo->size); in print_propval() 202 err = picl_get_propval(proph, vbuf, propinfo->size); in print_propval() 218 (void) printf(" %s ", (char *)vbuf); in print_propval() 224 (void) printf(" %d ", *(int8_t *)vbuf); in print_propval() 227 (void) printf(" %" PRId16 " ", *(int16_t *)vbuf); in print_propval() 230 (void) printf(" %" PRId32 " ", *(int32_t *)vbuf); in print_propval() 233 (void) printf(" %" PRId64 " ", *(int64_t *)vbuf); in print_propval() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_2xml.c | 126 char vbuf[INT64BUFSZ]; in txml_print_prop() local 136 (void) snprintf(vbuf, INT64BUFSZ, "%d", val); in txml_print_prop() 138 Int32, Value, vbuf, NULL); in txml_print_prop() 148 (void) snprintf(vbuf, INT64BUFSZ, "0x%x", val); in txml_print_prop() 150 UInt32, Value, vbuf, NULL); in txml_print_prop() 160 (void) snprintf(vbuf, INT64BUFSZ, "%" PRId64, val); in txml_print_prop() 162 Int64, Value, vbuf, NULL); in txml_print_prop() 172 (void) snprintf(vbuf, INT64BUFSZ, "0x%" PRIx64, val); in txml_print_prop() 174 UInt64, Value, vbuf, NULL); in txml_print_prop() 235 (void) snprintf(vbuf, INT64BUFSZ, "%d", val[i]); in txml_print_prop() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/cmd/mkholes/ |
H A D | mkholes.c | 147 char *buf, *vbuf; in main() local 165 vbuf = (char *)umem_zalloc(readlen, UMEM_NOFAIL); in main() 173 if (memcmp(buf, vbuf, bytes) != 0) { in main() 183 umem_free(vbuf, readlen); in main() 187 vbuf = (char *)umem_alloc(len, UMEM_NOFAIL); in main() 193 if ((pread(fd, vbuf, len, off)) != len) { in main() 198 if (memcmp(buf, vbuf, len) != 0) { in main() 205 umem_free(vbuf, len); in main()
|
/illumos-gate/usr/src/lib/librestart/common/ |
H A D | librestart.c | 2379 char *buf = ci->vbuf; in get_profile() 2512 char *vbuf = ci->vbuf; in get_ids() local 2526 vbuf, vbuf_sz, prop, val) == 0 || get_astring_val(instpg, in get_ids() 2527 SCF_PROPERTY_USER, vbuf, vbuf_sz, prop, in get_ids() 2532 if ((r = get_uid(vbuf, ci, &ci->uid)) != 0) { in get_ids() 2536 "error %d.", SCF_PROPERTY_USER, vbuf, r)); in get_ids() 2539 if (!(get_astring_val(methpg, SCF_PROPERTY_GROUP, vbuf, vbuf_sz, prop, in get_ids() 2540 val) == 0 || get_astring_val(instpg, SCF_PROPERTY_GROUP, vbuf, in get_ids() 2543 (void) strcpy(vbuf, ":default"); in get_ids() 2551 if (strcmp(vbuf, ":default") != 0) { in get_ids() [all …]
|
H A D | librestart.h | 293 char *vbuf; member
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/netcfgd/ |
H A D | netcfgd.c | 76 char *vbuf; in nlog() local 79 if (vasprintf(&vbuf, fmt, ap) != -1) { in nlog() 80 log_out(severity, vbuf); in nlog() 81 free(vbuf); in nlog()
|
/illumos-gate/usr/src/lib/libpicltree/ |
H A D | picltree.c | 2164 void *vbuf, size_t size) in read_reserved_propval_and_unlock() argument 2180 (void) memcpy(vbuf, srcp, sizeof (picl_nodehdl_t)); in read_reserved_propval_and_unlock() 2193 read_propval_and_unlock(picl_obj_t *nodep, picl_obj_t *propp, void *vbuf, in read_propval_and_unlock() argument 2217 err = (volrd)(&rarg, vbuf); in read_propval_and_unlock() 2220 (void) strlcpy(vbuf, propp->prop_val, propp->prop_size); in read_propval_and_unlock() 2222 (void) memcpy(vbuf, propp->prop_val, propp->prop_size); in read_propval_and_unlock() 2230 xptree_get_propval_with_cred(picl_prophdl_t proph, void *vbuf, size_t size, in xptree_get_propval_with_cred() argument 2252 return (read_propval_and_unlock(nodep, propp, vbuf, cred)); in xptree_get_propval_with_cred() 2259 ptree_get_propval(picl_prophdl_t proph, void *vbuf, size_t size) in ptree_get_propval() argument 2261 return (xptree_get_propval_with_cred(proph, vbuf, size, picld_cred)); in ptree_get_propval() [all …]
|
H A D | picltree.h | 89 extern int ptree_create_prop(const ptree_propinfo_t *pi, const void *vbuf, 98 const char *name, const void *vbuf, size_t sz); 121 ptree_propinfo_t *infop, void *vbuf,
|
H A D | ptree_impl.h | 227 extern void cvt_ptree2picl(picl_hdl_t *vbuf);
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | startd.c | 490 char *buf, *vbuf; in read_startd_config() local 635 vbuf = startd_alloc(max_scf_value_size); in read_startd_config() 698 if (scf_value_get_astring(val, vbuf, max_scf_value_size) < 0) in read_startd_config() 702 if (strcmp("verbose", vbuf) == 0) { in read_startd_config() 705 } else if (strcmp("debug", vbuf) == 0) { in read_startd_config() 708 } else if (strcmp("quiet", vbuf) == 0) { in read_startd_config() 712 "value '%s' ignored\n", vbuf); in read_startd_config() 716 if (strcmp("quiet", vbuf) == 0) { in read_startd_config() 718 } else if (strcmp("verbose", vbuf) == 0) { in read_startd_config() 723 "ignored\n", vbuf); in read_startd_config() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | logging.c | 60 char vbuf[256]; in log_format() local 63 buf = vbuf; in log_format() 64 bufsize = sizeof (vbuf); in log_format()
|
H A D | util.c | 189 char vbuf[1024]; in nwamd_start_childv() local 191 vbuf[0] = 0; in nwamd_start_childv() 192 n = sizeof (vbuf); in nwamd_start_childv() 194 n -= strlcat(vbuf, " ", n); in nwamd_start_childv() 195 n -= strlcat(vbuf, argv[i], n); in nwamd_start_childv() 235 nlog(LOG_ERR, "'%s%s' %s with signal %d (%s)", command, vbuf, in nwamd_start_childv() 240 nlog(LOG_INFO, "'%s%s' completed normally: %d", command, vbuf, in nwamd_start_childv()
|
/illumos-gate/usr/src/lib/libcpc/i386/ |
H A D | conf_pentium.c | 508 uint32_t vbuf[4]; in cpc_getcpuver() local 513 maxeax = cpc_getcpuid(0, &vbuf[0], &vbuf[2], &vbuf[1]); in cpc_getcpuver() 515 char *vendor = (char *)vbuf; in cpc_getcpuver()
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tbl_html.c | 123 char hbuf[4], vbuf[4]; in print_tbl() local 201 (void)snprintf(vbuf, sizeof(vbuf), in print_tbl() 203 vspans = vbuf; in print_tbl()
|
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 1057 get_path_state_name(ptree_rarg_t *rarg, void *vbuf) in get_path_state_name() argument 1067 (void) strlcpy(vbuf, "unknown", MAX_STATE_SIZE); in get_path_state_name() 1131 (void) strlcpy(vbuf, path_state_name(di_path_state(pi)), in get_path_state_name() 1903 get_pi_state(ptree_rarg_t *rarg, void *vbuf) in get_pi_state() argument 1914 (void) strlcpy(vbuf, PS_ONLINE, MAX_STATE_SIZE); in get_pi_state() 1917 (void) strlcpy(vbuf, PS_OFFLINE, MAX_STATE_SIZE); in get_pi_state() 1920 (void) strlcpy(vbuf, PS_NOINTR, MAX_STATE_SIZE); in get_pi_state() 1923 (void) strlcpy(vbuf, PS_SPARE, MAX_STATE_SIZE); in get_pi_state() 1926 (void) strlcpy(vbuf, PS_FAULTED, MAX_STATE_SIZE); in get_pi_state() 1929 (void) strlcpy(vbuf, PS_POWEROFF, MAX_STATE_SIZE); in get_pi_state() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | zfs_vfsops.h | 154 uint64_t *cookiep, void *vbuf, uint64_t *bufsizep);
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_backup_reader.c | 1207 char vbuf[ZFS_MAXPROPLEN]; in zfs_put_prop_cb() local 1223 if (zfs_prop_get(mhd->ml_handle, prop, vbuf, sizeof (vbuf), in zfs_put_prop_cb() 1231 (void) strlcpy(mpp->mp_value, vbuf, ZFS_MAXPROPLEN); in zfs_put_prop_cb()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | main.c | 2404 char *p, *q, *vbuf; in update_db_entry() local 2415 vbuf = malloc(vlen); in update_db_entry() 2416 if (vbuf == NULL) in update_db_entry() 2418 q = vbuf; in update_db_entry() 2420 q += slprintf(q, vbuf + vlen - q, "%s;", p); in update_db_entry() 2424 dbuf.dptr = vbuf; in update_db_entry()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu.c | 2557 byteswap_uint64_array(void *vbuf, size_t size) in byteswap_uint64_array() argument 2559 uint64_t *buf = vbuf; in byteswap_uint64_array() 2570 byteswap_uint32_array(void *vbuf, size_t size) in byteswap_uint32_array() argument 2572 uint32_t *buf = vbuf; in byteswap_uint32_array() 2583 byteswap_uint16_array(void *vbuf, size_t size) in byteswap_uint16_array() argument 2585 uint16_t *buf = vbuf; in byteswap_uint16_array() 2597 byteswap_uint8_array(void *vbuf, size_t size) in byteswap_uint8_array() argument
|
H A D | zap.c | 89 fzap_byteswap(void *vbuf, size_t size) in fzap_byteswap() argument 91 uint64_t block_type = *(uint64_t *)vbuf; in fzap_byteswap() 94 zap_leaf_byteswap(vbuf, size); in fzap_byteswap() 97 byteswap_uint64_array(vbuf, size); in fzap_byteswap()
|
H A D | arc.c | 1000 hdr_full_cons(void *vbuf, void *unused, int kmflag) in hdr_full_cons() argument 1002 arc_buf_hdr_t *hdr = vbuf; in hdr_full_cons() 1017 hdr_full_crypt_cons(void *vbuf, void *unused, int kmflag) in hdr_full_crypt_cons() argument 1019 arc_buf_hdr_t *hdr = vbuf; in hdr_full_crypt_cons() 1021 (void) hdr_full_cons(vbuf, unused, kmflag); in hdr_full_crypt_cons() 1030 hdr_l2only_cons(void *vbuf, void *unused, int kmflag) in hdr_l2only_cons() argument 1032 arc_buf_hdr_t *hdr = vbuf; in hdr_l2only_cons() 1042 buf_cons(void *vbuf, void *unused, int kmflag) in buf_cons() argument 1044 arc_buf_t *buf = vbuf; in buf_cons() 1059 hdr_full_dest(void *vbuf, void *unused) in hdr_full_dest() argument [all …]
|
/illumos-gate/usr/src/cmd/dladm/ |
H A D | dladm.c | 5128 vnic_fields_buf_t vbuf; in print_vnic() local 5185 (void) snprintf(vbuf.vnic_link, sizeof (vbuf.vnic_link), in print_vnic() 5190 (void) snprintf(vbuf.vnic_over, sizeof (vbuf.vnic_over), in print_vnic() 5192 (void) snprintf(vbuf.vnic_speed, in print_vnic() 5193 sizeof (vbuf.vnic_speed), "%u", in print_vnic() 5200 (void) snprintf(vbuf.vnic_macaddrtype, in print_vnic() 5201 sizeof (vbuf.vnic_macaddrtype), in print_vnic() 5205 (void) snprintf(vbuf.vnic_macaddrtype, in print_vnic() 5206 sizeof (vbuf.vnic_macaddrtype), in print_vnic() 5210 (void) snprintf(vbuf.vnic_macaddrtype, in print_vnic() [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_ioctl.c | 1150 uint8_t *vpd, *vpdptr, *vbuf; in ql_vpd_load() local 1183 vbuf = vpd; in ql_vpd_load() 1184 while (vbuf <= vpdptr) { in ql_vpd_load() 1185 cnt += *vbuf++; in ql_vpd_load()
|
/illumos-gate/usr/src/uts/common/io/mlxcx/ |
H A D | mlxcx_gld.c | 407 mlxcx_mac_txr_read(void *arg, uint_t id, uint_t page, void *vbuf, in mlxcx_mac_txr_read() argument 412 uint8_t *buf = vbuf; in mlxcx_mac_txr_read() 417 if (id != 0 || vbuf == NULL || nbytes == 0 || nread == NULL) in mlxcx_mac_txr_read()
|