xref: /illumos-gate/usr/src/man/man3ldap/ldap_abandon.3ldap (revision 0250c53ad267726f2438e3c6556199a0bbf588a2)
te
Copyright (C) 1990, Regents of the University of Michigan. All Rights Reserved.
Portions Copyright (C) 2002, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
LDAP_ABANDON 3LDAP "April 9, 2016"
NAME
ldap_abandon - abandon an LDAP operation in progress
SYNOPSIS

cc[ flag... ] file... -lldap[ library... ]
#include <lber.h>
#include <ldap.h>

int ldap_abandon(LDAP *ld, int msgid);
DESCRIPTION

The ldap_abandon() function is used to abandon or cancel an LDAP operation in progress. The msgid passed should be the message id of an outstanding LDAP operation, as returned by ldap_search(3LDAP), ldap_modify(3LDAP), etc.

ldap_abandon(\|) checks to see if the result of the operation has already come in. If it has, it deletes it from the queue of pending messages. If not, it sends an LDAP abandon operation to the LDAP server.

The caller can expect that the result of an abandoned operation will not be returned from a future call to ldap_result(3LDAP).

ERRORS

ldap_abandon() returns 0 if successful or -1otherwise and setting ld_errno appropriately. See ldap_error(3LDAP) for details.

ATTRIBUTES

See attributes(7) for a description of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Evolving
SEE ALSO

ldap (3LDAP), ldap_error (3LDAP), ldap_result (3LDAP), attributes (7)