1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:57:45 +00:00

LibC: Add stubs for 'removexattr()' and friends

This add stubs for 'removexattr()', 'lremovexattr()', and
'fremovexattr()'.

These are needed by GLib version 2.73.3.
This commit is contained in:
Kenneth Myhra 2022-08-27 22:00:37 +02:00 committed by Linus Groh
parent f99eb2d11b
commit 54435dea59
2 changed files with 24 additions and 0 deletions

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, the SerenityOS developers.
* Copyright (c) 2022, Kenneth Myhra <kennethmyhra@serenityos.org>.
*
* 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;
}

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, the SerenityOS developers.
* Copyright (c) 2022, Kenneth Myhra <kennethmyhra@serenityos.org>.
*
* 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