2 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
5 * Redistribution and use in source and binary forms are permitted only
6 * as authorized by the OpenLDAP Public License. A copy of this
7 * license is available at http://www.OpenLDAP.org/license.html or
8 * in file LICENSE in the top-level directory of the distribution.
11 * ldap-pvt.h - Header for ldap_pvt_ functions. These are meant to be used
12 * by the OpenLDAP distribution only.
18 struct hostent; /* avoid pulling in <netdb.h> */
20 extern char *ldap_pvt_strtok( char *str, const char *delim, char **pos );
21 extern char *ldap_pvt_ctime( const time_t *tp, char *buf );
22 extern int ldap_pvt_gethostbyname_a(
24 struct hostent *resbuf,
26 struct hostent **result,
28 extern int ldap_pvt_gethostbyaddr_a(
32 struct hostent *resbuf,
34 struct hostent **result,
36 extern void ldap_pvt_init_utils( void );