Path: blob/main/system/lib/libc/musl/include/mqueue.h
6171 views
#ifndef _MQUEUE_H1#define _MQUEUE_H2#ifdef __cplusplus3extern "C" {4#endif56#include <features.h>78#define __NEED_size_t9#define __NEED_ssize_t10#define __NEED_pthread_attr_t11#define __NEED_time_t12#define __NEED_struct_timespec13#include <bits/alltypes.h>1415typedef int mqd_t;16struct mq_attr {17long mq_flags, mq_maxmsg, mq_msgsize, mq_curmsgs, __unused[4];18};19struct sigevent;2021int mq_close(mqd_t);22int mq_getattr(mqd_t, struct mq_attr *);23int mq_notify(mqd_t, const struct sigevent *);24mqd_t mq_open(const char *, int, ...);25ssize_t mq_receive(mqd_t, char *, size_t, unsigned *);26int mq_send(mqd_t, const char *, size_t, unsigned);27int mq_setattr(mqd_t, const struct mq_attr *__restrict, struct mq_attr *__restrict);28ssize_t mq_timedreceive(mqd_t, char *__restrict, size_t, unsigned *__restrict, const struct timespec *__restrict);29int mq_timedsend(mqd_t, const char *, size_t, unsigned, const struct timespec *);30int mq_unlink(const char *);3132#if _REDIR_TIME6433__REDIR(mq_timedreceive, __mq_timedreceive_time64);34__REDIR(mq_timedsend, __mq_timedsend_time64);35#endif3637#ifdef __cplusplus38}39#endif40#endif414243