UnDoExportWorkUnit() — WLM undo export service

Standards

Standards / Extensions C or C++ Dependencies
z/OS® UNIX both OS/390 V2R9

Format

#include <sys/__wlm.h>

int UnDoExportWorkUnit(wlmxtok_t *exporttoken, unsigned long *conntoken);
AMODE 64:
#include <sys/__wlm.h>

int UnDoExportWorkUnit(wlmxtok_t *exporttoken, unsigned int *conntoken);

General description

Undoes an earlier request to export an enclave using the ExportWorkUnit() function. The caller is expected to invoke UnDoExportWorkUnit() after all importing systems have invoked the UnDoImportWorkUnit() function.

The UnDoExportWorkUnit() function uses the following parameters:
*exporttoken
Points to a work unit export token that was returned from a call to ExportWorkUnit().
*conntoken
Specifies the connect token that represents the connection to WLM.

Returned value

If successful, UnDoExportWorkUnit() returns 0.

If unsuccessful, UnDoExportWorkUnit() returns -1 and sets errno to one of the following values:
Error Code
Description
EFAULT
An argument of this function contained an address that was not accessible to the caller.
EINVAL
An argument of this function contained a value that is not correct.
EMVSSAF2ERR
An error occurred in the security product.
EMVSWLMERROR
A WLM service failed. Use __errno2() to obtain the WLM service reason code for the failure.
EPERM
The calling thread's address space is not permitted to the BPX.WLMSERVER Facility class. The caller's address space must be permitted to the BPX.WLMSERVER Facility class, if the BPX.WLMSERVER class is defined. If BPX.WLMSERVER is not defined, the calling process is not defined as a superuser (UID=0).

Related information