ZCOM C I/F Library Routines

 

ZCLOS (3X)

async-signal unsafe

It cannot be called from a signal handler.

fork unsafe

It cannot be called by a child process after

 

fork(2) but before exec(2).

PARAMETERS

za ZCOM address to be returned to the system. p

RETURN VALUE Routine zclos returns 0 if successful. Otherwise, a non-zeroerror code is returned. See /opt/acc/include/zcom/zcomsys.h for the list of ZCOM error codes and their meanings.

EXAMPLE

#include <zcom/zcomsys.h>

#include <zcom/zcomcall.h>

int32ierr;

zaddr_type zaddr;

if (ierr = zclos (&zaddr)) {

/* error return code */

}

else {

/* good return code */

 

}

 

FILES

 

 

 

/opt/acc/include/zcom/zcomsys.h

ZCOM subsystem general include file,

 

 

containing data types, data

 

 

structures, constants, error codes,

 

 

masks, etc. Note that this must be the

 

 

first include file before any other

 

 

ZCOM include files.

 

/opt/acc/include/zcom/zcomcall.h

ZCOM routine function prototypes

 

 

(requires ANSI C compilation).

SEE ALSO

zopen(3X)

 

Chapter 4

169