Home | History | Annotate | Download | only in misc

Lines Matching defs:file

7  * This file may be redistributed under the terms of the GNU Public
125 static char *get_line(struct mem_file *file)
130 cp = file->buf + file->ptr;
139 memcpy(ret, file->buf + file->ptr, s);
144 file->ptr += s;
148 static int mem_file_eof(struct mem_file *file)
150 return (file->ptr >= file->size);
338 struct mem_file file;
343 retval = get_file(fs, "/etc/fstab", &file);
349 while (!mem_file_eof(&file)) {
350 buf = get_line(&file);