[comp.sys.apollo] Calls to mbx_$get_conditional are dying.

asherman@raven.ulowell.edu (10/27/89)

Is there anyone out there who uses mailboxes under 10.1 in C?
The problem that I'm having is that mbx_$get_conditional is 
exiting and not telling me what's wrong. This makes me a bit 
unhappy, needless to say.

This is the code:

long read_port_id[2];
char gbl_buf[1024];
status_$t stat;
int retlen;
char tmp_buf[1024];

#ifdef DEBUG
 printf("Calling mbx_$get_conditional.\n");
#endif
 mbx_$get_conditional(&read_port_id[port],tmp_buf,1024L,gbl_buf,&retlen,&stat);
#ifdef DEBUG
 printf("Got out alive.\n");
#endif

The output I get is:

% test_io
Calling mbx_$get_conditional.
%

This is confusing me badly. I want to call Apollo, but before I do, I want to
know that this is not just a simple mistake on my part.

thanks.

			-AJS(Harmil)