mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Call Darwin code to set file attributes.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
void DarwinGetOsInfo();
|
||||
void DarwinPrintStatfsFlags(uint32_t flags);
|
||||
void DarwinResourceFork(const char* path);
|
||||
void DarwinFileAttributes(const char* path);
|
||||
void DarwinExtendedAttributes(const char* path);
|
||||
|
||||
#endif // SETTER_SRC_DARWIN_DARWIN_H_
|
||||
|
||||
@@ -26,11 +26,15 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
|
||||
#include "../linux/linux.h"
|
||||
#elif defined(__APPLE__) && defined(__MACH__)
|
||||
#include "../darwin/darwin.h"
|
||||
#endif
|
||||
|
||||
void FileAttributes(const char* path)
|
||||
{
|
||||
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
|
||||
LinuxFileAttributes(path);
|
||||
#elif defined(__APPLE__) && defined(__MACH__)
|
||||
DarwinFileAttributes(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user