Home
last modified time | relevance | path

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

12

/freebsd-14.2/usr.sbin/zonectl/
H A Dzonectl.c299 snprintf(tmpstr, sizeof(tmpstr), "Conventional"); in zonectl_print_rz()
303 snprintf(tmpstr, sizeof(tmpstr), "Seq%c%s", in zonectl_print_rz()
317 snprintf(tmpstr, sizeof(tmpstr), "NWP"); in zonectl_print_rz()
320 snprintf(tmpstr, sizeof(tmpstr), "Empty"); in zonectl_print_rz()
331 snprintf(tmpstr, sizeof(tmpstr), "Closed"); in zonectl_print_rz()
334 snprintf(tmpstr, sizeof(tmpstr), "Readonly"); in zonectl_print_rz()
337 snprintf(tmpstr, sizeof(tmpstr), "Full"); in zonectl_print_rz()
340 snprintf(tmpstr, sizeof(tmpstr), "Offline"); in zonectl_print_rz()
343 snprintf(tmpstr, sizeof(tmpstr), "%#x", in zonectl_print_rz()
354 snprintf(tmpstr, sizeof(tmpstr), "Sequential"); in zonectl_print_rz()
[all …]
/freebsd-14.2/sbin/camcontrol/
H A Dzone.c241 snprintf(tmpstr, sizeof(tmpstr), "Conventional"); in zone_rz_print()
245 snprintf(tmpstr, sizeof(tmpstr), "Seq%c%s", in zone_rz_print()
260 snprintf(tmpstr, sizeof(tmpstr), "NWP"); in zone_rz_print()
263 snprintf(tmpstr, sizeof(tmpstr), "Empty"); in zone_rz_print()
274 snprintf(tmpstr, sizeof(tmpstr), "Closed"); in zone_rz_print()
277 snprintf(tmpstr, sizeof(tmpstr), "Readonly"); in zone_rz_print()
280 snprintf(tmpstr, sizeof(tmpstr), "Full"); in zone_rz_print()
283 snprintf(tmpstr, sizeof(tmpstr), "Offline"); in zone_rz_print()
286 snprintf(tmpstr, sizeof(tmpstr), "%#x", in zone_rz_print()
297 snprintf(tmpstr, sizeof(tmpstr), "Sequential"); in zone_rz_print()
[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-14.2/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()
162 tmpstr = WipeOut(win, y, x, oldstr, tmpstr, save_flags._echo); in wgetn_wstr()
170 *tmpstr++ = ch; in wgetn_wstr()
171 *tmpstr = 0; in wgetn_wstr()
182 tmpstr = WipeOut(win, y, x, oldstr, tmpstr, save_flags._echo); in wgetn_wstr()
215 *tmpstr = 0; in wgetn_wstr()
217 if (tmpstr == oldstr) { in wgetn_wstr()
218 *tmpstr++ = WEOF; in wgetn_wstr()
[all …]
/freebsd-14.2/tests/sys/cddl/zfs/tests/acl/nontrivial/
H A Dzfs_acl_chmod_aclmode_001_pos.ksh132 typeset tmpstr
169 tmpstr=${tmpstr}/read_data
171 tmpstr=${tmpstr}/list_directory/read_data
179 tmpstr=${tmpstr}/write_data
181 tmpstr=${tmpstr}/add_file/write_data
187 tmpstr=${tmpstr}/append_data
189 tmpstr=${tmpstr}/add_subdirectory/append_data
195 tmpstr=${tmpstr}/execute
198 tmpstr=${tmpstr#/}
200 $ECHO "$tmpstr"
/freebsd-14.2/lib/libcam/
H A Dcamlib.c139 tmpstr = newpath; in cam_get_device()
145 tmpstr2 = tmpstr; in cam_get_device()
148 assert(tmpstr != NULL && *tmpstr != '\0'); in cam_get_device()
149 tmpstr++; in cam_get_device()
163 if (*tmpstr == 'n' || *tmpstr == 'e') { in cam_get_device()
168 tmpstr++; in cam_get_device()
205 if (!isdigit(tmpstr[strlen(tmpstr) - 1])) { in cam_get_device()
231 *unit = atoi(&tmpstr[strlen(tmpstr) - unit_offset]); in cam_get_device()
237 tmpstr[strlen(tmpstr) - unit_offset] = '\0'; in cam_get_device()
451 char tmpstr[256]; in cam_lookup_pass() local
[all …]
/freebsd-14.2/crypto/heimdal/lib/asn1/
H A Dgen_decode.c422 tmpstr, in decode_type()
423 tmpstr, in decode_type()
424 tmpstr, in decode_type()
425 tmpstr, in decode_type()
438 tmpstr, tmpstr, name, in decode_type()
439 tmpstr, tmpstr, forwstr, in decode_type()
440 tmpstr, tmpstr, in decode_type()
441 tmpstr, name, tmpstr, in decode_type()
457 tmpstr, tmpstr); in decode_type()
484 tmpstr, tmpstr, typestring); 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-14.2/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-14.2/sys/dev/mpi3mr/
H A Dmpi3mr_pci.c111 char tmpstr[80], tmpstr2[80]; in mpi3mr_setup_sysctl() local
117 snprintf(tmpstr, sizeof(tmpstr), "MPI3MR controller %d", in mpi3mr_setup_sysctl()
129 CTLFLAG_RD, 0, tmpstr); in mpi3mr_setup_sysctl()
172 char tmpstr[80]; in mpi3mr_get_tunables() local
188 snprintf(tmpstr, sizeof(tmpstr), "dev.mpi3mr.%d.debug_level", in mpi3mr_get_tunables()
190 TUNABLE_INT_FETCH(tmpstr, &sc->mpi3mr_debug); in mpi3mr_get_tunables()
192 snprintf(tmpstr, sizeof(tmpstr), "dev.mpi3mr.%d.reset", in mpi3mr_get_tunables()
194 TUNABLE_INT_FETCH(tmpstr, &sc->reset.type); in mpi3mr_get_tunables()
196 snprintf(tmpstr, sizeof(tmpstr), "dev.mpi3mr.%d.iot_enable", in mpi3mr_get_tunables()
198 TUNABLE_INT_FETCH(tmpstr, &sc->iot_enable); in mpi3mr_get_tunables()
/freebsd-14.2/usr.bin/systat/
H A Ddevs.c217 char **tempstr, *tmpstr, *tmpstr1; in dsmatchselect() local
232 tmpstr = tmpstr1 = strdup(args); in dsmatchselect()
239 free(tmpstr); in dsmatchselect()
282 char *cp, *tmpstr, *tmpstr1, *buffer; in dsselect() local
306 tmpstr = tmpstr1 = strdup(args); in dsselect()
344 free(tmpstr); in dsselect()
382 char tmpstr[80]; in dslabel() local
383 sprintf(tmpstr, "%s%d", dev_select[i].device_name, in dslabel()
386 " %5.5s", tmpstr); in dslabel()
H A Diostat.c186 char tmpstr[32]; in numlabels() local
212 snprintf(tmpstr, sizeof(tmpstr), "%s%d", dev_select[i].device_name, in numlabels()
214 mvwaddstr(wnd, row, _col + 4, tmpstr); in numlabels()
227 char tmpstr[32]; in barlabels() local
236 snprintf(tmpstr, sizeof(tmpstr), "%s%d", dev_select[i].device_name, in barlabels()
239 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.c52 char *cp, *tmpstr, *tmpstr1; in command() local
55 tmpstr = tmpstr1 = strdup(cmd); in command()
146 free(tmpstr); in command()
H A Dnetcmds.c126 char *cp, *tmpstr, *tmpstr1; in changeitems() local
131 tmpstr = tmpstr1 = strdup(args); in changeitems()
162 free(tmpstr); in changeitems()
/freebsd-14.2/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()
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()
619 else if (strcmp(tmpstr, "otg") == 0) in usb_get_dr_mode()
[all …]
/freebsd-14.2/sys/dev/mps/
H A Dmps.c1609 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.debug_level", in mps_get_tunables()
1615 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.disable_msix", in mps_get_tunables()
1619 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.disable_msi", in mps_get_tunables()
1623 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.max_msix", in mps_get_tunables()
1627 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.max_chains", in mps_get_tunables()
1631 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.max_io_pages", in mps_get_tunables()
1636 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.exclude_ids", in mps_get_tunables()
1640 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.enable_ssu", in mps_get_tunables()
1648 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.use_phy_num", in mps_get_tunables()
1652 snprintf(tmpstr, sizeof(tmpstr), "dev.mps.%d.max_reqframes", in mps_get_tunables()
[all …]
/freebsd-14.2/libexec/bootpd/
H A Dreadfile.c771 char tmpstr[MAXSTRINGLEN]; in eval_symbol() local
902 len = sizeof(tmpstr); in eval_symbol()
904 makelower(tmpstr); in eval_symbol()
957 len = sizeof(tmpstr); in eval_symbol()
1633 char tmpstr[MAXSTRINGLEN]; in prs_inetaddr() local
1643 t = tmpstr; in prs_inetaddr()
1651 n = lookup_ipa(tmpstr, result); in prs_inetaddr()
1733 char tmpstr[MAXSTRINGLEN]; in prs_haddr() local
1743 tmplen = sizeof(tmpstr); in prs_haddr()
1744 get_string(src, tmpstr, &tmplen); in prs_haddr()
[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-14.2/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-14.2/sys/dev/mpr/
H A Dmpr.c1757 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.debug_level", in mpr_get_tunables()
1763 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.disable_msix", in mpr_get_tunables()
1767 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.disable_msi", in mpr_get_tunables()
1771 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.max_msix", in mpr_get_tunables()
1775 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.max_chains", in mpr_get_tunables()
1779 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.max_io_pages", in mpr_get_tunables()
1784 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.exclude_ids", in mpr_get_tunables()
1788 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.enable_ssu", in mpr_get_tunables()
1796 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.use_phy_num", in mpr_get_tunables()
1800 snprintf(tmpstr, sizeof(tmpstr), "dev.mpr.%d.max_reqframes", in mpr_get_tunables()
[all …]
/freebsd-14.2/sys/cam/ctl/
H A Dctl_backend_ramdisk.c936 char tmpstr[32]; in ctl_backend_ramdisk_create() local
1053 snprintf(tmpstr, sizeof(tmpstr), "MYSERIAL%04d", in ctl_backend_ramdisk_create()
1055 strncpy((char *)cbe_lun->serial_num, tmpstr, in ctl_backend_ramdisk_create()
1056 MIN(sizeof(cbe_lun->serial_num), sizeof(tmpstr))); in ctl_backend_ramdisk_create()
1059 strncpy((char *)params->serial_num, tmpstr, in ctl_backend_ramdisk_create()
1060 MIN(sizeof(params->serial_num), sizeof(tmpstr))); in ctl_backend_ramdisk_create()
1067 snprintf(tmpstr, sizeof(tmpstr), "MYDEVID%04d", softc->num_luns); in ctl_backend_ramdisk_create()
1068 strncpy((char *)cbe_lun->device_id, tmpstr, in ctl_backend_ramdisk_create()
1069 MIN(sizeof(cbe_lun->device_id), sizeof(tmpstr))); in ctl_backend_ramdisk_create()
1072 strncpy((char *)params->device_id, tmpstr, in ctl_backend_ramdisk_create()
[all …]
/freebsd-14.2/usr.sbin/ctladm/
H A Dctladm.c461 char *tmpstr; in cctl_port() local
480 free(tmpstr); in cctl_port()
929 free(tmpstr); in cctl_error_inject()
938 free(tmpstr); in cctl_error_inject()
942 free(tmpstr); in cctl_error_inject()
2444 char *tmpstr; in cctl_create_lun() local
2462 free(tmpstr); in cctl_create_lun()
2601 char *tmpstr; in cctl_rm_lun() local
2619 free(tmpstr); in cctl_rm_lun()
2704 char *tmpstr; in cctl_modify_lun() local
[all …]

12