1
0
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:
Dmitry Chagin 2023-04-28 11:54:59 +03:00
parent e9204c5c2c
commit a408fc097f
3 changed files with 8 additions and 6 deletions

View File

@ -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;

View File

@ -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) */

View File

@ -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;