Home | History | Annotate | Download | only in futility

Lines Matching defs:fp

201 	FILE *fp = NULL;
205 fp = fopen(filename, "rb");
206 if (!fp) {
212 if (0 != fstat(fileno(fp), &sb)) {
227 if (1 != fread(buf, sb.st_size, 1, fp)) {
233 if (fp && 0 != fclose(fp)) {
247 if (fp && 0 != fclose(fp))
256 FILE *fp;
259 fp = fopen(filename, "wb");
260 if (!fp) {
268 if (size && 1 != fwrite(start, size, 1, fp)) {
275 if (0 != fclose(fp)) {
292 FILE *fp;
297 fp = fopen(filename, "rb");
298 if (!fp) {
305 if (0 != fstat(fileno(fp), &sb)) {
326 count = fread(start, 1, size, fp);
327 if (ferror(fp)) {
336 if (0 != fclose(fp)) {