fs_shell: Added socket filetype.

Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
hyche
2017-12-10 11:02:59 -05:00
committed by Augustin Cavalier
parent 883b9bf29f
commit 2b6c2ec390
2 changed files with 9 additions and 7 deletions
+8 -7
View File
@@ -1277,13 +1277,14 @@
#define S_LINK_AUTO_DELETE FSSH_S_LINK_AUTO_DELETE
/* standard file types */
#define S_IFMT FSSH_S_IFMT
#define S_IFLNK FSSH_S_IFLNK
#define S_IFREG FSSH_S_IFREG
#define S_IFBLK FSSH_S_IFBLK
#define S_IFDIR FSSH_S_IFDIR
#define S_IFCHR FSSH_S_IFCHR
#define S_IFIFO FSSH_S_IFIFO
#define S_IFMT FSSH_S_IFMT
#define S_IFSOCK FSSH_S_IFSOCK
#define S_IFLNK FSSH_S_IFLNK
#define S_IFREG FSSH_S_IFREG
#define S_IFBLK FSSH_S_IFBLK
#define S_IFDIR FSSH_S_IFDIR
#define S_IFCHR FSSH_S_IFCHR
#define S_IFIFO FSSH_S_IFIFO
#define S_ISREG(mode) FSSH_S_ISREG(mode)
#define S_ISLNK(mode) FSSH_S_ISLNK(mode)
+1
View File
@@ -59,6 +59,7 @@ typedef struct fssh_stat fssh_struct_stat;
/* standard file types */
#define FSSH_S_IFMT 00000170000 /* type of file */
#define FSSH_S_IFSOCK 00000140000 /* socket */
#define FSSH_S_IFLNK 00000120000 /* symbolic link */
#define FSSH_S_IFREG 00000100000 /* regular */
#define FSSH_S_IFBLK 00000060000 /* block special */