1 #ifndef _MQUEUE_H 2 #define _MQUEUE_H 3 #ifdef __cplusplus 4 extern "C" { 5 #endif 6 7 #include <features.h> 8 9 #define __NEED_size_t 10 #define __NEED_ssize_t 11 #define __NEED_pthread_attr_t 12 #define __NEED_time_t 13 #define __NEED_struct_timespec 14 #include <bits/alltypes.h> 15 16 typedef int mqd_t; 17 struct mq_attr { 18 long mq_flags, mq_maxmsg, mq_msgsize, mq_curmsgs, __unused[4]; 19 }; 20 struct sigevent; 21 22 #if _REDIR_TIME64 23 __REDIR(mq_timedreceive, __mq_timedreceive_time64); 24 __REDIR(mq_timedsend, __mq_timedsend_time64); 25 #endif 26 27 #ifdef __cplusplus 28 } 29 #endif 30 #endif 31