git: afb68a177420 - stable/14 - SysV SHM: move SHMSEG constants to sys/shm.h

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Thu, 23 May 2024 00:27:10 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=afb68a1774206059cf31cbae8269c9453669febd

commit afb68a1774206059cf31cbae8269c9453669febd
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-05-16 15:24:00 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-05-23 00:26:44 +0000

    SysV SHM: move SHMSEG constants to sys/shm.h
    
    (cherry picked from commit 53725168e1b631be0e60f888ba5e63e140b57766)
---
 sys/kern/sysv_shm.c | 4 ----
 sys/sys/shm.h       | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c
index 2529a9eeb1a7..8f67cb63f33c 100644
--- a/sys/kern/sysv_shm.c
+++ b/sys/kern/sysv_shm.c
@@ -109,10 +109,6 @@ FEATURE(sysv_shm, "System V shared memory segments support");
 
 static MALLOC_DEFINE(M_SHM, "shm", "SVID compatible shared memory segments");
 
-#define	SHMSEG_FREE     	0x0200
-#define	SHMSEG_REMOVED  	0x0400
-#define	SHMSEG_ALLOCATED	0x0800
-
 static int shm_last_free, shm_nused, shmalloced;
 vm_size_t shm_committed;
 static struct shmid_kernel *shmsegs;
diff --git a/sys/sys/shm.h b/sys/sys/shm.h
index 0b5cba0120e5..9c6dad5d43cc 100644
--- a/sys/sys/shm.h
+++ b/sys/sys/shm.h
@@ -152,6 +152,10 @@ struct vmspace;
 
 extern struct shminfo	shminfo;
 
+#define	SHMSEG_FREE     	0x0200
+#define	SHMSEG_REMOVED  	0x0400
+#define	SHMSEG_ALLOCATED	0x0800
+
 void	shmexit(struct vmspace *);
 void	shmfork(struct proc *, struct proc *);