File: apple_xattr_workaround.h

package info (click to toggle)
securefs 0.11.1%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,684 kB
  • sloc: cpp: 11,757; python: 486; sh: 11; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#ifdef __APPLE__
#include <stddef.h>

namespace securefs
{
void transform_listxattr_result(char* buffer, size_t size);

/// If the return value <=0, the caller should eary return with the code. Otherwise, it should
/// continue with the transformed name.
int precheck_getxattr(const char** name);
int precheck_setxattr(const char** name, int* flags);
int precheck_removexattr(const char** name);
}    // namespace securefs
#endif