From 6e4b9831f903e583d58de8b4265159f6d859ebc2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 2 Sep 2022 23:56:18 +0200 Subject: user/ports: bare minimum to run doomgeneric --- src/user/lib/include/sys/stat.h | 8 ++++++++ src/user/lib/include/sys/types.h | 1 + 2 files changed, 9 insertions(+) (limited to 'src/user/lib/include/sys') diff --git a/src/user/lib/include/sys/stat.h b/src/user/lib/include/sys/stat.h index a954c9b..78a8fc1 100644 --- a/src/user/lib/include/sys/stat.h +++ b/src/user/lib/include/sys/stat.h @@ -1,4 +1,5 @@ #pragma once +#include #include // only for ENOSYS #define S_ISFIFO(x) 0 @@ -9,3 +10,10 @@ static inline int fstat(int fd, struct stat *sb) { errno = ENOSYS; return -1; } + +static inline int mkdir(const char *path, mode_t mode) { + // TODO + (void)path; (void)mode; + errno = ENOSYS; + return -1; +} diff --git a/src/user/lib/include/sys/types.h b/src/user/lib/include/sys/types.h index 3b1772b..9f6f8f8 100644 --- a/src/user/lib/include/sys/types.h +++ b/src/user/lib/include/sys/types.h @@ -5,3 +5,4 @@ typedef long long off_t; typedef int64_t time_t; typedef uint64_t clock_t; +typedef int mode_t; -- cgit v1.2.3