summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sys/stat/S_IFBLK.c5
-rw-r--r--src/sys/stat/S_IFCHR.c5
-rw-r--r--src/sys/stat/S_IFDIR.c5
-rw-r--r--src/sys/stat/S_IFIFO.c5
-rw-r--r--src/sys/stat/S_IFLNK.c5
-rw-r--r--src/sys/stat/S_IFMT.c5
-rw-r--r--src/sys/stat/S_IFREG.c5
-rw-r--r--src/sys/stat/S_ISLNK.c6
-rw-r--r--src/sys/stat/S_ISVTX.c6
-rw-r--r--src/sys/stat/fchmod.c10
-rw-r--r--src/sys/stat/lstat.c12
-rw-r--r--src/sys/stat/mknod.c10
12 files changed, 79 insertions, 0 deletions
diff --git a/src/sys/stat/S_IFBLK.c b/src/sys/stat/S_IFBLK.c
new file mode 100644
index 00000000..db893bff
--- /dev/null
+++ b/src/sys/stat/S_IFBLK.c
@@ -0,0 +1,5 @@
+#include <sys/stat.h>
+#define S_IFBLK /* TODO */
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/stat/S_IFCHR.c b/src/sys/stat/S_IFCHR.c
new file mode 100644
index 00000000..cedc3939
--- /dev/null
+++ b/src/sys/stat/S_IFCHR.c
@@ -0,0 +1,5 @@
+#include <sys/stat.h>
+#define S_IFCHR /* TODO */
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/stat/S_IFDIR.c b/src/sys/stat/S_IFDIR.c
new file mode 100644
index 00000000..9e2c1652
--- /dev/null
+++ b/src/sys/stat/S_IFDIR.c
@@ -0,0 +1,5 @@
+#include <sys/stat.h>
+#define S_IFDIR
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/stat/S_IFIFO.c b/src/sys/stat/S_IFIFO.c
new file mode 100644
index 00000000..b67dfe4d
--- /dev/null
+++ b/src/sys/stat/S_IFIFO.c
@@ -0,0 +1,5 @@
+#include <sys/stat.h>
+#define S_IFIFO /* TODO */
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/stat/S_IFLNK.c b/src/sys/stat/S_IFLNK.c
new file mode 100644
index 00000000..681602f3
--- /dev/null
+++ b/src/sys/stat/S_IFLNK.c
@@ -0,0 +1,5 @@
+#include <sys/stat.h>
+#define S_IFLNK
+/*
+XOPEN(400)
+*/
diff --git a/src/sys/stat/S_IFMT.c b/src/sys/stat/S_IFMT.c
new file mode 100644
index 00000000..52829110
--- /dev/null
+++ b/src/sys/stat/S_IFMT.c
@@ -0,0 +1,5 @@
+#include <sys/stat.h>
+#define S_IFMT /* TODO */
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/stat/S_IFREG.c b/src/sys/stat/S_IFREG.c
new file mode 100644
index 00000000..8e7cd9db
--- /dev/null
+++ b/src/sys/stat/S_IFREG.c
@@ -0,0 +1,5 @@
+#include <sys/stat.h>
+#define S_IFREG /* TODO */
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/stat/S_ISLNK.c b/src/sys/stat/S_ISLNK.c
new file mode 100644
index 00000000..b5578adc
--- /dev/null
+++ b/src/sys/stat/S_ISLNK.c
@@ -0,0 +1,6 @@
+#include <sys/stat.h>
+#define S_ISLNK(m) /* TODO */
+/*
+XOPEN(400)
+POSIX(200112)
+*/
diff --git a/src/sys/stat/S_ISVTX.c b/src/sys/stat/S_ISVTX.c
new file mode 100644
index 00000000..01f0eeee
--- /dev/null
+++ b/src/sys/stat/S_ISVTX.c
@@ -0,0 +1,6 @@
+#include <sys/stat.h>
+#define S_ISVTX 01000
+
+/*
+XOPEN(400)
+*/
diff --git a/src/sys/stat/fchmod.c b/src/sys/stat/fchmod.c
new file mode 100644
index 00000000..9f360c30
--- /dev/null
+++ b/src/sys/stat/fchmod.c
@@ -0,0 +1,10 @@
+#include <sys/stat.h>
+
+int fchmod(int fildes, mode_t mode)
+{
+}
+
+/*
+XOPEN(4)
+NOTE: also in posix
+*/
diff --git a/src/sys/stat/lstat.c b/src/sys/stat/lstat.c
new file mode 100644
index 00000000..ea56ce24
--- /dev/null
+++ b/src/sys/stat/lstat.c
@@ -0,0 +1,12 @@
+#include <sys/stat.h>
+
+int lstat(const char * restrict path, struct stat * restrict buf)
+{
+ /* if path is a symlink, return that info */
+ return 0;
+}
+
+/*
+XOPEN(400)
+POSIX(200112)
+*/
diff --git a/src/sys/stat/mknod.c b/src/sys/stat/mknod.c
new file mode 100644
index 00000000..40876f01
--- /dev/null
+++ b/src/sys/stat/mknod.c
@@ -0,0 +1,10 @@
+#include <sys/stat.h>
+
+int mknod(const char *path, mode_t mode, dev_t dev)
+{
+ return 0;
+}
+
+/*
+XOPEN(400)
+*/