ls.c: add support for fifo type. (print a 'p')
authorBrett Gordon <beretta42@gmail.com>
Sun, 20 Dec 2015 02:39:35 +0000 (21:39 -0500)
committerBrett Gordon <beretta42@gmail.com>
Sun, 20 Dec 2015 02:47:26 +0000 (21:47 -0500)
Applications/util/ls.c

index 7ec1ab6..96ff866 100644 (file)
@@ -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';