diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-02-09 16:13:47 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-02-09 16:13:47 -0500 |
commit | 294c0451d5625fd01cbc9b3270daf4425132d524 (patch) | |
tree | dffbbe6e59e3e47e378cfce0afbc26a1c8304ffb /src | |
parent | 94c01485caa0ab48ca956572d6f024f5a3f9e355 (diff) |
merge XOPEN identifiers
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/stat/S_IFBLK.c | 5 | ||||
-rw-r--r-- | src/sys/stat/S_IFCHR.c | 5 | ||||
-rw-r--r-- | src/sys/stat/S_IFDIR.c | 5 | ||||
-rw-r--r-- | src/sys/stat/S_IFIFO.c | 5 | ||||
-rw-r--r-- | src/sys/stat/S_IFLNK.c | 5 | ||||
-rw-r--r-- | src/sys/stat/S_IFMT.c | 5 | ||||
-rw-r--r-- | src/sys/stat/S_IFREG.c | 5 | ||||
-rw-r--r-- | src/sys/stat/S_ISLNK.c | 6 | ||||
-rw-r--r-- | src/sys/stat/S_ISVTX.c | 6 | ||||
-rw-r--r-- | src/sys/stat/fchmod.c | 10 | ||||
-rw-r--r-- | src/sys/stat/lstat.c | 12 | ||||
-rw-r--r-- | src/sys/stat/mknod.c | 10 |
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) +*/ |