OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[linuxjm/LDP_man-pages.git] / draft / man3 / mq_close.3
1 '\" t
2 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\"
4 .\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
5 .\"
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\"
26 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
27 .\" Translated 2006-04-23, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\"
29 .TH MQ_CLOSE 3 2010-08-29 "Linux" "Linux Programmer's Manual"
30 .\"O .SH NAME
31 .SH Ì¾Á°
32 .\"O mq_close \- close a message queue descriptor
33 mq_close \- ¥á¥Ã¥»¡¼¥¸¥­¥å¡¼µ­½Ò»Ò¤ò¥¯¥í¡¼¥º¤¹¤ë
34 .\"O .SH SYNOPSIS
35 .SH ½ñ¼°
36 .nf
37 .B #include <mqueue.h>
38 .sp
39 .BI "int mq_close(mqd_t " mqdes );
40 .fi
41 .sp
42 .\"O Link with \fI\-lrt\fP.
43 \fI\-lrt\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
44 .\"O .SH DESCRIPTION
45 .SH ÀâÌÀ
46 .\"O .BR mq_close ()
47 .\"O closes the message queue descriptor
48 .\"O .IR mqdes .
49 .BR mq_close ()
50 ¤Ï¥á¥Ã¥»¡¼¥¸¥­¥å¡¼µ­½Ò»Ò (message queue descriptor)
51 .I mqdes
52 ¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
53
54 .\"O If the calling process has attached a notification request
55 .\"O to this message queue via
56 .\"O .IR mqdes ,
57 .\"O then this request is removed,
58 .\"O and another process can now attach a notification request.
59 ¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤¬
60 .I mqdes
61 ·Ðͳ¤Ç¤³¤Î¥á¥Ã¥»¡¼¥¸¥­¥å¡¼¤ËÄÌÃÎÍ×µá (notification request)
62 ¤òÀßÄꤷ¤Æ¤¤¤ë¾ì¹ç¡¢ÄÌÃÎÍ×µá¤Ïºï½ü¤µ¤ì¡¢Â¾¤Î¥×¥í¥»¥¹¤¬¤½¤Î¥­¥å¡¼¤Ë
63 ÂФ·¤ÆÄÌÃÎÍ×µá¤òÀßÄê¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ë¡£
64 .\"O .SH RETURN VALUE
65 .SH ÊÖ¤êÃÍ
66 .\"O On success
67 .\"O .BR mq_close ()
68 .\"O returns 0; on error, \-1 is returned, with
69 .\"O .I errno
70 .\"O set to indicate the error.
71 À®¸ù¤¹¤ë¤È¡¢
72 .BR mq_close ()
73 ¤Ï 0 ¤òÊÖ¤¹¡£¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
74 .I errno
75 ¤Ë¥¨¥é¡¼¤ò¼¨¤¹ÃͤòÀßÄꤹ¤ë¡£
76 .\"O .SH ERRORS
77 .SH ¥¨¥é¡¼
78 .TP
79 .B EBADF
80 .\"O The descriptor specified in
81 .\"O .I mqdes
82 .\"O is invalid.
83 .I mqdes
84 ¤Ç»ØÄꤵ¤ì¤¿µ­½Ò»Ò¤¬ÉÔÀµ¤Ç¤¢¤ë¡£
85 .\"O .SH CONFORMING TO
86 .SH ½àµò
87 POSIX.1-2001.
88 .\"O .SH NOTES
89 .SH Ãí°Õ
90 .\"O All open message queues are automatically closed on process termination,
91 .\"O or upon
92 .\"O .BR execve (2).
93 .\"Omotoki: ¼«Æ°Åª¤Ë¥¯¥í¡¼¥º¤µ¤ì¤ë¤Î¤Ï message queue ¤Ç¤Ï¤Ê¤¯
94 .\"Omotoki: message queue descriptor ¡© (cf. mq_overview(7))
95 ¥×¥í¥»¥¹½ªÎ»»þ¡¢¤â¤·¤¯¤Ï
96 .BR execve (2)
97 ¼Â¹Ô»þ¤Ë¡¢Á´¤Æ¤Î¥ª¡¼¥×¥ó¤µ¤ì¤¿¥á¥Ã¥»¡¼¥¸¥­¥å¡¼¤Ï¼«Æ°Åª¤Ë¥¯¥í¡¼¥º¤µ¤ì¤ë¡£
98 .\"O .SH "SEE ALSO"
99 .SH ´ØÏ¢¹àÌÜ
100 .BR mq_getattr (3),
101 .BR mq_notify (3),
102 .BR mq_open (3),
103 .BR mq_receive (3),
104 .BR mq_send (3),
105 .BR mq_unlink (3),
106 .BR mq_overview (7)