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; l_ulong __unused5;
}; };
struct l_stat { /* __old_kernel_stat now */
struct l_old_stat {
l_ushort st_dev; l_ushort st_dev;
l_ulong st_ino; l_ulong st_ino;
l_ushort st_mode; 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)) #if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32))
static int 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)); bzero(&lbuf, sizeof(lbuf));
lbuf.st_dev = dev_to_ldev(buf->st_dev); 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) { if (error) {
return (error); return (error);
} }
return (stat_copyout(&buf, args->up)); return (old_stat_copyout(&buf, args->up));
} }
int int
@ -286,7 +286,7 @@ linux_lstat(struct thread *td, struct linux_lstat_args *args)
if (error) { if (error) {
return (error); return (error);
} }
return (stat_copyout(&buf, args->up)); return (old_stat_copyout(&buf, args->up));
} }
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ #endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */

View File

@ -172,7 +172,8 @@ struct l_newstat {
l_ulong __unused5; l_ulong __unused5;
}; };
struct l_stat { /* __old_kernel_stat now */
struct l_old_stat {
l_ushort st_dev; l_ushort st_dev;
l_ulong st_ino; l_ulong st_ino;
l_ushort st_mode; l_ushort st_mode;