Searched defs:strbuf (Results 1 - 25 of 48) sorted by relevance

12

/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_convrelstr.c90 static char strbuf[32]; local
96 strbuf[ndx--] = '\0';
98 strbuf[ndx--] = '0' + (type % 10);
102 return (&strbuf[ndx + 1]);
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_convrelstr.c63 static char strbuf[32]; local
69 strbuf[ndx--] = '\0';
71 strbuf[ndx--] = '0' + (type % 10);
75 return (&strbuf[ndx + 1]);
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dvscanf.c117 FILE strbuf; local
124 strbuf._flag = _IOREAD | _IOWRT;
125 strbuf._ptr = strbuf._base = (unsigned char *)str;
126 strbuf._cnt = strlen(str);
127 SET_FILE(&strbuf, _NFILE);
138 if (__fsetlocking(&strbuf, FSETLOCKING_BYCALLER) == -1) {
144 return (__doscan_u(&strbuf, fmt, ap, _F_INTMAX32));
146 return (__doscan_u(&strbuf, fmt, ap, 0));
H A Dvwscanf.c101 FILE strbuf; local
126 strbuf._flag = _IOREAD | _IOWRT;
127 strbuf._ptr = strbuf._base = (unsigned char *)tmp_buf;
128 strbuf._cnt = strlen(tmp_buf);
129 SET_FILE(&strbuf, _NFILE);
132 /* _setorientation(&strbuf, _WC_MODE); */
135 ret = __wdoscan_u(&strbuf, fmt, ap, _F_INTMAX32);
137 ret = __wdoscan_u(&strbuf, fmt, ap, 0);
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dscanf.c119 FILE strbuf; local
124 strbuf._flag = _IOREAD|_IOSTRG;
125 strbuf._ptr = strbuf._base = (unsigned char*)str;
126 strbuf._cnt = strlen(str);
127 strbuf._bufsiz = strbuf._cnt;
141 return(_doscan(&strbuf, newform, newap));
143 ret_val = _doscan(&strbuf, fmt, ap);
/illumos-gate/usr/src/cmd/cdrw/
H A Dutil.c51 char strbuf[81]; variable
87 (void) memset(strbuf, 8, pos);
88 strbuf[pos] = 0;
89 (void) printf(strbuf);
90 (void) memset(strbuf, ' ', pos);
91 strbuf[pos] = 0;
92 (void) printf(strbuf);
93 (void) memset(strbuf, 8, pos);
94 strbuf[pos] = 0;
95 (void) printf(strbuf);
[all...]
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetexecattr.c90 * and call it to match exec_attr data in strbuf and argp->key.attrp
93 check_match_strbuf(nss_XbyY_args_t *argp, char *strbuf, int check_policy) argument
106 if (strbuf[argp->returnlen] == '\n') {
107 strbuf[argp->returnlen] = '\0';
110 execp->name = _strtok_escape(strbuf, sep, &last);
121 free(strbuf);
135 char *strbuf; local
148 if ((strbuf = strdup(instr)) == NULL)
151 strbuf, check_policy);
/illumos-gate/usr/src/lib/libkvm/common/
H A Dtest.c230 static char strbuf[40]; local
248 (void) sprintf(strbuf, "unknown (%d)", nl[i].n_scnum);
249 s = strbuf;
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_comm.c454 char *strbuf; local
458 strbuf = kmem_zalloc(MOD_MAXPATH, KM_SLEEP);
460 if (copyinstr(name, strbuf, MOD_MAXPATH, 0)) {
464 sdcmn_err6(("file %s is registering\n", strbuf));
466 n = strlen(strbuf) + 1;
467 namep = i_ddi_strdup(strbuf, KM_SLEEP);
479 kmem_free(strbuf, MOD_MAXPATH);
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dstropts.h119 struct strbuf { struct
131 struct strbuf ctlbuf;
132 struct strbuf databuf;
140 struct strbuf ctlbuf;
141 struct strbuf databuf;
/illumos-gate/usr/src/uts/common/io/
H A Dkstat.c182 char *strbuf = (char *)((kstat_named_t *)kn + local
218 strbuf, local
222 strbuf;
223 strbuf +=
225 ASSERT(strbuf <=
305 char *strbuf = (char *)((kstat_named_t *)kn + local
333 strbuf, local
337 strbuf;
338 strbuf +=
340 ASSERT(strbuf <
[all...]
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c616 char strbuf[sizeof ("_PROCEDURE_LINKAGE_TABLE_")]; local
658 if (Pread_string(P, strbuf, sizeof (strbuf),
665 if (strcmp("_PROCEDURE_LINKAGE_TABLE_", strbuf) == 0)
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_2xml.c197 char *strbuf = NULL; local
200 &strbuf, &err) != 0)
204 String, Value, strbuf, NULL);
205 topo_hdl_strfree(thp, strbuf);
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dtaskq.c259 char strbuf[128]; local
267 mdb_snprintf(strbuf, sizeof (strbuf),
272 ret = mdb_eval(strbuf);
/illumos-gate/usr/src/cmd/modload/
H A Dadd_drv.c653 char strbuf[MAXPATHLEN]; local
689 (void) snprintf(strbuf, sizeof (strbuf),
699 if ((new_entry->dev_name = strdup(strbuf)) == NULL) {
/illumos-gate/usr/src/uts/common/io/zyd/
H A Dzyd.c587 char strbuf[32]; local
641 (void) snprintf(strbuf, sizeof (strbuf), ZYD_DRV_NAME"%d", instance);
642 err = ddi_create_minor_node(dip, strbuf, S_IFCHR,
/illumos-gate/usr/src/common/ctf/
H A Dctf_open.c806 void *cbuf, *symbuf, *strbuf; local
809 cbuf = symbuf = strbuf = NULL;
846 strbuf = ctf_data_alloc(strsect.cts_size);
847 if (strbuf == NULL) {
851 bcopy(strsect.cts_data, strbuf, strsect.cts_size);
852 ctf_data_protect(strbuf, strsect.cts_size);
853 strsect.cts_data = strbuf;
874 if (strbuf != NULL)
875 ctf_data_free(strbuf, strsect.cts_size);
/illumos-gate/usr/src/cmd/csh/
H A Dsh.file.c484 static tchar strbuf[MAXNAMLEN+1]; local
492 return (strtots(strbuf, pw->pw_name));
495 return (strtots(strbuf, dirp->d_name));
/illumos-gate/usr/src/uts/common/io/ipw/
H A Dipw2100.c261 char strbuf[32]; local
468 (void) snprintf(strbuf, sizeof (strbuf), "%s%d",
470 err = ddi_create_minor_node(dip, strbuf, S_IFCHR,
/illumos-gate/usr/src/uts/common/io/iwi/
H A Dipw2200.c336 char strbuf[32]; local
600 (void) snprintf(strbuf, sizeof (strbuf), "%s%d",
602 err = ddi_create_minor_node(dip, strbuf, S_IFCHR,
/illumos-gate/usr/src/uts/common/io/usb/clients/usbecm/
H A Dusbecm.c244 char strbuf[32]; local
310 (void) snprintf(strbuf, sizeof (strbuf), "usbecm%d", instance);
311 err = ddi_create_minor_node(dip, strbuf, S_IFCHR,
/illumos-gate/usr/src/cmd/mdb/common/modules/usba/
H A Dprtusb.c559 char strbuf[STRLEN]; local
612 mdb_devinfo2driver((uintptr_t)usb_dev.usb_dip, strbuf, STRLEN);
613 mdb_printf("%-12s%-6d", strbuf, usb_dip.devi_instance);
616 if (mdb_readstr(strbuf, STRLEN,
619 mdb_printf("%-14s", strbuf);
639 if (mdb_readstr(strbuf, STRLEN,
642 mdb_printf("%s\n", strbuf);
654 if (mdb_readstr(strbuf, STRLEN,
656 mdb_printf("%s - ", strbuf);
660 if (mdb_readstr(strbuf, STRLE
769 char strbuf[STRLEN] = ""; local
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dstropts.h333 struct strbuf { struct
352 struct strbuf ctlbuf;
353 struct strbuf databuf;
371 struct strbuf ctlbuf;
372 struct strbuf databuf;
/illumos-gate/usr/src/lib/libsff/common/
H A Dlibsff.c839 char strbuf[SFP_STRBUF]; local
841 assert(len < sizeof (strbuf));
842 strbuf[0] = '\0';
861 bcopy(&buf[start], strbuf, len);
862 strbuf[len] = '\0';
864 return (nvlist_add_string(nvl, field, strbuf));
1173 char strbuf[SFP_STRBUF]; local
1183 (void) snprintf(strbuf, sizeof (strbuf), "%.3lf nm", d);
1185 strbuf)) !
[all...]
/illumos-gate/usr/src/common/smbclnt/
H A Dsmbfs_ntacl.c768 char strbuf[256]; local
773 if (smbfs_sid2str(sid, strbuf, sizeof (strbuf), &rid) < 0)
775 sid_prefix = strbuf;

Completed in 264 milliseconds

12