1.\" $NetBSD: mq_close.3,v 1.2 2010/06/07 07:21:52 jruoho Exp $ 2.\" 3.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved 4.\" 5.Dd June 7, 2010 6.Dt MQ_CLOSE 3 7.Os 8.Sh NAME 9.Nm mq_close 10.Nd close a message queue (REALTIME) 11.Sh LIBRARY 12.Lb librt 13.Sh SYNOPSIS 14.In mqueue.h 15.Ft int 16.Fn mq_close "mqd_t mqdes" 17.Sh DESCRIPTION 18The 19.Fn mq_close 20function will remove the association between the message queue descriptor, 21.Fa mqdes , 22and its message queue. 23.Pp 24If the process has successfully attached a notification request to 25the message queue via this 26.Fa mqdes , 27this attachment will be removed, and the message queue is available 28for another process to attach for notification. 29.Sh RETURN VALUES 30.Rv -std mq_close 31.Sh ERRORS 32The 33.Fn mq_close 34function fails if: 35.Bl -tag -width Er 36.It Bq Er EBADF 37The 38.Fa mqdes 39argument is not a valid message queue descriptor. 40.El 41.Sh SEE ALSO 42.Xr mq 3 , 43.Xr mq_open 3 , 44.Xr mq_unlink 3 45.Sh STANDARDS 46This function conforms to the 47.St -p1003.1-2001 48standard. 49.Sh HISTORY 50The 51.Fn mq_close 52function first appeared in 53.Nx 5.0 . 54.Sh COPYRIGHT 55Portions of this text are reprinted and reproduced in electronic form 56from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology 57-- Portable Operating System Interface (POSIX), The Open Group Base 58Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of 59Electrical and Electronics Engineers, Inc and The Open Group. 60In the 61event of any discrepancy between this version and the original IEEE and 62The Open Group Standard, the original IEEE and The Open Group Standard 63is the referee document. 64The original Standard can be obtained online at 65http://www.opengroup.org/unix/online.html . 66