diff options
| author | skrll <skrll@NetBSD.org> | 2023-05-19 06:50:07 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2023-05-19 06:50:07 +0000 |
| commit | dfc6508f95e52ac36e897f9254ca8febe9554429 (patch) | |
| tree | bc72a748a9a27829d59d55313e76baaee361c4e8 /lib | |
| parent | 0a7973eb6b8e288576996ee5ff3072a76dd684dc (diff) | |
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 (limited to 'lib')
| -rw-r--r-- | lib/libc/compat/arch/riscv/Makefile.inc | 4 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/Makefile.inc | 12 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/compat_Ovfork.S | 14 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/compat_msgctl.S | 13 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/compat_quotactl.S | 13 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/compat_shmctl.S | 13 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/compat_sigaction.S | 13 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/compat_sigpending.S | 13 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/compat_sigprocmask.S | 13 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/compat_sigreturn.S | 13 | ||||
| -rw-r--r-- | lib/libc/compat/arch/riscv/sys/compat_sigsuspend.S | 13 |
11 files changed, 133 insertions, 1 deletions
diff --git a/lib/libc/compat/arch/riscv/Makefile.inc b/lib/libc/compat/arch/riscv/Makefile.inc index 3cb7a1a1c90..f44023ae1cf 100644 --- a/lib/libc/compat/arch/riscv/Makefile.inc +++ b/lib/libc/compat/arch/riscv/Makefile.inc @@ -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 --git a/lib/libc/compat/arch/riscv/sys/Makefile.inc b/lib/libc/compat/arch/riscv/sys/Makefile.inc new file mode 100644 index 00000000000..49a5f96886d --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/Makefile.inc @@ -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 --git a/lib/libc/compat/arch/riscv/sys/compat_Ovfork.S b/lib/libc/compat/arch/riscv/sys/compat_Ovfork.S new file mode 100644 index 00000000000..1c714f662a3 --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/compat_Ovfork.S @@ -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 --git a/lib/libc/compat/arch/riscv/sys/compat_msgctl.S b/lib/libc/compat/arch/riscv/sys/compat_msgctl.S new file mode 100644 index 00000000000..5f16bc0afad --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/compat_msgctl.S @@ -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 --git a/lib/libc/compat/arch/riscv/sys/compat_quotactl.S b/lib/libc/compat/arch/riscv/sys/compat_quotactl.S new file mode 100644 index 00000000000..cdda7d988f7 --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/compat_quotactl.S @@ -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 --git a/lib/libc/compat/arch/riscv/sys/compat_shmctl.S b/lib/libc/compat/arch/riscv/sys/compat_shmctl.S new file mode 100644 index 00000000000..3583c0dc883 --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/compat_shmctl.S @@ -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 --git a/lib/libc/compat/arch/riscv/sys/compat_sigaction.S b/lib/libc/compat/arch/riscv/sys/compat_sigaction.S new file mode 100644 index 00000000000..bf1440adc71 --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/compat_sigaction.S @@ -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 --git a/lib/libc/compat/arch/riscv/sys/compat_sigpending.S b/lib/libc/compat/arch/riscv/sys/compat_sigpending.S new file mode 100644 index 00000000000..a8f36d1d8b2 --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/compat_sigpending.S @@ -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 --git a/lib/libc/compat/arch/riscv/sys/compat_sigprocmask.S b/lib/libc/compat/arch/riscv/sys/compat_sigprocmask.S new file mode 100644 index 00000000000..9fb5ea8224c --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/compat_sigprocmask.S @@ -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 --git a/lib/libc/compat/arch/riscv/sys/compat_sigreturn.S b/lib/libc/compat/arch/riscv/sys/compat_sigreturn.S new file mode 100644 index 00000000000..b72d881675b --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/compat_sigreturn.S @@ -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 --git a/lib/libc/compat/arch/riscv/sys/compat_sigsuspend.S b/lib/libc/compat/arch/riscv/sys/compat_sigsuspend.S new file mode 100644 index 00000000000..524fa57b1ba --- /dev/null +++ b/lib/libc/compat/arch/riscv/sys/compat_sigsuspend.S @@ -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) |
