Operating System - HP-UX
1845680 Members
4218 Online
110247 Solutions
New Discussion

Using message queue in 64bit & 32bit programs

 
Yuri Ermakov
Contributor

Using message queue in 64bit & 32bit programs

Hello!

I have two programs. The first program (assembled in 64bit mode (+DA2.0W)) uses msgsnd() function. The second program (assembled in 32 bit mode) uses msgrcv() to read messages from program 1.
Msgsnd() and msgrcv() use msgp structure that contain mtype field as address of receiver of the message. BUT mtype is LONG type (4 bytes in 32bitmode and 8 in 64bitmode).
I have a problem when program assembled in 64bitmode tries to read messages that was sended by 32bitmode program and vice versa.

Thanks for reading this message.
Yuri Ermakov.
Ermak
1 REPLY 1
harry d brown jr
Honored Contributor

Re: Using message queue in 64bit & 32bit programs

Take a look at http://docs.hp.com/en/938/iop.pdf around page 45 (41 of the document).

live free or die
harry d brown jr
Live Free or Die