/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1997, 1998
* Sleepycat Software. All rights reserved.
*/
#include "config.h"
#ifndef lint
#endif /* not lint */
#ifndef NO_SYSTEM_INCLUDES
#if HAVE_DIRENT_H
# include <dirent.h>
#else
# if HAVE_SYS_NDIR_H
# endif
# if HAVE_SYS_DIR_H
# endif
# if HAVE_NDIR_H
# include <ndir.h>
# endif
#endif
#include <errno.h>
#endif
#include "db_int.h"
#include "os_jump.h"
/*
* __os_dirlist --
* Return a list of the files in a directory.
*
* PUBLIC: int __os_dirlist __P((const char *, char ***, int *));
*/
int
const char *dir;
char ***namesp;
int *cntp;
{
char **names;
return (errno);
arraysz += 100;
goto nomem;
}
goto nomem;
}
return (0);
return (ret);
}
/*
* __os_dirfree --
* Free the list of files.
*
* PUBLIC: void __os_dirfree __P((char **, int));
*/
void
char **names;
int cnt;
{
while (cnt > 0)
}