1 /* vi: set sw=4 ts=4: */
3 * wrapper for opendir()
5 * Copyright (C) 2006 Bernhard Fischer <busybox@busybox.net>
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 #include <sys/types.h>
15 DIR *bb_opendir(const char *path)
19 if ((dp = opendir(path)) == NULL) {
20 bb_perror_msg("unable to open `%s'", path);
28 DIR *bb_xopendir(const char *path)
32 if ((dp = opendir(path)) == NULL) {
33 bb_perror_msg_and_die("unable to open `%s'", path);