Make Solaris door file support more consistent
- From: "Andrew V. Samoilov" <kai cmail ru>
- To: mc-devel gnome org, proski gnu org
- Subject: Make Solaris door file support more consistent
- Date: Mon, 8 Oct 2001 20:43:44 +0300 (EEST)
Hi!
This patch makes recently applied patch for Solaris door file
some more consistent.
Regards,
Andrew.
ChangeLog:
util.c (string_perm) [S_IFDOOR]: Add support for Solaris door file.
screen.c (string_file_type): Likewise.
Index: util.c
===================================================================
RCS file: /cvs/gnome/mc/src/util.c,v
retrieving revision 1.53
diff -u -p -u -p -r1.53 util.c
--- util.c 2001/09/11 02:18:02 1.53
+++ util.c 2001/10/08 17:15:23
@@ -360,6 +362,9 @@ char *string_perm (mode_t mode_bits)
if (ismode (mode_bits, S_ISVTX)) mode [9] = (mode [9] == 'x') ? 't' : 'T';
if (ismode (mode_bits, S_IFLNK)) mode [0] = 'l';
if (ismode (mode_bits, S_IFIFO)) mode [0] = 'p';
+#ifdef S_IFDOOR
+ if (ismode (mode_bits, S_IFDOOR)) mode [0] = 'D';
+#endif /* S_IFDOOR */
#endif /* !OS2_NT */
return mode;
}
--- screen.c Mon Sep 3 16:42:39 2001
+++ screen.c Mon Oct 8 20:39:21 2001
@@ -234,10 +234,16 @@
buffer [0] = '!';
else
buffer [0] = '@';
- } else if (S_ISSOCK (fe->buf.st_mode))
- buffer [0] = '=';
- else if (S_ISCHR (fe->buf.st_mode))
+ } else if (S_ISCHR (fe->buf.st_mode))
buffer [0] = '-';
+#ifdef S_ISSOCK
+ else if (S_ISSOCK (fe->buf.st_mode))
+ buffer [0] = '=';
+#endif
+#ifdef S_ISDOOR
+ else if (S_ISDOOR (fe->buf.st_mode))
+ buffer [0] = '>';
+#endif
else if (S_ISBLK (fe->buf.st_mode))
buffer [0] = '+';
else if (S_ISFIFO (fe->buf.st_mode))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]