sysv_msg.c (109623) | sysv_msg.c (109895) |
---|---|
1/* $FreeBSD: head/sys/kern/sysv_msg.c 109623 2003-01-21 08:56:16Z alfred $ */ | 1/* $FreeBSD: head/sys/kern/sysv_msg.c 109895 2003-01-26 20:09:34Z alfred $ */ |
2 3/* 4 * Implementation of SVID messages 5 * 6 * Author: Daniel Boulet 7 * 8 * Copyright 1993 Daniel Boulet and RTMX Inc. 9 * --- 551 unchanged lines hidden (view full) --- 561done2: 562 mtx_unlock(&msq_mtx); 563 return (error); 564} 565 566#ifndef _SYS_SYSPROTO_H_ 567struct msgsnd_args { 568 int msqid; | 2 3/* 4 * Implementation of SVID messages 5 * 6 * Author: Daniel Boulet 7 * 8 * Copyright 1993 Daniel Boulet and RTMX Inc. 9 * --- 551 unchanged lines hidden (view full) --- 561done2: 562 mtx_unlock(&msq_mtx); 563 return (error); 564} 565 566#ifndef _SYS_SYSPROTO_H_ 567struct msgsnd_args { 568 int msqid; |
569 void *msgp; | 569 const void *msgp; |
570 size_t msgsz; 571 int msgflg; 572}; 573#endif 574 575/* 576 * MPSAFE 577 */ 578int 579msgsnd(td, uap) 580 struct thread *td; 581 register struct msgsnd_args *uap; 582{ 583 int msqid = uap->msqid; | 570 size_t msgsz; 571 int msgflg; 572}; 573#endif 574 575/* 576 * MPSAFE 577 */ 578int 579msgsnd(td, uap) 580 struct thread *td; 581 register struct msgsnd_args *uap; 582{ 583 int msqid = uap->msqid; |
584 void *user_msgp = uap->msgp; | 584 const void *user_msgp = uap->msgp; |
585 size_t msgsz = uap->msgsz; 586 int msgflg = uap->msgflg; 587 int segs_needed, error = 0; 588 register struct msqid_ds *msqptr; 589 register struct msg *msghdr; 590 short next; 591 592 DPRINTF(("call to msgsnd(%d, 0x%x, %d, %d)\n", msqid, user_msgp, msgsz, --- 557 unchanged lines hidden --- | 585 size_t msgsz = uap->msgsz; 586 int msgflg = uap->msgflg; 587 int segs_needed, error = 0; 588 register struct msqid_ds *msqptr; 589 register struct msg *msghdr; 590 short next; 591 592 DPRINTF(("call to msgsnd(%d, 0x%x, %d, %d)\n", msqid, user_msgp, msgsz, --- 557 unchanged lines hidden --- |