X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Funexec.c;h=fae01622cd6989de9594db745c719d08f860712d;hb=2d269f8435b0b501fe174cfbf8ec9d94838f5186;hp=ae2f945d917e7da9bd525397ffd6d927f4ebdc0e;hpb=3e447015251ce6dcde843cbed10d9033d5538622;p=chise%2Fxemacs-chise.git.1 diff --git a/src/unexec.c b/src/unexec.c index ae2f945..fae0162 100644 --- a/src/unexec.c +++ b/src/unexec.c @@ -209,33 +209,7 @@ pointer looks like an int) but not on all machines. int need_coff_header = 1; #include /* The location might be a poor assumption */ #else -#ifdef MSDOS -#if __DJGPP__ > 1 -#include /* for O_RDONLY, O_RDWR */ -#endif -#include -#define filehdr external_filehdr -#define scnhdr external_scnhdr -#define syment external_syment -#define auxent external_auxent -#define n_numaux e_numaux -#define n_type e_type -struct aouthdr -{ - unsigned short magic; /* type of file */ - unsigned short vstamp; /* version stamp */ - unsigned long tsize; /* text size in bytes, padded to FW bdry*/ - unsigned long dsize; /* initialized data " " */ - unsigned long bsize; /* uninitialized data " " */ - unsigned long entry; /* entry pt. */ - unsigned long text_start;/* base of text used for this file */ - unsigned long data_start;/* base of data used for this file */ -}; - - -#else /* not MSDOS */ #include -#endif /* not MSDOS */ #endif /* not COFF_ENCAPSULATE */ /* Define getpagesize if the system does not. @@ -911,14 +885,6 @@ copy_text_and_data (int new, int a_out) #else /* COFF, but not USG_SHARED_LIBRARIES */ -#ifdef MSDOS -#if __DJGPP__ >= 2 - /* Dump the original table of exception handlers, not the one - where our exception hooks are registered. */ - __djgpp_exception_toggle (); -#endif -#endif - lseek (new, (long) text_scnptr, 0); ptr = (char *) f_ohdr.text_start; #ifdef HEADER_INCL_IN_TEXT @@ -933,13 +899,6 @@ copy_text_and_data (int new, int a_out) end = ptr + f_ohdr.dsize; write_segment (new, ptr, end); -#ifdef MSDOS -#if __DJGPP__ >= 2 - /* Restore our exception hooks. */ - __djgpp_exception_toggle (); -#endif -#endif - #endif /* USG_SHARED_LIBRARIES */ #else /* if not COFF */ @@ -1221,11 +1180,7 @@ adjust_lnnoptrs (writedesc, readdesc, new_name) if (!lnnoptr || !f_hdr.f_symptr) return 0; -#ifdef MSDOS - if ((new = writedesc) < 0) -#else if ((new = open (new_name, O_RDWR)) < 0) -#endif { PERROR (new_name); return -1; @@ -1247,9 +1202,7 @@ adjust_lnnoptrs (writedesc, readdesc, new_name) } } } -#ifndef MSDOS close (new); -#endif return 0; }