diff options
Diffstat (limited to 'src/sys/stat')
49 files changed, 0 insertions, 320 deletions
diff --git a/src/sys/stat/S_IFBLK.h b/src/sys/stat/S_IFBLK.h deleted file mode 100644 index db893bff..00000000 --- a/src/sys/stat/S_IFBLK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IFBLK /* TODO */ -/* -XOPEN(4) -*/ diff --git a/src/sys/stat/S_IFCHR.h b/src/sys/stat/S_IFCHR.h deleted file mode 100644 index cedc3939..00000000 --- a/src/sys/stat/S_IFCHR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IFCHR /* TODO */ -/* -XOPEN(4) -*/ diff --git a/src/sys/stat/S_IFDIR.h b/src/sys/stat/S_IFDIR.h deleted file mode 100644 index c72702b2..00000000 --- a/src/sys/stat/S_IFDIR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IFDIR /* TODO */ -/* -XOPEN(4) -*/ diff --git a/src/sys/stat/S_IFIFO.h b/src/sys/stat/S_IFIFO.h deleted file mode 100644 index b67dfe4d..00000000 --- a/src/sys/stat/S_IFIFO.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IFIFO /* TODO */ -/* -XOPEN(4) -*/ diff --git a/src/sys/stat/S_IFLNK.h b/src/sys/stat/S_IFLNK.h deleted file mode 100644 index 8948d050..00000000 --- a/src/sys/stat/S_IFLNK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IFLNK /* TODO */ -/* -XOPEN(400) -*/ diff --git a/src/sys/stat/S_IFMT.h b/src/sys/stat/S_IFMT.h deleted file mode 100644 index 52829110..00000000 --- a/src/sys/stat/S_IFMT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IFMT /* TODO */ -/* -XOPEN(4) -*/ diff --git a/src/sys/stat/S_IFREG.h b/src/sys/stat/S_IFREG.h deleted file mode 100644 index 8e7cd9db..00000000 --- a/src/sys/stat/S_IFREG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IFREG /* TODO */ -/* -XOPEN(4) -*/ diff --git a/src/sys/stat/S_IRGRP.h b/src/sys/stat/S_IRGRP.h deleted file mode 100644 index 98cf739e..00000000 --- a/src/sys/stat/S_IRGRP.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sys/stat.h> - -#define S_IRGRP (040) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IROTH.h b/src/sys/stat/S_IROTH.h deleted file mode 100644 index 006421ed..00000000 --- a/src/sys/stat/S_IROTH.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sys/stat.h> - -#define S_IROTH (04) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IRUSR.h b/src/sys/stat/S_IRUSR.h deleted file mode 100644 index 2b62f4f1..00000000 --- a/src/sys/stat/S_IRUSR.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sys/stat.h> - -#define S_IRUSR (0400) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IRWXG.h b/src/sys/stat/S_IRWXG.h deleted file mode 100644 index e051625e..00000000 --- a/src/sys/stat/S_IRWXG.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sys/stat.h> - -#define S_IRWXG (070) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IRWXO.h b/src/sys/stat/S_IRWXO.h deleted file mode 100644 index 82bbadb3..00000000 --- a/src/sys/stat/S_IRWXO.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sys/stat.h> - -#define S_IRWXO (07) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IRWXU.h b/src/sys/stat/S_IRWXU.h deleted file mode 100644 index a518680e..00000000 --- a/src/sys/stat/S_IRWXU.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sys/stat.h> - -#define S_IRWXU (0700) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_ISBLK.h b/src/sys/stat/S_ISBLK.h deleted file mode 100644 index 2cb951f9..00000000 --- a/src/sys/stat/S_ISBLK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_ISBLK(__s) /* FIXME */ -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_ISCHR.h b/src/sys/stat/S_ISCHR.h deleted file mode 100644 index 91a19e27..00000000 --- a/src/sys/stat/S_ISCHR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_ISCHR(__s) /* fixme */ -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_ISDIR.h b/src/sys/stat/S_ISDIR.h deleted file mode 100644 index b23e06bf..00000000 --- a/src/sys/stat/S_ISDIR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_ISDIR(__s) (__s) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_ISFIFO.h b/src/sys/stat/S_ISFIFO.h deleted file mode 100644 index 80aac6c5..00000000 --- a/src/sys/stat/S_ISFIFO.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_ISFIFO(__s) /* fixme */ -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_ISGID.h b/src/sys/stat/S_ISGID.h deleted file mode 100644 index 55ceb105..00000000 --- a/src/sys/stat/S_ISGID.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_ISGID (02000) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_ISLNK.h b/src/sys/stat/S_ISLNK.h deleted file mode 100644 index 232bf06b..00000000 --- a/src/sys/stat/S_ISLNK.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sys/stat.h> -#define S_ISLNK(__m) /* TODO */ -/* -XOPEN(400) -POSIX(200112) -*/ diff --git a/src/sys/stat/S_ISREG.h b/src/sys/stat/S_ISREG.h deleted file mode 100644 index 99b470c1..00000000 --- a/src/sys/stat/S_ISREG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_ISREG(__s) /* fixme */ -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_ISUID.h b/src/sys/stat/S_ISUID.h deleted file mode 100644 index 85295ad3..00000000 --- a/src/sys/stat/S_ISUID.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_ISUID (04000) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_ISVTX.h b/src/sys/stat/S_ISVTX.h deleted file mode 100644 index 01f0eeee..00000000 --- a/src/sys/stat/S_ISVTX.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sys/stat.h> -#define S_ISVTX 01000 - -/* -XOPEN(400) -*/ diff --git a/src/sys/stat/S_IWGRP.h b/src/sys/stat/S_IWGRP.h deleted file mode 100644 index c7a716e7..00000000 --- a/src/sys/stat/S_IWGRP.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IWGRP (020) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IWOTH.h b/src/sys/stat/S_IWOTH.h deleted file mode 100644 index 26e75066..00000000 --- a/src/sys/stat/S_IWOTH.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IWOTH (02) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IWUSR.h b/src/sys/stat/S_IWUSR.h deleted file mode 100644 index e9af1829..00000000 --- a/src/sys/stat/S_IWUSR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IWUSR (0200) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IXGRP.h b/src/sys/stat/S_IXGRP.h deleted file mode 100644 index 34f44729..00000000 --- a/src/sys/stat/S_IXGRP.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IXGRP (010) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IXOTH.h b/src/sys/stat/S_IXOTH.h deleted file mode 100644 index 10d51686..00000000 --- a/src/sys/stat/S_IXOTH.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IXOTH (01) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_IXUSR.h b/src/sys/stat/S_IXUSR.h deleted file mode 100644 index b4b8e494..00000000 --- a/src/sys/stat/S_IXUSR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_IXUSR (0100) -/* -POSIX(1) -*/ diff --git a/src/sys/stat/S_TYPEISMQ.h b/src/sys/stat/S_TYPEISMQ.h deleted file mode 100644 index 064e9f6a..00000000 --- a/src/sys/stat/S_TYPEISMQ.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_TYPEISMQ(__buf) /* TODO */ -/* -POSIX(199309) -*/ diff --git a/src/sys/stat/S_TYPEISSEM.h b/src/sys/stat/S_TYPEISSEM.h deleted file mode 100644 index 4fb0f690..00000000 --- a/src/sys/stat/S_TYPEISSEM.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_TYPEISSEM(__buf) /* TODO */ -/* -POSIX(199309) -*/ diff --git a/src/sys/stat/S_TYPEISSHM.h b/src/sys/stat/S_TYPEISSHM.h deleted file mode 100644 index 34acc7ed..00000000 --- a/src/sys/stat/S_TYPEISSHM.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sys/stat.h> -#define S_TYPEISSHM(__buf) /* TODO */ -/* -POSIX(199309) -*/ diff --git a/src/sys/stat/chmod.c b/src/sys/stat/chmod.c deleted file mode 100644 index f1a47730..00000000 --- a/src/sys/stat/chmod.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <sys/types.h> -#include <sys/stat.h> -#include "_syscall.h" - -int chmod(const char *path, mode_t mode) -{ - SYSCALL(chmod, int, -1, path, mode, 0, 0, 0, 0); -} -/* -POSIX(1) -*/ diff --git a/src/sys/stat/dev_t.ref b/src/sys/stat/dev_t.ref deleted file mode 100644 index 00a55a40..00000000 --- a/src/sys/stat/dev_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <sys/stat.h> -REFERENCE(sys/types/dev_t.c) -XOPEN(4) diff --git a/src/sys/stat/fchmod.c b/src/sys/stat/fchmod.c deleted file mode 100644 index 496df326..00000000 --- a/src/sys/stat/fchmod.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <sys/stat.h> - -int fchmod(int fildes, mode_t mode) -{ -} - -/* -XOPEN(4) -POSIX(199309) -*/ diff --git a/src/sys/stat/fstat.c b/src/sys/stat/fstat.c deleted file mode 100644 index 4859bec7..00000000 --- a/src/sys/stat/fstat.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <sys/types.h> -#include <sys/stat.h> -#include "_syscall.h" - -int fstat(int fildes, struct stat *buf) -{ - SYSCALL(fstat, int, -1, fildes, buf, 0, 0, 0, 0); -} -/* -POSIX(1) -*/ diff --git a/src/sys/stat/gid_t.ref b/src/sys/stat/gid_t.ref deleted file mode 100644 index bab40c58..00000000 --- a/src/sys/stat/gid_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <sys/stat.h> -REFERENCE(sys/types/gid_t.c) -XOPEN(4) diff --git a/src/sys/stat/ino_t.ref b/src/sys/stat/ino_t.ref deleted file mode 100644 index 401e1106..00000000 --- a/src/sys/stat/ino_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <sys/stat.h> -REFERENCE(sys/types/ino_t.c) -XOPEN(4) diff --git a/src/sys/stat/lstat.c b/src/sys/stat/lstat.c deleted file mode 100644 index ea56ce24..00000000 --- a/src/sys/stat/lstat.c +++ /dev/null @@ -1,12 +0,0 @@ -#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/mkdir.c b/src/sys/stat/mkdir.c deleted file mode 100644 index 7aa93a7e..00000000 --- a/src/sys/stat/mkdir.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <sys/types.h> -#include <sys/stat.h> -#include "_syscall.h" - -int mkdir(const char *path, mode_t mode) -{ - SYSCALL(mkdir, int, -1, path, mode, 0, 0, 0, 0); -} - -/* -POSIX(1) -*/ diff --git a/src/sys/stat/mkfifo.c b/src/sys/stat/mkfifo.c deleted file mode 100644 index 219347af..00000000 --- a/src/sys/stat/mkfifo.c +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 1 /* force definition of S_IFIFO */ -#endif - -#include <sys/types.h> -#include <sys/stat.h> -#include "_syscall.h" - -int mkfifo(const char *path, mode_t mode) -{ - SYSCALL(mknod, int, -1, path, mode, S_IFIFO, 0, 0, 0); -} - -/* -POSIX(1) -*/ diff --git a/src/sys/stat/mknod.c b/src/sys/stat/mknod.c deleted file mode 100644 index 40876f01..00000000 --- a/src/sys/stat/mknod.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <sys/stat.h> - -int mknod(const char *path, mode_t mode, dev_t dev) -{ - return 0; -} - -/* -XOPEN(400) -*/ diff --git a/src/sys/stat/mode_t.ref b/src/sys/stat/mode_t.ref deleted file mode 100644 index 6d36e5b6..00000000 --- a/src/sys/stat/mode_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <sys/stat.h> -REFERENCE(sys/types/mode_t.c) -XOPEN(4) diff --git a/src/sys/stat/nlink_t.ref b/src/sys/stat/nlink_t.ref deleted file mode 100644 index c4e886e7..00000000 --- a/src/sys/stat/nlink_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <sys/stat.h> -REFERENCE(sys/types/nlink_t.c) -XOPEN(4) diff --git a/src/sys/stat/off_t.ref b/src/sys/stat/off_t.ref deleted file mode 100644 index 916ced7f..00000000 --- a/src/sys/stat/off_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <sys/stat.h> -REFERENCE(sys/types/off_t.c) -XOPEN(4) diff --git a/src/sys/stat/stat.c b/src/sys/stat/stat.c deleted file mode 100644 index 0b4f341f..00000000 --- a/src/sys/stat/stat.c +++ /dev/null @@ -1,16 +0,0 @@ -#include <sys/types.h> -#include <sys/stat.h> -#include <stdlib.h> -#include "_safety.h" -#include "_syscall.h" - -int stat(const char * restrict path, struct stat * restrict buf) -{ - ASSERT_NONNULL(path); - ASSERT_NONNULL(buf); - - SYSCALL(stat, int, -1, path, buf, 0, 0, 0, 0); -} -/* -POSIX(1) -*/ diff --git a/src/sys/stat/struct_stat.h b/src/sys/stat/struct_stat.h deleted file mode 100644 index c825e561..00000000 --- a/src/sys/stat/struct_stat.h +++ /dev/null @@ -1,23 +0,0 @@ -#include <sys/stat.h> - -struct stat { - dev_t st_dev; - ino_t st_ino; - mode_t st_mode; - nlink_t st_nlink; - uid_t st_uid; - gid_t st_gid; - dev_t st_rdev; - off_t st_size; - #if 0 - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - blksize_t st_blksize; - blkcnt_t st_blocks; - #endif -}; - -/* -POSIX(1) -*/ diff --git a/src/sys/stat/time_t.ref b/src/sys/stat/time_t.ref deleted file mode 100644 index 0963253a..00000000 --- a/src/sys/stat/time_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <sys/stat.h> -REFERENCE(time/time_t.c) -XOPEN(4) diff --git a/src/sys/stat/uid_t.ref b/src/sys/stat/uid_t.ref deleted file mode 100644 index 17e80662..00000000 --- a/src/sys/stat/uid_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <sys/stat.h> -REFERENCE(sys/types/uid_t.c) -XOPEN(4) diff --git a/src/sys/stat/umask.c b/src/sys/stat/umask.c deleted file mode 100644 index 419a0afb..00000000 --- a/src/sys/stat/umask.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <sys/types.h> -#include <sys/stat.h> -#include "_syscall.h" - -mode_t umask(mode_t cmask) -{ - SYSCALL(umask, mode_t, -1, cmask, 0, 0, 0, 0, 0); -} - -/* -POSIX(1) -*/ |