public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fa71fb
)
ls.c: add support for fifo type. (print a 'p')
author
Brett Gordon
<beretta42@gmail.com>
Sun, 20 Dec 2015 02:39:35 +0000
(21:39 -0500)
committer
Brett Gordon
<beretta42@gmail.com>
Sun, 20 Dec 2015 02:47:26 +0000
(21:47 -0500)
Applications/util/ls.c
patch
|
blob
|
history
diff --git
a/Applications/util/ls.c
b/Applications/util/ls.c
index
7ec1ab6
..
96ff866
100644
(file)
--- a/
Applications/util/ls.c
+++ b/
Applications/util/ls.c
@@
-83,6
+83,8
@@
static char *modestring(int mode)
buf[0] = 'c';
if (S_ISBLK(mode))
buf[0] = 'b';
+ if (S_ISFIFO(mode))
+ buf[0] = 'p';
#ifdef S_ISLNK
if (S_ISLNK(mode))
buf[0] = 'l';