Home
last modified time | relevance | path

Searched refs:vbuf (Results 1 – 25 of 30) sorted by path

12

/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfssubr.c188 byteswap_uint64_array(void *vbuf, size_t size) in byteswap_uint64_array() argument
190 uint64_t *buf = vbuf; in byteswap_uint64_array()
/illumos-gate/usr/src/cmd/cmd-inet/lib/netcfgd/
H A Dnetcfgd.c76 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/cmd/cmd-inet/lib/nwamd/
H A Dlogging.c60 char vbuf[256]; in log_format() local
63 buf = vbuf; in log_format()
64 bufsize = sizeof (vbuf); in log_format()
H A Dutil.c189 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/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c2404 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/cmd/dladm/
H A Ddladm.c5118 vnic_fields_buf_t vbuf; in print_vnic() local
5175 (void) snprintf(vbuf.vnic_link, sizeof (vbuf.vnic_link), in print_vnic()
5180 (void) snprintf(vbuf.vnic_over, sizeof (vbuf.vnic_over), in print_vnic()
5182 (void) snprintf(vbuf.vnic_speed, in print_vnic()
5183 sizeof (vbuf.vnic_speed), "%u", in print_vnic()
5190 (void) snprintf(vbuf.vnic_macaddrtype, in print_vnic()
5191 sizeof (vbuf.vnic_macaddrtype), in print_vnic()
5195 (void) snprintf(vbuf.vnic_macaddrtype, in print_vnic()
5196 sizeof (vbuf.vnic_macaddrtype), in print_vnic()
5200 (void) snprintf(vbuf.vnic_macaddrtype, in print_vnic()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl_html.c123 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/ndmpd/tlm/
H A Dtlm_backup_reader.c1207 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/picl/plugins/common/devtree/
H A Dpicldevtree.c1057 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/cmd/picl/prtpicl/
H A Dprtpicl.c134 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/cmd/svc/startd/
H A Dstartd.c485 char *buf, *vbuf; in read_startd_config() local
630 vbuf = startd_alloc(max_scf_value_size); in read_startd_config()
693 if (scf_value_get_astring(val, vbuf, max_scf_value_size) < 0) in read_startd_config()
697 if (strcmp("verbose", vbuf) == 0) { in read_startd_config()
700 } else if (strcmp("debug", vbuf) == 0) { in read_startd_config()
703 } else if (strcmp("quiet", vbuf) == 0) { in read_startd_config()
707 "value '%s' ignored\n", vbuf); in read_startd_config()
711 if (strcmp("quiet", vbuf) == 0) { in read_startd_config()
713 } else if (strcmp("verbose", vbuf) == 0) { in read_startd_config()
718 "ignored\n", vbuf); in read_startd_config()
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_2xml.c126 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/lib/libcpc/i386/
H A Dconf_pentium.c508 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/lib/libpicltree/
H A Dpicltree.c2164 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 Dpicltree.h89 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 Dptree_impl.h227 extern void cvt_ptree2picl(picl_hdl_t *vbuf);
/illumos-gate/usr/src/lib/librestart/common/
H A Dlibrestart.c2378 char *buf = ci->vbuf; in get_profile()
2511 char *vbuf = ci->vbuf; in get_ids() local
2525 vbuf, vbuf_sz, prop, val) == 0 || get_astring_val(instpg, in get_ids()
2526 SCF_PROPERTY_USER, vbuf, vbuf_sz, prop, in get_ids()
2531 if ((r = get_uid(vbuf, ci, &ci->uid)) != 0) { in get_ids()
2535 "error %d.", SCF_PROPERTY_USER, vbuf, r)); in get_ids()
2538 if (!(get_astring_val(methpg, SCF_PROPERTY_GROUP, vbuf, vbuf_sz, prop, in get_ids()
2539 val) == 0 || get_astring_val(instpg, SCF_PROPERTY_GROUP, vbuf, in get_ids()
2542 (void) strcpy(vbuf, ":default"); in get_ids()
2550 if (strcmp(vbuf, ":default") != 0) { in get_ids()
[all …]
H A Dlibrestart.h288 char *vbuf; member
/illumos-gate/usr/src/test/zfs-tests/cmd/mkholes/
H A Dmkholes.c147 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/ucblib/libucb/port/gen/
H A Dstatfs.c25 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/uts/common/fs/zfs/
H A Darc.c1000 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 …]
H A Ddmu.c2557 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 Ddnode.c365 dnode_buf_byteswap(void *vbuf, size_t size) in dnode_buf_byteswap() argument
373 dnode_phys_t *dnp = (void *)(((char *)vbuf) + i); in dnode_buf_byteswap()
H A Dzap.c89 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()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzfs_vfsops.h153 uint64_t *cookiep, void *vbuf, uint64_t *bufsizep);

12