1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:24:58 +00:00
serenity/Userland/Libraries/LibC/sys/xattr.h
Emily Trau abc150085f LibC: Add missing sys/cdefs.h include
Some header files use __BEGIN_DECLS without including sys/cdefs.h.
This causes issues for C code that compiles against these headers,
which may occur with Ports.
2022-08-23 19:07:12 +01:00

26 lines
874 B
C

/*
* Copyright (c) 2021, the SerenityOS developers.
*
* 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);
__END_DECLS