From 3ba53262ba815ca94572b0c23e2bc0eed83d5cbb Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 26 May 2025 00:11:08 -0400 Subject: kernel: devfs: Detect block devices This commit also adds the S_IFBLK flag in sys/stat.h Signed-off-by: Ian Moffett --- sys/include/sys/stat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/include') diff --git a/sys/include/sys/stat.h b/sys/include/sys/stat.h index 6303630..6f1f371 100644 --- a/sys/include/sys/stat.h +++ b/sys/include/sys/stat.h @@ -32,6 +32,8 @@ #include +#define S_IFBLK 0060000 + struct stat { dev_t st_dev; ino_t st_ino; -- cgit v1.2.3