From: Howard Chu Date: Sat, 27 Jul 2002 00:26:27 +0000 (+0000) Subject: Moved slap_strcopy, slap_strncopy to lutil_strcopy, lutil_strncopy X-Git-Tag: NO_SLAP_OP_BLOCKS~1319 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a5f9219bfe960e0654f40b2de8e90d94b32acbc;p=openldap Moved slap_strcopy, slap_strncopy to lutil_strcopy, lutil_strncopy Added lutil_gentime --- diff --git a/include/lutil.h b/include/lutil.h index d8c9c8d6e7..ffe48c21fe 100644 --- a/include/lutil.h +++ b/include/lutil.h @@ -106,6 +106,15 @@ lutil_progname LDAP_P(( int argc, char *argv[] )); +LDAP_LUTIL_F( char* ) +lutil_strcopy LDAP_P(( char *dst, const char *src )); + +LDAP_LUTIL_F( char* ) +lutil_strncopy LDAP_P(( char *dst, const char *src, size_t n )); + +LDAP_LUTIL_F( size_t ) +lutil_gentime LDAP_P(( char *s, size_t max, const struct tm *tm )); + #ifndef HAVE_MKSTEMP LDAP_LUTIL_F( int ) mkstemp LDAP_P (( char * template )); @@ -145,6 +154,16 @@ LDAP_LUTIL_V (SERVICE_STATUS_HANDLE) hSLAPDServiceStatus; #endif /* HAVE_NT_SERVICE_MANAGER */ +#ifdef HAVE_EBCDIC +/* Generally this has only been used to put '\n' to stdout. We need to + * make sure it is output in EBCDIC. + */ +#undef putchar +#undef putc +#define putchar(c) putc((c), stdout) +#define putc(c,fp) do { char x=(c); __atoe_l(&x,1); putc(x,fp); } while(0) +#endif + LDAP_END_DECL #endif /* _LUTIL_H */