diff src/sheap.c @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents fdefd0186b75
children 2b6fa2618f76
line wrap: on
line diff
--- a/src/sheap.c	Fri Mar 08 13:33:14 2002 +0000
+++ b/src/sheap.c	Wed Mar 13 08:54:06 2002 +0000
@@ -21,6 +21,8 @@
 #include <config.h>
 #include "lisp.h"
 
+#include "sysfile.h"
+
 #include <unistd.h>
 #include <sheap-adjust.h>
 
@@ -106,7 +108,7 @@
 static void
 sheap_adjust_h ()
 {
-  FILE *stream = fopen ("sheap-adjust.h", "w");
+  FILE *stream = retry_fopen ("sheap-adjust.h", "w");
 
   if (stream == NULL)
     report_file_error ("Opening sheap adjustment file",
@@ -117,7 +119,7 @@
 	   "\tAutomatically generated by XEmacs */\n"
 	   "# define SHEAP_ADJUSTMENT (%d)\n",
 	   ((static_heap_ptr - static_heap_buffer) - STATIC_HEAP_BASE));
-  fclose (stream);
+  retry_fclose (stream);
 }
 
 void report_sheap_usage (int die_if_pure_storage_exceeded);