summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/fcntl.h
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-11 05:53:37 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-11 09:51:20 +0200
commit8ca5b8c0652bf73b53ddbbade9738432bd7c20c6 (patch)
treed69cdc937f652a6453302aa9a4b91f658ce149db /Userland/Libraries/LibC/fcntl.h
parentbe4b20c14d13246b6b798e931ede2df22de54737 (diff)
downloadserenity-8ca5b8c0652bf73b53ddbbade9738432bd7c20c6.zip
LibC: Move S_* defines into <fcntl.h>
According to the Single UNIX Specification, Version 2 that's where those macros should be defined. This fixes the libiconv port. This also fixes some (but not all) build errors for the diffutils and nano ports.
Diffstat (limited to 'Userland/Libraries/LibC/fcntl.h')
-rw-r--r--Userland/Libraries/LibC/fcntl.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/Userland/Libraries/LibC/fcntl.h b/Userland/Libraries/LibC/fcntl.h
index 5d6077cafd..38927e87c9 100644
--- a/Userland/Libraries/LibC/fcntl.h
+++ b/Userland/Libraries/LibC/fcntl.h
@@ -56,36 +56,6 @@ __BEGIN_DECLS
#define O_CLOEXEC (1 << 11)
#define O_DIRECT (1 << 12)
-#define S_IFMT 0170000
-#define S_IFDIR 0040000
-#define S_IFCHR 0020000
-#define S_IFBLK 0060000
-#define S_IFREG 0100000
-#define S_IFIFO 0010000
-#define S_IFLNK 0120000
-#define S_IFSOCK 0140000
-
-#define S_ISUID 04000
-#define S_ISGID 02000
-#define S_ISVTX 01000
-#define S_IRUSR 0400
-#define S_IWUSR 0200
-#define S_IXUSR 0100
-#define S_IREAD S_IRUSR
-#define S_IWRITE S_IWUSR
-#define S_IEXEC S_IXUSR
-#define S_IRGRP 0040
-#define S_IWGRP 0020
-#define S_IXGRP 0010
-#define S_IROTH 0004
-#define S_IWOTH 0002
-#define S_IXOTH 0001
-
-#define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)
-
-#define S_IRWXG (S_IRWXU >> 3)
-#define S_IRWXO (S_IRWXG >> 3)
-
int creat(const char* path, mode_t);
int open(const char* path, int options, ...);
#define AT_FDCWD -100