1 /* Copyright (C) 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
24 /* Get common definition of System V style IPC. */
27 /* Get system dependent definition of `struct msqid_ds' and more. */
30 /* Define types required by the standard. */
34 #ifndef __pid_t_defined
35 typedef __pid_t pid_t
;
36 # define __pid_t_defined
39 #ifndef __ssize_t_defined
40 typedef __ssize_t ssize_t
;
41 # define __ssize_t_defined
44 /* The following System V style IPC functions implement a message queue
45 system. The definition is found in XPG2. */
48 /* Template for struct to be used as argument for `msgsnd' and `msgrcv'. */
51 long int mtype
; /* type of received/sent message */
52 char mtext
[1]; /* text of the message */
59 /* Message queue control operation. */
60 extern int msgctl (int __msqid
, int __cmd
, struct msqid_ds
*__buf
) __THROW
;
62 /* Get messages queue. */
63 extern int msgget (key_t __key
, int __msgflg
) __THROW
;
65 /* Receive message from message queue. */
66 extern int msgrcv (int __msqid
, void *__msgp
, size_t __msgsz
,
67 long int __msgtyp
, int __msgflg
) __THROW
;
69 /* Send message to message queue. */
70 extern int msgsnd (int __msqid
, __const
void *__msgp
, size_t __msgsz
,
71 int __msgflg
) __THROW
;
75 #endif /* sys/msg.h */