Remove some make-docfile.c undes that are no longer needed
[emacs.git] / src / unexsol.c
blob336f3b4faea83e115d140a5acab114bd4676c5d9
1 /* Trivial unexec for Solaris. */
3 #include <config.h>
4 #include "unexec.h"
6 #include <dlfcn.h>
7 #include <setjmp.h>
9 #include "lisp.h"
10 #include "character.h"
11 #include "buffer.h"
12 #include "charset.h"
13 #include "coding.h"
15 void
16 unexec (const char *new_name, const char *old_name)
18 Lisp_Object data;
19 Lisp_Object errstring;
21 if (! dldump (0, new_name, RTLD_MEMORY))
22 return;
24 data = Fcons (build_string (new_name), Qnil);
25 synchronize_system_messages_locale ();
26 errstring = code_convert_string_norecord (build_string (dlerror ()),
27 Vlocale_coding_system, 0);
29 xsignal (Qfile_error,
30 Fcons (build_string ("Cannot unexec"), Fcons (errstring, data)));