Symbol: parsefile
bin/sh/eval.c
875
struct parsefile *savetopfile;
bin/sh/input.c
100
static struct parsefile *parsefile = &basepf; /* current input file */
bin/sh/input.c
135
if (parsefile->fd == 0 && el) {
bin/sh/input.c
140
if (nr > 0 && parsefile->bufsize < (size_t)nr + 1) {
bin/sh/input.c
144
if (parsefile->buf != basebuf) {
bin/sh/input.c
145
ckfree(parsefile->buf);
bin/sh/input.c
146
parsefile->buf = NULL;
bin/sh/input.c
147
parsefile->bufsize = 0;
bin/sh/input.c
151
parsefile->buf = ckmalloc(bufsize);
bin/sh/input.c
152
parsefile->bufsize = bufsize;
bin/sh/input.c
156
memcpy(parsefile->buf, line, nr);
bin/sh/input.c
161
nr = read(parsefile->fd, parsefile->buf, parsefile->bufsize - 1);
bin/sh/input.c
170
if (parsefile->fd != 0)
bin/sh/input.c
182
parsefile->buf[nr] = '\0';
bin/sh/input.c
186
parsenextc = parsefile->buf;
bin/sh/input.c
207
while (parsefile->strpush) {
bin/sh/input.c
213
if (parsenleft == -1 && parsefile->strpush->ap != NULL)
bin/sh/input.c
219
if (parsenleft == EOF_NLEFT || parsefile->buf == NULL)
bin/sh/input.c
252
if (parsefile->fd == 0 && hist &&
bin/sh/input.c
282
if (parsefile->strpush)
bin/sh/input.c
284
if (parsenleft == EOF_NLEFT || parsefile->buf == NULL)
bin/sh/input.c
312
if (parsefile->strpush) {
bin/sh/input.c
314
sp->prev = parsefile->strpush;
bin/sh/input.c
315
parsefile->strpush = sp;
bin/sh/input.c
317
sp = parsefile->strpush = &(parsefile->basestrpush);
bin/sh/input.c
332
struct strpush *sp = parsefile->strpush;
bin/sh/input.c
345
parsefile->strpush = sp->prev;
bin/sh/input.c
346
if (sp != &(parsefile->basestrpush))
bin/sh/input.c
399
if (parsefile->fd > 0)
bin/sh/input.c
400
close(parsefile->fd);
bin/sh/input.c
401
parsefile->fd = fd;
bin/sh/input.c
402
if (parsefile->buf == NULL) {
bin/sh/input.c
403
parsefile->buf = ckmalloc(BUFSIZ + 1);
bin/sh/input.c
404
parsefile->bufsize = BUFSIZ + 1;
bin/sh/input.c
436
struct parsefile *pf;
bin/sh/input.c
438
pf = (struct parsefile *)ckmalloc(sizeof(struct parsefile));
bin/sh/input.c
439
*pf = (struct parsefile){ .prev = parsefile, .fd = -1 };
bin/sh/input.c
440
parsefile->nleft = parsenleft;
bin/sh/input.c
441
parsefile->lleft = parselleft;
bin/sh/input.c
442
parsefile->nextc = parsenextc;
bin/sh/input.c
443
parsefile->linno = plinno;
bin/sh/input.c
444
parsefile = pf;
bin/sh/input.c
451
struct parsefile *pf = parsefile;
bin/sh/input.c
460
parsefile = pf->prev;
bin/sh/input.c
462
parsenleft = parsefile->nleft;
bin/sh/input.c
463
parselleft = parsefile->lleft;
bin/sh/input.c
464
parsenextc = parsefile->nextc;
bin/sh/input.c
465
plinno = parsefile->linno;
bin/sh/input.c
474
struct parsefile *
bin/sh/input.c
477
return parsefile;
bin/sh/input.c
488
popfilesupto(struct parsefile *file)
bin/sh/input.c
490
while (parsefile != file && parsefile != &basepf)
bin/sh/input.c
492
if (parsefile != file)
bin/sh/input.c
503
while (parsefile != &basepf)
bin/sh/input.c
518
if (parsefile->fd > 0) {
bin/sh/input.c
519
close(parsefile->fd);
bin/sh/input.c
520
parsefile->fd = 0;
bin/sh/input.c
77
struct parsefile *prev; /* preceding file on stack */
bin/sh/input.c
95
static struct parsefile basepf = { /* top level input file */
bin/sh/input.h
47
struct parsefile;
bin/sh/input.h
59
struct parsefile *getcurrentfile(void);
bin/sh/input.h
60
void popfilesupto(struct parsefile *);
bin/sh/parser.c
1095
struct parsefile *const savetopfile = getcurrentfile();
bin/sh/parser.c
2364
struct parsefile *const savetopfile = getcurrentfile();
sbin/sysctl/sysctl.c
257
warncount += parsefile(file);
sbin/sysctl/sysctl.c
79
static int parsefile(FILE *);