aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-03 12:43:54 +0000
committerGerd Moellmann2001-01-03 12:43:54 +0000
commit0a974c854dedd9a25e02622a845ff6a72f00f85c (patch)
tree400d8ab9b137e21d45940f9ebcea821839daff5b /src
parentbafb434cc5948119a0d9cff1196471a16f68f475 (diff)
downloademacs-0a974c854dedd9a25e02622a845ff6a72f00f85c.tar.gz
emacs-0a974c854dedd9a25e02622a845ff6a72f00f85c.zip
(Ffile_attributes): Fix last change, removing BSD4_3
kluge.
Diffstat (limited to 'src')
-rw-r--r--src/dired.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/dired.c b/src/dired.c
index eb124f57c76..04b14f6c4a5 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -1,5 +1,6 @@
1/* Lisp functions for making directory listings. 1/* Lisp functions for making directory listings.
2 Copyright (C) 1985, 1986, 1993, 1994, 1999 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1993, 1994, 1999, 2000, 2001
3 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -820,7 +821,7 @@ If file does not exist, returns nil.")
820 Lisp_Object values[12]; 821 Lisp_Object values[12];
821 Lisp_Object encoded; 822 Lisp_Object encoded;
822 struct stat s; 823 struct stat s;
823#ifdef BSD4_2 824#if defined (BSD4_2) || defined (BSD4_3)
824 Lisp_Object dirname; 825 Lisp_Object dirname;
825 struct stat sdir; 826 struct stat sdir;
826#endif 827#endif
@@ -863,10 +864,7 @@ If file does not exist, returns nil.")
863 values[7] = make_float ((double)s.st_size); 864 values[7] = make_float ((double)s.st_size);
864 filemodestring (&s, modes); 865 filemodestring (&s, modes);
865 values[8] = make_string (modes, 10); 866 values[8] = make_string (modes, 10);
866#ifdef BSD4_3 /* Gross kludge to avoid lack of "#if defined(...)" in VMS */ 867#if defined (BSD4_2) || defined (BSD4_3) /* file gid will be dir gid */
867#define BSD4_2 /* A new meaning to the term `backwards compatibility' */
868#endif
869#ifdef BSD4_2 /* file gid will be dir gid */
870 dirname = Ffile_name_directory (filename); 868 dirname = Ffile_name_directory (filename);
871 if (! NILP (dirname)) 869 if (! NILP (dirname))
872 encoded = ENCODE_FILE (dirname); 870 encoded = ENCODE_FILE (dirname);
@@ -877,9 +875,6 @@ If file does not exist, returns nil.")
877#else /* file gid will be egid */ 875#else /* file gid will be egid */
878 values[9] = (s.st_gid != getegid ()) ? Qt : Qnil; 876 values[9] = (s.st_gid != getegid ()) ? Qt : Qnil;
879#endif /* BSD4_2 (or BSD4_3) */ 877#endif /* BSD4_2 (or BSD4_3) */
880#ifdef BSD4_3
881#undef BSD4_2 /* ok, you can look again without throwing up */
882#endif
883 /* Cast -1 to avoid warning if int is not as wide as VALBITS. */ 878 /* Cast -1 to avoid warning if int is not as wide as VALBITS. */
884 if (s.st_ino & (((EMACS_INT) (-1)) << VALBITS)) 879 if (s.st_ino & (((EMACS_INT) (-1)) << VALBITS))
885 /* To allow inode numbers larger than VALBITS, separate the bottom 880 /* To allow inode numbers larger than VALBITS, separate the bottom