RMANGALD@CLARKU.BITNET (07/15/87)
Rahul Mangaldas
Box 1311
Clark University
Worcester, MA01610-1477
BITNet: rmangaldas@clarku.bitnet
--------------------------------
I am setting up a mailbox channel on a device using
LIB$ASN_WTH_MBX, which creates a mailbox for the specified device and
returns the created mailbox's channel number.
My question is: How do you write to this mailbox? I want to set
up a mailbox for a spawned process to send it DCL commands from a Pascal
or C program, but can't find any LIB$ routines to do that. (I presume
one cannot treat a mailbox like a file and use <write()> or <fprintf()>
to write to it.)
Thank you for your help.
Rahul Mangaldas."James_A._Gray.OsbuSouth"@XEROX.COM (07/19/87)
Just use the SYS$QIO system service with a function code of IO$_WRITEVBLK. For more information, check the I/O User's Reference Manual, Chapter 7. Jim