Merge "Fix two accidentally leaked mips64 symbols."
This commit is contained in:
commit
27f5c37b12
@ -53,8 +53,7 @@ struct kernel_stat {
|
|||||||
unsigned long st_blocks;
|
unsigned long st_blocks;
|
||||||
};
|
};
|
||||||
|
|
||||||
void copy_stat(struct stat *st, struct kernel_stat *s)
|
static void copy_stat(struct stat* st, struct kernel_stat* s) {
|
||||||
{
|
|
||||||
st->st_dev = static_cast<dev_t>(s->st_dev);
|
st->st_dev = static_cast<dev_t>(s->st_dev);
|
||||||
st->st_ino = static_cast<ino_t>(s->st_ino);
|
st->st_ino = static_cast<ino_t>(s->st_ino);
|
||||||
st->st_mode = static_cast<mode_t>(s->st_mode);
|
st->st_mode = static_cast<mode_t>(s->st_mode);
|
||||||
@ -73,30 +72,17 @@ void copy_stat(struct stat *st, struct kernel_stat *s)
|
|||||||
st->st_ctim.tv_nsec = static_cast<long>(s->st_ctime_nsec);
|
st->st_ctim.tv_nsec = static_cast<long>(s->st_ctime_nsec);
|
||||||
}
|
}
|
||||||
|
|
||||||
int fstat(int fp, struct stat *st)
|
int fstat(int fp, struct stat* st) {
|
||||||
{
|
|
||||||
kernel_stat s;
|
kernel_stat s;
|
||||||
int ret;
|
int ret = syscall(__NR_fstat, fp, &s);
|
||||||
ret = syscall (__NR_fstat, fp, &s);
|
|
||||||
copy_stat(st, &s);
|
copy_stat(st, &s);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
__strong_alias(fstat64, fstat);
|
__strong_alias(fstat64, fstat);
|
||||||
|
|
||||||
int newfstatat(int dirfd, const char *pathname, struct stat *buf, int flags)
|
int fstatat(int dirfd, const char* pathname, struct stat* buf, int flags) {
|
||||||
{
|
|
||||||
kernel_stat s;
|
kernel_stat s;
|
||||||
int ret;
|
int ret = syscall(__NR_newfstatat, dirfd, pathname, &s, flags);
|
||||||
ret = syscall(__NR_newfstatat, dirfd, pathname, &s, flags);
|
|
||||||
copy_stat(buf, &s);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
int fstatat(int dirfd, const char *pathname, struct stat *buf, int flags)
|
|
||||||
{
|
|
||||||
kernel_stat s;
|
|
||||||
int ret;
|
|
||||||
ret = syscall(__NR_newfstatat, dirfd, pathname, &s, flags);
|
|
||||||
copy_stat(buf, &s);
|
copy_stat(buf, &s);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user