sysv_msg.c (11626) | sysv_msg.c (12819) |
---|---|
1/* $Id: sysv_msg.c,v 1.8 1995/09/09 18:10:06 davidg Exp $ */ | 1/* $Id: sysv_msg.c,v 1.9 1995/10/21 19:49:57 bde Exp $ */ |
2 3/* 4 * Implementation of SVID messages 5 * 6 * Author: Daniel Boulet 7 * 8 * Copyright 1993 Daniel Boulet and RTMX Inc. 9 * --- 29 unchanged lines hidden (view full) --- 39static int msgget __P((struct proc *p, struct msgget_args *uap, int *retval)); 40struct msgsnd_args; 41static int msgsnd __P((struct proc *p, struct msgsnd_args *uap, int *retval)); 42struct msgrcv_args; 43static int msgrcv __P((struct proc *p, struct msgrcv_args *uap, int *retval)); 44static void msg_freehdr __P((struct msg *msghdr)); 45 46/* XXX casting to (sy_call_t *) is bogus, as usual. */ | 2 3/* 4 * Implementation of SVID messages 5 * 6 * Author: Daniel Boulet 7 * 8 * Copyright 1993 Daniel Boulet and RTMX Inc. 9 * --- 29 unchanged lines hidden (view full) --- 39static int msgget __P((struct proc *p, struct msgget_args *uap, int *retval)); 40struct msgsnd_args; 41static int msgsnd __P((struct proc *p, struct msgsnd_args *uap, int *retval)); 42struct msgrcv_args; 43static int msgrcv __P((struct proc *p, struct msgrcv_args *uap, int *retval)); 44static void msg_freehdr __P((struct msg *msghdr)); 45 46/* XXX casting to (sy_call_t *) is bogus, as usual. */ |
47sy_call_t *msgcalls[] = { | 47static sy_call_t *msgcalls[] = { |
48 (sy_call_t *)msgctl, (sy_call_t *)msgget, 49 (sy_call_t *)msgsnd, (sy_call_t *)msgrcv 50}; 51 | 48 (sy_call_t *)msgctl, (sy_call_t *)msgget, 49 (sy_call_t *)msgsnd, (sy_call_t *)msgrcv 50}; 51 |
52int nfree_msgmaps; /* # of free map entries */ 53short free_msgmaps; /* head of linked list of free map entries */ 54struct msg *free_msghdrs; /* list of free msg headers */ | 52static int nfree_msgmaps; /* # of free map entries */ 53static short free_msgmaps; /* head of linked list of free map entries */ 54static struct msg *free_msghdrs; /* list of free msg headers */ |
55char *msgpool; /* MSGMAX byte long msg buffer pool */ 56struct msgmap *msgmaps; /* MSGSEG msgmap structures */ 57struct msg *msghdrs; /* MSGTQL msg headers */ 58struct msqid_ds *msqids; /* MSGMNI msqid_ds struct's */ 59 60void 61msginit(dummy) 62 void *dummy; --- 960 unchanged lines hidden --- | 55char *msgpool; /* MSGMAX byte long msg buffer pool */ 56struct msgmap *msgmaps; /* MSGSEG msgmap structures */ 57struct msg *msghdrs; /* MSGTQL msg headers */ 58struct msqid_ds *msqids; /* MSGMNI msqid_ds struct's */ 59 60void 61msginit(dummy) 62 void *dummy; --- 960 unchanged lines hidden --- |