Mercurial > hg > xemacs-beta
comparison src/unexec.c @ 380:8626e4521993 r21-2-5
Import from CVS: tag r21-2-5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:07:10 +0200 |
parents | a300bb07d72d |
children | 74fd4e045ea6 |
comparison
equal
deleted
inserted
replaced
379:76b7d63099ad | 380:8626e4521993 |
---|---|
192 | 192 |
193 # include <stddef.h> | 193 # include <stddef.h> |
194 # include <stdlib.h> | 194 # include <stdlib.h> |
195 # include <unistd.h> | 195 # include <unistd.h> |
196 # include <string.h> | 196 # include <string.h> |
197 # include <stddef.h> | |
197 | 198 |
198 # ifdef __lucid | 199 # ifdef __lucid |
199 # include <sysent.h> | 200 # include <sysent.h> |
200 # endif | 201 # endif |
201 | 202 |
286 | 287 |
287 #else /* not COFF */ | 288 #else /* not COFF */ |
288 | 289 |
289 #ifdef __STDC__ | 290 #ifdef __STDC__ |
290 #ifndef __sys_stdtypes_h | 291 #ifndef __sys_stdtypes_h |
291 #ifndef _PTRDIFF_T | 292 #if !defined(_PTRDIFF_T) && !defined(_BSD_PTRDIFF_T_) |
292 typedef long ptrdiff_t; | 293 typedef long ptrdiff_t; |
293 #endif | 294 #endif |
294 #endif | 295 #endif |
295 #ifndef HPUX | 296 #ifndef HPUX |
296 /* not sure where this for NetBSD should really go | 297 /* not sure where this for NetBSD should really go |
966 lseek (new, (long) N_TXTOFF (hdr), 0); | 967 lseek (new, (long) N_TXTOFF (hdr), 0); |
967 #endif /* no A_TEXT_SEEK */ | 968 #endif /* no A_TEXT_SEEK */ |
968 | 969 |
969 #ifdef RISCiX | 970 #ifdef RISCiX |
970 | 971 |
971 /* Acorn's RISC-iX has a wacky way of initialising the position of the heap. | 972 /* Acorn's RISC-iX has a wacky way of initializing the position of the heap. |
972 * There is a little table in crt0.o that is filled at link time with | 973 * There is a little table in crt0.o that is filled at link time with |
973 * the min and current brk positions, among other things. When start | 974 * the min and current brk positions, among other things. When start |
974 * runs, it copies the table to where these parameters live during | 975 * runs, it copies the table to where these parameters live during |
975 * execution. This data is in text space, so it cannot be modified here | 976 * execution. This data is in text space, so it cannot be modified here |
976 * before saving the executable, so the data is written manually. In | 977 * before saving the executable, so the data is written manually. In |