diff --git a/kernel/include/sortix/__/types.h b/kernel/include/sortix/__/types.h index d74d1487..dd2cb26a 100644 --- a/kernel/include/sortix/__/types.h +++ b/kernel/include/sortix/__/types.h @@ -42,9 +42,9 @@ typedef int __clockid_t; typedef __uintptr_t __dev_t; -/* TODO: __fsblkcnt_t */ +typedef __intmax_t __fsblkcnt_t; -/* TODO: __fsblksize_t */ +typedef __intmax_t __fsfilcnt_t; typedef __uint64_t __gid_t; diff --git a/libc/include/sys/types.h b/libc/include/sys/types.h index a23592ef..e9db425b 100644 --- a/libc/include/sys/types.h +++ b/libc/include/sys/types.h @@ -58,9 +58,15 @@ typedef __clockid_t clockid_t; typedef __dev_t dev_t; #endif -/* TODO: fsblkcnt_t */ +#ifndef __fsblkcnt_t_defined +#define __fsblkcnt_t_defined +typedef __fsblkcnt_t fsblkcnt_t; +#endif -/* TODO: fsfilcnt_t */ +#ifndef __fsfilcnt_t_defined +#define __fsfilcnt_t_defined +typedef __fsfilcnt_t fsfilcnt_t; +#endif #ifndef __gid_t_defined #define __gid_t_defined