Lines Matching defs:bounds
94 #define CMODE 0664 /* bounds file creation mode */
103 #define BOUNDS "bounds" /* message bounds file */
170 FILE *bounds;
249 * determine current message bounds
251 snprintf(fname, sizeof (fname), "%s/%s", _PATH_MSGS, BOUNDS);
252 bounds = fopen(fname, "r");
254 if (bounds != NULL) {
255 if (fscanf(bounds, "%d %d\n", &firstmsg, &lastmsg) < 2)
257 fclose(bounds);
264 if (clean || bounds == NULL) { /* relocate message bounds */
327 bounds = fopen(fname, "w");
328 if (bounds == NULL) {
333 fprintf(bounds, "%d %d\n", firstmsg, lastmsg);
334 fclose(bounds);
342 bounds = fopen(fname, "w");
343 if (bounds == NULL) {
357 fprintf(bounds, "%d %d\n", firstmsg, nextmsg);
358 fclose(bounds);
422 printf("Warning: bounds have been reset (%d, %d)\n",