Skip to content

Commit 5372516

Browse files
committed
SysV SHM: move SHMSEG constants to sys/shm.h
There are planned consumers in linprocfs. Tested by: Ricardo Branco <[email protected]> Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D45175
1 parent 28a5910 commit 5372516

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sys/kern/sysv_shm.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ FEATURE(sysv_shm, "System V shared memory segments support");
109109

110110
static MALLOC_DEFINE(M_SHM, "shm", "SVID compatible shared memory segments");
111111

112-
#define SHMSEG_FREE 0x0200
113-
#define SHMSEG_REMOVED 0x0400
114-
#define SHMSEG_ALLOCATED 0x0800
115-
116112
static int shm_last_free, shm_nused, shmalloced;
117113
vm_size_t shm_committed;
118114
static struct shmid_kernel *shmsegs;

sys/sys/shm.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ struct vmspace;
152152

153153
extern struct shminfo shminfo;
154154

155+
#define SHMSEG_FREE 0x0200
156+
#define SHMSEG_REMOVED 0x0400
157+
#define SHMSEG_ALLOCATED 0x0800
158+
155159
void shmexit(struct vmspace *);
156160
void shmfork(struct proc *, struct proc *);
157161

0 commit comments

Comments
 (0)