Lines Matching refs:filesize
75 unsigned int filesize = 0, envsize = 0, datasize = 0; in main() local
164 filebuf = realloc(filebuf, filesize + readlen); in main()
169 readbytes = read(txt_fd, filebuf + filesize, readlen); in main()
175 filesize += readbytes; in main()
194 filesize = txt_file_stat.st_size; in main()
196 filebuf = mmap(NULL, sizeof(*envptr) * filesize, PROT_READ, in main()
200 sizeof(*envptr) * filesize, in main()
204 filebuf = malloc(sizeof(*envptr) * filesize); in main()
205 ret = read(txt_fd, filebuf, sizeof(*envptr) * filesize); in main()
206 if (ret != sizeof(*envptr) * filesize) { in main()
208 sizeof(*envptr) * filesize, in main()
219 for (fp = 0, ep = 0 ; fp < filesize && ep < envsize - 1; fp++) { in main()
241 while (++fp < filesize && filebuf[fp] != '\n') in main()
251 for( ; fp < filesize; fp++ ) in main()
259 while (++fp < filesize && filebuf[fp] != '\n') in main()