aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2024-05-16 15:24:00 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2024-05-23 00:26:44 +0000
commitafb68a1774206059cf31cbae8269c9453669febd (patch)
treed92a7a3275f3d67d73d7bf562901519ba2f0c146
parent625a622cc6511e250470ee3f84a8553c7c734de6 (diff)
downloadsrc-afb68a1774206059cf31cbae8269c9453669febd.tar.gz
src-afb68a1774206059cf31cbae8269c9453669febd.zip
SysV SHM: move SHMSEG constants to sys/shm.h
(cherry picked from commit 53725168e1b631be0e60f888ba5e63e140b57766)
-rw-r--r--sys/kern/sysv_shm.c4
-rw-r--r--sys/sys/shm.h4
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 *);