Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common rename bsd_to_linux_stat() to bsd_to...
details: https://anonhg.NetBSD.org/src/rev/03dd55a28ab3
branches: trunk
changeset: 1026430:03dd55a28ab3
user: ryo <ryo%NetBSD.org@localhost>
date: Thu Nov 25 02:08:55 2021 +0000
description:
rename bsd_to_linux_stat() to bsd_to_linux_stat64() to avoid confusion.
There is a static function with the same name in linux/common/linux_file.c.
NFC.
diffstat:
sys/compat/linux/common/linux_file64.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 69c778629e6e -r 03dd55a28ab3 sys/compat/linux/common/linux_file64.c
--- a/sys/compat/linux/common/linux_file64.c Thu Nov 25 00:49:34 2021 +0000
+++ b/sys/compat/linux/common/linux_file64.c Thu Nov 25 02:08:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_file64.c,v 1.64 2021/09/23 06:56:27 ryo Exp $ */
+/* $NetBSD: linux_file64.c,v 1.65 2021/11/25 02:08:55 ryo Exp $ */
/*-
* Copyright (c) 1995, 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.64 2021/09/23 06:56:27 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.65 2021/11/25 02:08:55 ryo Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -67,7 +67,7 @@
#include <compat/linux/linux_syscallargs.h>
-static void bsd_to_linux_stat(struct stat *, struct linux_stat64 *);
+static void bsd_to_linux_stat64(struct stat *, struct linux_stat64 *);
/*
* Convert a NetBSD stat structure to a Linux stat structure.
@@ -78,7 +78,7 @@
* things against constant major device numbers? sigh)
*/
static void
-bsd_to_linux_stat(struct stat *bsp, struct linux_stat64 *lsp)
+bsd_to_linux_stat64(struct stat *bsp, struct linux_stat64 *lsp)
{
memset(lsp, 0, sizeof(*lsp));
lsp->lst_dev = linux_fakedev(bsp->st_dev, 0);
@@ -126,7 +126,7 @@
if (error != 0)
return error;
- bsd_to_linux_stat(&tmpst, &tmplst);
+ bsd_to_linux_stat64(&tmpst, &tmplst);
return copyout(&tmplst, SCARG(uap, sp), sizeof tmplst);
}
@@ -143,7 +143,7 @@
if (error != 0)
return error;
- bsd_to_linux_stat(&tmpst, &tmplst);
+ bsd_to_linux_stat64(&tmpst, &tmplst);
return copyout(&tmplst, SCARG(uap, sp), sizeof tmplst);
}
@@ -225,7 +225,7 @@
return error;
done:
- bsd_to_linux_stat(&tmpst, &tmplst);
+ bsd_to_linux_stat64(&tmpst, &tmplst);
return copyout(&tmplst, SCARG(uap, sp), sizeof tmplst);
}
Home |
Main Index |
Thread Index |
Old Index