Lines Matching refs:tmpbuf
119 char *tmpbuf = alloca(2 * MAXPATHLEN); in read_thru() local
122 while (fgets(tmpbuf, 2 * MAXPATHLEN, fp) != NULL) { in read_thru()
124 topo_mod_dprintf(mp, "%s", tmpbuf); in read_thru()
125 else if (strstr(tmpbuf, substr) != NULL) { in read_thru()
137 char *tmpbuf = alloca(BUFLEN); in construct_fru_fmri() local
143 while (fgets(tmpbuf, BUFLEN, fp) != NULL) { in construct_fru_fmri()
144 if (strstr(tmpbuf, "VERSION:") != NULL) { in construct_fru_fmri()
145 token = strtok(tmpbuf, ":"); in construct_fru_fmri()
148 } else if (strstr(tmpbuf, "BASEDIR:") != NULL) { in construct_fru_fmri()
149 token = strtok(tmpbuf, ":"); in construct_fru_fmri()
194 static char tmpbuf[BUFLEN]; in pkg_fmri_create() local
200 (void) snprintf(tmpbuf, BUFLEN, PKGCHK_CMD, path); in pkg_fmri_create()
201 topo_mod_dprintf(mp, "popen of %s\n", tmpbuf); in pkg_fmri_create()
202 pcout = popen(tmpbuf, "r"); in pkg_fmri_create()
207 (void) fgets(tmpbuf, BUFLEN, pcout); in pkg_fmri_create()
209 topo_mod_dprintf(mp, "%s", tmpbuf); in pkg_fmri_create()
211 if ((findpkgname = strtok(tmpbuf, " \n")) == NULL) in pkg_fmri_create()
215 (void) snprintf(tmpbuf, BUFLEN, PKGINFO_CMD, pkgname); in pkg_fmri_create()
216 topo_mod_dprintf(mp, "popen of %s\n", tmpbuf); in pkg_fmri_create()
217 pcout = popen(tmpbuf, "r"); in pkg_fmri_create()