HP OpenVMS Systems

ask the wizard
Content starts here

Porting C signals to OpenVMS?

» close window

The Question is:

 
I'm trying to convert a 'c' program that run on
Alpha/Unix to Alpha/Vms.
 
I have a problem with "catching" a signal.
 
In unix to catch an I/O signal you write
 
signal (SIGIO, "function-name");
 
The problem is that there is no SIGIO in Vms.
 
Please help . I'ts urgent.
 
Thanks , Yossi meir.
 
 


The Answer is :

 
  By definition -- please see the Ask The Wizard rules for details -- all
  questions asked here are not considered urgent.  Urgent questions should
  be routed directly to the Compaq Customer Support Center.
 
  Please contact the Compaq Customer Support Center -- without an example
  or details of the particular problem being solved, resolving problems
  can be difficult.
 
  In general, OpenVMS I/O is different from UNIX I/O -- DEC C will provide
  an interface that emulates UNIX I/O, but extensions that exist outside
  of various standards are not included in OpenVMS.
 
  Under UNIX, SIGIO is generally used to indicate that an I/O has now
  become available.  On OpenVMS, the sys$qio call provides this, and can
  read the I/O entirely asynchronously via a subroutine that operates in
  the context of an asynchronous system trap (AST).
 

answer written or last revised on ( 13-APR-1999 )

» close window