#include <sys/ioctl.h>
#endif
-#ifdef APOLLO
-#ifndef APOLLO_SR10
-#include <default_acl.h>
-#endif
-#endif
-
#include "lisp.h"
#include "commands.h"
#include "intervals.h"
extern Lisp_Object Vwindow_system;
#endif /* HAVE_X_WINDOWS */
+extern Lisp_Object Vauto_save_list_file_name;
+
#ifdef USG_SHARED_LIBRARIES
/* If nonzero, this is the place to put the end of the writable segment
at startup. */
clearerr (stdin);
-#ifdef APOLLO
-#ifndef APOLLO_SR10
- /* If USE_DOMAIN_ACLS environment variable exists,
- use ACLs rather than UNIX modes. */
- if (egetenv ("USE_DOMAIN_ACLS"))
- default_acl (USE_DEFACL);
-#endif
-#endif /* APOLLO */
-
#ifndef SYSTEM_MALLOC
if (! initialized)
{
if (!NILP (Vrun_hooks) && !noninteractive)
call1 (Vrun_hooks, intern ("kill-emacs-hook"));
+ /* If we have an auto-save list file,
+ kill it because we are exiting Emacs deliberately (not crashing). */
+ if (STRINGP (Vauto_save_list_file_name))
+ unlink (XSTRING (Vauto_save_list_file_name)->data);
+
UNGCPRO;
/* Is it really necessary to do this deassign
\f
#ifndef CANNOT_DUMP
-/* Nothing like this can be implemented on an Apollo.
- What a loss! */
#ifdef HAVE_SHM
/* Tell malloc where start of impure now is */
/* Also arrange for warnings when nearly out of space. */
#ifndef SYSTEM_MALLOC
- memory_warnings (&my_edata, malloc_warning);
+ memory_warnings (my_edata, malloc_warning);
#endif
map_out_data (XSTRING (intoname)->data);