X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d5db40779d7505244d37476b4f046641f07eea2b..8030369ccb5c871d3ce11b96c220f318bc741ed8:/src/sysdep.c diff --git a/src/sysdep.c b/src/sysdep.c index 9b49f72b4e..206ecca427 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2237,6 +2237,7 @@ start_of_text () * */ +#ifndef start_of_data char * start_of_data () { @@ -2259,44 +2260,8 @@ start_of_data () #endif /* ORDINARY_LINK */ #endif /* DATA_START */ } +#endif /* start_of_data */ #endif /* NEED_STARTS (not CANNOT_DUMP or not SYSTEM_MALLOC) */ - -#ifndef CANNOT_DUMP -/* Some systems that cannot dump also cannot implement these. */ - -/* - * Return the address of the end of the text segment prior to - * doing an unexec. After unexec the return value is undefined. - */ - -char * -end_of_text () -{ -#ifdef TEXT_END - return ((char *) TEXT_END); -#else - extern int etext; - return ((char *) &etext); -#endif -} - -/* - * Return the address of the end of the data segment prior to - * doing an unexec. After unexec the return value is undefined. - */ - -char * -end_of_data () -{ -#ifdef DATA_END - return ((char *) DATA_END); -#else - extern int edata; - return ((char *) &edata); -#endif -} - -#endif /* not CANNOT_DUMP */ /* init_system_name sets up the string for the Lisp function system-name to return. */ @@ -3262,7 +3227,7 @@ strerror (errnum) int emacs_open (path, oflag, mode) - char *path; + const char *path; int oflag, mode; { register int rtnval; @@ -3313,7 +3278,7 @@ emacs_read (fildes, buf, nbyte) int emacs_write (fildes, buf, nbyte) int fildes; - char *buf; + const char *buf; unsigned int nbyte; { register int rtnval, bytes_written; @@ -3685,7 +3650,7 @@ readdirver (dirp) int set_file_times (filename, atime, mtime) - char *filename; + const char *filename; EMACS_TIME atime, mtime; { #ifdef HAVE_UTIMES