Lines Matching refs:filebuf
74 unsigned char *filebuf = NULL; in main() local
164 filebuf = realloc(filebuf, filesize + readlen); in main()
165 if (!filebuf) { in main()
169 readbytes = read(txt_fd, filebuf + filesize, readlen); in main()
196 filebuf = mmap(NULL, sizeof(*envptr) * filesize, PROT_READ, in main()
198 if (filebuf == MAP_FAILED) { in main()
204 filebuf = malloc(sizeof(*envptr) * filesize); in main()
205 ret = read(txt_fd, filebuf, sizeof(*envptr) * filesize); in main()
220 if (filebuf[fp] == '\n') { in main()
221 if (fp == 0 || filebuf[fp-1] == '\n') { in main()
226 } else if (filebuf[fp-1] == '\\') { in main()
239 } else if ((fp == 0 || filebuf[fp-1] == '\n') && filebuf[fp] == '#') { in main()
241 while (++fp < filesize && filebuf[fp] != '\n') in main()
244 envptr[ep++] = filebuf[fp]; in main()
253 if (filebuf[fp] == '\n') { in main()
254 if (fp == 0 || filebuf[fp-1] == '\n') { in main()
258 } else if ((fp == 0 || filebuf[fp-1] == '\n') && filebuf[fp] == '#') { in main()
259 while (++fp < filesize && filebuf[fp] != '\n') in main()