* charset.h (struct charset.code_space): Now has 15 elements, not 16.
[emacs.git] / src / unexsol.c
blobef1e34e6f0f63fc9261bbbe52dba55874f3fc59a
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 "buffer.h"
11 #include "charset.h"
12 #include "coding.h"
14 void
15 unexec (const char *new_name, const char *old_name)
17 Lisp_Object data;
18 Lisp_Object errstring;
20 if (! dldump (0, new_name, RTLD_MEMORY))
21 return;
23 data = Fcons (build_string (new_name), Qnil);
24 synchronize_system_messages_locale ();
25 errstring = code_convert_string_norecord (build_string (dlerror ()),
26 Vlocale_coding_system, 0);
28 xsignal (Qfile_error,
29 Fcons (build_string ("Cannot unexec"), Fcons (errstring, data)));