msgbuf.h (7090) | msgbuf.h (9979) |
---|---|
1/* 2 * Copyright (c) 1981, 1984, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)msgbuf.h 8.1 (Berkeley) 6/2/93 | 1/* 2 * Copyright (c) 1981, 1984, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)msgbuf.h 8.1 (Berkeley) 6/2/93 |
34 * $Id: msgbuf.h,v 1.4 1994/08/21 04:41:54 paul Exp $ | 34 * $Id: msgbuf.h,v 1.5 1995/03/16 18:16:21 bde Exp $ |
35 */ 36 37#ifndef _SYS_MSGBUF_H_ 38#define _SYS_MSGBUF_H_ 39 | 35 */ 36 37#ifndef _SYS_MSGBUF_H_ 38#define _SYS_MSGBUF_H_ 39 |
40#define MSG_BSIZE (4096 - 3 * sizeof(long)) | 40#define MSG_BSIZE (4096 - 3 * sizeof(unsigned int)) |
41struct msgbuf { 42#define MSG_MAGIC 0x063061 | 41struct msgbuf { 42#define MSG_MAGIC 0x063061 |
43 long msg_magic; 44 long msg_bufx; /* write pointer */ 45 long msg_bufr; /* read pointer */ 46 char msg_bufc[MSG_BSIZE]; /* buffer */ | 43 unsigned int msg_magic; 44 unsigned int msg_bufx; /* write pointer */ 45 unsigned int msg_bufr; /* read pointer */ 46 char msg_bufc[MSG_BSIZE]; /* buffer */ |
47}; 48#ifdef KERNEL 49extern int msgbufmapped; 50extern struct msgbuf *msgbufp; 51#endif 52 53#endif | 47}; 48#ifdef KERNEL 49extern int msgbufmapped; 50extern struct msgbuf *msgbufp; 51#endif 52 53#endif |