+ c& z: x/ R) X2 J( S1 E! A 1 D! N, t( ]8 C3 U7 R: |3 f H- N* @' x! O2 L! j( ?# \
Any combination of the remaining flags may be specified in the value of oflag: & ]7 q5 P# x( ^8 K1 a) ]/ n ; h; Q) T0 Q4 k2 ^6 W7 u' v d$ v4 S6 Q! V, M
O_CREAT (创建)- u; a& [; X3 m, h( `$ z
* u' {5 r4 e9 n( K$ |% T 2 E5 {4 }& w- ^4 j1 v' }8 o. SRETURN VALUE . b: \& A3 R" u; h% ?6 W6 K: D1 s
如果函数执行成功, 函数返回一个描述符 7 k& i) f5 Y; @1 n n$ u3 h5 v6 ]' i0 E如果函数执行失败,函数返回 (mqd_t)-1 并且设置errno,errno的种别详见下面的ERRORS一节. , r% p* T* f7 l0 P% S r) A8 I, _% [5 O$ ?! D
, l2 E3 N8 S( ]* W- y' j1 S
% ]0 ?& A. ?* sERRORS : N- K/ B3 h( A( R& t5 u% M! {5 K, A* ~5 n$ p
[EACCES] / Q/ {8 G: S1 L; p+ j j 1 _; o0 W$ `+ q/ V1 G* hThe message queue exists and the permissions specified by oflag are denied, or the message queue does not exist and permission to create the message queue is denied.0 {. M0 a1 D$ o, O$ F/ d
5 w. R2 b- [; B, C[EEXIST] $ K3 s& l. u3 P% l. l) b+ X- y# C0 c0 j' \/ {& E7 c* k8 i
O_CREAT and O_EXCL are set and the named message queue already exists. , c6 j$ @! o) E1 n2 Y+ z- t: s3 \, h1 n4 B2 [3 \1 W0 z
[EINTR]" S+ V U. D$ L) U, u4 j
4 f+ l0 t6 r- Q' a$ z
函数 mq_open() 被信号中断.8 R1 G6 m+ p9 E