1 /* Copyright (C) 1995 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
24 #include <sys/types.h>
26 /* Get common definition of System V style IPC. */
29 /* Get system dependent definition of `struct msqid_ds' and more. */
30 #include <sys/msq_buf.h>
34 /* The following System V style IPC functions implement a message queue
35 system. The definition is found in XPG2. */
37 /* Template for struct to be used as argument for `msgsnd' and `msgrcv'. */
40 long mtype; /* type of received/sent message */
41 char mtext[1]; /* text of the message */
45 /* Message queue control operation. */
46 extern int msgctl __P ((int __msqid, int __cmd, struct msqid_ds *__buf));
48 /* Get messages queue. */
49 extern int msgget __P ((key_t __key, int __msgflg));
51 /* Receive message from message queue. */
52 extern int msgrcv __P ((int __msqid, void *__msgp, size_t __msgsz,
53 long __msgtyp, int __msgflg));
55 /* Send message to message queue. */
56 extern int msgsnd __P ((int __msqid, void *__msgp, size_t __msgsz,
61 #endif /* sys/msg.h */