Home
last modified time | relevance | path

Searched refs:tmpstr (Results 1 – 25 of 45) sorted by relevance

12

/freebsd/usr.sbin/zonectl/
H A Dzonectl.c225 char tmpstr[80]; in zonectl_print_rz() local
299 snprintf(tmpstr, sizeof(tmpstr), "Conventional"); in zonectl_print_rz()
303 snprintf(tmpstr, sizeof(tmpstr), "Seq%c%s", in zonectl_print_rz()
309 snprintf(tmpstr, sizeof(tmpstr), "Zone%ctype%c%#x", in zonectl_print_rz()
313 printf("%*s, ", field_widths[ZONE_FW_TYPE], tmpstr); in zonectl_print_rz()
317 snprintf(tmpstr, sizeof(tmpstr), "NW in zonectl_print_rz()
[all...]
/freebsd/sbin/camcontrol/
H A Dzone.c139 char tmpstr[80]; in zone_rz_print()
241 snprintf(tmpstr, sizeof(tmpstr), "Conventional"); in zone_rz_print()
245 snprintf(tmpstr, sizeof(tmpstr), "Seq%c%s", in zone_rz_print()
251 snprintf(tmpstr, sizeof(tmpstr), "Zone%ctype%c%#x", in zone_rz_print()
256 printf("%*s, ", field_widths[ZONE_FW_TYPE], tmpstr); in zone_rz_print()
260 snprintf(tmpstr, sizeof(tmpstr), "NW in zone_rz_print()
140 char tmpstr[80]; zone_rz_print() local
[all...]
H A Dpersist.c135 const char *tmpstr; in persist_print_scopetype() local
140 tmpstr = scsi_nv_to_str(persist_scope_table, num_entries, in persist_print_scopetype()
142 fprintf(stdout, "Scope: %s (%#x)\n", (tmpstr != NULL) ? tmpstr : in persist_print_scopetype()
147 tmpstr = scsi_nv_to_str(persist_type_table, num_entries, in persist_print_scopetype()
149 fprintf(stdout, "Type: %s (%#x)\n", (tmpstr != NULL) ? tmpstr : in persist_print_scopetype()
H A Dattrib.c189 char *tmpstr; in scsiattrib() local
204 while ((tmpstr = strsep(&optarg, ",")) != NULL) { in scsiattrib()
207 sizeof(output_format_map[0]), tmpstr, in scsiattrib()
217 "ambiguous" : "invalid", tmpstr); in scsiattrib()
/freebsd/contrib/ncurses/ncurses/widechar/
H A Dlib_get_wstr.c95 wint_t *tmpstr = str; in wgetn_wstr() local
157 if (tmpstr > oldstr) { in wgetn_wstr()
158 tmpstr = WipeOut(win, y, x, oldstr, tmpstr, save_flags._echo); in wgetn_wstr()
161 while (tmpstr > oldstr) { in wgetn_wstr()
162 tmpstr = WipeOut(win, y, x, oldstr, tmpstr, save_flags._echo); in wgetn_wstr()
167 } else if (tmpstr - oldstr >= maxlen) { in wgetn_wstr()
170 *tmpstr++ = ch; in wgetn_wstr()
171 *tmpstr = 0; in wgetn_wstr()
175 if (wadd_wint(win, tmpstr - 1) == ERR) { in wgetn_wstr()
182 tmpstr = WipeOut(win, y, x, oldstr, tmpstr, save_flags._echo); in wgetn_wstr()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/
H A Dzfs_acl_chmod_aclmode_001_pos.ksh129 typeset tmpstr
166 tmpstr=${tmpstr}/read_data
168 tmpstr=${tmpstr}/list_directory/read_data
176 tmpstr=${tmpstr}/write_data
178 tmpstr=${tmpstr}/add_file/write_data
184 tmpstr=${tmpstr}/append_data
186 tmpstr=${tmpstr}/add_subdirectory/append_data
192 tmpstr=${tmpstr}/execute
195 tmpstr=${tmpstr#/}
197 $ECHO "$tmpstr"
/freebsd/crypto/heimdal/lib/asn1/
H A Dgen_decode.c212 const char *forwstr, const char *tmpstr, const char *dertype, in decode_type() argument
422 tmpstr, in decode_type()
423 tmpstr, in decode_type()
424 tmpstr, in decode_type()
425 tmpstr, in decode_type()
437 tmpstr, in decode_type()
438 tmpstr, tmpstr, name, in decode_type()
439 tmpstr, tmpstr, forwst in decode_type()
[all...]
H A Dgen_length.c64 const char *variable, const char *tmpstr) in length_type() argument
164 "%s = 0;\n", tmpstr, variable, variable); in length_type()
166 fprintf (codefile, "ret += %s_oldret;\n", tmpstr); in length_type()
195 tmpstr, variable, variable); in length_type()
199 "%s = 0;\n", tmpstr, variable, variable); in length_type()
202 if (asprintf (&sname, "%s_S_Of", tmpstr) < 0 || sname == NULL) in length_type()
206 variable, tmpstr); in length_type()
211 "}\n", variable, tmpstr); in length_type()
251 if (asprintf(&tname, "%s_tag", tmpstr) < 0 || tname == NULL) in length_type()
H A Dgen_encode.c108 encode_type (const char *name, const Type *t, const char *tmpstr) in encode_type() argument
279 fprintf (codefile, "size_t %s_oldret HEIMDAL_UNUSED_ATTRIBUTE = ret;\n", tmpstr); in encode_type()
282 fprintf (codefile, "ret += %s_oldret;\n", tmpstr); in encode_type()
363 name, tmpstr); in encode_type()
366 if (asprintf (&sname, "%s_S_Of", tmpstr) < 0 || sname == NULL) in encode_type()
372 tmpstr); in encode_type()
392 if (asprintf (&tname, "%s_tag", tmpstr) < 0 || tname == NULL) in encode_type()
431 fprintf (codefile, "size_t %s_oldret = ret;\n", tmpstr); in encode_type()
434 fprintf (codefile, "ret += %s_oldret;\n", tmpstr); in encode_type()
/freebsd/lib/libcam/
H A Dcamlib.c116 char *tmpstr, *tmpstr2; in cam_get_device() local
138 tmpstr = newpath; in cam_get_device()
143 if (*tmpstr == '/') { in cam_get_device()
144 tmpstr2 = tmpstr; in cam_get_device()
145 tmpstr = strrchr(tmpstr2, '/'); in cam_get_device()
147 assert(tmpstr != NULL && *tmpstr != '\0'); in cam_get_device()
148 tmpstr++; in cam_get_device()
151 if (*tmpstr == '\0') { in cam_get_device()
162 if (*tmpstr == 'n' || *tmpstr == 'e') { in cam_get_device()
165 if (strncmp(tmpstr + 1, nonrewind_devs[i], len) == 0) { in cam_get_device()
[all …]
/freebsd/contrib/openpam/lib/libpam/
H A Dopenpam_straddch.c53 char *tmpstr; in openpam_straddch() local
58 if ((tmpstr = malloc(tmpsize)) == NULL) { in openpam_straddch()
62 *str = tmpstr; in openpam_straddch()
68 if ((tmpstr = realloc(*str, tmpsize)) == NULL) { in openpam_straddch()
73 *str = tmpstr; in openpam_straddch()
/freebsd/sys/dev/mpi3mr/
H A Dmpi3mr_pci.c112 char tmpstr[80], tmpstr2[80]; in mpi3mr_setup_sysctl() local
118 snprintf(tmpstr, sizeof(tmpstr), "MPI3MR controller %d", in mpi3mr_setup_sysctl()
130 CTLFLAG_RD, 0, tmpstr); in mpi3mr_setup_sysctl()
173 char tmpstr[80]; in mpi3mr_get_tunables() local
189 snprintf(tmpstr, sizeof(tmpstr), "dev.mpi3mr.%d.debug_level", in mpi3mr_get_tunables()
191 TUNABLE_INT_FETCH(tmpstr, &sc->mpi3mr_debug); in mpi3mr_get_tunables()
193 snprintf(tmpstr, sizeof(tmpstr), "dev.mpi3mr.%d.reset", in mpi3mr_get_tunables()
195 TUNABLE_INT_FETCH(tmpstr, &sc->reset.type); in mpi3mr_get_tunables()
197 snprintf(tmpstr, sizeof(tmpstr), "dev.mpi3mr.%d.iot_enable", in mpi3mr_get_tunables()
199 TUNABLE_INT_FETCH(tmpstr, &sc->iot_enable); in mpi3mr_get_tunables()
/freebsd/usr.bin/systat/
H A Ddevs.c214 char **tempstr, *tmpstr, *tmpstr1; in dsmatchselect() local
229 tmpstr = tmpstr1 = strdup(args); in dsmatchselect()
236 free(tmpstr); in dsmatchselect()
279 char *cp, *tmpstr, *tmpstr1, *buffer; in dsselect() local
303 tmpstr = tmpstr1 = strdup(args); in dsselect()
341 free(tmpstr); in dsselect()
379 char tmpstr[80]; in dslabel() local
380 sprintf(tmpstr, "%s%d", dev_select[i].device_name, in dslabel()
383 " %5.5s", tmpstr); in dslabel()
H A Diostat.c183 char tmpstr[32]; in numlabels() local
209 snprintf(tmpstr, sizeof(tmpstr), "%s%d", dev_select[i].device_name, in numlabels()
211 mvwaddstr(wnd, row, _col + 4, tmpstr); in numlabels()
224 char tmpstr[32]; in barlabels() local
233 snprintf(tmpstr, sizeof(tmpstr), "%s%d", dev_select[i].device_name, in barlabels()
236 tmpstr); in barlabels()
H A Diolat.c387 char tmpstr[32]; in labeliolat() local
420 snprintf(tmpstr, sizeof(tmpstr), "%s%d", isp->dev_name, isp->unit); in labeliolat()
421 mvwaddstr(wnd, row, _col + (COLWIDTH - strlen(tmpstr)) / 2, tmpstr); in labeliolat()
452 char tmpstr[32]; in latout() local
454 fmt(lat, tmpstr, sizeof(tmpstr)); in latout()
465 mvwaddstr(wnd, y, x, tmpstr); in latout()
H A Dcmds.c49 char *cp, *tmpstr, *tmpstr1; in command() local
52 tmpstr = tmpstr1 = strdup(cmd); in command()
143 free(tmpstr); in command()
H A Dnetcmds.c123 char *cp, *tmpstr, *tmpstr1; in changeitems() local
128 tmpstr = tmpstr1 = strdup(args); in changeitems()
159 free(tmpstr); in changeitems()
/freebsd/sys/arm/nvidia/
H A Dtegra_usbphy.c584 char *tmpstr; in usb_get_ifc_mode() local
588 rv = OF_getprop_alloc(node, name, (void **)&tmpstr); in usb_get_ifc_mode()
593 if (strcmp(tmpstr, "utmi") == 0) in usb_get_ifc_mode()
595 else if (strcmp(tmpstr, "ulpi") == 0) in usb_get_ifc_mode()
598 device_printf(dev, "Unsupported phy type: %s\n", tmpstr); in usb_get_ifc_mode()
599 OF_prop_free(tmpstr); in usb_get_ifc_mode()
606 char *tmpstr; in usb_get_dr_mode() local
610 rv = OF_getprop_alloc(node, name, (void **)&tmpstr); in usb_get_dr_mode()
615 if (strcmp(tmpstr, "device") == 0) in usb_get_dr_mode()
617 else if (strcmp(tmpstr, "host") == 0) in usb_get_dr_mode()
[all …]
/freebsd/sys/dev/mps/
H A Dmps.c1572 char tmpstr[80], mps_debug[80]; in mps_get_tunables() local
1609 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.debug_level", in mps_get_tunables()
1612 if (TUNABLE_STR_FETCH(tmpstr, mps_debug, 80) != 0) in mps_get_tunables()
1615 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.disable_msix", in mps_get_tunables()
1617 TUNABLE_INT_FETCH(tmpstr, &sc->disable_msix); in mps_get_tunables()
1619 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.disable_msi", in mps_get_tunables()
1621 TUNABLE_INT_FETCH(tmpstr, &sc->disable_msi); in mps_get_tunables()
1623 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.max_msix", in mps_get_tunables()
1625 TUNABLE_INT_FETCH(tmpstr, &sc->max_msix); in mps_get_tunables()
1627 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.max_chains", in mps_get_tunables()
[all …]
/freebsd/libexec/bootpd/
H A Dreadfile.c771 char tmpstr[MAXSTRINGLEN]; in eval_symbol() local
902 len = sizeof(tmpstr); in eval_symbol()
903 (void) get_string(symbol, tmpstr, &len); in eval_symbol()
904 makelower(tmpstr); in eval_symbol()
908 if (!strcmp(htnamemap[i].name, tmpstr)) { in eval_symbol()
957 len = sizeof(tmpstr); in eval_symbol()
958 (void) get_string(symbol, tmpstr, &len); in eval_symbol()
959 if (!strncmp(tmpstr, "auto", 4)) { in eval_symbol()
962 if (sscanf(tmpstr, "%d", (int*)&timeoff) != 1) in eval_symbol()
1633 char tmpstr[MAXSTRINGLEN]; in prs_inetaddr() local
[all …]
H A Ddovend.c204 char *tmpstr = hp->hostname->string; in dovend_rfc1497()
206 while (*tmpstr && (*tmpstr != '.')) { in dovend_rfc1497()
207 tmpstr++; in dovend_rfc1497()
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dadv_data.c225 char* tmpstr; in adv_uuid2str() local
241 uuid_to_string(&uuid, &tmpstr, &ustatus); in adv_uuid2str()
243 strlcpy(buffer, tmpstr, size); in adv_uuid2str()
245 free(tmpstr); in adv_uuid2str()
/freebsd/sys/dev/mpr/
H A Dmpr.c1720 char tmpstr[80], mpr_debug[80]; in mpr_get_tunables() local
1757 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.debug_level", in mpr_get_tunables()
1760 if (TUNABLE_STR_FETCH(tmpstr, mpr_debug, 80) != 0) in mpr_get_tunables()
1763 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.disable_msix", in mpr_get_tunables()
1765 TUNABLE_INT_FETCH(tmpstr, &sc->disable_msix); in mpr_get_tunables()
1767 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.disable_msi", in mpr_get_tunables()
1769 TUNABLE_INT_FETCH(tmpstr, &sc->disable_msi); in mpr_get_tunables()
1771 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.max_msix", in mpr_get_tunables()
1773 TUNABLE_INT_FETCH(tmpstr, &sc->max_msix); in mpr_get_tunables()
1775 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.max_chains", in mpr_get_tunables()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_backend_ramdisk.c1130 char tmpstr[32]; in ctl_backend_ramdisk_create() local
1247 snprintf(tmpstr, sizeof(tmpstr), "MYSERIAL%04d", in ctl_backend_ramdisk_create()
1249 strncpy((char *)cbe_lun->serial_num, tmpstr, in ctl_backend_ramdisk_create()
1250 MIN(sizeof(cbe_lun->serial_num), sizeof(tmpstr))); in ctl_backend_ramdisk_create()
1253 strncpy((char *)params->serial_num, tmpstr, in ctl_backend_ramdisk_create()
1254 MIN(sizeof(params->serial_num), sizeof(tmpstr))); in ctl_backend_ramdisk_create()
1261 snprintf(tmpstr, sizeof(tmpstr), "MYDEVID%04d", softc->num_luns); in ctl_backend_ramdisk_create()
1262 strncpy((char *)cbe_lun->device_id, tmpstr, in ctl_backend_ramdisk_create()
1263 MIN(sizeof(cbe_lun->device_id), sizeof(tmpstr))); in ctl_backend_ramdisk_create()
1266 strncpy((char *)params->device_id, tmpstr, in ctl_backend_ramdisk_create()
[all …]
/freebsd/usr.sbin/ctladm/
H A Dctladm.c466 char *tmpstr; in cctl_port() local
469 tmpstr = strdup(optarg); in cctl_port()
470 name = strsep(&tmpstr, "="); in cctl_port()
477 value = strsep(&tmpstr, "="); in cctl_port()
485 free(tmpstr); in cctl_port()
919 char *tmpstr, *tmpstr2; in cctl_error_inject() local
921 tmpstr = strdup(optarg); in cctl_error_inject()
922 if (tmpstr == NULL) { in cctl_error_inject()
929 tmpstr2 = strsep(&tmpstr, ","); in cctl_error_inject()
934 free(tmpstr); in cctl_error_inject()
[all …]

12