Lines Matching defs:file
49 * This file implements the input routines used by the parser.
77 * contains information about the current file being read.
81 struct parsefile *prev; /* preceding file on stack */
83 int fd; /* file descriptor (or -1 if string) */
97 static char basebuf[BUFSIZ + 1];/* buffer for top level input file */
98 static struct parsefile basepf = { /* top level input file */
102 static struct parsefile *parsefile = &basepf; /* current input file */
148 * Read a character from the script, returning PEOF on end of file.
387 * Set the input to take input from a file. If push is set, push the
404 error("Out of file descriptors");
413 * Like setinputfile, but takes an open file descriptor (which should have
499 * Return current file (to go back to it later using popfilesupto()).
510 * Pop files until the given file is on top again. Useful for regular
512 * If the given file is not an active file, an error is raised.
516 popfilesupto(struct parsefile *file)
518 while (parsefile != file && parsefile != &basepf)
520 if (parsefile != file)
538 * Close the file(s) that the shell is reading commands from. Called