3 * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
10 #include <ac/string.h>
11 #include <ac/unistd.h>
21 #include <ldap_defaults.h>
23 char* lutil_progname( const char* name, int argc, char *argv[] )
28 return ber_strdup( name );
31 progname = strrchr ( argv[0], *LDAP_DIRSEP );
32 progname = ber_strdup( progname ? &progname[1] : argv[0] );
38 int mkstemp( char * template )
41 return open ( mktemp ( template ), O_RDWR|O_CREAT|O_EXCL, 0600 );