diff options
| author | Richard M. Stallman | 2002-09-01 13:45:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-09-01 13:45:21 +0000 |
| commit | acb46fd42a2ebbe48944d0c80bfc21cf5e7bbcd1 (patch) | |
| tree | 5adce8a62db118b399b5c708499616306feaa927 /src/unexsol.c | |
| parent | 133cfefd7b140ea31fbfa2dfae8d3a3a3e30a738 (diff) | |
| download | emacs-acb46fd42a2ebbe48944d0c80bfc21cf5e7bbcd1.tar.gz emacs-acb46fd42a2ebbe48944d0c80bfc21cf5e7bbcd1.zip | |
Initial version.
Diffstat (limited to 'src/unexsol.c')
| -rw-r--r-- | src/unexsol.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/unexsol.c b/src/unexsol.c new file mode 100644 index 00000000000..ff8a812f279 --- /dev/null +++ b/src/unexsol.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Trivial unexec for Solaris. */ | ||
| 2 | |||
| 3 | #include <config.h> | ||
| 4 | #include <stdlib.h> | ||
| 5 | #include <dlfcn.h> | ||
| 6 | |||
| 7 | #include "lisp.h" | ||
| 8 | |||
| 9 | int | ||
| 10 | unexec (char *new_name, char *old_name, unsigned int data_start, | ||
| 11 | unsigned int bss_start, unsigned int entry_address) | ||
| 12 | { | ||
| 13 | if (dldump (0, new_name, RTLD_MEMORY)) | ||
| 14 | report_file_error ("Cannot unexec", Fcons (build_string (new_name), Qnil)); | ||
| 15 | |||
| 16 | return 0; | ||
| 17 | } | ||