Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/compat/arch/riscv Add the compat calls for renamed ...



details:   https://anonhg.NetBSD.org/src/rev/9d08e62a4c28
branches:  trunk
changeset: 375884:9d08e62a4c28
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri May 19 06:50:07 2023 +0000

description:
Add the compat calls for renamed symbols so that configure scripts
can find them. sigprocmask being the most problematic.

RISC-V doesn't need the compat syscalls, but seeing them fail in
ktrace is helpful.

diffstat:

 lib/libc/compat/arch/riscv/Makefile.inc             |   4 +++-
 lib/libc/compat/arch/riscv/sys/Makefile.inc         |  12 ++++++++++++
 lib/libc/compat/arch/riscv/sys/compat_Ovfork.S      |  14 ++++++++++++++
 lib/libc/compat/arch/riscv/sys/compat_msgctl.S      |  13 +++++++++++++
 lib/libc/compat/arch/riscv/sys/compat_quotactl.S    |  13 +++++++++++++
 lib/libc/compat/arch/riscv/sys/compat_shmctl.S      |  13 +++++++++++++
 lib/libc/compat/arch/riscv/sys/compat_sigaction.S   |  13 +++++++++++++
 lib/libc/compat/arch/riscv/sys/compat_sigpending.S  |  13 +++++++++++++
 lib/libc/compat/arch/riscv/sys/compat_sigprocmask.S |  13 +++++++++++++
 lib/libc/compat/arch/riscv/sys/compat_sigreturn.S   |  13 +++++++++++++
 lib/libc/compat/arch/riscv/sys/compat_sigsuspend.S  |  13 +++++++++++++
 11 files changed, 133 insertions(+), 1 deletions(-)

diffs (178 lines):

diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/Makefile.inc
--- a/lib/libc/compat/arch/riscv/Makefile.inc   Fri May 19 06:41:41 2023 +0000
+++ b/lib/libc/compat/arch/riscv/Makefile.inc   Fri May 19 06:50:07 2023 +0000
@@ -1,1 +1,3 @@
-# $NetBSD: Makefile.inc,v 1.1 2014/09/19 17:36:25 matt Exp $
+# $NetBSD: Makefile.inc,v 1.2 2023/05/19 06:50:07 skrll Exp $
+
+.include "${COMPATARCHDIR}/sys/Makefile.inc"
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/Makefile.inc       Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,12 @@
+#      $NetBSD: Makefile.inc,v 1.1 2023/05/19 06:50:07 skrll Exp $
+
+SRCS+= \
+    compat_Ovfork.S \
+    compat_msgctl.S \
+    compat_quotactl.S \
+    compat_shmctl.S \
+    compat_sigaction.S \
+    compat_sigpending.S \
+    compat_sigprocmask.S \
+    compat_sigreturn.S \
+    compat_sigsuspend.S \
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/compat_Ovfork.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/compat_Ovfork.S    Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,14 @@
+/*     $NetBSD: compat_Ovfork.S,v 1.1 2023/05/19 06:50:07 skrll Exp $  */
+
+/*
+ * This file placed in the public domain.
+ * Nick Hudson, 19th May, 2023.
+ */
+
+#include "SYS.h"
+
+WARN_REFERENCES(vfork, \
+    "warning: reference to compatibility vfork(); include <unistd.h> for correct reference")
+
+PSEUDO(vfork,__vfork14)
+
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/compat_msgctl.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/compat_msgctl.S    Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,13 @@
+/*     $NetBSD: compat_msgctl.S,v 1.1 2023/05/19 06:50:07 skrll Exp $  */
+
+/*
+ * This file placed in the public domain.
+ * Nick Hudson, 19th May, 2023.
+ */
+
+#include "SYS.h"
+
+WARN_REFERENCES(msgctl, \
+    "warning: reference to compatibility msgctl(); include <sys/msg.h> for correct reference")
+
+PSEUDO(msgctl,compat_14_msgctl)
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/compat_quotactl.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/compat_quotactl.S  Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,13 @@
+/*     $NetBSD: compat_quotactl.S,v 1.1 2023/05/19 06:50:07 skrll Exp $        */
+
+/*
+ * This file placed in the public domain.
+ * Nick Hudson, 19th May, 2023.
+ */
+
+#include "SYS.h"
+
+WARN_REFERENCES(quotactl, \
+    "warning: reference to compatibility quotactl(); include <sys/quota.h> for correct reference")
+
+PSEUDO(quotactl,compat_50_quotactl)
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/compat_shmctl.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/compat_shmctl.S    Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,13 @@
+/*     $NetBSD: compat_shmctl.S,v 1.1 2023/05/19 06:50:07 skrll Exp $  */
+
+/*
+ * This file placed in the public domain.
+ * Nick Hudson, 19th May, 2023.
+ */
+
+#include "SYS.h"
+
+WARN_REFERENCES(shmctl, \
+    "warning: reference to compatibility shmctl(); include <sys/shm.h> for correct reference")
+
+PSEUDO(shmctl,compat_14_shmctl)
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/compat_sigaction.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/compat_sigaction.S Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,13 @@
+/*     $NetBSD: compat_sigaction.S,v 1.1 2023/05/19 06:50:07 skrll Exp $       */
+
+/*
+ * This file placed in the public domain.
+ * Nick Hudson, 19th May, 2023.
+ */
+
+#include "SYS.h"
+
+WARN_REFERENCES(sigaction, \
+    "warning: reference to compatibility sigaction(); include <signal.h> for correct reference")
+
+PSEUDO(sigaction,compat_13_sigaction13)
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/compat_sigpending.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/compat_sigpending.S        Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,13 @@
+/*     $NetBSD: compat_sigpending.S,v 1.1 2023/05/19 06:50:07 skrll Exp $      */
+
+/*
+ * This file placed in the public domain.
+ * Nick Hudson, 19th May, 2023.
+ */
+
+#include "SYS.h"
+
+WARN_REFERENCES(sigpending, \
+    "warning: reference to compatibility sigpending(); include <signal.h> for correct reference")
+
+PSEUDO(sigpending,compat_13_sigpending13)
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/compat_sigprocmask.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/compat_sigprocmask.S       Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,13 @@
+/*     $NetBSD: compat_sigprocmask.S,v 1.1 2023/05/19 06:50:07 skrll Exp $     */
+
+/*
+ * This file placed in the public domain.
+ * Nick Hudson, 19th May, 2023.
+ */
+
+#include "SYS.h"
+
+WARN_REFERENCES(sigprocmask, \
+    "warning: reference to compatibility sigprocmask(); include <signal.h> for correct reference")
+
+PSEUDO(sigprocmask,compat_13_sigprocmask13)
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/compat_sigreturn.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/compat_sigreturn.S Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,13 @@
+/*     $NetBSD: compat_sigreturn.S,v 1.1 2023/05/19 06:50:07 skrll Exp $       */
+
+/*
+ * This file placed in the public domain.
+ * Nick Hudson, 19th May, 2023.
+ */
+
+#include "SYS.h"
+
+WARN_REFERENCES(sigreturn, \
+    "warning: reference to compatibility sigreturn()")
+
+PSEUDO(sigreturn,compat_13_sigreturn13)
diff -r 702390c02789 -r 9d08e62a4c28 lib/libc/compat/arch/riscv/sys/compat_sigsuspend.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/riscv/sys/compat_sigsuspend.S        Fri May 19 06:50:07 2023 +0000
@@ -0,0 +1,13 @@
+/*     $NetBSD: compat_sigsuspend.S,v 1.1 2023/05/19 06:50:07 skrll Exp $      */
+
+/*
+ * This file placed in the public domain.
+ * Nick Hudson, 19th May, 2023.
+ */
+
+#include "SYS.h"
+
+WARN_REFERENCES(sigsuspend, \
+    "warning: reference to compatibility sigsuspend(); include <signal.h> for correct reference")
+
+PSEUDO(sigsuspend,compat_13_sigsuspend13)



Home | Main Index | Thread Index | Old Index