Operating System - Linux
1827904 Members
2049 Online
109970 Solutions
New Discussion

whats diff between these message queue

 
RobertClark
Occasional Contributor

whats diff between these message queue


msgsnd - XSI message operations




#include



int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg);
ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp,int msgflg);





msgop - message operations



include

#include

#include



int msgsnd(int msqid, struct msgbuf *msgp, size_t msgsz, int msgflg);



ssize_t msgrcv(int msqid, struct msgbuf *msgp, size_t msgsz, long msg-typ, int msgflg);

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: whats diff between these message queue

It appears the only difference is the standards. The man page only indicates the const void *msgp version. Where msgp probably points to a struct msgbuf.