## NAME

mq_close - close a message queue

## SYNOPSIS

#include <mqueue.h>

int mq_close(mqd_t mqdes );

## DESCRIPTION

mq_close() removes the association between the message queue descriptor, mqdes , and its message queue.

## RETURN VALUES

Upon successful completion, mq_close() returns 0 ; otherwise, the function returns -1 and sets errno to indicate the error condition.

## ERRORS

EBADF
  mqdes is an invalid message queue descriptor.

## SEE ALSO

mq_open(), mq_unlink()

#### Home page (Kernel)

## < Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2018 >