Skip to content

Commit

Permalink
linux(4): Deduplicate SystemV IPC defines from amd64/linux
Browse files Browse the repository at this point in the history
MFC after:		1 week
  • Loading branch information
lemul committed Oct 4, 2023
1 parent 7228ad8 commit 4fe7799
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions sys/amd64/linux/linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,34 +188,6 @@ typedef struct {
#define LINUX_MS_NOEXEC 0x0008
#define LINUX_MS_REMOUNT 0x0020

/*
* SystemV IPC defines
*/
#define LINUX_IPC_RMID 0
#define LINUX_IPC_SET 1
#define LINUX_IPC_STAT 2
#define LINUX_IPC_INFO 3

#define LINUX_SHM_LOCK 11
#define LINUX_SHM_UNLOCK 12
#define LINUX_SHM_STAT 13
#define LINUX_SHM_INFO 14

#define LINUX_SHM_RDONLY 0x1000
#define LINUX_SHM_RND 0x2000
#define LINUX_SHM_REMAP 0x4000

/* semctl commands */
#define LINUX_GETPID 11
#define LINUX_GETVAL 12
#define LINUX_GETALL 13
#define LINUX_GETNCNT 14
#define LINUX_GETZCNT 15
#define LINUX_SETVAL 16
#define LINUX_SETALL 17
#define LINUX_SEM_STAT 18
#define LINUX_SEM_INFO 19

union l_semun {
l_int val;
l_uintptr_t buf;
Expand Down

0 comments on commit 4fe7799

Please sign in to comment.