mirror of
https://github.com/darlinghq/darling.git
synced 2025-02-17 08:09:10 +00:00
Rename f?stat$INODE64 to __darwin_f?stat
This commit is contained in:
parent
ba6513cfe3
commit
124ec1894c
@ -114,7 +114,7 @@ static void __translate_stat(struct stat64* linux_buf,
|
||||
mac->st_ctimespec.tv_sec = linux_buf->st_ctime;
|
||||
}
|
||||
|
||||
int stat$INODE64(const char* path, struct __darwin_stat64* mac) {
|
||||
int __darwin_stat(const char* path, struct __darwin_stat64* mac) {
|
||||
LOGF("stat: path=%s buf=%p\n", path, mac);
|
||||
struct stat64 linux_buf;
|
||||
int ret = stat64(path, &linux_buf);
|
||||
@ -122,7 +122,7 @@ int stat$INODE64(const char* path, struct __darwin_stat64* mac) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
int fstat$INODE64(int fd, struct __darwin_stat64* mac) {
|
||||
int __darwin_fstat(int fd, struct __darwin_stat64* mac) {
|
||||
LOGF("fstat: fd=%d buf=%p\n", fd, mac);
|
||||
LOGF("fstat: size_offset=%ld\n", (char*)&mac->st_size - (char*)mac);
|
||||
fflush(stdout);
|
||||
|
@ -65,6 +65,11 @@ RENAME(__tolower, tolower)
|
||||
RENAME(opendir$INODE64, opendir)
|
||||
RENAME(readdir$INODE64, readdir)
|
||||
|
||||
WRAP(stat)
|
||||
WRAP(fstat)
|
||||
RENAME(stat$INODE64, __darwin_stat)
|
||||
RENAME(fstat$INODE64, __darwin_fstat)
|
||||
|
||||
WRAP(open)
|
||||
|
||||
RENAME(strlcpy, strncpy)
|
||||
|
Loading…
x
Reference in New Issue
Block a user