git: 601c19df364e - stable/13 - linux(4): Reduce duplication between MD parts of the Linuxulator
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:41:23 UTC
The branch stable/13 has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=601c19df364ee064cb6011c178e3c6bb58ba9a34
commit 601c19df364ee064cb6011c178e3c6bb58ba9a34
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-05-30 16:47:26 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-17 19:35:37 +0000
linux(4): Reduce duplication between MD parts of the Linuxulator
Move sigprocmask actions defines under compat/linux,
they are identical across all Linux architectures.
MFC after: 2 weeks
(cherry picked from commit 2ca34847e7288fba6b2a15e64648238bc12e4960)
---
sys/amd64/linux/linux.h | 5 -----
sys/amd64/linux32/linux.h | 5 -----
sys/arm64/linux/linux.h | 5 -----
sys/compat/linux/linux.h | 5 +++++
sys/i386/linux/linux.h | 5 -----
5 files changed, 5 insertions(+), 20 deletions(-)
diff --git a/sys/amd64/linux/linux.h b/sys/amd64/linux/linux.h
index 02aede96ce23..6f91e86255e2 100644
--- a/sys/amd64/linux/linux.h
+++ b/sys/amd64/linux/linux.h
@@ -161,11 +161,6 @@ struct l_newstat {
#define LINUX_SA_NOMASK 0x40000000
#define LINUX_SA_ONESHOT 0x80000000
-/* sigprocmask actions */
-#define LINUX_SIG_BLOCK 0
-#define LINUX_SIG_UNBLOCK 1
-#define LINUX_SIG_SETMASK 2
-
/* sigaltstack */
#define LINUX_MINSIGSTKSZ 2048
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h
index 6ba3d3214a09..f8b72e060de4 100644
--- a/sys/amd64/linux32/linux.h
+++ b/sys/amd64/linux32/linux.h
@@ -263,11 +263,6 @@ struct l_statfs64 {
#define LINUX_SA_NOMASK 0x40000000
#define LINUX_SA_ONESHOT 0x80000000
-/* sigprocmask actions */
-#define LINUX_SIG_BLOCK 0
-#define LINUX_SIG_UNBLOCK 1
-#define LINUX_SIG_SETMASK 2
-
/* sigaltstack */
#define LINUX_MINSIGSTKSZ 2048
diff --git a/sys/arm64/linux/linux.h b/sys/arm64/linux/linux.h
index bf6e092f3bf8..9b78ac59f9dc 100644
--- a/sys/arm64/linux/linux.h
+++ b/sys/arm64/linux/linux.h
@@ -158,11 +158,6 @@ struct l_newstat {
#define LINUX_SA_NOMASK 0x40000000 /* SA_NODEFER */
#define LINUX_SA_ONESHOT 0x80000000 /* SA_RESETHAND */
-/* sigprocmask actions */
-#define LINUX_SIG_BLOCK 0
-#define LINUX_SIG_UNBLOCK 1
-#define LINUX_SIG_SETMASK 2
-
typedef void (*l_handler_t)(l_int);
typedef struct {
diff --git a/sys/compat/linux/linux.h b/sys/compat/linux/linux.h
index f73a0484cf55..0309c4dbaaa8 100644
--- a/sys/compat/linux/linux.h
+++ b/sys/compat/linux/linux.h
@@ -167,6 +167,11 @@ void bsd_to_linux_sigset(sigset_t *, l_sigset_t *);
int linux_to_bsd_signal(int sig);
int bsd_to_linux_signal(int sig);
+/* sigprocmask actions */
+#define LINUX_SIG_BLOCK 0
+#define LINUX_SIG_UNBLOCK 1
+#define LINUX_SIG_SETMASK 2
+
void linux_dev_shm_create(void);
void linux_dev_shm_destroy(void);
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index 75d2017fb61f..86fca2976f83 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -236,11 +236,6 @@ struct l_statfs64 {
#define LINUX_SA_NOMASK 0x40000000
#define LINUX_SA_ONESHOT 0x80000000
-/* sigprocmask actions */
-#define LINUX_SIG_BLOCK 0
-#define LINUX_SIG_UNBLOCK 1
-#define LINUX_SIG_SETMASK 2
-
/* sigaltstack */
#define LINUX_MINSIGSTKSZ 2048