X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/463f5630a5e7cbe7f042bc1175d1fa1c4e98860f..41d579ce4a2a86428f200788df4b15b936aa5076:/src/unexhp9k800.c diff --git a/src/unexhp9k800.c b/src/unexhp9k800.c index 0948ccf9a1..c0471992a7 100644 --- a/src/unexhp9k800.c +++ b/src/unexhp9k800.c @@ -1,4 +1,16 @@ /* Unexec for HP 9000 Series 800 machines. + + This file is in the public domain. + + Author: John V. Morris + + This file was written by John V. Morris at Hewlett Packard. + Both the author and Hewlett Packard Co. have disclaimed the + copyright on this file, and it is therefore in the public domain. + (Search for "hp9k800" in copyright.list.) +*/ + +/* Bob Desinger Note that the GNU project considers support for HP operation a @@ -37,19 +49,12 @@ sigsetreturn (_sigreturn); */ -#ifdef emacs #include -#endif - #include #include #include - #include - -#ifdef HPUX_USE_SHLIBS #include -#endif /* brk value to restore, stored as a global. This is really used only if we used shared libraries. */ @@ -69,12 +74,9 @@ run_time_remap (ignored) /* Create a new a.out file, same as old but with current data space */ - -unexec (new_name, old_name, new_end_of_text, dummy1, dummy2) - char new_name[]; /* name of the new a.out file to be created */ - char old_name[]; /* name of the old a.out file */ - char *new_end_of_text; /* ptr to new edata/etext; NOT USED YET */ - int dummy1, dummy2; /* not used by emacs */ +int +unexec (const char *new_name, /* name of the new a.out file to be created */ + const char *old_name) /* name of the old a.out file */ { int old, new; int old_size, new_size; @@ -216,7 +218,7 @@ read_header (file, hdr, auxhdr) if (hdr->a_magic != EXEC_MAGIC && hdr->a_magic != SHARE_MAGIC && hdr->a_magic != DEMAND_MAGIC) { - fprintf (stderr, "a.out file doesn't have legal magic number\n"); + fprintf (stderr, "a.out file doesn't have valid magic number\n"); exit (1); } @@ -317,3 +319,4 @@ display_header (hdr, auxhdr) hdr->unloadable_sp_location, hdr->unloadable_sp_size); } #endif /* DEBUG */ +