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.
This commit is contained in:
skrll 2023-05-19 06:50:07 +00:00
parent 6d1cc151b5
commit d0ff2affc8
11 changed files with 133 additions and 1 deletions

View File

@ -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"

View File

@ -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 \

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)