Lines Matching full:bounds
80 #define CMODE 0644 /* bounds file creation mode */
87 #define BOUNDS "bounds" /* message bounds file */ macro
152 struct stat buf; /* stat to check access of bounds */ in main()
153 FILE *bounds; in main() local
226 * determine current message bounds in main()
228 snprintf(fname, sizeof(fname), "%s/%s", _PATH_MSGS, BOUNDS); in main()
231 * Test access rights to the bounds file in main()
246 bounds = fopen(fname, "r"); in main()
248 if (bounds != NULL) { in main()
249 fscanf(bounds, "%d %d\n", &firstmsg, &lastmsg); in main()
250 fclose(bounds); in main()
257 if (clean || bounds == NULL) { /* relocate message bounds */ in main()
314 bounds = fopen(fname, "w"); in main()
315 if (bounds == NULL) in main()
318 fprintf(bounds, "%d %d\n", firstmsg, lastmsg); in main()
319 fclose(bounds); in main()
327 bounds = fopen(fname, "w"); in main()
328 if (bounds == NULL) in main()
338 fprintf(bounds, "%d %d\n", firstmsg, nextmsg); in main()
339 fclose(bounds); in main()
398 printf("Warning: bounds have been reset (%d, %d)\n", in main()