hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 323485441e972208ed130afaec3017e8bfcf3746
parent 45f249f3ad1c40ad254c3fd026187744acaa4b99
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 24 Feb 2021 12:51:28 -0500

fs::mode_str: fill out more file types

Diffstat:
Mfs/util.ha | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/util.ha b/fs/util.ha @@ -20,6 +20,9 @@ export fn mode_str(m: mode) const str = { if (m & mode::DIR == mode::DIR) "d" else if (m & mode::FIFO == mode::FIFO) "p" else if (m & mode::SOCK == mode::SOCK) "s" + else if (m & mode::BLK == mode::BLK) "b" + else if (m & mode::LINK == mode::LINK) "l" + else if (m & mode::CHR == mode::CHR) "c" else "-", if (m & mode::USER_R == mode::USER_R) "r" else "-", if (m & mode::USER_W == mode::USER_W) "w" else "-",