---
name: "semget"
section: "1"
platform: "linux"
package: "selinux"
version: "2002031409-4"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/semget"
---

# semget(1)

allocate a System V IPC semaphore set

## NAME

semget - allocate a System V IPC semaphore set

## SYNOPSIS

**semget** \[-k key\] \[-c security\_context \| -s sid\] \[-n num\_semaphores\]

## DESCRIPTION

**semget** allocates a semaphore set (creating it if necessary.)

### OPTIONS

- *-k*

  Key.  Allocate a semaphore set with a specific key.

- *-c*

  Security Context.  Allocate a semaphore set with the given security context. *-s* Security Identifier. Allocate a semaphore set with the given security identifier.

- *-n*

  Number of Semaphores.  The number of semaphores to allocate as a set if the set does not exist.

## SEE ALSO

[**semsid**(1)](/semsid/1.md), [**semread**(1)](/semread/1.md), [**semwrite**(1)](/semwrite/1.md), [**semperm**(1)](/semperm/1.md), [**semget**(2)](/semget/2.md), [**semget\_secure**(2)](/semget_secure/2.md).
