git: 361f6ce4a675 - stable/13 - linux(4): Mark old fstat syscal as unimplemented

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Thu, 29 Jun 2023 08:20:17 UTC
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=361f6ce4a67533e433e43d34fbc79a48b5edeb43

commit 361f6ce4a67533e433e43d34fbc79a48b5edeb43
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-04-28 08:54:59 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-06-29 08:15:30 +0000

    linux(4): Mark old fstat syscal as unimplemented
    
    It looks like the old fstat system call never been implemented.
    
    (cherry picked from commit 391fd1e1a1e8d360d4ebaceecf1ab7c46063b257)
---
 sys/amd64/linux32/linux32_dummy_machdep.c | 1 +
 sys/i386/linux/linux_dummy_machdep.c      | 2 +-
 sys/i386/linux/syscalls.master            | 7 +------
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/sys/amd64/linux32/linux32_dummy_machdep.c b/sys/amd64/linux32/linux32_dummy_machdep.c
index bc7a3c0aa69b..4dc0f6ffc0bd 100644
--- a/sys/amd64/linux32/linux32_dummy_machdep.c
+++ b/sys/amd64/linux32/linux32_dummy_machdep.c
@@ -44,6 +44,7 @@ LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
 
 UNIMPLEMENTED(break);
 UNIMPLEMENTED(ftime);
+UNIMPLEMENTED(fstat);
 UNIMPLEMENTED(gtty);
 UNIMPLEMENTED(stty);
 UNIMPLEMENTED(lock);
diff --git a/sys/i386/linux/linux_dummy_machdep.c b/sys/i386/linux/linux_dummy_machdep.c
index 7f29d2a6808c..87edfed4a17d 100644
--- a/sys/i386/linux/linux_dummy_machdep.c
+++ b/sys/i386/linux/linux_dummy_machdep.c
@@ -50,6 +50,7 @@ LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
 
 UNIMPLEMENTED(break);
 UNIMPLEMENTED(ftime);
+UNIMPLEMENTED(fstat);
 UNIMPLEMENTED(gtty);
 UNIMPLEMENTED(stty);
 UNIMPLEMENTED(lock);
@@ -59,7 +60,6 @@ UNIMPLEMENTED(profil);
 UNIMPLEMENTED(ulimit);
 
 DUMMY(bdflush);
-DUMMY(fstat);
 DUMMY(olduname);
 DUMMY(stime);
 DUMMY(uname);
diff --git a/sys/i386/linux/syscalls.master b/sys/i386/linux/syscalls.master
index a5b246c0822a..98143e300e6c 100644
--- a/sys/i386/linux/syscalls.master
+++ b/sys/i386/linux/syscalls.master
@@ -189,12 +189,7 @@
 		    l_uint secs
 		);
 	}
-28	AUE_FSTAT	STD {
-		int linux_fstat(
-		    l_uint fd,
-		    struct linux_stat *up
-		);
-	}
+28	AUE_NULL	UNIMPL	fstat
 29	AUE_NULL	STD {
 		int linux_pause(void);
 	}