Platform (Windows): adds implementation of POSIX readlink(2) and realpath(3)

This commit is contained in:
李通洲
2026-03-17 17:59:24 +08:00
parent edc718d1d1
commit 4e234c52a3
5 changed files with 277 additions and 22 deletions
+7
View File
@@ -13,3 +13,10 @@ static inline bool ffIsAbsolutePath(const char* path)
return path[0] == '/';
#endif
}
#if _WIN32
char* frealpath(void* __restrict hFile, char* __restrict resolved_name /*MAX_PATH*/);
char* realpath(const char* __restrict file_name, char* __restrict resolved_name /*MAX_PATH*/);
ssize_t freadlink(void* hFile, char* buf, size_t bufsiz);
ssize_t readlink(const char* path, char* buf, size_t bufsiz);
#endif