X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_features.h.nt;h=461485d2810a9cfc80d6c6904f680043bf4d2116;hb=3028424f68dda535b57a69e6619a3b1de0182872;hp=78ae1045179594dd470098045acff2b95b4373c6;hpb=10a013f8cec5cf87c43a5b4c4b8be9732fd69b58;p=openldap diff --git a/include/ldap_features.h.nt b/include/ldap_features.h.nt index 78ae104517..461485d281 100644 --- a/include/ldap_features.h.nt +++ b/include/ldap_features.h.nt @@ -1,16 +1,55 @@ +/* + * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted only + * as authorized by the OpenLDAP Public License. A copy of this + * license is available at http://www.OpenLDAP.org/license.html or + * in file LICENSE in the top-level directory of the distribution. + */ /* * LDAP Features */ #ifndef _LDAP_FEATURES_H #define _LDAP_FEATURES_H 1 -/* OpenLDAP Debug Support */ -#define LDAP_API_FEATURE_X_OPENLDAP_DEBUG LDAP_API_VENDOR_VERSION +/* +** OpenLDAP reentrancy/thread-safeness should be dynamically +** checked using ldap_get_option(). +** +** The -lldap implementation may or may not be: +** LDAP_API_FEATURE_THREAD_SAFE +** +** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_REENTRANT can +** be used to determine if -lldap is LDAP_API_FEATURE_THREAD_SAFE at +** compile time. +** +** The -lldap_r implementation is always THREAD_SAFE but +** may also be: +** LDAP_API_FEATURE_SESSION_THREAD_SAFE +** LDAP_API_FEATURE_OPERATION_THREAD_SAFE +** +** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE +** can be used to determine if -lldap_r is availalbe at compile +** time. You must define LDAP_THREAD_SAFE if and only if you +** link with -lldap_r. +** +** If you fail to define LDAP_THREAD_SAFE when linking with +** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap, +** provided header definations and declarations may be incorrect. +** +*/ + +/* is -lldap reentrant or not */ +/* #undef LDAP_API_FEATURE_X_OPENLDAP_REENTRANT */ + +/* is threadsafe version of -lldap (ie: -lldap_r) *available* or not */ +/* #undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE */ -/* OpenLDAP v2 DNS */ -#define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_API_VENDOR_VERSION +/* LDAP v2 DNS */ +/* #undef LDAP_API_FEATURE_X_OPENLDAP_V2_DNS */ -/* OpenLDAP v2 Referrals */ -#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_API_VENDOR_VERSION +/* LDAP v2 Referrals */ +#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION #endif /* LDAP_FEATURES */