mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-19 02:28:47 -05:00
Add buf size macros
This commit is contained in:
parent
053a3e89de
commit
97ebcd93e6
1 changed files with 6 additions and 0 deletions
|
|
@ -120,6 +120,8 @@ lutil_strncopy LDAP_P(( char *dst, const char *src, size_t n ));
|
|||
|
||||
struct tm;
|
||||
|
||||
/* use this macro to statically allocate buffer for lutil_gentime */
|
||||
#define LDAP_LUTIL_GENTIME_BUFSIZE 22
|
||||
LDAP_LUTIL_F( size_t )
|
||||
lutil_gentime LDAP_P(( char *s, size_t max, const struct tm *tm ));
|
||||
|
||||
|
|
@ -133,10 +135,14 @@ LDAP_LUTIL_F( int )
|
|||
lutil_pair( ber_socket_t sd[2] );
|
||||
|
||||
/* uuid.c */
|
||||
/* use this macro to allocate buffer for lutil_uuidstr */
|
||||
#define LDAP_LUTIL_UUIDSTR_BUFSIZE 40
|
||||
LDAP_LUTIL_F( size_t )
|
||||
lutil_uuidstr( char *buf, size_t len );
|
||||
|
||||
/* csn.c */
|
||||
/* use this macro to allocate buffer for lutil_csnstr */
|
||||
#define LDAP_LUTIL_CSNSTR_BUFSIZE 64
|
||||
LDAP_LUTIL_F( size_t )
|
||||
lutil_csnstr( char *buf, size_t len, unsigned int replica, unsigned int mod );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue