HelenOS sources

S_IFDIR            41 uspace/lib/minix/minix.h #define S_IFDIR			0040000		/* Directory */
S_IFDIR            50 uspace/lib/posix/include/posix/sys/stat.h #define S_IFDIR    0040000   /* directory */
HelenOS homepage, sources at GitHub