#include #include #include #include int main() { mqd_t mq = mq_open("/spqueue", O_RDWR | O_CREAT, 0700); struct mq_attr mqattrs; mq_getattr(mq, &mqattrs); mq_close(mq); mq_unlink("/spqueue"); printf("%ld %ld %ld %ld\n", mqattrs.mq_flags, mqattrs.mq_maxmsg, mqattrs.mq_msgsize, mqattrs.mq_curmsgs); return 0; }