Mercurial > hg > xemacs-beta
comparison src/filemode.c @ 404:2f8bb876ab1d r21-2-32
Import from CVS: tag r21-2-32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:16:07 +0200 |
parents | 376386a54a3c |
children | 697ef44129c6 e5da225ea2ca |
comparison
equal
deleted
inserted
replaced
403:9f011ab08d48 | 404:2f8bb876ab1d |
---|---|
77 | 77 |
78 static void | 78 static void |
79 mode_string (unsigned short mode, char *str) | 79 mode_string (unsigned short mode, char *str) |
80 { | 80 { |
81 str[0] = ftypelet (mode); | 81 str[0] = ftypelet (mode); |
82 rwx ((mode & 0700) << 0, &str[1]); | 82 rwx ((unsigned short) ((mode & 0700) << 0), &str[1]); |
83 rwx ((mode & 0070) << 3, &str[4]); | 83 rwx ((unsigned short) ((mode & 0070) << 3), &str[4]); |
84 rwx ((mode & 0007) << 6, &str[7]); | 84 rwx ((unsigned short) ((mode & 0007) << 6), &str[7]); |
85 setst (mode, str); | 85 setst (mode, str); |
86 } | 86 } |
87 | 87 |
88 /* Return a character indicating the type of file described by | 88 /* Return a character indicating the type of file described by |
89 file mode BITS: | 89 file mode BITS: |