From 823d3a3e2f3b802e0bcbfc3bc2bea4eaae9e618a Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 29 Dec 2013 23:03:11 +0100 Subject: [PATCH] Add fsblkcnt_t and fsfilcnt_t. --- kernel/include/sortix/__/types.h | 4 ++-- libc/include/sys/types.h | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) 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