The Pedigree Project 0.1
xattr-syscalls.h
1/* Copyright (c) 2026, Pedigree Developers. */
2#ifndef POSIX_XATTR_SYSCALLS_H
3#define POSIX_XATTR_SYSCALLS_H
4
5#include "pedigree/kernel/processor/types.h"
6
7int posix_setxattr(const char* path, const char* name, const void* value, size_t size, int flags);
8int posix_lsetxattr(const char* path, const char* name, const void* value, size_t size, int flags);
9int posix_fsetxattr(int fd, const char* name, const void* value, size_t size, int flags);
10ssize_t posix_getxattr(const char* path, const char* name, void* value, size_t size);
11ssize_t posix_lgetxattr(const char* path, const char* name, void* value, size_t size);
12ssize_t posix_fgetxattr(int fd, const char* name, void* value, size_t size);
13ssize_t posix_listxattr(const char* path, char* list, size_t size);
14ssize_t posix_llistxattr(const char* path, char* list, size_t size);
15ssize_t posix_flistxattr(int fd, char* list, size_t size);
16int posix_removexattr(const char* path, const char* name);
17int posix_lremovexattr(const char* path, const char* name);
18int posix_fremovexattr(int fd, const char* name);
19
20#endif