aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c40
1 files changed, 3 insertions, 37 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 873d5d41d22..26020732160 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -68,10 +68,6 @@ extern int errno;
68#endif 68#endif
69#endif 69#endif
70 70
71#ifdef APOLLO
72#include <sys/time.h>
73#endif
74
75#include "lisp.h" 71#include "lisp.h"
76#include "intervals.h" 72#include "intervals.h"
77#include "buffer.h" 73#include "buffer.h"
@@ -814,12 +810,6 @@ directory_file_name (src, dst)
814 /* Process as Unix format: just remove any final slash. 810 /* Process as Unix format: just remove any final slash.
815 But leave "/" unchanged; do not change it to "". */ 811 But leave "/" unchanged; do not change it to "". */
816 strcpy (dst, src); 812 strcpy (dst, src);
817#ifdef APOLLO
818 /* Handle // as root for apollo's. */
819 if ((slen > 2 && dst[slen - 1] == '/')
820 || (slen > 1 && dst[0] != '/' && dst[slen - 1] == '/'))
821 dst[slen - 1] = 0;
822#else
823 if (slen > 1 813 if (slen > 1
824 && IS_DIRECTORY_SEP (dst[slen - 1]) 814 && IS_DIRECTORY_SEP (dst[slen - 1])
825#ifdef DOS_NT 815#ifdef DOS_NT
@@ -827,7 +817,6 @@ directory_file_name (src, dst)
827#endif 817#endif
828 ) 818 )
829 dst[slen - 1] = 0; 819 dst[slen - 1] = 0;
830#endif
831#ifdef DOS_NT 820#ifdef DOS_NT
832 CORRECT_DIR_SEPS (dst); 821 CORRECT_DIR_SEPS (dst);
833#endif 822#endif
@@ -1802,10 +1791,6 @@ See also the function `substitute-in-file-name'.")
1802 while (*p) 1791 while (*p)
1803 { 1792 {
1804 if (p[0] == '/' && p[1] == '/' 1793 if (p[0] == '/' && p[1] == '/'
1805#ifdef APOLLO
1806 /* // at start of filename is meaningful on Apollo system. */
1807 && nm != p
1808#endif /* APOLLO */
1809 ) 1794 )
1810 nm = p + 1; 1795 nm = p + 1;
1811 if (p[0] == '/' && p[1] == '~') 1796 if (p[0] == '/' && p[1] == '~')
@@ -2037,10 +2022,6 @@ See also the function `substitute-in-file-name'.")
2037 *o++ = *p++; 2022 *o++ = *p++;
2038 } 2023 }
2039 else if (!strncmp (p, "//", 2) 2024 else if (!strncmp (p, "//", 2)
2040#ifdef APOLLO
2041 /* // at start of filename is meaningful in Apollo system. */
2042 && o != target
2043#endif /* APOLLO */
2044 ) 2025 )
2045 { 2026 {
2046 o = target; 2027 o = target;
@@ -2056,11 +2037,6 @@ See also the function `substitute-in-file-name'.")
2056 { 2037 {
2057 while (o != target && *--o != '/') 2038 while (o != target && *--o != '/')
2058 ; 2039 ;
2059#ifdef APOLLO
2060 if (o == target + 1 && o[-1] == '/' && o[0] == '/')
2061 ++o;
2062 else
2063#endif /* APOLLO */
2064 if (o == target && *o == '/') 2040 if (o == target && *o == '/')
2065 ++o; 2041 ++o;
2066 p += 3; 2042 p += 3;
@@ -2111,11 +2087,11 @@ search_embedded_absfilename (nm, endp)
2111#endif /* VMS */ 2087#endif /* VMS */
2112 || IS_DIRECTORY_SEP (p[-1])) 2088 || IS_DIRECTORY_SEP (p[-1]))
2113 && file_name_absolute_p (p) 2089 && file_name_absolute_p (p)
2114#if defined (APOLLO) || defined (WINDOWSNT) || defined(CYGWIN) 2090#if defined (WINDOWSNT) || defined(CYGWIN)
2115 /* // at start of file name is meaningful in Apollo, 2091 /* // at start of file name is meaningful in Apollo,
2116 WindowsNT and Cygwin systems. */ 2092 WindowsNT and Cygwin systems. */
2117 && !(IS_DIRECTORY_SEP (p[0]) && p - 1 == nm) 2093 && !(IS_DIRECTORY_SEP (p[0]) && p - 1 == nm)
2118#endif /* not (APOLLO || WINDOWSNT || CYGWIN) */ 2094#endif /* not (WINDOWSNT || CYGWIN) */
2119 ) 2095 )
2120 { 2096 {
2121 for (s = p; *s && (!IS_DIRECTORY_SEP (*s) 2097 for (s = p; *s && (!IS_DIRECTORY_SEP (*s)
@@ -3801,12 +3777,7 @@ variable `last-coding-system-used' to the coding system actually used. */)
3801 } 3777 }
3802 if (total < 0) 3778 if (total < 0)
3803#else 3779#else
3804#ifndef APOLLO
3805 if (stat (SDATA (filename), &st) < 0) 3780 if (stat (SDATA (filename), &st) < 0)
3806#else
3807 if ((fd = emacs_open (SDATA (filename), O_RDONLY, 0)) < 0
3808 || fstat (fd, &st) < 0)
3809#endif /* not APOLLO */
3810#endif /* WINDOWSNT */ 3781#endif /* WINDOWSNT */
3811 { 3782 {
3812 if (fd >= 0) emacs_close (fd); 3783 if (fd >= 0) emacs_close (fd);
@@ -4652,9 +4623,6 @@ variable `last-coding-system-used' to the coding system actually used. */)
4652 { 4623 {
4653 if (!EQ (current_buffer->undo_list, Qt)) 4624 if (!EQ (current_buffer->undo_list, Qt))
4654 current_buffer->undo_list = Qnil; 4625 current_buffer->undo_list = Qnil;
4655#ifdef APOLLO
4656 stat (SDATA (filename), &st);
4657#endif
4658 4626
4659 if (NILP (handler)) 4627 if (NILP (handler))
4660 { 4628 {
@@ -5330,16 +5298,14 @@ This does code conversion according to the value of
5330 but who knows about all the other machines with NFS?) */ 5298 but who knows about all the other machines with NFS?) */
5331#if 0 5299#if 0
5332 5300
5333 /* On VMS and APOLLO, must do the stat after the close 5301 /* On VMS, must do the stat after the close
5334 since closing changes the modtime. */ 5302 since closing changes the modtime. */
5335#ifndef VMS 5303#ifndef VMS
5336#ifndef APOLLO
5337 /* Recall that #if defined does not work on VMS. */ 5304 /* Recall that #if defined does not work on VMS. */
5338#define FOO 5305#define FOO
5339 fstat (desc, &st); 5306 fstat (desc, &st);
5340#endif 5307#endif
5341#endif 5308#endif
5342#endif
5343 5309
5344 /* NFS can report a write failure now. */ 5310 /* NFS can report a write failure now. */
5345 if (emacs_close (desc) < 0) 5311 if (emacs_close (desc) < 0)