1
2
3
/* automatically generated by rust-bindgen */

pub const _STRING_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __STDC_NO_THREADS__ : u32 = 1 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 27 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __WORDSIZE : u32 = 32 ; pub const __WORDSIZE32_SIZE_ULONG : u32 = 0 ; pub const __WORDSIZE32_PTRDIFF_LONG : u32 = 0 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const LBER_USE_DER : u32 = 1 ; pub const LBER_OPT_BER_OPTIONS : u32 = 1 ; pub const LBER_OPT_BER_DEBUG : u32 = 2 ; pub const LBER_OPT_BER_REMAINING_BYTES : u32 = 3 ; pub const LBER_OPT_BER_TOTAL_BYTES : u32 = 4 ; pub const LBER_OPT_BER_BYTES_TO_WRITE : u32 = 5 ; pub const LBER_OPT_BER_MEMCTX : u32 = 6 ; pub const LBER_OPT_DEBUG_LEVEL : u32 = 2 ; pub const LBER_OPT_REMAINING_BYTES : u32 = 3 ; pub const LBER_OPT_TOTAL_BYTES : u32 = 4 ; pub const LBER_OPT_BYTES_TO_WRITE : u32 = 5 ; pub const LBER_OPT_LOG_PRINT_FN : u32 = 32769 ; pub const LBER_OPT_MEMORY_FNS : u32 = 32770 ; pub const LBER_OPT_ERROR_FN : u32 = 32771 ; pub const LBER_OPT_LOG_PRINT_FILE : u32 = 32772 ; pub const LBER_OPT_MEMORY_INUSE : u32 = 32773 ; pub const LBER_OPT_LOG_PROC : u32 = 32774 ; pub const LBER_SB_OPT_GET_FD : u32 = 1 ; pub const LBER_SB_OPT_SET_FD : u32 = 2 ; pub const LBER_SB_OPT_HAS_IO : u32 = 3 ; pub const LBER_SB_OPT_SET_NONBLOCK : u32 = 4 ; pub const LBER_SB_OPT_GET_SSL : u32 = 7 ; pub const LBER_SB_OPT_DATA_READY : u32 = 8 ; pub const LBER_SB_OPT_SET_READAHEAD : u32 = 9 ; pub const LBER_SB_OPT_DRAIN : u32 = 10 ; pub const LBER_SB_OPT_NEEDS_READ : u32 = 11 ; pub const LBER_SB_OPT_NEEDS_WRITE : u32 = 12 ; pub const LBER_SB_OPT_GET_MAX_INCOMING : u32 = 13 ; pub const LBER_SB_OPT_SET_MAX_INCOMING : u32 = 14 ; pub const LBER_SB_OPT_UNGET_BUF : u32 = 15 ; pub const LBER_SB_OPT_OPT_MAX : u32 = 15 ; pub const LBER_SBIOD_LEVEL_PROVIDER : u32 = 10 ; pub const LBER_SBIOD_LEVEL_TRANSPORT : u32 = 20 ; pub const LBER_SBIOD_LEVEL_APPLICATION : u32 = 30 ; pub const LBER_OPT_SOCKBUF_DESC : u32 = 4096 ; pub const LBER_OPT_SOCKBUF_OPTIONS : u32 = 4097 ; pub const LBER_OPT_SOCKBUF_DEBUG : u32 = 4098 ; pub const LBER_OPT_SUCCESS : u32 = 0 ; pub const LBER_OPT_ERROR : i32 = -1 ; pub const LBER_BV_ALLOC : u32 = 1 ; pub const LBER_BV_NOTERM : u32 = 2 ; pub const LBER_BV_STRING : u32 = 4 ; pub const LBER_FLUSH_FREE_NEVER : u32 = 0 ; pub const LBER_FLUSH_FREE_ON_SUCCESS : u32 = 1 ; pub const LBER_FLUSH_FREE_ON_ERROR : u32 = 2 ; pub const LBER_FLUSH_FREE_ALWAYS : u32 = 3 ; pub const LBER_ERROR_NONE : u32 = 0 ; pub const LBER_ERROR_PARAM : u32 = 1 ; pub const LBER_ERROR_MEMORY : u32 = 2 ; pub const _LDAP_FEATURES_H : u32 = 1 ; pub const LDAP_VENDOR_VERSION : u32 = 20445 ; pub const LDAP_VENDOR_VERSION_MAJOR : u32 = 2 ; pub const LDAP_VENDOR_VERSION_MINOR : u32 = 4 ; pub const LDAP_VENDOR_VERSION_PATCH : u32 = 45 ; pub const LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE : u32 = 1 ; pub const LDAP_VERSION1 : u32 = 1 ; pub const LDAP_VERSION2 : u32 = 2 ; pub const LDAP_VERSION3 : u32 = 3 ; pub const LDAP_VERSION_MIN : u32 = 2 ; pub const LDAP_VERSION : u32 = 2 ; pub const LDAP_VERSION_MAX : u32 = 3 ; pub const LDAP_API_VERSION : u32 = 3001 ; pub const LDAP_VENDOR_NAME : & 'static [ u8 ; 9usize ] = b"OpenLDAP\0" ; pub const LDAP_API_FEATURE_X_OPENLDAP : u32 = 20445 ; pub const LDAP_PORT : u32 = 389 ; pub const LDAPS_PORT : u32 = 636 ; pub const LDAP_ROOT_DSE : & 'static [ u8 ; 1usize ] = b"\0" ; pub const LDAP_NO_ATTRS : & 'static [ u8 ; 4usize ] = b"1.1\0" ; pub const LDAP_ALL_USER_ATTRIBUTES : & 'static [ u8 ; 2usize ] = b"*\0" ; pub const LDAP_ALL_OPERATIONAL_ATTRIBUTES : & 'static [ u8 ; 2usize ] = b"+\0" ; pub const LDAP_MAXINT : u32 = 2147483647 ; pub const LDAP_OPT_API_INFO : u32 = 0 ; pub const LDAP_OPT_DESC : u32 = 1 ; pub const LDAP_OPT_DEREF : u32 = 2 ; pub const LDAP_OPT_SIZELIMIT : u32 = 3 ; pub const LDAP_OPT_TIMELIMIT : u32 = 4 ; pub const LDAP_OPT_REFERRALS : u32 = 8 ; pub const LDAP_OPT_RESTART : u32 = 9 ; pub const LDAP_OPT_PROTOCOL_VERSION : u32 = 17 ; pub const LDAP_OPT_SERVER_CONTROLS : u32 = 18 ; pub const LDAP_OPT_CLIENT_CONTROLS : u32 = 19 ; pub const LDAP_OPT_API_FEATURE_INFO : u32 = 21 ; pub const LDAP_OPT_HOST_NAME : u32 = 48 ; pub const LDAP_OPT_RESULT_CODE : u32 = 49 ; pub const LDAP_OPT_ERROR_NUMBER : u32 = 49 ; pub const LDAP_OPT_DIAGNOSTIC_MESSAGE : u32 = 50 ; pub const LDAP_OPT_ERROR_STRING : u32 = 50 ; pub const LDAP_OPT_MATCHED_DN : u32 = 51 ; pub const LDAP_OPT_SSPI_FLAGS : u32 = 146 ; pub const LDAP_OPT_SIGN : u32 = 149 ; pub const LDAP_OPT_ENCRYPT : u32 = 150 ; pub const LDAP_OPT_SASL_METHOD : u32 = 151 ; pub const LDAP_OPT_SECURITY_CONTEXT : u32 = 153 ; pub const LDAP_OPT_API_EXTENSION_BASE : u32 = 16384 ; pub const LDAP_OPT_DEBUG_LEVEL : u32 = 20481 ; pub const LDAP_OPT_TIMEOUT : u32 = 20482 ; pub const LDAP_OPT_REFHOPLIMIT : u32 = 20483 ; pub const LDAP_OPT_NETWORK_TIMEOUT : u32 = 20485 ; pub const LDAP_OPT_URI : u32 = 20486 ; pub const LDAP_OPT_REFERRAL_URLS : u32 = 20487 ; pub const LDAP_OPT_SOCKBUF : u32 = 20488 ; pub const LDAP_OPT_DEFBASE : u32 = 20489 ; pub const LDAP_OPT_CONNECT_ASYNC : u32 = 20496 ; pub const LDAP_OPT_CONNECT_CB : u32 = 20497 ; pub const LDAP_OPT_SESSION_REFCNT : u32 = 20498 ; pub const LDAP_OPT_X_TLS : u32 = 24576 ; pub const LDAP_OPT_X_TLS_CTX : u32 = 24577 ; pub const LDAP_OPT_X_TLS_CACERTFILE : u32 = 24578 ; pub const LDAP_OPT_X_TLS_CACERTDIR : u32 = 24579 ; pub const LDAP_OPT_X_TLS_CERTFILE : u32 = 24580 ; pub const LDAP_OPT_X_TLS_KEYFILE : u32 = 24581 ; pub const LDAP_OPT_X_TLS_REQUIRE_CERT : u32 = 24582 ; pub const LDAP_OPT_X_TLS_PROTOCOL_MIN : u32 = 24583 ; pub const LDAP_OPT_X_TLS_CIPHER_SUITE : u32 = 24584 ; pub const LDAP_OPT_X_TLS_RANDOM_FILE : u32 = 24585 ; pub const LDAP_OPT_X_TLS_SSL_CTX : u32 = 24586 ; pub const LDAP_OPT_X_TLS_CRLCHECK : u32 = 24587 ; pub const LDAP_OPT_X_TLS_CONNECT_CB : u32 = 24588 ; pub const LDAP_OPT_X_TLS_CONNECT_ARG : u32 = 24589 ; pub const LDAP_OPT_X_TLS_DHFILE : u32 = 24590 ; pub const LDAP_OPT_X_TLS_NEWCTX : u32 = 24591 ; pub const LDAP_OPT_X_TLS_CRLFILE : u32 = 24592 ; pub const LDAP_OPT_X_TLS_PACKAGE : u32 = 24593 ; pub const LDAP_OPT_X_TLS_NEVER : u32 = 0 ; pub const LDAP_OPT_X_TLS_HARD : u32 = 1 ; pub const LDAP_OPT_X_TLS_DEMAND : u32 = 2 ; pub const LDAP_OPT_X_TLS_ALLOW : u32 = 3 ; pub const LDAP_OPT_X_TLS_TRY : u32 = 4 ; pub const LDAP_OPT_X_TLS_CRL_NONE : u32 = 0 ; pub const LDAP_OPT_X_TLS_CRL_PEER : u32 = 1 ; pub const LDAP_OPT_X_TLS_CRL_ALL : u32 = 2 ; pub const LDAP_OPT_X_TLS_PROTOCOL_SSL2 : u32 = 512 ; pub const LDAP_OPT_X_TLS_PROTOCOL_SSL3 : u32 = 768 ; pub const LDAP_OPT_X_TLS_PROTOCOL_TLS1_0 : u32 = 769 ; pub const LDAP_OPT_X_TLS_PROTOCOL_TLS1_1 : u32 = 770 ; pub const LDAP_OPT_X_TLS_PROTOCOL_TLS1_2 : u32 = 771 ; pub const LDAP_OPT_X_SASL_MECH : u32 = 24832 ; pub const LDAP_OPT_X_SASL_REALM : u32 = 24833 ; pub const LDAP_OPT_X_SASL_AUTHCID : u32 = 24834 ; pub const LDAP_OPT_X_SASL_AUTHZID : u32 = 24835 ; pub const LDAP_OPT_X_SASL_SSF : u32 = 24836 ; pub const LDAP_OPT_X_SASL_SSF_EXTERNAL : u32 = 24837 ; pub const LDAP_OPT_X_SASL_SECPROPS : u32 = 24838 ; pub const LDAP_OPT_X_SASL_SSF_MIN : u32 = 24839 ; pub const LDAP_OPT_X_SASL_SSF_MAX : u32 = 24840 ; pub const LDAP_OPT_X_SASL_MAXBUFSIZE : u32 = 24841 ; pub const LDAP_OPT_X_SASL_MECHLIST : u32 = 24842 ; pub const LDAP_OPT_X_SASL_NOCANON : u32 = 24843 ; pub const LDAP_OPT_X_SASL_USERNAME : u32 = 24844 ; pub const LDAP_OPT_X_SASL_GSS_CREDS : u32 = 24845 ; pub const LDAP_OPT_X_GSSAPI_DO_NOT_FREE_CONTEXT : u32 = 25088 ; pub const LDAP_OPT_X_GSSAPI_ALLOW_REMOTE_PRINCIPAL : u32 = 25089 ; pub const LDAP_OPT_X_KEEPALIVE_IDLE : u32 = 25344 ; pub const LDAP_OPT_X_KEEPALIVE_PROBES : u32 = 25345 ; pub const LDAP_OPT_X_KEEPALIVE_INTERVAL : u32 = 25346 ; pub const LDAP_OPT_PRIVATE_EXTENSION_BASE : u32 = 28672 ; pub const LDAP_OPT_SUCCESS : u32 = 0 ; pub const LDAP_OPT_ERROR : i32 = -1 ; pub const LDAP_API_INFO_VERSION : u32 = 1 ; pub const LDAP_FEATURE_INFO_VERSION : u32 = 1 ; pub const LDAP_CONTROL_MANAGEDSAIT : & 'static [ u8 ; 24usize ] = b"2.16.840.1.113730.3.4.2\0" ; pub const LDAP_CONTROL_PROXY_AUTHZ : & 'static [ u8 ; 25usize ] = b"2.16.840.1.113730.3.4.18\0" ; pub const LDAP_CONTROL_SUBENTRIES : & 'static [ u8 ; 24usize ] = b"1.3.6.1.4.1.4203.1.10.1\0" ; pub const LDAP_CONTROL_VALUESRETURNFILTER : & 'static [ u8 ; 24usize ] = b"1.2.826.0.1.3344810.2.3\0" ; pub const LDAP_CONTROL_ASSERT : & 'static [ u8 ; 13usize ] = b"1.3.6.1.1.12\0" ; pub const LDAP_CONTROL_PRE_READ : & 'static [ u8 ; 15usize ] = b"1.3.6.1.1.13.1\0" ; pub const LDAP_CONTROL_POST_READ : & 'static [ u8 ; 15usize ] = b"1.3.6.1.1.13.2\0" ; pub const LDAP_CONTROL_SORTREQUEST : & 'static [ u8 ; 23usize ] = b"1.2.840.113556.1.4.473\0" ; pub const LDAP_CONTROL_SORTRESPONSE : & 'static [ u8 ; 23usize ] = b"1.2.840.113556.1.4.474\0" ; pub const LDAP_CONTROL_PAGEDRESULTS : & 'static [ u8 ; 23usize ] = b"1.2.840.113556.1.4.319\0" ; pub const LDAP_SYNC_OID : & 'static [ u8 ; 23usize ] = b"1.3.6.1.4.1.4203.1.9.1\0" ; pub const LDAP_CONTROL_SYNC : & 'static [ u8 ; 25usize ] = b"1.3.6.1.4.1.4203.1.9.1.1\0" ; pub const LDAP_CONTROL_SYNC_STATE : & 'static [ u8 ; 25usize ] = b"1.3.6.1.4.1.4203.1.9.1.2\0" ; pub const LDAP_CONTROL_SYNC_DONE : & 'static [ u8 ; 25usize ] = b"1.3.6.1.4.1.4203.1.9.1.3\0" ; pub const LDAP_SYNC_INFO : & 'static [ u8 ; 25usize ] = b"1.3.6.1.4.1.4203.1.9.1.4\0" ; pub const LDAP_SYNC_NONE : u32 = 0 ; pub const LDAP_SYNC_REFRESH_ONLY : u32 = 1 ; pub const LDAP_SYNC_RESERVED : u32 = 2 ; pub const LDAP_SYNC_REFRESH_AND_PERSIST : u32 = 3 ; pub const LDAP_SYNC_REFRESH_PRESENTS : u32 = 0 ; pub const LDAP_SYNC_REFRESH_DELETES : u32 = 1 ; pub const LDAP_SYNC_PRESENT : u32 = 0 ; pub const LDAP_SYNC_ADD : u32 = 1 ; pub const LDAP_SYNC_MODIFY : u32 = 2 ; pub const LDAP_SYNC_DELETE : u32 = 3 ; pub const LDAP_SYNC_NEW_COOKIE : u32 = 4 ; pub const LDAP_CONTROL_DONTUSECOPY : & 'static [ u8 ; 13usize ] = b"1.3.6.1.1.22\0" ; pub const LDAP_CONTROL_PASSWORDPOLICYREQUEST : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.42.2.27.8.5.1\0" ; pub const LDAP_CONTROL_PASSWORDPOLICYRESPONSE : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.42.2.27.8.5.1\0" ; pub const LDAP_CONTROL_NOOP : & 'static [ u8 ; 25usize ] = b"1.3.6.1.4.1.4203.666.5.2\0" ; pub const LDAP_CONTROL_NO_SUBORDINATES : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.4203.666.5.11\0" ; pub const LDAP_CONTROL_RELAX : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.4203.666.5.12\0" ; pub const LDAP_CONTROL_MANAGEDIT : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.4203.666.5.12\0" ; pub const LDAP_CONTROL_SLURP : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.4203.666.5.13\0" ; pub const LDAP_CONTROL_VALSORT : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.4203.666.5.14\0" ; pub const LDAP_CONTROL_X_DEREF : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.4203.666.5.16\0" ; pub const LDAP_CONTROL_X_WHATFAILED : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.4203.666.5.17\0" ; pub const LDAP_CONTROL_X_CHAINING_BEHAVIOR : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.4203.666.11.3\0" ; pub const LDAP_CHAINING_PREFERRED : u32 = 0 ; pub const LDAP_CHAINING_REQUIRED : u32 = 1 ; pub const LDAP_REFERRALS_PREFERRED : u32 = 2 ; pub const LDAP_REFERRALS_REQUIRED : u32 = 3 ; pub const LDAP_CONTROL_X_INCREMENTAL_VALUES : & 'static [ u8 ; 23usize ] = b"1.2.840.113556.1.4.802\0" ; pub const LDAP_CONTROL_X_DOMAIN_SCOPE : & 'static [ u8 ; 24usize ] = b"1.2.840.113556.1.4.1339\0" ; pub const LDAP_CONTROL_X_PERMISSIVE_MODIFY : & 'static [ u8 ; 24usize ] = b"1.2.840.113556.1.4.1413\0" ; pub const LDAP_CONTROL_X_SEARCH_OPTIONS : & 'static [ u8 ; 24usize ] = b"1.2.840.113556.1.4.1340\0" ; pub const LDAP_SEARCH_FLAG_DOMAIN_SCOPE : u32 = 1 ; pub const LDAP_SEARCH_FLAG_PHANTOM_ROOT : u32 = 2 ; pub const LDAP_CONTROL_X_TREE_DELETE : & 'static [ u8 ; 23usize ] = b"1.2.840.113556.1.4.805\0" ; pub const LDAP_CONTROL_X_EXTENDED_DN : & 'static [ u8 ; 23usize ] = b"1.2.840.113556.1.4.529\0" ; pub const LDAP_CONTROL_X_SESSION_TRACKING : & 'static [ u8 ; 27usize ] = b"1.3.6.1.4.1.21008.108.63.1\0" ; pub const LDAP_CONTROL_X_SESSION_TRACKING_RADIUS_ACCT_SESSION_ID : & 'static [ u8 ; 29usize ] = b"1.3.6.1.4.1.21008.108.63.1.1\0" ; pub const LDAP_CONTROL_X_SESSION_TRACKING_RADIUS_ACCT_MULTI_SESSION_ID : & 'static [ u8 ; 29usize ] = b"1.3.6.1.4.1.21008.108.63.1.2\0" ; pub const LDAP_CONTROL_X_SESSION_TRACKING_USERNAME : & 'static [ u8 ; 29usize ] = b"1.3.6.1.4.1.21008.108.63.1.3\0" ; pub const LDAP_CONTROL_DUPENT_REQUEST : & 'static [ u8 ; 29usize ] = b"2.16.840.1.113719.1.27.101.1\0" ; pub const LDAP_CONTROL_DUPENT_RESPONSE : & 'static [ u8 ; 29usize ] = b"2.16.840.1.113719.1.27.101.2\0" ; pub const LDAP_CONTROL_DUPENT_ENTRY : & 'static [ u8 ; 29usize ] = b"2.16.840.1.113719.1.27.101.3\0" ; pub const LDAP_CONTROL_DUPENT : & 'static [ u8 ; 29usize ] = b"2.16.840.1.113719.1.27.101.1\0" ; pub const LDAP_CONTROL_PERSIST_REQUEST : & 'static [ u8 ; 24usize ] = b"2.16.840.1.113730.3.4.3\0" ; pub const LDAP_CONTROL_PERSIST_ENTRY_CHANGE_NOTICE : & 'static [ u8 ; 24usize ] = b"2.16.840.1.113730.3.4.7\0" ; pub const LDAP_CONTROL_PERSIST_ENTRY_CHANGE_ADD : u32 = 1 ; pub const LDAP_CONTROL_PERSIST_ENTRY_CHANGE_DELETE : u32 = 2 ; pub const LDAP_CONTROL_PERSIST_ENTRY_CHANGE_MODIFY : u32 = 4 ; pub const LDAP_CONTROL_PERSIST_ENTRY_CHANGE_RENAME : u32 = 8 ; pub const LDAP_CONTROL_VLVREQUEST : & 'static [ u8 ; 24usize ] = b"2.16.840.1.113730.3.4.9\0" ; pub const LDAP_CONTROL_VLVRESPONSE : & 'static [ u8 ; 25usize ] = b"2.16.840.1.113730.3.4.10\0" ; pub const LDAP_NOTICE_OF_DISCONNECTION : & 'static [ u8 ; 23usize ] = b"1.3.6.1.4.1.1466.20036\0" ; pub const LDAP_NOTICE_DISCONNECT : & 'static [ u8 ; 23usize ] = b"1.3.6.1.4.1.1466.20036\0" ; pub const LDAP_EXOP_START_TLS : & 'static [ u8 ; 23usize ] = b"1.3.6.1.4.1.1466.20037\0" ; pub const LDAP_EXOP_MODIFY_PASSWD : & 'static [ u8 ; 24usize ] = b"1.3.6.1.4.1.4203.1.11.1\0" ; pub const LDAP_EXOP_CANCEL : & 'static [ u8 ; 12usize ] = b"1.3.6.1.1.8\0" ; pub const LDAP_EXOP_X_CANCEL : & 'static [ u8 ; 12usize ] = b"1.3.6.1.1.8\0" ; pub const LDAP_EXOP_REFRESH : & 'static [ u8 ; 27usize ] = b"1.3.6.1.4.1.1466.101.119.1\0" ; pub const LDAP_EXOP_WHO_AM_I : & 'static [ u8 ; 24usize ] = b"1.3.6.1.4.1.4203.1.11.3\0" ; pub const LDAP_EXOP_X_WHO_AM_I : & 'static [ u8 ; 24usize ] = b"1.3.6.1.4.1.4203.1.11.3\0" ; pub const LDAP_EXOP_TURN : & 'static [ u8 ; 13usize ] = b"1.3.6.1.1.19\0" ; pub const LDAP_EXOP_X_TURN : & 'static [ u8 ; 13usize ] = b"1.3.6.1.1.19\0" ; pub const LDAP_X_DISTPROC_BASE : & 'static [ u8 ; 26usize ] = b"1.3.6.1.4.1.4203.666.11.6\0" ; pub const LDAP_EXOP_X_CHAINEDREQUEST : & 'static [ u8 ; 28usize ] = b"1.3.6.1.4.1.4203.666.11.6.1\0" ; pub const LDAP_FEATURE_X_CANCHAINOPS : & 'static [ u8 ; 28usize ] = b"1.3.6.1.4.1.4203.666.11.6.2\0" ; pub const LDAP_CONTROL_X_RETURNCONTREF : & 'static [ u8 ; 28usize ] = b"1.3.6.1.4.1.4203.666.11.6.3\0" ; pub const LDAP_URLEXT_X_LOCALREFOID : & 'static [ u8 ; 28usize ] = b"1.3.6.1.4.1.4203.666.11.6.4\0" ; pub const LDAP_URLEXT_X_REFTYPEOID : & 'static [ u8 ; 28usize ] = b"1.3.6.1.4.1.4203.666.11.6.5\0" ; pub const LDAP_URLEXT_X_SEARCHEDSUBTREEOID : & 'static [ u8 ; 28usize ] = b"1.3.6.1.4.1.4203.666.11.6.6\0" ; pub const LDAP_URLEXT_X_FAILEDNAMEOID : & 'static [ u8 ; 28usize ] = b"1.3.6.1.4.1.4203.666.11.6.7\0" ; pub const LDAP_URLEXT_X_LOCALREF : & 'static [ u8 ; 17usize ] = b"x-localReference\0" ; pub const LDAP_URLEXT_X_REFTYPE : & 'static [ u8 ; 16usize ] = b"x-referenceType\0" ; pub const LDAP_URLEXT_X_SEARCHEDSUBTREE : & 'static [ u8 ; 18usize ] = b"x-searchedSubtree\0" ; pub const LDAP_URLEXT_X_FAILEDNAME : & 'static [ u8 ; 13usize ] = b"x-failedName\0" ; pub const LDAP_FEATURE_ALL_OP_ATTRS : & 'static [ u8 ; 23usize ] = b"1.3.6.1.4.1.4203.1.5.1\0" ; pub const LDAP_FEATURE_OBJECTCLASS_ATTRS : & 'static [ u8 ; 23usize ] = b"1.3.6.1.4.1.4203.1.5.2\0" ; pub const LDAP_FEATURE_ABSOLUTE_FILTERS : & 'static [ u8 ; 23usize ] = b"1.3.6.1.4.1.4203.1.5.3\0" ; pub const LDAP_FEATURE_LANGUAGE_TAG_OPTIONS : & 'static [ u8 ; 23usize ] = b"1.3.6.1.4.1.4203.1.5.4\0" ; pub const LDAP_FEATURE_LANGUAGE_RANGE_OPTIONS : & 'static [ u8 ; 23usize ] = b"1.3.6.1.4.1.4203.1.5.5\0" ; pub const LDAP_FEATURE_MODIFY_INCREMENT : & 'static [ u8 ; 13usize ] = b"1.3.6.1.1.14\0" ; pub const LDAP_FEATURE_SUBORDINATE_SCOPE : & 'static [ u8 ; 25usize ] = b"1.3.6.1.4.1.4203.666.8.1\0" ; pub const LDAP_FEATURE_CHILDREN_SCOPE : & 'static [ u8 ; 25usize ] = b"1.3.6.1.4.1.4203.666.8.1\0" ; pub const LDAP_RES_ANY : i32 = -1 ; pub const LDAP_RES_UNSOLICITED : u32 = 0 ; pub const LDAP_SASL_NULL : & 'static [ u8 ; 1usize ] = b"\0" ; pub const LDAP_SUCCESS : u32 = 0 ; pub const LDAP_OPERATIONS_ERROR : u32 = 1 ; pub const LDAP_PROTOCOL_ERROR : u32 = 2 ; pub const LDAP_TIMELIMIT_EXCEEDED : u32 = 3 ; pub const LDAP_SIZELIMIT_EXCEEDED : u32 = 4 ; pub const LDAP_COMPARE_FALSE : u32 = 5 ; pub const LDAP_COMPARE_TRUE : u32 = 6 ; pub const LDAP_AUTH_METHOD_NOT_SUPPORTED : u32 = 7 ; pub const LDAP_STRONG_AUTH_NOT_SUPPORTED : u32 = 7 ; pub const LDAP_STRONG_AUTH_REQUIRED : u32 = 8 ; pub const LDAP_STRONGER_AUTH_REQUIRED : u32 = 8 ; pub const LDAP_PARTIAL_RESULTS : u32 = 9 ; pub const LDAP_REFERRAL : u32 = 10 ; pub const LDAP_ADMINLIMIT_EXCEEDED : u32 = 11 ; pub const LDAP_UNAVAILABLE_CRITICAL_EXTENSION : u32 = 12 ; pub const LDAP_CONFIDENTIALITY_REQUIRED : u32 = 13 ; pub const LDAP_SASL_BIND_IN_PROGRESS : u32 = 14 ; pub const LDAP_NO_SUCH_ATTRIBUTE : u32 = 16 ; pub const LDAP_UNDEFINED_TYPE : u32 = 17 ; pub const LDAP_INAPPROPRIATE_MATCHING : u32 = 18 ; pub const LDAP_CONSTRAINT_VIOLATION : u32 = 19 ; pub const LDAP_TYPE_OR_VALUE_EXISTS : u32 = 20 ; pub const LDAP_INVALID_SYNTAX : u32 = 21 ; pub const LDAP_NO_SUCH_OBJECT : u32 = 32 ; pub const LDAP_ALIAS_PROBLEM : u32 = 33 ; pub const LDAP_INVALID_DN_SYNTAX : u32 = 34 ; pub const LDAP_IS_LEAF : u32 = 35 ; pub const LDAP_ALIAS_DEREF_PROBLEM : u32 = 36 ; pub const LDAP_X_PROXY_AUTHZ_FAILURE : u32 = 47 ; pub const LDAP_INAPPROPRIATE_AUTH : u32 = 48 ; pub const LDAP_INVALID_CREDENTIALS : u32 = 49 ; pub const LDAP_INSUFFICIENT_ACCESS : u32 = 50 ; pub const LDAP_BUSY : u32 = 51 ; pub const LDAP_UNAVAILABLE : u32 = 52 ; pub const LDAP_UNWILLING_TO_PERFORM : u32 = 53 ; pub const LDAP_LOOP_DETECT : u32 = 54 ; pub const LDAP_NAMING_VIOLATION : u32 = 64 ; pub const LDAP_OBJECT_CLASS_VIOLATION : u32 = 65 ; pub const LDAP_NOT_ALLOWED_ON_NONLEAF : u32 = 66 ; pub const LDAP_NOT_ALLOWED_ON_RDN : u32 = 67 ; pub const LDAP_ALREADY_EXISTS : u32 = 68 ; pub const LDAP_NO_OBJECT_CLASS_MODS : u32 = 69 ; pub const LDAP_RESULTS_TOO_LARGE : u32 = 70 ; pub const LDAP_AFFECTS_MULTIPLE_DSAS : u32 = 71 ; pub const LDAP_VLV_ERROR : u32 = 76 ; pub const LDAP_OTHER : u32 = 80 ; pub const LDAP_CUP_RESOURCES_EXHAUSTED : u32 = 113 ; pub const LDAP_CUP_SECURITY_VIOLATION : u32 = 114 ; pub const LDAP_CUP_INVALID_DATA : u32 = 115 ; pub const LDAP_CUP_UNSUPPORTED_SCHEME : u32 = 116 ; pub const LDAP_CUP_RELOAD_REQUIRED : u32 = 117 ; pub const LDAP_CANCELLED : u32 = 118 ; pub const LDAP_NO_SUCH_OPERATION : u32 = 119 ; pub const LDAP_TOO_LATE : u32 = 120 ; pub const LDAP_CANNOT_CANCEL : u32 = 121 ; pub const LDAP_ASSERTION_FAILED : u32 = 122 ; pub const LDAP_PROXIED_AUTHORIZATION_DENIED : u32 = 123 ; pub const LDAP_SYNC_REFRESH_REQUIRED : u32 = 4096 ; pub const LDAP_X_SYNC_REFRESH_REQUIRED : u32 = 16640 ; pub const LDAP_X_ASSERTION_FAILED : u32 = 16655 ; pub const LDAP_X_NO_OPERATION : u32 = 16654 ; pub const LDAP_X_NO_REFERRALS_FOUND : u32 = 16656 ; pub const LDAP_X_CANNOT_CHAIN : u32 = 16657 ; pub const LDAP_X_INVALIDREFERENCE : u32 = 16658 ; pub const LDAP_SERVER_DOWN : i32 = -1 ; pub const LDAP_LOCAL_ERROR : i32 = -2 ; pub const LDAP_ENCODING_ERROR : i32 = -3 ; pub const LDAP_DECODING_ERROR : i32 = -4 ; pub const LDAP_TIMEOUT : i32 = -5 ; pub const LDAP_AUTH_UNKNOWN : i32 = -6 ; pub const LDAP_FILTER_ERROR : i32 = -7 ; pub const LDAP_USER_CANCELLED : i32 = -8 ; pub const LDAP_PARAM_ERROR : i32 = -9 ; pub const LDAP_NO_MEMORY : i32 = -10 ; pub const LDAP_CONNECT_ERROR : i32 = -11 ; pub const LDAP_NOT_SUPPORTED : i32 = -12 ; pub const LDAP_CONTROL_NOT_FOUND : i32 = -13 ; pub const LDAP_NO_RESULTS_RETURNED : i32 = -14 ; pub const LDAP_MORE_RESULTS_TO_RETURN : i32 = -15 ; pub const LDAP_CLIENT_LOOP : i32 = -16 ; pub const LDAP_REFERRAL_LIMIT_EXCEEDED : i32 = -17 ; pub const LDAP_X_CONNECTING : i32 = -18 ; pub const LDAP_MOD_OP : u32 = 7 ; pub const LDAP_MOD_ADD : u32 = 0 ; pub const LDAP_MOD_DELETE : u32 = 1 ; pub const LDAP_MOD_REPLACE : u32 = 2 ; pub const LDAP_MOD_INCREMENT : u32 = 3 ; pub const LDAP_MOD_BVALUES : u32 = 128 ; pub const LDAP_DEREF_NEVER : u32 = 0 ; pub const LDAP_DEREF_SEARCHING : u32 = 1 ; pub const LDAP_DEREF_FINDING : u32 = 2 ; pub const LDAP_DEREF_ALWAYS : u32 = 3 ; pub const LDAP_NO_LIMIT : u32 = 0 ; pub const LDAP_MSG_ONE : u32 = 0 ; pub const LDAP_MSG_ALL : u32 = 1 ; pub const LDAP_MSG_RECEIVED : u32 = 2 ; pub const LDAP_URL_SUCCESS : u32 = 0 ; pub const LDAP_URL_ERR_MEM : u32 = 1 ; pub const LDAP_URL_ERR_PARAM : u32 = 2 ; pub const LDAP_URL_ERR_BADSCHEME : u32 = 3 ; pub const LDAP_URL_ERR_BADENCLOSURE : u32 = 4 ; pub const LDAP_URL_ERR_BADURL : u32 = 5 ; pub const LDAP_URL_ERR_BADHOST : u32 = 6 ; pub const LDAP_URL_ERR_BADATTRS : u32 = 7 ; pub const LDAP_URL_ERR_BADSCOPE : u32 = 8 ; pub const LDAP_URL_ERR_BADFILTER : u32 = 9 ; pub const LDAP_URL_ERR_BADEXTS : u32 = 10 ; pub const LDAP_SASL_AUTOMATIC : u32 = 0 ; pub const LDAP_SASL_INTERACTIVE : u32 = 1 ; pub const LDAP_SASL_QUIET : u32 = 2 ; pub const LDAP_AVA_NULL : u32 = 0 ; pub const LDAP_AVA_STRING : u32 = 1 ; pub const LDAP_AVA_BINARY : u32 = 2 ; pub const LDAP_AVA_NONPRINTABLE : u32 = 4 ; pub const LDAP_AVA_FREE_ATTR : u32 = 16 ; pub const LDAP_AVA_FREE_VALUE : u32 = 32 ; pub const LDAP_DN_FORMAT_LDAP : u32 = 0 ; pub const LDAP_DN_FORMAT_LDAPV3 : u32 = 16 ; pub const LDAP_DN_FORMAT_LDAPV2 : u32 = 32 ; pub const LDAP_DN_FORMAT_DCE : u32 = 48 ; pub const LDAP_DN_FORMAT_UFN : u32 = 64 ; pub const LDAP_DN_FORMAT_AD_CANONICAL : u32 = 80 ; pub const LDAP_DN_FORMAT_LBER : u32 = 240 ; pub const LDAP_DN_FORMAT_MASK : u32 = 240 ; pub const LDAP_DN_PRETTY : u32 = 256 ; pub const LDAP_DN_SKIP : u32 = 512 ; pub const LDAP_DN_P_NOLEADTRAILSPACES : u32 = 4096 ; pub const LDAP_DN_P_NOSPACEAFTERRDN : u32 = 8192 ; pub const LDAP_DN_PEDANTIC : u32 = 61440 ; pub const LDAP_API_FEATURE_CANCEL : u32 = 1000 ; pub const LDAP_API_FEATURE_TURN : u32 = 1000 ; pub const LDAP_API_FEATURE_PAGED_RESULTS : u32 = 2000 ; pub const LDAP_API_FEATURE_SERVER_SIDE_SORT : u32 = 2000 ; pub const LDAP_API_FEATURE_VIRTUAL_LIST_VIEW : u32 = 2000 ; pub const LDAP_API_FEATURE_WHOAMI : u32 = 1000 ; pub const LDAP_API_FEATURE_PASSWD_MODIFY : u32 = 1000 ; pub const LDAP_API_FEATURE_PASSWORD_POLICY : u32 = 1000 ; pub const LDAP_API_FEATURE_REFRESH : u32 = 1000 ; pub const _SYS_TIME_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 0 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const __time_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timespec_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub type ber_int_t = :: std :: os :: raw :: c_int ; pub type ber_sint_t = :: std :: os :: raw :: c_int ; pub type ber_uint_t = :: std :: os :: raw :: c_uint ; pub type ber_tag_t = :: std :: os :: raw :: c_ulong ; pub type ber_socket_t = :: std :: os :: raw :: c_int ; pub type ber_len_t = :: std :: os :: raw :: c_ulong ; pub type ber_slen_t = :: std :: os :: raw :: c_long ; pub type size_t = :: std :: os :: raw :: c_uint ; extern "C" { pub fn memcpy ( __dest : * mut :: std :: os :: raw :: c_void , __src : * const :: std :: os :: raw :: c_void , __n : :: std :: os :: raw :: c_uint ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn memmove ( __dest : * mut :: std :: os :: raw :: c_void , __src : * const :: std :: os :: raw :: c_void , __n : :: std :: os :: raw :: c_uint ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn memccpy ( __dest : * mut :: std :: os :: raw :: c_void , __src : * const :: std :: os :: raw :: c_void , __c : :: std :: os :: raw :: c_int , __n : size_t ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn memset ( __s : * mut :: std :: os :: raw :: c_void , __c : :: std :: os :: raw :: c_int , __n : :: std :: os :: raw :: c_uint ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn memcmp ( __s1 : * const :: std :: os :: raw :: c_void , __s2 : * const :: std :: os :: raw :: c_void , __n : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn memchr ( __s : * const :: std :: os :: raw :: c_void , __c : :: std :: os :: raw :: c_int , __n : :: std :: os :: raw :: c_uint ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn strcpy ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strncpy ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_uint ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strcat ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strncat ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_uint ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strcmp ( __s1 : * const :: std :: os :: raw :: c_char , __s2 : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn strncmp ( __s1 : * const :: std :: os :: raw :: c_char , __s2 : * const :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn strcoll ( __s1 : * const :: std :: os :: raw :: c_char , __s2 : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn strxfrm ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_uint ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __locale_struct { pub __locales : [ * mut __locale_data ; 13usize ] , pub __ctype_b : * const :: std :: os :: raw :: c_ushort , pub __ctype_tolower : * const :: std :: os :: raw :: c_int , pub __ctype_toupper : * const :: std :: os :: raw :: c_int , pub __names : [ * const :: std :: os :: raw :: c_char ; 13usize ] , } # [ test ] fn bindgen_test_layout___locale_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __locale_struct > ( ) , 116usize , concat ! ( "Size of: " , stringify ! ( __locale_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __locale_struct > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __locale_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __locales as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __locales ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __ctype_b as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __ctype_b ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __ctype_tolower as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __ctype_tolower ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __ctype_toupper as * const _ as usize } , 60usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __ctype_toupper ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __names as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __names ) ) ) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l ( __s1 : * const :: std :: os :: raw :: c_char , __s2 : * const :: std :: os :: raw :: c_char , __l : locale_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn strxfrm_l ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char , __n : size_t , __l : locale_t ) -> size_t ; } extern "C" { pub fn strdup ( __s : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strndup ( __string : * const :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_uint ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strchr ( __s : * const :: std :: os :: raw :: c_char , __c : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strrchr ( __s : * const :: std :: os :: raw :: c_char , __c : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strcspn ( __s : * const :: std :: os :: raw :: c_char , __reject : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_uint ; } extern "C" { pub fn strspn ( __s : * const :: std :: os :: raw :: c_char , __accept : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_uint ; } extern "C" { pub fn strpbrk ( __s : * const :: std :: os :: raw :: c_char , __accept : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstr ( __haystack : * const :: std :: os :: raw :: c_char , __needle : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strtok ( __s : * mut :: std :: os :: raw :: c_char , __delim : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __strtok_r ( __s : * mut :: std :: os :: raw :: c_char , __delim : * const :: std :: os :: raw :: c_char , __save_ptr : * mut * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strtok_r ( __s : * mut :: std :: os :: raw :: c_char , __delim : * const :: std :: os :: raw :: c_char , __save_ptr : * mut * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strlen ( __s : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_uint ; } extern "C" { pub fn strnlen ( __string : * const :: std :: os :: raw :: c_char , __maxlen : size_t ) -> size_t ; } extern "C" { pub fn strerror ( __errnum : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __xpg_strerror_r ( __errnum : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __buflen : size_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn strerror_l ( __errnum : :: std :: os :: raw :: c_int , __l : locale_t ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn bcmp ( __s1 : * const :: std :: os :: raw :: c_void , __s2 : * const :: std :: os :: raw :: c_void , __n : size_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn bcopy ( __src : * const :: std :: os :: raw :: c_void , __dest : * mut :: std :: os :: raw :: c_void , __n : size_t ) ; } extern "C" { pub fn bzero ( __s : * mut :: std :: os :: raw :: c_void , __n : :: std :: os :: raw :: c_uint ) ; } extern "C" { pub fn index ( __s : * const :: std :: os :: raw :: c_char , __c : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn rindex ( __s : * const :: std :: os :: raw :: c_char , __c : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ffs ( __i : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ffsl ( __l : :: std :: os :: raw :: c_long ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ffsll ( __ll : :: std :: os :: raw :: c_longlong ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn strcasecmp ( __s1 : * const :: std :: os :: raw :: c_char , __s2 : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn strncasecmp ( __s1 : * const :: std :: os :: raw :: c_char , __s2 : * const :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn strcasecmp_l ( __s1 : * const :: std :: os :: raw :: c_char , __s2 : * const :: std :: os :: raw :: c_char , __loc : locale_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn strncasecmp_l ( __s1 : * const :: std :: os :: raw :: c_char , __s2 : * const :: std :: os :: raw :: c_char , __n : size_t , __loc : locale_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn explicit_bzero ( __s : * mut :: std :: os :: raw :: c_void , __n : size_t ) ; } extern "C" { pub fn strsep ( __stringp : * mut * mut :: std :: os :: raw :: c_char , __delim : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strsignal ( __sig : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __stpcpy ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn stpcpy ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __stpncpy ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char , __n : size_t ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn stpncpy ( __dest : * mut :: std :: os :: raw :: c_char , __src : * const :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_uint ) -> * mut :: std :: os :: raw :: c_char ; } pub type BER_ERRNO_FN = :: std :: option :: Option < unsafe extern "C" fn ( ) -> * mut :: std :: os :: raw :: c_int > ; pub type BER_LOG_PRINT_FN = :: std :: option :: Option < unsafe extern "C" fn ( ) > ; pub type BER_MEMALLOC_FN = :: std :: option :: Option < unsafe extern "C" fn ( ) -> * mut :: std :: os :: raw :: c_void > ; pub type BER_MEMCALLOC_FN = :: std :: option :: Option < unsafe extern "C" fn ( ) -> * mut :: std :: os :: raw :: c_void > ; pub type BER_MEMREALLOC_FN = :: std :: option :: Option < unsafe extern "C" fn ( ) -> * mut :: std :: os :: raw :: c_void > ; pub type BER_MEMFREE_FN = :: std :: option :: Option < unsafe extern "C" fn ( ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct lber_memory_fns { pub bmf_malloc : BER_MEMALLOC_FN , pub bmf_calloc : BER_MEMCALLOC_FN , pub bmf_realloc : BER_MEMREALLOC_FN , pub bmf_free : BER_MEMFREE_FN , } # [ test ] fn bindgen_test_layout_lber_memory_fns ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lber_memory_fns > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( lber_memory_fns ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lber_memory_fns > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( lber_memory_fns ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lber_memory_fns > ( ) ) ) . bmf_malloc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lber_memory_fns ) , "::" , stringify ! ( bmf_malloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lber_memory_fns > ( ) ) ) . bmf_calloc as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( lber_memory_fns ) , "::" , stringify ! ( bmf_calloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lber_memory_fns > ( ) ) ) . bmf_realloc as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( lber_memory_fns ) , "::" , stringify ! ( bmf_realloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lber_memory_fns > ( ) ) ) . bmf_free as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( lber_memory_fns ) , "::" , stringify ! ( bmf_free ) ) ) ; } pub type BerMemoryFunctions = lber_memory_fns ; extern "C" { pub static mut ber_pvt_opt_on : :: std :: os :: raw :: c_char ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct berelement { _unused : [ u8 ; 0 ] , } pub type BerElement = berelement ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct sockbuf { _unused : [ u8 ; 0 ] , } pub type Sockbuf = sockbuf ; pub type Sockbuf_IO = sockbuf_io ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct sockbuf_io_desc { pub sbiod_level : :: std :: os :: raw :: c_int , pub sbiod_sb : * mut Sockbuf , pub sbiod_io : * mut Sockbuf_IO , pub sbiod_pvt : * mut :: std :: os :: raw :: c_void , pub sbiod_next : * mut sockbuf_io_desc , } # [ test ] fn bindgen_test_layout_sockbuf_io_desc ( ) { assert_eq ! ( :: std :: mem :: size_of :: < sockbuf_io_desc > ( ) , 20usize , concat ! ( "Size of: " , stringify ! ( sockbuf_io_desc ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < sockbuf_io_desc > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( sockbuf_io_desc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io_desc > ( ) ) ) . sbiod_level as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io_desc ) , "::" , stringify ! ( sbiod_level ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io_desc > ( ) ) ) . sbiod_sb as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io_desc ) , "::" , stringify ! ( sbiod_sb ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io_desc > ( ) ) ) . sbiod_io as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io_desc ) , "::" , stringify ! ( sbiod_io ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io_desc > ( ) ) ) . sbiod_pvt as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io_desc ) , "::" , stringify ! ( sbiod_pvt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io_desc > ( ) ) ) . sbiod_next as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io_desc ) , "::" , stringify ! ( sbiod_next ) ) ) ; } pub type Sockbuf_IO_Desc = sockbuf_io_desc ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct sockbuf_io { pub sbi_setup : :: std :: option :: Option < unsafe extern "C" fn ( sbiod : * mut Sockbuf_IO_Desc , arg : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > , pub sbi_remove : :: std :: option :: Option < unsafe extern "C" fn ( sbiod : * mut Sockbuf_IO_Desc ) -> :: std :: os :: raw :: c_int > , pub sbi_ctrl : :: std :: option :: Option < unsafe extern "C" fn ( sbiod : * mut Sockbuf_IO_Desc , opt : :: std :: os :: raw :: c_int , arg : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > , pub sbi_read : :: std :: option :: Option < unsafe extern "C" fn ( sbiod : * mut Sockbuf_IO_Desc , buf : * mut :: std :: os :: raw :: c_void , len : ber_len_t ) -> ber_slen_t > , pub sbi_write : :: std :: option :: Option < unsafe extern "C" fn ( sbiod : * mut Sockbuf_IO_Desc , buf : * mut :: std :: os :: raw :: c_void , len : ber_len_t ) -> ber_slen_t > , pub sbi_close : :: std :: option :: Option < unsafe extern "C" fn ( sbiod : * mut Sockbuf_IO_Desc ) -> :: std :: os :: raw :: c_int > , } # [ test ] fn bindgen_test_layout_sockbuf_io ( ) { assert_eq ! ( :: std :: mem :: size_of :: < sockbuf_io > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( sockbuf_io ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < sockbuf_io > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( sockbuf_io ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io > ( ) ) ) . sbi_setup as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io ) , "::" , stringify ! ( sbi_setup ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io > ( ) ) ) . sbi_remove as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io ) , "::" , stringify ! ( sbi_remove ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io > ( ) ) ) . sbi_ctrl as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io ) , "::" , stringify ! ( sbi_ctrl ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io > ( ) ) ) . sbi_read as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io ) , "::" , stringify ! ( sbi_read ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io > ( ) ) ) . sbi_write as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io ) , "::" , stringify ! ( sbi_write ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockbuf_io > ( ) ) ) . sbi_close as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( sockbuf_io ) , "::" , stringify ! ( sbi_close ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct berval { pub bv_len : ber_len_t , pub bv_val : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_berval ( ) { assert_eq ! ( :: std :: mem :: size_of :: < berval > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( berval ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < berval > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( berval ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < berval > ( ) ) ) . bv_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( berval ) , "::" , stringify ! ( bv_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < berval > ( ) ) ) . bv_val as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( berval ) , "::" , stringify ! ( bv_val ) ) ) ; } pub type BerValue = berval ; pub type BerVarray = * mut BerValue ; extern "C" { pub fn ber_error_print ( ) ; } extern "C" { pub fn ber_bprint ( ) ; } extern "C" { pub fn ber_dump ( ) ; } pub type BERDecodeCallback = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn ber_get_tag ( ) -> ber_tag_t ; } extern "C" { pub fn ber_skip_tag ( ) -> ber_tag_t ; } extern "C" { pub fn ber_peek_tag ( ) -> ber_tag_t ; } extern "C" { pub fn ber_skip_element ( ) -> ber_tag_t ; } extern "C" { pub fn ber_peek_element ( ) -> ber_tag_t ; } extern "C" { pub fn ber_get_int ( ) -> ber_tag_t ; } extern "C" { pub fn ber_get_enum ( ) -> ber_tag_t ; } extern "C" { pub fn ber_get_stringb ( ) -> ber_tag_t ; } extern "C" { pub fn ber_get_stringbv ( ) -> ber_tag_t ; } extern "C" { pub fn ber_get_stringa ( ) -> ber_tag_t ; } extern "C" { pub fn ber_get_stringal ( ) -> ber_tag_t ; } extern "C" { pub fn ber_get_bitstringa ( ) -> ber_tag_t ; } extern "C" { pub fn ber_get_null ( ) -> ber_tag_t ; } extern "C" { pub fn ber_get_boolean ( ) -> ber_tag_t ; } extern "C" { pub fn ber_first_element ( ) -> ber_tag_t ; } extern "C" { pub fn ber_next_element ( ) -> ber_tag_t ; } extern "C" { pub fn ber_scanf ( ) -> ber_tag_t ; } extern "C" { pub fn ber_decode_oid ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_encode_oid ( ) -> :: std :: os :: raw :: c_int ; } pub type BEREncodeCallback = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn ber_put_enum ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_put_int ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_put_ostring ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_put_berval ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_put_string ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_put_bitstring ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_put_null ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_put_boolean ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_start_seq ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_start_set ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_put_seq ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_put_set ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_printf ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_skip_data ( ) -> ber_slen_t ; } extern "C" { pub fn ber_read ( ) -> ber_slen_t ; } extern "C" { pub fn ber_write ( ) -> ber_slen_t ; } extern "C" { pub fn ber_free ( ) ; } extern "C" { pub fn ber_free_buf ( ) ; } extern "C" { pub fn ber_flush2 ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_flush ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_alloc ( ) -> * mut BerElement ; } extern "C" { pub fn der_alloc ( ) -> * mut BerElement ; } extern "C" { pub fn ber_alloc_t ( ) -> * mut BerElement ; } extern "C" { pub fn ber_dup ( ) -> * mut BerElement ; } extern "C" { pub fn ber_get_next ( ) -> ber_tag_t ; } extern "C" { pub fn ber_init2 ( ) ; } extern "C" { pub fn ber_init_w_nullc ( ) ; } extern "C" { pub fn ber_reset ( ) ; } extern "C" { pub fn ber_init ( ) -> * mut BerElement ; } extern "C" { pub fn ber_flatten ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_flatten2 ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_remaining ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_get_option ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_set_option ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_sockbuf_alloc ( ) -> * mut Sockbuf ; } extern "C" { pub fn ber_sockbuf_free ( ) ; } extern "C" { pub fn ber_sockbuf_add_io ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_sockbuf_remove_io ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_sockbuf_ctrl ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub static mut ber_sockbuf_io_tcp : Sockbuf_IO ; } extern "C" { pub static mut ber_sockbuf_io_readahead : Sockbuf_IO ; } extern "C" { pub static mut ber_sockbuf_io_fd : Sockbuf_IO ; } extern "C" { pub static mut ber_sockbuf_io_debug : Sockbuf_IO ; } extern "C" { pub static mut ber_sockbuf_io_udp : Sockbuf_IO ; } extern "C" { pub fn ber_memalloc ( ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn ber_memrealloc ( ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn ber_memcalloc ( ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn ber_memfree ( ) ; } extern "C" { pub fn ber_memvfree ( ) ; } extern "C" { pub fn ber_bvfree ( ) ; } extern "C" { pub fn ber_bvecfree ( ) ; } extern "C" { pub fn ber_bvecadd ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_dupbv ( ) -> * mut berval ; } extern "C" { pub fn ber_bvdup ( ) -> * mut berval ; } extern "C" { pub fn ber_mem2bv ( ) -> * mut berval ; } extern "C" { pub fn ber_str2bv ( ) -> * mut berval ; } extern "C" { pub fn ber_strdup ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ber_strnlen ( ) -> ber_len_t ; } extern "C" { pub fn ber_strndup ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ber_bvreplace ( ) -> * mut berval ; } extern "C" { pub fn ber_bvarray_free ( ) ; } extern "C" { pub fn ber_bvarray_add ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ber_errno_addr ( ) -> * mut :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldapapiinfo { pub ldapai_info_version : :: std :: os :: raw :: c_int , pub ldapai_api_version : :: std :: os :: raw :: c_int , pub ldapai_protocol_version : :: std :: os :: raw :: c_int , pub ldapai_extensions : * mut * mut :: std :: os :: raw :: c_char , pub ldapai_vendor_name : * mut :: std :: os :: raw :: c_char , pub ldapai_vendor_version : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_ldapapiinfo ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldapapiinfo > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( ldapapiinfo ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldapapiinfo > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldapapiinfo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapapiinfo > ( ) ) ) . ldapai_info_version as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldapapiinfo ) , "::" , stringify ! ( ldapai_info_version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapapiinfo > ( ) ) ) . ldapai_api_version as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ldapapiinfo ) , "::" , stringify ! ( ldapai_api_version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapapiinfo > ( ) ) ) . ldapai_protocol_version as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldapapiinfo ) , "::" , stringify ! ( ldapai_protocol_version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapapiinfo > ( ) ) ) . ldapai_extensions as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( ldapapiinfo ) , "::" , stringify ! ( ldapai_extensions ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapapiinfo > ( ) ) ) . ldapai_vendor_name as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( ldapapiinfo ) , "::" , stringify ! ( ldapai_vendor_name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapapiinfo > ( ) ) ) . ldapai_vendor_version as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( ldapapiinfo ) , "::" , stringify ! ( ldapai_vendor_version ) ) ) ; } pub type LDAPAPIInfo = ldapapiinfo ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldap_apifeature_info { pub ldapaif_info_version : :: std :: os :: raw :: c_int , pub ldapaif_name : * mut :: std :: os :: raw :: c_char , pub ldapaif_version : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_ldap_apifeature_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldap_apifeature_info > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( ldap_apifeature_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldap_apifeature_info > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldap_apifeature_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_apifeature_info > ( ) ) ) . ldapaif_info_version as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldap_apifeature_info ) , "::" , stringify ! ( ldapaif_info_version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_apifeature_info > ( ) ) ) . ldapaif_name as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ldap_apifeature_info ) , "::" , stringify ! ( ldapaif_name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_apifeature_info > ( ) ) ) . ldapaif_version as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldap_apifeature_info ) , "::" , stringify ! ( ldapaif_version ) ) ) ; } pub type LDAPAPIFeatureInfo = ldap_apifeature_info ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldapcontrol { pub ldctl_oid : * mut :: std :: os :: raw :: c_char , pub ldctl_value : berval , pub ldctl_iscritical : :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_ldapcontrol ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldapcontrol > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( ldapcontrol ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldapcontrol > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldapcontrol ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapcontrol > ( ) ) ) . ldctl_oid as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldapcontrol ) , "::" , stringify ! ( ldctl_oid ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapcontrol > ( ) ) ) . ldctl_value as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ldapcontrol ) , "::" , stringify ! ( ldctl_value ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapcontrol > ( ) ) ) . ldctl_iscritical as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( ldapcontrol ) , "::" , stringify ! ( ldctl_iscritical ) ) ) ; } pub type LDAPControl = ldapcontrol ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldapmsg { _unused : [ u8 ; 0 ] , } pub type LDAPMessage = ldapmsg ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct ldapmod { pub mod_op : :: std :: os :: raw :: c_int , pub mod_type : * mut :: std :: os :: raw :: c_char , pub mod_vals : ldapmod_mod_vals_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union ldapmod_mod_vals_u { pub modv_strvals : * mut * mut :: std :: os :: raw :: c_char , pub modv_bvals : * mut * mut berval , _bindgen_union_align : u32 , } # [ test ] fn bindgen_test_layout_ldapmod_mod_vals_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldapmod_mod_vals_u > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( ldapmod_mod_vals_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldapmod_mod_vals_u > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldapmod_mod_vals_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapmod_mod_vals_u > ( ) ) ) . modv_strvals as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldapmod_mod_vals_u ) , "::" , stringify ! ( modv_strvals ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapmod_mod_vals_u > ( ) ) ) . modv_bvals as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldapmod_mod_vals_u ) , "::" , stringify ! ( modv_bvals ) ) ) ; } # [ test ] fn bindgen_test_layout_ldapmod ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldapmod > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( ldapmod ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldapmod > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldapmod ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapmod > ( ) ) ) . mod_op as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldapmod ) , "::" , stringify ! ( mod_op ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapmod > ( ) ) ) . mod_type as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ldapmod ) , "::" , stringify ! ( mod_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapmod > ( ) ) ) . mod_vals as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldapmod ) , "::" , stringify ! ( mod_vals ) ) ) ; } pub type LDAPMod = ldapmod ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldap { _unused : [ u8 ; 0 ] , } pub type LDAP = ldap ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldap_url_desc { pub lud_next : * mut ldap_url_desc , pub lud_scheme : * mut :: std :: os :: raw :: c_char , pub lud_host : * mut :: std :: os :: raw :: c_char , pub lud_port : :: std :: os :: raw :: c_int , pub lud_dn : * mut :: std :: os :: raw :: c_char , pub lud_attrs : * mut * mut :: std :: os :: raw :: c_char , pub lud_scope : :: std :: os :: raw :: c_int , pub lud_filter : * mut :: std :: os :: raw :: c_char , pub lud_exts : * mut * mut :: std :: os :: raw :: c_char , pub lud_crit_exts : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_ldap_url_desc ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldap_url_desc > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( ldap_url_desc ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldap_url_desc > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldap_url_desc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_scheme as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_scheme ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_host as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_host ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_port as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_port ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_dn as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_dn ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_attrs as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_attrs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_scope as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_scope ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_filter as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_filter ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_exts as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_exts ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_url_desc > ( ) ) ) . lud_crit_exts as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( ldap_url_desc ) , "::" , stringify ! ( lud_crit_exts ) ) ) ; } pub type LDAPURLDesc = ldap_url_desc ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_NONE : ldap_sync_refresh_t = -1 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_PHASE_FLAG : ldap_sync_refresh_t = 16 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_IDSET_FLAG : ldap_sync_refresh_t = 32 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_DONE_FLAG : ldap_sync_refresh_t = 64 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_PRESENT : ldap_sync_refresh_t = 0 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_ADD : ldap_sync_refresh_t = 1 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_MODIFY : ldap_sync_refresh_t = 2 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_DELETE : ldap_sync_refresh_t = 3 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_PRESENTS : ldap_sync_refresh_t = 16 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_DELETES : ldap_sync_refresh_t = 19 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_PRESENTS_IDSET : ldap_sync_refresh_t = 48 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_DELETES_IDSET : ldap_sync_refresh_t = 51 ; pub const ldap_sync_refresh_t_LDAP_SYNC_CAPI_DONE : ldap_sync_refresh_t = 80 ; pub type ldap_sync_refresh_t = i32 ; pub type ldap_sync_search_entry_f = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; pub type ldap_sync_search_reference_f = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; pub type ldap_sync_intermediate_f = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; pub type ldap_sync_search_result_f = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldap_sync_t { pub ls_base : * mut :: std :: os :: raw :: c_char , pub ls_scope : :: std :: os :: raw :: c_int , pub ls_filter : * mut :: std :: os :: raw :: c_char , pub ls_attrs : * mut * mut :: std :: os :: raw :: c_char , pub ls_timelimit : :: std :: os :: raw :: c_int , pub ls_sizelimit : :: std :: os :: raw :: c_int , pub ls_timeout : :: std :: os :: raw :: c_int , pub ls_search_entry : ldap_sync_search_entry_f , pub ls_search_reference : ldap_sync_search_reference_f , pub ls_intermediate : ldap_sync_intermediate_f , pub ls_search_result : ldap_sync_search_result_f , pub ls_private : * mut :: std :: os :: raw :: c_void , pub ls_ld : * mut LDAP , pub ls_msgid : :: std :: os :: raw :: c_int , pub ls_reloadHint : :: std :: os :: raw :: c_int , pub ls_cookie : berval , pub ls_refreshPhase : ldap_sync_refresh_t , } # [ test ] fn bindgen_test_layout_ldap_sync_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldap_sync_t > ( ) , 72usize , concat ! ( "Size of: " , stringify ! ( ldap_sync_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldap_sync_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldap_sync_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_base as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_scope as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_scope ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_filter as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_filter ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_attrs as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_attrs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_timelimit as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_timelimit ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_sizelimit as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_sizelimit ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_timeout as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_search_entry as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_search_entry ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_search_reference as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_search_reference ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_intermediate as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_intermediate ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_search_result as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_search_result ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_private as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_private ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_ld as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_ld ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_msgid as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_msgid ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_reloadHint as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_reloadHint ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_cookie as * const _ as usize } , 60usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_cookie ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_sync_t > ( ) ) ) . ls_refreshPhase as * const _ as usize } , 68usize , concat ! ( "Offset of field: " , stringify ! ( ldap_sync_t ) , "::" , stringify ! ( ls_refreshPhase ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct sockaddr { _unused : [ u8 ; 0 ] , } pub type ldap_conn_add_f = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; pub type ldap_conn_del_f = :: std :: option :: Option < unsafe extern "C" fn ( ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldap_conncb { pub lc_add : ldap_conn_add_f , pub lc_del : ldap_conn_del_f , pub lc_arg : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_ldap_conncb ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldap_conncb > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( ldap_conncb ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldap_conncb > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldap_conncb ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_conncb > ( ) ) ) . lc_add as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldap_conncb ) , "::" , stringify ! ( lc_add ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_conncb > ( ) ) ) . lc_del as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ldap_conncb ) , "::" , stringify ! ( lc_del ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_conncb > ( ) ) ) . lc_arg as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldap_conncb ) , "::" , stringify ! ( lc_arg ) ) ) ; } extern "C" { pub fn ldap_get_option ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_set_option ( ) -> :: std :: os :: raw :: c_int ; } pub type LDAP_REBIND_PROC = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn ldap_set_rebind_proc ( ) -> :: std :: os :: raw :: c_int ; } pub type LDAP_NEXTREF_PROC = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn ldap_set_nextref_proc ( ) -> :: std :: os :: raw :: c_int ; } pub type LDAP_URLLIST_PROC = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn ldap_set_urllist_proc ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_control_create ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_control_find ( ) -> * mut LDAPControl ; } extern "C" { pub fn ldap_control_free ( ) ; } extern "C" { pub fn ldap_controls_free ( ) ; } extern "C" { pub fn ldap_controls_dup ( ) -> * mut * mut LDAPControl ; } extern "C" { pub fn ldap_control_dup ( ) -> * mut LDAPControl ; } extern "C" { pub fn ldap_domain2dn ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_dn2domain ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_domain2hostlist ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_extended_operation ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_extended_operation_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_extended_result ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_intermediate ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_abandon_ext ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_add_ext ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_add_ext_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_sasl_bind ( ) -> :: std :: os :: raw :: c_int ; } pub type LDAP_SASL_INTERACT_PROC = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn ldap_sasl_interactive_bind ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_sasl_interactive_bind_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_sasl_bind_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_sasl_bind_result ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_gssapi_bind_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_compare_ext ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_compare_ext_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_delete_ext ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_delete_ext_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_result ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_err2string ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_gssapi_bind ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_modify_ext ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_modify_ext_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_rename ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_rename_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_initialize ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_dup ( ) -> * mut LDAP ; } extern "C" { pub fn ldap_tls_inplace ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_start_tls ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_install_tls ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_start_tls_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_first_message ( ) -> * mut LDAPMessage ; } extern "C" { pub fn ldap_next_message ( ) -> * mut LDAPMessage ; } extern "C" { pub fn ldap_count_messages ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_first_reference ( ) -> * mut LDAPMessage ; } extern "C" { pub fn ldap_next_reference ( ) -> * mut LDAPMessage ; } extern "C" { pub fn ldap_count_references ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_reference ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_first_entry ( ) -> * mut LDAPMessage ; } extern "C" { pub fn ldap_next_entry ( ) -> * mut LDAPMessage ; } extern "C" { pub fn ldap_count_entries ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_get_entry_controls ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_delete_result_entry ( ) -> * mut LDAPMessage ; } extern "C" { pub fn ldap_add_result_entry ( ) ; } extern "C" { pub fn ldap_get_dn ( ) -> * mut :: std :: os :: raw :: c_char ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldap_ava { pub la_attr : berval , pub la_value : berval , pub la_flags : :: std :: os :: raw :: c_uint , pub la_private : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_ldap_ava ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldap_ava > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( ldap_ava ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldap_ava > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldap_ava ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_ava > ( ) ) ) . la_attr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldap_ava ) , "::" , stringify ! ( la_attr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_ava > ( ) ) ) . la_value as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldap_ava ) , "::" , stringify ! ( la_value ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_ava > ( ) ) ) . la_flags as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( ldap_ava ) , "::" , stringify ! ( la_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldap_ava > ( ) ) ) . la_private as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( ldap_ava ) , "::" , stringify ! ( la_private ) ) ) ; } pub type LDAPAVA = ldap_ava ; pub type LDAPRDN = * mut * mut LDAPAVA ; pub type LDAPDN = * mut LDAPRDN ; extern "C" { pub fn ldap_rdnfree ( ) ; } extern "C" { pub fn ldap_dnfree ( ) ; } extern "C" { pub fn ldap_bv2dn ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_str2dn ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_dn2bv ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_dn2str ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_bv2rdn ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_str2rdn ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_rdn2bv ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_rdn2str ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_dn_normalize ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_dn2ufn ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_explode_dn ( ) -> * mut * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_explode_rdn ( ) -> * mut * mut :: std :: os :: raw :: c_char ; } pub type LDAPDN_rewrite_func = :: std :: option :: Option < unsafe extern "C" fn ( ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn ldap_X509dn2bv ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_dn2dcedn ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_dcedn2dn ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_dn2ad_canonical ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_get_dn_ber ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_get_attribute_ber ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_first_attribute ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_next_attribute ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_get_values_len ( ) -> * mut * mut berval ; } extern "C" { pub fn ldap_count_values_len ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_value_free_len ( ) ; } extern "C" { pub fn ldap_result ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_msgtype ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_msgid ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_msgfree ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_msgdelete ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_bv2escaped_filter_value ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_search_ext ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_search_ext_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_unbind_ext ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_unbind_ext_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_destroy ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_put_vrFilter ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_memalloc ( ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn ldap_memrealloc ( ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn ldap_memcalloc ( ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn ldap_memfree ( ) ; } extern "C" { pub fn ldap_memvfree ( ) ; } extern "C" { pub fn ldap_strdup ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_mods_free ( ) ; } extern "C" { pub fn ldap_is_ldap_url ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_is_ldaps_url ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_is_ldapi_url ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_url_parse ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_url_desc2str ( ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_free_urldesc ( ) ; } extern "C" { pub fn ldap_cancel ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_cancel_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_turn ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_turn_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create_page_control_value ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create_page_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_pageresponse_control ( ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldapsortkey { pub attributeType : * mut :: std :: os :: raw :: c_char , pub orderingRule : * mut :: std :: os :: raw :: c_char , pub reverseOrder : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_ldapsortkey ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldapsortkey > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( ldapsortkey ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldapsortkey > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldapsortkey ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapsortkey > ( ) ) ) . attributeType as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldapsortkey ) , "::" , stringify ! ( attributeType ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapsortkey > ( ) ) ) . orderingRule as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ldapsortkey ) , "::" , stringify ! ( orderingRule ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapsortkey > ( ) ) ) . reverseOrder as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldapsortkey ) , "::" , stringify ! ( reverseOrder ) ) ) ; } pub type LDAPSortKey = ldapsortkey ; extern "C" { pub fn ldap_create_sort_keylist ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_free_sort_keylist ( ) ; } extern "C" { pub fn ldap_create_sort_control_value ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create_sort_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_sortresponse_control ( ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldapvlvinfo { pub ldvlv_version : ber_int_t , pub ldvlv_before_count : ber_int_t , pub ldvlv_after_count : ber_int_t , pub ldvlv_offset : ber_int_t , pub ldvlv_count : ber_int_t , pub ldvlv_attrvalue : * mut berval , pub ldvlv_context : * mut berval , pub ldvlv_extradata : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_ldapvlvinfo ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldapvlvinfo > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( ldapvlvinfo ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldapvlvinfo > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( ldapvlvinfo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapvlvinfo > ( ) ) ) . ldvlv_version as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldapvlvinfo ) , "::" , stringify ! ( ldvlv_version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapvlvinfo > ( ) ) ) . ldvlv_before_count as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ldapvlvinfo ) , "::" , stringify ! ( ldvlv_before_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapvlvinfo > ( ) ) ) . ldvlv_after_count as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldapvlvinfo ) , "::" , stringify ! ( ldvlv_after_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapvlvinfo > ( ) ) ) . ldvlv_offset as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( ldapvlvinfo ) , "::" , stringify ! ( ldvlv_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapvlvinfo > ( ) ) ) . ldvlv_count as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( ldapvlvinfo ) , "::" , stringify ! ( ldvlv_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapvlvinfo > ( ) ) ) . ldvlv_attrvalue as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( ldapvlvinfo ) , "::" , stringify ! ( ldvlv_attrvalue ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapvlvinfo > ( ) ) ) . ldvlv_context as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( ldapvlvinfo ) , "::" , stringify ! ( ldvlv_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldapvlvinfo > ( ) ) ) . ldvlv_extradata as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( ldapvlvinfo ) , "::" , stringify ! ( ldvlv_extradata ) ) ) ; } pub type LDAPVLVInfo = ldapvlvinfo ; extern "C" { pub fn ldap_create_vlv_control_value ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create_vlv_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_vlvresponse_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_whoami ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_whoami ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_whoami_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_passwd ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_passwd ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_passwd_s ( ) -> :: std :: os :: raw :: c_int ; } pub const passpolicyerror_enum_PP_passwordExpired : passpolicyerror_enum = 0 ; pub const passpolicyerror_enum_PP_accountLocked : passpolicyerror_enum = 1 ; pub const passpolicyerror_enum_PP_changeAfterReset : passpolicyerror_enum = 2 ; pub const passpolicyerror_enum_PP_passwordModNotAllowed : passpolicyerror_enum = 3 ; pub const passpolicyerror_enum_PP_mustSupplyOldPassword : passpolicyerror_enum = 4 ; pub const passpolicyerror_enum_PP_insufficientPasswordQuality : passpolicyerror_enum = 5 ; pub const passpolicyerror_enum_PP_passwordTooShort : passpolicyerror_enum = 6 ; pub const passpolicyerror_enum_PP_passwordTooYoung : passpolicyerror_enum = 7 ; pub const passpolicyerror_enum_PP_passwordInHistory : passpolicyerror_enum = 8 ; pub const passpolicyerror_enum_PP_noError : passpolicyerror_enum = 65535 ; pub type passpolicyerror_enum = i32 ; pub use self :: passpolicyerror_enum as LDAPPasswordPolicyError ; extern "C" { pub fn ldap_create_passwordpolicy_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_passwordpolicy_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_passwordpolicy_err2txt ( ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn ldap_parse_refresh ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_refresh ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_refresh_s ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_sync_initialize ( ) -> * mut ldap_sync_t ; } extern "C" { pub fn ldap_sync_destroy ( ) ; } extern "C" { pub fn ldap_sync_init ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_sync_init_refresh_only ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_sync_init_refresh_and_persist ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_sync_poll ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create_session_tracking_value ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create_session_tracking_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_session_tracking_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create_assertion_control_value ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create_assertion_control ( ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct LDAPDerefSpec { pub derefAttr : * mut :: std :: os :: raw :: c_char , pub attributes : * mut * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_LDAPDerefSpec ( ) { assert_eq ! ( :: std :: mem :: size_of :: < LDAPDerefSpec > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( LDAPDerefSpec ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < LDAPDerefSpec > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( LDAPDerefSpec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < LDAPDerefSpec > ( ) ) ) . derefAttr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( LDAPDerefSpec ) , "::" , stringify ! ( derefAttr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < LDAPDerefSpec > ( ) ) ) . attributes as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( LDAPDerefSpec ) , "::" , stringify ! ( attributes ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct LDAPDerefVal { pub type_ : * mut :: std :: os :: raw :: c_char , pub vals : BerVarray , pub next : * mut LDAPDerefVal , } # [ test ] fn bindgen_test_layout_LDAPDerefVal ( ) { assert_eq ! ( :: std :: mem :: size_of :: < LDAPDerefVal > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( LDAPDerefVal ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < LDAPDerefVal > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( LDAPDerefVal ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < LDAPDerefVal > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( LDAPDerefVal ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < LDAPDerefVal > ( ) ) ) . vals as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( LDAPDerefVal ) , "::" , stringify ! ( vals ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < LDAPDerefVal > ( ) ) ) . next as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( LDAPDerefVal ) , "::" , stringify ! ( next ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct LDAPDerefRes { pub derefAttr : * mut :: std :: os :: raw :: c_char , pub derefVal : berval , pub attrVals : * mut LDAPDerefVal , pub next : * mut LDAPDerefRes , } # [ test ] fn bindgen_test_layout_LDAPDerefRes ( ) { assert_eq ! ( :: std :: mem :: size_of :: < LDAPDerefRes > ( ) , 20usize , concat ! ( "Size of: " , stringify ! ( LDAPDerefRes ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < LDAPDerefRes > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( LDAPDerefRes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < LDAPDerefRes > ( ) ) ) . derefAttr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( LDAPDerefRes ) , "::" , stringify ! ( derefAttr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < LDAPDerefRes > ( ) ) ) . derefVal as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( LDAPDerefRes ) , "::" , stringify ! ( derefVal ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < LDAPDerefRes > ( ) ) ) . attrVals as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( LDAPDerefRes ) , "::" , stringify ! ( attrVals ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < LDAPDerefRes > ( ) ) ) . next as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( LDAPDerefRes ) , "::" , stringify ! ( next ) ) ) ; } extern "C" { pub fn ldap_create_deref_control_value ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_create_deref_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_derefresponse_free ( ) ; } extern "C" { pub fn ldap_parse_derefresponse_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_deref_control ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_ntlm_bind ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ldap_parse_ntlm_bind_result ( ) -> :: std :: os :: raw :: c_int ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_longlong ; pub type __uint64_t = :: std :: os :: raw :: c_ulonglong ; pub type __quad_t = :: std :: os :: raw :: c_longlong ; pub type __u_quad_t = :: std :: os :: raw :: c_ulonglong ; pub type __intmax_t = :: std :: os :: raw :: c_longlong ; pub type __uintmax_t = :: std :: os :: raw :: c_ulonglong ; pub type __dev_t = __u_quad_t ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = __u_quad_t ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_uint ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = __quad_t ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __fsid_t { pub __val : [ :: std :: os :: raw :: c_int ; 2usize ] , } # [ test ] fn bindgen_test_layout___fsid_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __fsid_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __fsid_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __fsid_t ) , "::" , stringify ! ( __val ) ) ) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = __u_quad_t ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = __quad_t ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = __u_quad_t ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = __u_quad_t ; pub type __fsword_t = :: std :: os :: raw :: c_int ; pub type __ssize_t = :: std :: os :: raw :: c_int ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_int ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type time_t = __time_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [ test ] fn bindgen_test_layout_timeval ( ) { assert_eq ! ( :: std :: mem :: size_of :: < timeval > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( timeval ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < timeval > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( timeval ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timeval > ( ) ) ) . tv_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( timeval ) , "::" , stringify ! ( tv_sec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timeval > ( ) ) ) . tv_usec as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( timeval ) , "::" , stringify ! ( tv_usec ) ) ) ; } pub type suseconds_t = __suseconds_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __sigset_t { pub __val : [ :: std :: os :: raw :: c_ulong ; 32usize ] , } # [ test ] fn bindgen_test_layout___sigset_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __sigset_t > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( __sigset_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __sigset_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __sigset_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __sigset_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __sigset_t ) , "::" , stringify ! ( __val ) ) ) ; } pub type sigset_t = __sigset_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [ test ] fn bindgen_test_layout_timespec ( ) { assert_eq ! ( :: std :: mem :: size_of :: < timespec > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( timespec ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < timespec > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( timespec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timespec > ( ) ) ) . tv_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( timespec ) , "::" , stringify ! ( tv_sec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timespec > ( ) ) ) . tv_nsec as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( timespec ) , "::" , stringify ! ( tv_nsec ) ) ) ; } pub type __fd_mask = :: std :: os :: raw :: c_long ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_set { pub __fds_bits : [ __fd_mask ; 32usize ] , } # [ test ] fn bindgen_test_layout_fd_set ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_set > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( fd_set ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_set > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fd_set ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_set > ( ) ) ) . __fds_bits as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_set ) , "::" , stringify ! ( __fds_bits ) ) ) ; } pub type fd_mask = __fd_mask ; extern "C" { pub fn select ( __nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect ( __nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct timezone { pub tz_minuteswest : :: std :: os :: raw :: c_int , pub tz_dsttime : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_timezone ( ) { assert_eq ! ( :: std :: mem :: size_of :: < timezone > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( timezone ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < timezone > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( timezone ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timezone > ( ) ) ) . tz_minuteswest as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( timezone ) , "::" , stringify ! ( tz_minuteswest ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timezone > ( ) ) ) . tz_dsttime as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( timezone ) , "::" , stringify ! ( tz_dsttime ) ) ) ; } pub type __timezone_ptr_t = * mut timezone ; extern "C" { pub fn gettimeofday ( __tv : * mut timeval , __tz : __timezone_ptr_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn settimeofday ( __tv : * const timeval , __tz : * const timezone ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn adjtime ( __delta : * const timeval , __olddelta : * mut timeval ) -> :: std :: os :: raw :: c_int ; } pub const __itimer_which_ITIMER_REAL : __itimer_which = 0 ; pub const __itimer_which_ITIMER_VIRTUAL : __itimer_which = 1 ; pub const __itimer_which_ITIMER_PROF : __itimer_which = 2 ; pub type __itimer_which = i32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct itimerval { pub it_interval : timeval , pub it_value : timeval , } # [ test ] fn bindgen_test_layout_itimerval ( ) { assert_eq ! ( :: std :: mem :: size_of :: < itimerval > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( itimerval ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < itimerval > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( itimerval ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < itimerval > ( ) ) ) . it_interval as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( itimerval ) , "::" , stringify ! ( it_interval ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < itimerval > ( ) ) ) . it_value as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( itimerval ) , "::" , stringify ! ( it_value ) ) ) ; } pub type __itimer_which_t = :: std :: os :: raw :: c_int ; extern "C" { pub fn getitimer ( __which : __itimer_which_t , __value : * mut itimerval ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setitimer ( __which : __itimer_which_t , __new : * const itimerval , __old : * mut itimerval ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn utimes ( __file : * const :: std :: os :: raw :: c_char , __tvp : * const timeval ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lutimes ( __file : * const :: std :: os :: raw :: c_char , __tvp : * const timeval ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn futimes ( __fd : :: std :: os :: raw :: c_int , __tvp : * const timeval ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __locale_data { pub _address : u8 , }