mq_close (2)
Leading comments
Copyright (c) 2005 David Xu <davidxu@FreeBSD.org> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice(s), this list of conditions and the following disclaimer as the first lines of this file unmodified other than the possible addition of one or more copyright notices. 2. Redistributions in b...
NAME
mq_close - close a message queue (REALTIME)LIBRARY
Lb librtSYNOPSIS
In mqueue.h Ft int Fn mq_close mqd_t mqdesDESCRIPTION
The Fn mq_close system call removes the association between the message queue descriptor, Fa mqdes , and its message queue. The results of using this message queue descriptor after successful return from this Fn mq_close , and until the return of this message queue descriptor from a subsequent Fn mq_open , are undefined.If the process has successfully attached a notification request to the message queue via this Fa mqdes , this attachment will be removed, and the message queue is available for another process to attach for notification.
RETURN VALUES
Rv -stdERRORS
The Fn mq_close system call will fail if:- Bq Er EBADF
- The Fa mqdes argument is not a valid message queue descriptor.