summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-09 16:15:46 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-09 16:15:46 -0500
commit0c3a28852bcfcd98ffed857bea70ddcc374d0816 (patch)
treee93f158dcc9da126eeadd99da2319ff72a98da80 /src/sys
parent294c0451d5625fd01cbc9b3270daf4425132d524 (diff)
merge XOPEN identifiers
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/statvfs/ST_NOSUID.c6
-rw-r--r--src/sys/statvfs/ST_RDONLY.c6
-rw-r--r--src/sys/statvfs/fstatvfs.c11
-rw-r--r--src/sys/statvfs/statvfs.c11
-rw-r--r--src/sys/statvfs/struct_statvfs.c20
5 files changed, 54 insertions, 0 deletions
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 <sys/statvfs.h>
+#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 <sys/statvfs.h>
+#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 <sys/statvfs.h>
+
+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 <sys/statvfs.h>
+
+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 <sys/statvfs.h>
+
+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)
+*/