mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
linux(4): Rename obsolete old struct l_stat to struct l_old_stat
This commit is contained in:
parent
e9204c5c2c
commit
a408fc097f
@ -199,7 +199,8 @@ struct l_newstat {
|
||||
l_ulong __unused5;
|
||||
};
|
||||
|
||||
struct l_stat {
|
||||
/* __old_kernel_stat now */
|
||||
struct l_old_stat {
|
||||
l_ushort st_dev;
|
||||
l_ulong st_ino;
|
||||
l_ushort st_mode;
|
||||
|
@ -222,9 +222,9 @@ linux_newfstat(struct thread *td, struct linux_newfstat_args *args)
|
||||
|
||||
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32))
|
||||
static int
|
||||
stat_copyout(struct stat *buf, void *ubuf)
|
||||
old_stat_copyout(struct stat *buf, void *ubuf)
|
||||
{
|
||||
struct l_stat lbuf;
|
||||
struct l_old_stat lbuf;
|
||||
|
||||
bzero(&lbuf, sizeof(lbuf));
|
||||
lbuf.st_dev = dev_to_ldev(buf->st_dev);
|
||||
@ -266,7 +266,7 @@ linux_stat(struct thread *td, struct linux_stat_args *args)
|
||||
if (error) {
|
||||
return (error);
|
||||
}
|
||||
return (stat_copyout(&buf, args->up));
|
||||
return (old_stat_copyout(&buf, args->up));
|
||||
}
|
||||
|
||||
int
|
||||
@ -286,7 +286,7 @@ linux_lstat(struct thread *td, struct linux_lstat_args *args)
|
||||
if (error) {
|
||||
return (error);
|
||||
}
|
||||
return (stat_copyout(&buf, args->up));
|
||||
return (old_stat_copyout(&buf, args->up));
|
||||
}
|
||||
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */
|
||||
|
||||
|
@ -172,7 +172,8 @@ struct l_newstat {
|
||||
l_ulong __unused5;
|
||||
};
|
||||
|
||||
struct l_stat {
|
||||
/* __old_kernel_stat now */
|
||||
struct l_old_stat {
|
||||
l_ushort st_dev;
|
||||
l_ulong st_ino;
|
||||
l_ushort st_mode;
|
||||
|
Loading…
Reference in New Issue
Block a user