git: 454ebd0be5ee - stable/13 - SysV SHM: move SHMSEG constants to sys/shm.h

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

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

commit 454ebd0be5ee35e804759c6fff0144f08f75f538
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-05-16 15:24:00 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-05-22 23:47:23 +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 91ee7c557136..1da95b86c9ba 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 *);