Deleted Added
full compact
sysv_msg.c (8876) sysv_msg.c (9759)
1/* $Id: sysv_msg.c,v 1.3 1994/10/02 17:35:26 phk Exp $ */
1/* $Id: sysv_msg.c,v 1.4 1995/05/30 08:06:01 rgrimes Exp $ */
2
3/*
4 * Implementation of SVID messages
5 *
6 * Author: Daniel Boulet
7 *
8 * Copyright 1993 Daniel Boulet and RTMX Inc.
9 *

--- 21 unchanged lines hidden (view full) ---

31
32static int msgctl(), msgget(), msgsnd(), msgrcv();
33
34int (*msgcalls[])() = { msgctl, msgget, msgsnd, msgrcv };
35
36int nfree_msgmaps; /* # of free map entries */
37short free_msgmaps; /* head of linked list of free map entries */
38struct msg *free_msghdrs; /* list of free msg headers */
2
3/*
4 * Implementation of SVID messages
5 *
6 * Author: Daniel Boulet
7 *
8 * Copyright 1993 Daniel Boulet and RTMX Inc.
9 *

--- 21 unchanged lines hidden (view full) ---

31
32static int msgctl(), msgget(), msgsnd(), msgrcv();
33
34int (*msgcalls[])() = { msgctl, msgget, msgsnd, msgrcv };
35
36int nfree_msgmaps; /* # of free map entries */
37short free_msgmaps; /* head of linked list of free map entries */
38struct msg *free_msghdrs; /* list of free msg headers */
39char *msgpool; /* MSGMAX byte long msg buffer pool */
40struct msgmap *msgmaps; /* MSGSEG msgmap structures */
41struct msg *msghdrs; /* MSGTQL msg headers */
42struct msqid_ds *msqids; /* MSGMNI msqid_ds struct's */
39
40void
41msginit()
42{
43 register int i;
44
45 /*
46 * msginfo.msgssz should be a power of two for efficiency reasons.

--- 952 unchanged lines hidden ---
43
44void
45msginit()
46{
47 register int i;
48
49 /*
50 * msginfo.msgssz should be a power of two for efficiency reasons.

--- 952 unchanged lines hidden ---