Home
last modified time | relevance | path

Searched refs:valbuf (Results 1 – 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppbuiltin.c94 p = pp.valbuf; in ppbuiltin()
118 pp.token = pp.valbuf; in ppbuiltin()
133 *pp.valbuf = 0; in ppbuiltin()
159 p = pp.valbuf; in ppbuiltin()
219 p = pp.valbuf; in ppbuiltin()
332 p = pp.valbuf + 1; in ppbuiltin()
372 c = p != pp.valbuf; in ppbuiltin()
373 p = pp.valbuf + c; in ppbuiltin()
389 p = pp.valbuf + c; in ppbuiltin()
391 if (p == pp.valbuf) in ppbuiltin()
[all …]
H A Dppdata.c67 static char valbuf[MAXTOKEN+1]; /* builtin macro value buffer */ variable
173 &valbuf[0], /* valbuf */
H A Dppcontrol.c503 p = pp.valbuf; in ppcontrol()
509 p6 = getline(p, &pp.valbuf[MAXTOKEN], 0); in ppcontrol()
515 error(2, "%s: directive too long", pp.valbuf); in ppcontrol()
523 p = pp.valbuf; in ppcontrol()
580 error(1, "%s: unknown directive", pptokstr(pp.valbuf, 0)); in ppcontrol()
603 if (p = (char*)memchr(pp.valbuf + 1, MARK, p6 - pp.valbuf - 1)) in ppcontrol()
617 (*pp.pragma)(pp.valbuf + 1, p1, p3, p5, (pp.state & COMPILE) || (pp.mode & INIT) != 0); in ppcontrol()
1593 p = pp.valbuf; in ppcontrol()
1599 if (!(p6 = getline(p, &pp.valbuf[MAXTOKEN], !!(pp.option & PRAGMAEXPAND)))) in ppcontrol()
1602 error(2, "%s: directive too long", pp.valbuf); in ppcontrol()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dopenprom.c363 char *valbuf; in opromioctl_cb() local
409 kmem_free(valbuf, valsize + 1); in opromioctl_cb()
415 bcopy(valbuf, opp->oprom_array, valsize); in opromioctl_cb()
418 kmem_free(valbuf, valsize + 1); in opromioctl_cb()
429 kmem_free(valbuf, valsize + 1); in opromioctl_cb()
438 kmem_free(valbuf, valsize + 1); in opromioctl_cb()
611 valsize = strlen(valbuf); in opromioctl_cb()
617 (strcmp(valbuf, "name") == 0)) { in opromioctl_cb()
620 valsize = strlen(valbuf); in opromioctl_cb()
957 valbuflen = strlen(valbuf); in opromioctl_cb()
[all …]
/illumos-gate/usr/src/lib/libpicl/
H A Dpicl.h137 extern int picl_get_propval(picl_prophdl_t proph, void *valbuf,
140 const char *propname, void *valbuf, size_t sz);
141 extern int picl_set_propval(picl_prophdl_t proph, void *valbuf,
144 const char *propname, void *valbuf, size_t sz);
H A Dpicl.c356 picl_get_propval(picl_prophdl_t proph, void *valbuf, size_t nbytes) in picl_get_propval() argument
382 (void) memcpy(valbuf, ret->ret_attrval.ret_buf, in picl_get_propval()
395 void *valbuf, size_t nbytes) in picl_get_propval_by_name() argument
422 (void) memcpy(valbuf, ret->ret_attrvalbyname.ret_buf, in picl_get_propval_by_name()
434 picl_set_propval(picl_prophdl_t proph, void *valbuf, size_t nbytes) in picl_set_propval() argument
450 (void) memcpy(inargs->valbuf, valbuf, nbytes); in picl_set_propval()
469 void *valbuf, size_t nbytes) in picl_set_propval_by_name() argument
486 (void) memcpy(inargs->valbuf, valbuf, nbytes); in picl_set_propval_by_name()
831 (void) memcpy(req->valbuf, pval, valsize); in picl_find_node()
H A Dpicl2door.h259 char valbuf[1]; member
276 char valbuf[1]; member
321 char valbuf[1]; /* prop value */ member
/illumos-gate/usr/src/cmd/bhyve/
H A Dconfig.c214 char *nestedval, *path, *valbuf; in _expand_config_value() local
217 valfp = open_memstream(&valbuf, &valsize); in _expand_config_value()
291 return (valbuf); in _expand_config_value()
297 static char *valbuf; in expand_config_value() local
302 free(valbuf); in expand_config_value()
303 valbuf = _expand_config_value(value, 0); in expand_config_value()
304 return (valbuf); in expand_config_value()
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_subr.c253 char valbuf[6]; in set_nfsv4_ephemeral_mount_to() local
254 int bufsz = sizeof (valbuf); in set_nfsv4_ephemeral_mount_to()
261 if (autofs_smf_get_prop("timeout", valbuf, DEFAULT_INSTANCE, in set_nfsv4_ephemeral_mount_to()
264 uint_t val = strtonum(valbuf, 0, UINT_MAX, &errstr); in set_nfsv4_ephemeral_mount_to()
H A Dsmfcfg.c107 fs_smf_set_prop(smf_fstype_t fstype, char *prop_name, char *valbuf, in fs_smf_set_prop() argument
177 valint = strtoul(valbuf, NULL, 0); in fs_smf_set_prop()
195 valbuf) == 0) { in fs_smf_set_prop()
207 if (strcmp(valbuf, "1") == 0) { in fs_smf_set_prop()
209 } else if (strcmp(valbuf, "0") == 0) { in fs_smf_set_prop()
/illumos-gate/usr/src/lib/libpicltree/
H A Dptree_impl.h230 extern int xptree_get_propval_with_cred(picl_prophdl_t proph, void *valbuf,
233 const char *propname, void *valbuf, size_t sz,
236 const void *valbuf, size_t sz, door_cred_t cred);
238 const char *propname, const void *valbuf, size_t sz,
H A Dpicltree.c1204 create_propobj(const ptree_propinfo_t *pinfo, const void *valbuf, in create_propobj() argument
1214 (valbuf == NULL)) in create_propobj()
1238 (void) strlcpy(pobj->prop_val, valbuf, in create_propobj()
1241 (void) memcpy(pobj->prop_val, valbuf, in create_propobj()
1262 ptree_create_prop(const ptree_propinfo_t *pinfo, const void *valbuf, in ptree_create_prop() argument
1294 if (valbuf == NULL) in ptree_create_prop()
1301 refh = *(picl_hdl_t *)valbuf; in ptree_create_prop()
1312 tblh = *(picl_prophdl_t *)valbuf; in ptree_create_prop()
1318 (strlen(valbuf) >= PICL_CLASSNAMELEN_MAX))) in ptree_create_prop()
1326 err = create_propobj(pinfo, valbuf, &pobj); in ptree_create_prop()
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_callbacks.c916 char *valbuf; in ndmpd_api_add_env() local
932 valbuf = strdup(value); in ndmpd_api_add_env()
933 if (valbuf == NULL) { in ndmpd_api_add_env()
940 session->ns_data.dd_env[session->ns_data.dd_env_len].value = valbuf; in ndmpd_api_add_env()
967 char *valbuf; in ndmpd_api_set_env() local
974 } else if (!(valbuf = strdup(value))) { in ndmpd_api_set_env()
979 envp->value = valbuf; in ndmpd_api_set_env()
H A Dndmpd_util.c503 char *valbuf; in ndmpd_save_env() local
519 valbuf = strdup(env[i].value); in ndmpd_save_env()
520 if (valbuf == 0) { in ndmpd_save_env()
526 namebuf, valbuf); in ndmpd_save_env()
530 session->ns_data.dd_env[i].value = valbuf; in ndmpd_save_env()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/
H A Dfcal_leds.c171 char valbuf[MAX_LEN_UNIT_ADDRESS]; in read_led_state() local
181 valbuf, sizeof (valbuf)); in read_led_state()
184 valbuf[sizeof (valbuf) - 1] = '\0'; /* ensure null terminated */ in read_led_state()
186 addr = strtoul(valbuf, &ptr, 16); in read_led_state()
H A Dfcal_leds_thread.c127 char valbuf[80]; in update_picl() local
141 PICL_PROP_CLASSNAME, (void *)valbuf, in update_picl()
142 sizeof (valbuf)); in update_picl()
145 } else if (strcmp(valbuf, "fp") == 0) { in update_picl()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautomount.c104 char valbuf[6]; in main() local
121 ret = autofs_smf_get_prop("timeout", valbuf, DEFAULT_INSTANCE, in main()
128 mount_timeout = strtol(valbuf, (char **)NULL, 10); in main()
131 ret = autofs_smf_get_prop("automount_verbose", valbuf, DEFAULT_INSTANCE, in main()
134 if (strncasecmp("true", valbuf, 4) == 0) in main()
/illumos-gate/usr/src/cmd/audio/audioctl/
H A Daudioctl.c460 char valbuf[COL_VAL_SZ + 1]; in print_control() local
482 (void) snprintf(valbuf, sizeof (valbuf), "%s", in print_control()
487 (void) snprintf(valbuf, sizeof (valbuf), "%d", in print_control()
492 (void) snprintf(valbuf, sizeof (valbuf), "%d:%d", in print_control()
505 (void) snprintf(valbuf, sizeof (valbuf), "%s", str); in print_control()
564 col.col_val = valbuf; in print_control()
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil_impl.h72 void *valbuf; member
142 #define propcmd_valbuf u.prop.valbuf
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_xdr.c310 char valbuf[YPMAXRECORD]; in xdr_ypall() local
319 kv.valdat.dptr = valbuf; in xdr_ypall()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsinfo.c550 char *valbuf; in set_boot_dev_var() local
629 valbuf = opp->oprom_array + strlen(opp->oprom_array) + 1; in set_boot_dev_var()
630 (void) strcpy(valbuf, bootdev); in set_boot_dev_var()
632 opp->oprom_size = strlen(valbuf) + strlen(opp->oprom_array) + 2; in set_boot_dev_var()
677 valbuf = opp->oprom_array + strlen(opp->oprom_array) + 1; in set_boot_dev_var()
678 (void) strcpy(valbuf, save_bootdev); in set_boot_dev_var()
680 opp->oprom_size = strlen(valbuf) + strlen(opp->oprom_array) + 2; in set_boot_dev_var()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddsl_prop.c617 char valbuf[32]; in dsl_prop_set_sync_impl() local
744 (void) snprintf(valbuf, sizeof (valbuf), in dsl_prop_set_sync_impl()
746 valstr = valbuf; in dsl_prop_set_sync_impl()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/taco/envd/
H A Dpiclenvsetup.c242 int size, void *valbuf, picl_prophdl_t *prophp) in add_regular_prop() argument
253 err = ptree_create_and_add_prop(nodeh, &propinfo, valbuf, &proph); in add_regular_prop()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/
H A Dpiclenvsetup.c350 int size, void *valbuf, picl_prophdl_t *prophp) in add_regular_prop() argument
361 err = ptree_create_and_add_prop(nodeh, &propinfo, valbuf, &proph); in add_regular_prop()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/
H A Dpiclenvsetup.c373 int size, void *valbuf, picl_prophdl_t *prophp) in add_regular_prop() argument
384 err = ptree_create_and_add_prop(nodeh, &propinfo, valbuf, &proph); in add_regular_prop()

12