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

# msgget(1)

allocate a System V IPC message queue

## NAME

msgget - allocate a System V IPC message queue

## SYNOPSIS

**msgget** \[-k key\] \[-c security\_context \| -s sid\]

## DESCRIPTION

**msgget** allocates a message queue (creating it if necessary.) The id of the message queue allocted is printed to standard output.

### OPTIONS

- *-k*

  Key.  Allocate a message queue with the specified key.

- *-c*

  Security Context.  Allocate a memory segment with the specified security context. *-s* Security Identifier.  Allocate a memory segment with the specified security identifier.

## SEE ALSO

[**msgsid**(1)](/msgsid/1.md), [**msgread**(1)](/msgread/1.md), [**msgwrite**(1)](/msgwrite/1.md), [**msgperm**(1)](/msgperm/1.md), [**msgget**(2)](/msgget/2.md), [**msgget\_secure**(2)](/msgget_secure/2.md).
