#include "portable.h"
#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/socket.h>
+
+#include <ac/socket.h>
+#include <ac/string.h>
+
#include "slap.h"
#include "back-ldbm.h"
+void
ldbm_back_config(
Backend *be,
char *fname,
fname, lineno );
exit( 1 );
}
- li->li_directory = strdup( argv[1] );
+ li->li_directory = ch_strdup( argv[1] );
/* mode with which to create new database files */
} else if ( strcasecmp( argv[0], "mode" ) == 0 ) {
}
li->li_dbcachesize = atoi( argv[1] );
- /* flush on writes */
- } else if ( strcasecmp( argv[0], "flushwrites" ) == 0 ) {
- li->li_flush_wrt = 1;
+ /* no write sync */
+ } else if ( strcasecmp( argv[0], "dbcachenowsync" ) == 0 ) {
+ li->li_dbcachewsync = 0;
/* anything else */
} else {