3 * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
10 #include <ac/string.h>
17 #include <ldap_defaults.h>
19 char* lutil_progname( const char* name, int argc, char *argv[] )
24 return ber_strdup( name );
27 progname = strrchr ( argv[0], *LDAP_DIRSEP );
28 progname = ber_strdup( progname ? &progname[1] : argv[0] );
34 int mkstemp( char * template )
36 return open ( mktemp ( template ), O_RDWR|O_CREAT|O_EXCL, 0600 );