aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2024-05-16 15:24:00 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2024-05-16 17:53:31 +0000
commit53725168e1b631be0e60f888ba5e63e140b57766 (patch)
treef505a4fed10f5c4294f5b28140a168015bc10099 /sys
parent28a59100b54ff245a45fbd328266266f1c14eb8c (diff)
downloadsrc-53725168e1b631be0e60f888ba5e63e140b57766.tar.gz
src-53725168e1b631be0e60f888ba5e63e140b57766.zip
Diffstat (limited to 'sys')
-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 *);