changeset 47190:85923ab92112

Initial version.
author Richard M. Stallman <rms@gnu.org>
date Sun, 01 Sep 2002 13:45:21 +0000
parents 4e4edde4b0a6
children b4e29bd646c7
files src/unexsol.c
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/unexsol.c	Sun Sep 01 13:45:21 2002 +0000
@@ -0,0 +1,17 @@
+/* Trivial unexec for Solaris.  */
+
+#include <config.h>
+#include <stdlib.h>
+#include <dlfcn.h>
+
+#include "lisp.h"
+
+int
+unexec (char *new_name, char *old_name, unsigned int data_start,
+        unsigned int bss_start, unsigned int entry_address)
+{
+  if (dldump (0, new_name, RTLD_MEMORY))
+    report_file_error ("Cannot unexec", Fcons (build_string (new_name), Qnil));
+
+  return 0;
+}