123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef _MQUEUE_H
- #define _MQUEUE_H 1
- #include <features.h>
- #if defined __UCLIBC_HAS_REALTIME__ || \
- defined __UCLIBC_HAS_ADVANCED_REALTIME__
- #include <sys/types.h>
- #include <fcntl.h>
- #define __need_sigevent_t
- #include <bits/siginfo.h>
- #define __need_timespec
- #include <time.h>
- #include <bits/mqueue.h>
- #endif
- __BEGIN_DECLS
- #if defined __UCLIBC_HAS_REALTIME__
- extern mqd_t mq_open (const char *__name, int __oflag, ...) __THROW;
- extern int mq_close (mqd_t __mqdes) __THROW;
- extern int mq_getattr (mqd_t __mqdes, struct mq_attr *__mqstat) __THROW;
- extern int mq_setattr (mqd_t __mqdes,
- const struct mq_attr *__restrict __mqstat,
- struct mq_attr *__restrict __omqstat) __THROW;
- extern int mq_unlink (const char *__name) __THROW;
- extern int mq_notify (mqd_t __mqdes, const struct sigevent *__notification)
- __THROW;
- extern ssize_t mq_receive (mqd_t __mqdes, char *__msg_ptr, size_t __msg_len,
- unsigned int *__msg_prio);
- extern int mq_send (mqd_t __mqdes, const char *__msg_ptr, size_t __msg_len,
- unsigned int __msg_prio);
- #endif
- #if defined __USE_XOPEN2K && defined __UCLIBC_HAS_ADVANCED_REALTIME__
- extern ssize_t mq_timedreceive (mqd_t __mqdes, char *__restrict __msg_ptr,
- size_t __msg_len,
- unsigned int *__restrict __msg_prio,
- const struct timespec *__restrict __abs_timeout);
- extern int mq_timedsend (mqd_t __mqdes, const char *__msg_ptr,
- size_t __msg_len, unsigned int __msg_prio,
- const struct timespec *__abs_timeout);
- #endif
- __END_DECLS
- #endif
|