comparison src/filemode.c @ 1467:e5da225ea2ca

[xemacs-hg @ 2003-05-09 09:50:40 by stephent] #define stat workaround <87r878ihhf.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Fri, 09 May 2003 09:50:42 +0000
parents 2f8bb876ab1d
children 04bc9d2f42c7
comparison
equal deleted inserted replaced
1466:88a2f43560bf 1467:e5da225ea2ca
28 static void mode_string (unsigned short mode, char *str); 28 static void mode_string (unsigned short mode, char *str);
29 static char ftypelet (mode_t bits); 29 static char ftypelet (mode_t bits);
30 static void rwx (unsigned short bits, char *chars); 30 static void rwx (unsigned short bits, char *chars);
31 static void setst (unsigned short bits, char *chars); 31 static void setst (unsigned short bits, char *chars);
32 32
33 /* filemodestring - fill in string STR with an ls-style ASCII 33 /* declared in "sysfile.h"
34
35 filemodestring - fill in string STR with an ls-style ASCII
34 representation of the st_mode field of file stats block STATP. 36 representation of the st_mode field of file stats block STATP.
35 10 characters are stored in STR; no terminating null is added. 37 10 characters are stored in STR; no terminating null is added.
36 The characters stored in STR are: 38 The characters stored in STR are:
37 39
38 0 File type. 'd' for directory, 'c' for character 40 0 File type. 'd' for directory, 'c' for character