From 0c3a28852bcfcd98ffed857bea70ddcc374d0816 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 16:15:46 -0500 Subject: merge XOPEN identifiers --- src/sys/statvfs/ST_NOSUID.c | 6 ++++++ src/sys/statvfs/ST_RDONLY.c | 6 ++++++ src/sys/statvfs/fstatvfs.c | 11 +++++++++++ src/sys/statvfs/statvfs.c | 11 +++++++++++ src/sys/statvfs/struct_statvfs.c | 20 ++++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 100644 src/sys/statvfs/ST_NOSUID.c create mode 100644 src/sys/statvfs/ST_RDONLY.c create mode 100644 src/sys/statvfs/fstatvfs.c create mode 100644 src/sys/statvfs/statvfs.c create mode 100644 src/sys/statvfs/struct_statvfs.c (limited to 'src') diff --git a/src/sys/statvfs/ST_NOSUID.c b/src/sys/statvfs/ST_NOSUID.c new file mode 100644 index 00000000..adb95680 --- /dev/null +++ b/src/sys/statvfs/ST_NOSUID.c @@ -0,0 +1,6 @@ +#include +#define ST_NOSUID (1<<1) +/* +XOPEN(400) +POSIX(200809) +*/ diff --git a/src/sys/statvfs/ST_RDONLY.c b/src/sys/statvfs/ST_RDONLY.c new file mode 100644 index 00000000..a95bc7b2 --- /dev/null +++ b/src/sys/statvfs/ST_RDONLY.c @@ -0,0 +1,6 @@ +#include +#define ST_RDONLY (1<<0) +/* +XOPEN(400) +POSIX(200809) +*/ diff --git a/src/sys/statvfs/fstatvfs.c b/src/sys/statvfs/fstatvfs.c new file mode 100644 index 00000000..75011633 --- /dev/null +++ b/src/sys/statvfs/fstatvfs.c @@ -0,0 +1,11 @@ +#include + +int fstatvfs(int fildes, struct statvfs *buf) +{ + return -1; +} + +/* +XOPEN(400) +POSIX(200809) +*/ diff --git a/src/sys/statvfs/statvfs.c b/src/sys/statvfs/statvfs.c new file mode 100644 index 00000000..1a19962d --- /dev/null +++ b/src/sys/statvfs/statvfs.c @@ -0,0 +1,11 @@ +#include + +int statvfs(const char * restrict path, struct statvfs * restrict buf) +{ + return 0; +} + +/* +XOPEN(400) +POSIX(200809) +*/ diff --git a/src/sys/statvfs/struct_statvfs.c b/src/sys/statvfs/struct_statvfs.c new file mode 100644 index 00000000..781a1a56 --- /dev/null +++ b/src/sys/statvfs/struct_statvfs.c @@ -0,0 +1,20 @@ +#include + +struct statvfs { + unsigned long f_bsize; + unsigned long f_frsize; + fsblkcnt_t f_blocks; + fsblkcnt_t f_bfree; + fsblkcnt_t f_bavail; + fsfilcnt_t f_files; + fsfilcnt_t f_ffree; + fsfilcnt_t f_favail; + unsigned long f_fsid; + unsigned long f_flag; + unsigned long f_namemax; +}; + +/* +XOPEN(400) +POSIX(200809) +*/ -- cgit v1.2.1