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.
This commit is contained in:
Kenneth Myhra 2022-10-03 21:40:34 +02:00 committed by Linus Groh
parent 8989482293
commit 1464ce6fbb
Notes: sideshowbarker 2024-07-17 06:23:03 +09:00
3 changed files with 0 additions and 113 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -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