summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2022-10-03 21:40:34 +0200
committerLinus Groh <mail@linusgroh.de>2022-10-03 22:48:56 +0100
commit1464ce6fbba915d7cb25bd2cc20ddaf1c30e78e9 (patch)
treeee7a120f5224b58702ab0968a592320c50254449 /Userland/Libraries/LibC
parent898948229358583f033cdfddc8c5ab11895122bd (diff)
downloadserenity-1464ce6fbba915d7cb25bd2cc20ddaf1c30e78e9.zip
LibC: Remove stubbed out xattr.h and xattr.cpp
Serenity does not support extended attributes (xattr) and the only port that needed those were the GLib port. The GLib port has now been updated to compiled without xattr support.
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/CMakeLists.txt1
-rw-r--r--Userland/Libraries/LibC/sys/xattr.cpp81
-rw-r--r--Userland/Libraries/LibC/sys/xattr.h31
3 files changed, 0 insertions, 113 deletions
diff --git a/Userland/Libraries/LibC/CMakeLists.txt b/Userland/Libraries/LibC/CMakeLists.txt
index b5330a7790..201cc622ce 100644
--- a/Userland/Libraries/LibC/CMakeLists.txt
+++ b/Userland/Libraries/LibC/CMakeLists.txt
@@ -62,7 +62,6 @@ set(LIBC_SOURCES
sys/statvfs.cpp
sys/uio.cpp
sys/wait.cpp
- sys/xattr.cpp
syslog.cpp
termcap.cpp
termios.cpp
diff --git a/Userland/Libraries/LibC/sys/xattr.cpp b/Userland/Libraries/LibC/sys/xattr.cpp
deleted file mode 100644
index 73b49e93bc..0000000000
--- a/Userland/Libraries/LibC/sys/xattr.cpp
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright (c) 2021, the SerenityOS developers.
- * Copyright (c) 2022, Kenneth Myhra <kennethmyhra@serenityos.org>.
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
-
-#include <AK/Format.h>
-#include <sys/xattr.h>
-
-ssize_t getxattr(char const*, char const*, void*, size_t)
-{
- dbgln("FIXME: Implement getxattr()");
- return 0;
-}
-
-ssize_t lgetxattr(char const*, char const*, void*, size_t)
-{
- dbgln("FIXME: Implement lgetxattr()");
- return 0;
-}
-
-ssize_t fgetxattr(int, char const*, void*, size_t)
-{
- dbgln("FIXME: Implement fgetxattr()");
- return 0;
-}
-
-int setxattr(char const*, char const*, void const*, size_t, int)
-{
- dbgln("FIXME: Implement setxattr()");
- return 0;
-}
-
-int lsetxattr(char const*, char const*, void const*, size_t, int)
-{
- dbgln("FIXME: Implement lsetxattr()");
- return 0;
-}
-
-int fsetxattr(int, char const*, void const*, size_t, int)
-{
- dbgln("FIXME: Implement fsetxattr()");
- return 0;
-}
-
-ssize_t listxattr(char const*, char*, size_t)
-{
- dbgln("FIXME: Implement listxattr()");
- return 0;
-}
-
-ssize_t llistxattr(char const*, char*, size_t)
-{
- dbgln("FIXME: Implement llistxattr()");
- return 0;
-}
-
-ssize_t flistxattr(int, char*, size_t)
-{
- dbgln("FIXME: Implement flistxattr()");
- return 0;
-}
-
-int removexattr(char const*, char const*)
-{
- dbgln("FIXME: Implement removexattr()");
- return 0;
-}
-
-int lremovexattr(char const*, char const*)
-{
- dbgln("FIXME: Implement lremovexattr()");
- return 0;
-}
-
-int fremovexattr(int, char const*)
-{
- dbgln("FIXME: Implement fremovexattr()");
- return 0;
-}
diff --git a/Userland/Libraries/LibC/sys/xattr.h b/Userland/Libraries/LibC/sys/xattr.h
deleted file mode 100644
index 2f35f36ae0..0000000000
--- a/Userland/Libraries/LibC/sys/xattr.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2021, the SerenityOS developers.
- * Copyright (c) 2022, Kenneth Myhra <kennethmyhra@serenityos.org>.
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
-
-#pragma once
-
-#include <sys/cdefs.h>
-#include <sys/types.h>
-
-__BEGIN_DECLS
-
-ssize_t getxattr(char const* path, char const* name, void* value, size_t size);
-ssize_t lgetxattr(char const* path, char const* name, void* value, size_t size);
-ssize_t fgetxattr(int fd, char const* name, void* value, size_t size);
-
-int setxattr(char const* path, char const* name, void const* value, size_t size, int flags);
-int lsetxattr(char const* path, char const* name, void const* value, size_t size, int flags);
-int fsetxattr(int fd, char const* name, void const* value, size_t size, int flags);
-
-ssize_t listxattr(char const* path, char* list, size_t size);
-ssize_t llistxattr(char const* path, char* list, size_t size);
-ssize_t flistxattr(int fd, char* list, size_t size);
-
-int removexattr(char const* path, char const* name);
-int lremovexattr(char const* path, char const* name);
-int fremovexattr(int fd, char const* name);
-
-__END_DECLS