Don't convert function pointers to void * and back.
[emacs.git] / src / unexsol.c
blob470206d58387fc27b95c35ac01303c57ce9d1a52
1 /* Trivial unexec for Solaris. */
3 #include <config.h>
4 #include "unexec.h"
6 #include <dlfcn.h>
8 #include "lisp.h"
9 #include "character.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)));