mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-29 02:20:21 +08:00
ef467338e4
* libc/sys/linux/Makefile.am: Add support for message queue routines, ipc routines, and ftok. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/ftok.c: New file. * libc/sys/linux/ipc.c: Ditto. * libc/sys/linux/mq_close.c: Ditto. * libc/sys/linux/mq_getattr.c: Ditto. * libc/sys/linux/mq_notify.c: Ditto. * libc/sys/linux/mq_open.c: Ditto. * libc/sys/linux/mq_receive.c: Ditto. * libc/sys/linux/mq_send.c: Ditto. * libc/sys/linux/mq_setattr.c: Ditto. * libc/sys/linux/mq_unlink.c: Ditto. * libc/sys/linux/mqlocal.h: Ditto. * libc/sys/linux/include/mqueue.h: Ditto. * libc/sys/linux/sys/types.h: Define __gid_t_defined and __uid_t_defined.
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/* libc/sys/linux/include/mqueue.h - message queue functions */
|
|
|
|
/* Copyright 2002, Red Hat Inc. - all rights reserved */
|
|
|
|
#ifndef __MQUEUE_H
|
|
#define __MQUEUE_H
|
|
|
|
#include <sys/types.h>
|
|
#define __need_sigevent_t 1
|
|
#include <asm/siginfo.h>
|
|
|
|
/* message queue types */
|
|
typedef int mqd_t;
|
|
|
|
struct mq_attr {
|
|
long mq_flags; /* message queue flags */
|
|
long mq_maxmsg; /* maximum number of messages */
|
|
long mq_msgsize; /* maximum message size */
|
|
long mq_curmsgs; /* number of messages currently queued */
|
|
};
|
|
|
|
#define MQ_PRIO_MAX 16
|
|
|
|
/* prototypes */
|
|
mqd_t mq_open (const char *__name, int __oflag, ...);
|
|
int mq_close (mqd_t __msgid);
|
|
int mq_send (mqd_t __msgid, const char *__msg, size_t __msg_len, unsigned int __msg_prio);
|
|
ssize_t mq_receive (mqd_t __msgid, char *__msg, size_t __msg_len, unsigned int *__msg_prio);
|
|
int mq_notify (mqd_t __msgid, const struct sigevent *__notification);
|
|
int mq_unlink (const char *__name);
|
|
int mq_getattr (mqd_t __msgid, struct mq_attr *__mqstat);
|
|
int mq_setattr (mqd_t __msgid, const struct mq_attr *__mqstat, struct mq_attr *__omqattr);
|
|
|
|
#endif /* __MQUEUE_H */
|