DisconnectServer() — Disconnect from WLM server

Standards

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

Format

#include <sys/__wlm.h>

int DisconnectServer(unsigned long *conn_tkn);
AMODE 64
#include <sys/__wlm.h>

int DisconnectServer(unsigned int *conn_tkn);

General description

The DisconnectServer function provides the ability for an application to disconnect from WLM.
*conn_tkn
Specifies the connect token that represents the WLM connection that is to be disconnected.

Returned value

If successful, DisconnectServer() returns 0.

If unsuccessful, DisconnectServer() 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 an incorrect value.
EMVSSAF2ERR
An error occurred in the security product.
EMVSWLMERROR
The WLM disconnect 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 it is defined. If BPX.WLMSERVER is not defined, the calling process is not defined as a superuser (UID=0).

Related information