comparison src/sysdep.c @ 46591:33d141338a55

(end_of_text, end_of_data): Unused functions deleted.
author Ken Raeburn <raeburn@raeburn.org>
date Sun, 21 Jul 2002 14:17:19 +0000
parents d613ff01b7a8
children 8ba889cb6430
comparison
equal deleted inserted replaced
46590:6d61bcf4f8f4 46591:33d141338a55
2258 return ((char *) &data_start); 2258 return ((char *) &data_start);
2259 #endif /* ORDINARY_LINK */ 2259 #endif /* ORDINARY_LINK */
2260 #endif /* DATA_START */ 2260 #endif /* DATA_START */
2261 } 2261 }
2262 #endif /* NEED_STARTS (not CANNOT_DUMP or not SYSTEM_MALLOC) */ 2262 #endif /* NEED_STARTS (not CANNOT_DUMP or not SYSTEM_MALLOC) */
2263
2264 #ifndef CANNOT_DUMP
2265 /* Some systems that cannot dump also cannot implement these. */
2266
2267 /*
2268 * Return the address of the end of the text segment prior to
2269 * doing an unexec. After unexec the return value is undefined.
2270 */
2271
2272 char *
2273 end_of_text ()
2274 {
2275 #ifdef TEXT_END
2276 return ((char *) TEXT_END);
2277 #else
2278 extern int etext;
2279 return ((char *) &etext);
2280 #endif
2281 }
2282
2283 /*
2284 * Return the address of the end of the data segment prior to
2285 * doing an unexec. After unexec the return value is undefined.
2286 */
2287
2288 char *
2289 end_of_data ()
2290 {
2291 #ifdef DATA_END
2292 return ((char *) DATA_END);
2293 #else
2294 extern int edata;
2295 return ((char *) &edata);
2296 #endif
2297 }
2298
2299 #endif /* not CANNOT_DUMP */
2300 2263
2301 /* init_system_name sets up the string for the Lisp function 2264 /* init_system_name sets up the string for the Lisp function
2302 system-name to return. */ 2265 system-name to return. */
2303 2266
2304 #ifdef BSD4_1 2267 #ifdef BSD4_1