Added pull request #1189: Fix os::native_is_{file,dir} bug. Add tests.

This commit is contained in:
Christoffer Lerno
2024-07-15 03:02:54 +02:00
parent 24041ed80d
commit bc0d52142a
3 changed files with 19 additions and 2 deletions

View File

@@ -360,6 +360,7 @@ const int EOF = -1;
const int FOPEN_MAX = 20;
const int FILENAME_MAX = 1024;
macro bool libc_S_ISTYPE(value, mask) @builtin => (value & S_IFMT) == mask;
const S_IFMT = 0o170000; // type of file mask
const S_IFIFO = 0o010000; // named pipe (fifo)
const S_IFCHR = 0o020000; // character special