From 54435dea5990ff3f1510294a3e3230ab24815b1e Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Sat, 27 Aug 2022 22:00:37 +0200 Subject: [PATCH] LibC: Add stubs for 'removexattr()' and friends This add stubs for 'removexattr()', 'lremovexattr()', and 'fremovexattr()'. These are needed by GLib version 2.73.3. --- Userland/Libraries/LibC/sys/xattr.cpp | 19 +++++++++++++++++++ Userland/Libraries/LibC/sys/xattr.h | 5 +++++ 2 files changed, 24 insertions(+) diff --git a/Userland/Libraries/LibC/sys/xattr.cpp b/Userland/Libraries/LibC/sys/xattr.cpp index cc30458c90a..73b49e93bc2 100644 --- a/Userland/Libraries/LibC/sys/xattr.cpp +++ b/Userland/Libraries/LibC/sys/xattr.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, the SerenityOS developers. + * Copyright (c) 2022, Kenneth Myhra . * * SPDX-License-Identifier: BSD-2-Clause */ @@ -60,3 +61,21 @@ 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 index 8efcaab334e..2f35f36ae0f 100644 --- a/Userland/Libraries/LibC/sys/xattr.h +++ b/Userland/Libraries/LibC/sys/xattr.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, the SerenityOS developers. + * Copyright (c) 2022, Kenneth Myhra . * * SPDX-License-Identifier: BSD-2-Clause */ @@ -23,4 +24,8 @@ 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