Fri May 19 06:50:07 2023 UTC ()
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.
(skrll)
diff -r1.1 -r1.2 src/lib/libc/compat/arch/riscv/Makefile.inc
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/Makefile.inc
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/compat_Ovfork.S
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/compat_msgctl.S
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/compat_quotactl.S
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/compat_shmctl.S
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/compat_sigaction.S
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/compat_sigpending.S
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/compat_sigprocmask.S
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/compat_sigreturn.S
diff -r0 -r1.1 src/lib/libc/compat/arch/riscv/sys/compat_sigsuspend.S
--- src/lib/libc/compat/arch/riscv/Makefile.inc 2014/09/19 17:36:25 1.1
+++ src/lib/libc/compat/arch/riscv/Makefile.inc 2023/05/19 06:50:07 1.2
# $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 \
/* $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)
/* $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)
/* $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)
/* $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)
/* $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)
/* $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)
/* $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)
/* $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)
/* $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)