pub unsafe extern "C" fn udf_mode_string(
i_mode: mode_t,
psz_str: *mut c_char,
) -> *mut c_charExpand description
udf_mode_string - fill in string PSZ_STR with an ls-style ASCII representation of the i_mode. PSZ_STR is returned.
10 characters are stored in PSZ_STR; a terminating null byte is added. The characters stored in PSZ_STR are:
0 File type. ‘d’ for directory, ‘c’ for character special, ‘b’ for block special, ‘m’ for multiplex, ‘l’ for symbolic link, ‘s’ for socket, ‘p’ for fifo, ‘-’ for regular, ‘?’ for any other file type
1 ‘r’ if the owner may read, ‘-’ otherwise.
2 ‘w’ if the owner may write, ‘-’ otherwise.
3 ‘x’ if the owner may execute, ‘s’ if the file is set-user-id, ‘-’ otherwise. ‘S’ if the file is set-user-id, but the execute bit isn’t set.
4 ‘r’ if group members may read, ‘-’ otherwise.
5 ‘w’ if group members may write, ‘-’ otherwise.
6 ‘x’ if group members may execute, ‘s’ if the file is set-group-id, ‘-’ otherwise. ‘S’ if it is set-group-id but not executable.
7 ‘r’ if any user may read, ‘-’ otherwise.
8 ‘w’ if any user may write, ‘-’ otherwise.
9 ‘x’ if any user may execute, ‘t’ if the file is “sticky” (will be retained in swap space after execution), ‘-’ otherwise. ‘T’ if the file is sticky but not executable.