Print this page
remove support for non-ANSI compilation


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*


  23  * Copyright 1999-2003 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 
  31 #ifndef _SYS_MSG_H
  32 #define _SYS_MSG_H
  33 
  34 #pragma ident   "%Z%%M% %I%     %E% SMI"
  35 
  36 #include <sys/ipc.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 /*
  43  * IPC Message Facility.
  44  */
  45 
  46 /*
  47  * Implementation Constants.
  48  */
  49 
  50 /*
  51  * Permission Definitions.
  52  */
  53 #define MSG_R   0400    /* read permission */
  54 #define MSG_W   0200    /* write permission */
  55 


 109 #else
 110         long    mtype;          /* message type */
 111         char    mtext[1];       /* message text */
 112 #endif
 113 };
 114 
 115 /*
 116  * Header and message header structures for msgsnap() system call.
 117  */
 118 struct msgsnap_head {
 119         size_t  msgsnap_size;   /* bytes consumed/required in the buffer */
 120         size_t  msgsnap_nmsg;   /* number of messages in the buffer */
 121 };
 122 
 123 struct msgsnap_mhead {
 124         size_t  msgsnap_mlen;   /* number of bytes in message that follows */
 125         long    msgsnap_mtype;  /* message type */
 126 };
 127 
 128 #if !defined(_KERNEL)
 129 #if defined(__STDC__)
 130 int msgctl(int, int, struct msqid_ds *);
 131 int msgget(key_t, int);
 132 int msgids(int *, uint_t, uint_t *);
 133 int msgsnap(int, void *, size_t, long);
 134 ssize_t msgrcv(int, void *, size_t, long, int);
 135 int msgsnd(int, const void *, size_t, int);
 136 #else /* __STDC__ */
 137 int msgctl();
 138 int msgget();
 139 int msgids();
 140 int msgsnap();
 141 int msgrcv();
 142 int msgsnd();
 143 #endif /* __STDC__ */
 144 #endif /* ! _KERNEL */
 145 
 146 #ifdef  __cplusplus
 147 }
 148 #endif
 149 
 150 #endif  /* _SYS_MSG_H */


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24  *
  25  * Copyright 1999-2003 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  30 /*        All Rights Reserved   */
  31 
  32 
  33 #ifndef _SYS_MSG_H
  34 #define _SYS_MSG_H
  35 


  36 #include <sys/ipc.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 /*
  43  * IPC Message Facility.
  44  */
  45 
  46 /*
  47  * Implementation Constants.
  48  */
  49 
  50 /*
  51  * Permission Definitions.
  52  */
  53 #define MSG_R   0400    /* read permission */
  54 #define MSG_W   0200    /* write permission */
  55 


 109 #else
 110         long    mtype;          /* message type */
 111         char    mtext[1];       /* message text */
 112 #endif
 113 };
 114 
 115 /*
 116  * Header and message header structures for msgsnap() system call.
 117  */
 118 struct msgsnap_head {
 119         size_t  msgsnap_size;   /* bytes consumed/required in the buffer */
 120         size_t  msgsnap_nmsg;   /* number of messages in the buffer */
 121 };
 122 
 123 struct msgsnap_mhead {
 124         size_t  msgsnap_mlen;   /* number of bytes in message that follows */
 125         long    msgsnap_mtype;  /* message type */
 126 };
 127 
 128 #if !defined(_KERNEL)

 129 int msgctl(int, int, struct msqid_ds *);
 130 int msgget(key_t, int);
 131 int msgids(int *, uint_t, uint_t *);
 132 int msgsnap(int, void *, size_t, long);
 133 ssize_t msgrcv(int, void *, size_t, long, int);
 134 int msgsnd(int, const void *, size_t, int);








 135 #endif /* ! _KERNEL */
 136 
 137 #ifdef  __cplusplus
 138 }
 139 #endif
 140 
 141 #endif  /* _SYS_MSG_H */