Home
last modified time | relevance | path

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

12

/titanic_50/usr/src/ucblib/libucb/port/gen/
H A Dstatfs.c27 cnvtvfs64(struct statfs64 *buf, struct statvfs64 *vbuf) in cnvtvfs64() argument
30 buf->f_bsize = vbuf->f_frsize; in cnvtvfs64()
31 buf->f_blocks = vbuf->f_blocks; in cnvtvfs64()
32 buf->f_bfree = vbuf->f_bfree; in cnvtvfs64()
33 buf->f_bavail = vbuf->f_bavail; in cnvtvfs64()
34 buf->f_files = vbuf->f_files; in cnvtvfs64()
35 buf->f_ffree = vbuf->f_ffree; in cnvtvfs64()
36 buf->f_fsid.val[0] = vbuf->f_fsid; in cnvtvfs64()
44 struct statvfs64 vbuf; in statfs64() local
51 if ((ret = statvfs64(path, &vbuf)) != -1) in statfs64()
[all …]
/titanic_50/usr/src/lib/libbc/libc/sys/common/
H A D_statfs.c82 cpstatvfs(struct statfs *bsdbuf, struct statvfs *vbuf) in cpstatvfs() argument
85 bsdbuf->f_bsize = (vbuf->f_frsize != 0) ? in cpstatvfs()
86 (long) vbuf->f_frsize: (long) vbuf->f_bsize; in cpstatvfs()
87 bsdbuf->f_blocks = (long) vbuf->f_blocks; in cpstatvfs()
88 bsdbuf->f_bfree = (long) vbuf->f_bfree; in cpstatvfs()
89 bsdbuf->f_bavail = (long) vbuf->f_bavail; in cpstatvfs()
90 bsdbuf->f_files = (long) vbuf->f_files; in cpstatvfs()
91 bsdbuf->f_ffree = (long) vbuf->f_ffree; in cpstatvfs()
92 bsdbuf->f_fsid.val[0] = vbuf->f_fsid; in cpstatvfs()
/titanic_50/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 …]
/titanic_50/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()
/titanic_50/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_2xml.c110 char vbuf[INT64BUFSZ], tbuf[32], *pval = NULL, *aval = NULL; in txml_print_prop() local
117 (void) snprintf(vbuf, INT64BUFSZ, "%d", val); in txml_print_prop()
119 pval = vbuf; in txml_print_prop()
128 (void) snprintf(vbuf, INT64BUFSZ, "0x%x", val); in txml_print_prop()
130 pval = vbuf; in txml_print_prop()
139 (void) snprintf(vbuf, INT64BUFSZ, "0x%llx", in txml_print_prop()
142 pval = vbuf; in txml_print_prop()
151 (void) snprintf(vbuf, INT64BUFSZ, "0x%llx", in txml_print_prop()
154 pval = vbuf; in txml_print_prop()
202 (void) sprintf(vbuf, " 0x%x", val[i]); in txml_print_prop()
[all …]
/titanic_50/usr/src/lib/librestart/common/
H A Dlibrestart.c2377 char *buf = ci->vbuf; in get_profile()
2510 char *vbuf = ci->vbuf; in get_ids() local
2524 vbuf, vbuf_sz, prop, val) == 0 || get_astring_val(instpg, in get_ids()
2525 SCF_PROPERTY_USER, vbuf, vbuf_sz, prop, in get_ids()
2530 if ((r = get_uid(vbuf, ci, &ci->uid)) != 0) { in get_ids()
2534 "error %d.", SCF_PROPERTY_USER, vbuf, r)); in get_ids()
2537 if (!(get_astring_val(methpg, SCF_PROPERTY_GROUP, vbuf, vbuf_sz, prop, in get_ids()
2538 val) == 0 || get_astring_val(instpg, SCF_PROPERTY_GROUP, vbuf, in get_ids()
2541 (void) strcpy(vbuf, ":default"); in get_ids()
2549 if (strcmp(vbuf, ":default") != 0) { in get_ids()
[all …]
H A Dlibrestart.h285 char *vbuf; member
/titanic_50/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()
/titanic_50/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.h91 extern int ptree_create_prop(const ptree_propinfo_t *pi, const void *vbuf,
100 const char *name, const void *vbuf, size_t sz);
123 ptree_propinfo_t *infop, void *vbuf,
H A Dllib-lpicltree44 int ptree_create_prop(const ptree_propinfo_t *pi, const void *vbuf,
53 const void *vbuf, unsigned int sz);
74 ptree_propinfo_t *infop, void *vbuf,
H A Dptree_impl.h229 extern void cvt_ptree2picl(picl_hdl_t *vbuf);
/titanic_50/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()
/titanic_50/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 …]
/titanic_50/usr/src/lib/libcpc/i386/
H A Dconf_pentium.c510 uint32_t vbuf[4]; in cpc_getcpuver() local
515 maxeax = cpc_getcpuid(0, &vbuf[0], &vbuf[2], &vbuf[1]); in cpc_getcpuver()
517 char *vendor = (char *)vbuf; in cpc_getcpuver()
/titanic_50/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.c1039 get_path_state_name(ptree_rarg_t *rarg, void *vbuf) in get_path_state_name() argument
1049 (void) strlcpy(vbuf, "unknown", MAX_STATE_SIZE); in get_path_state_name()
1113 (void) strlcpy(vbuf, path_state_name(di_path_state(pi)), in get_path_state_name()
1885 get_pi_state(ptree_rarg_t *rarg, void *vbuf) in get_pi_state() argument
1896 (void) strlcpy(vbuf, PS_ONLINE, MAX_STATE_SIZE); in get_pi_state()
1899 (void) strlcpy(vbuf, PS_OFFLINE, MAX_STATE_SIZE); in get_pi_state()
1902 (void) strlcpy(vbuf, PS_NOINTR, MAX_STATE_SIZE); in get_pi_state()
1905 (void) strlcpy(vbuf, PS_SPARE, MAX_STATE_SIZE); in get_pi_state()
1908 (void) strlcpy(vbuf, PS_FAULTED, MAX_STATE_SIZE); in get_pi_state()
1911 (void) strlcpy(vbuf, PS_POWEROFF, MAX_STATE_SIZE); in get_pi_state()
[all …]
/titanic_50/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/
H A Dpiclfrutree.c1041 void *vbuf; in find_ref_parent() local
1057 vbuf = alloca(propinfo.piclinfo.size); in find_ref_parent()
1058 if (vbuf == NULL) in find_ref_parent()
1061 if (ptree_get_propval(proph, vbuf, in find_ref_parent()
1067 if (strcmp(fru_arg->node_name, (char *)vbuf) == 0) { in find_ref_parent()
1082 void *vbuf; in get_reference_handle() local
1156 vbuf = alloca(propinfo.piclinfo.size); in get_reference_handle()
1157 if (vbuf == NULL) in get_reference_handle()
1160 if (ptree_get_propval(proph, vbuf, in get_reference_handle()
1165 if (strchr((char *)vbuf, ',') != NULL) { in get_reference_handle()
[all …]
/titanic_50/usr/src/cmd/picl/plugins/sun4u/snowbird/envmond/
H A Dpiclenvmond.c148 picl_nodehdl_t nodeh, picl_prophdl_t *propp, void *vbuf) in env_create_property() argument
166 rc = ptree_create_and_add_prop(nodeh, &propinfo, vbuf, propp); in env_create_property()
/titanic_50/usr/src/uts/common/fs/zfs/sys/
H A Dzfs_vfsops.h144 uint64_t *cookiep, void *vbuf, uint64_t *bufsizep);
/titanic_50/usr/src/uts/common/fs/zfs/
H A Ddmu.c1984 byteswap_uint64_array(void *vbuf, size_t size) in byteswap_uint64_array() argument
1986 uint64_t *buf = vbuf; in byteswap_uint64_array()
1997 byteswap_uint32_array(void *vbuf, size_t size) in byteswap_uint32_array() argument
1999 uint32_t *buf = vbuf; in byteswap_uint32_array()
2010 byteswap_uint16_array(void *vbuf, size_t size) in byteswap_uint16_array() argument
2012 uint16_t *buf = vbuf; in byteswap_uint16_array()
2024 byteswap_uint8_array(void *vbuf, size_t size) in byteswap_uint8_array() argument
H A Dzap.c59 fzap_byteswap(void *vbuf, size_t size) in fzap_byteswap() argument
63 block_type = *(uint64_t *)vbuf; in fzap_byteswap()
66 zap_leaf_byteswap(vbuf, size); in fzap_byteswap()
69 byteswap_uint64_array(vbuf, size); in fzap_byteswap()
/titanic_50/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()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c2407 char *p, *q, *vbuf; in update_db_entry() local
2418 vbuf = malloc(vlen); in update_db_entry()
2419 if (vbuf == NULL) in update_db_entry()
2421 q = vbuf; in update_db_entry()
2423 q += slprintf(q, vbuf + vlen - q, "%s;", p); in update_db_entry()
2427 dbuf.dptr = vbuf; in update_db_entry()
/titanic_50/usr/src/cmd/dladm/
H A Ddladm.c4972 vnic_fields_buf_t vbuf; in print_vnic() local
5029 (void) snprintf(vbuf.vnic_link, sizeof (vbuf.vnic_link), in print_vnic()
5034 (void) snprintf(vbuf.vnic_over, sizeof (vbuf.vnic_over), in print_vnic()
5036 (void) snprintf(vbuf.vnic_speed, in print_vnic()
5037 sizeof (vbuf.vnic_speed), "%u", in print_vnic()
5044 (void) snprintf(vbuf.vnic_macaddrtype, in print_vnic()
5045 sizeof (vbuf.vnic_macaddrtype), in print_vnic()
5049 (void) snprintf(vbuf.vnic_macaddrtype, in print_vnic()
5050 sizeof (vbuf.vnic_macaddrtype), in print_vnic()
5054 (void) snprintf(vbuf.vnic_macaddrtype, in print_vnic()
[all …]

12