Lines Matching refs:dirname
59 isc_dir_open(isc_dir_t *dir, const char *dirname) {
64 REQUIRE(dirname != NULL);
70 if (strlen(dirname) + 3 > sizeof(dir->dirname))
73 strcpy(dir->dirname, dirname);
78 p = dir->dirname + strlen(dir->dirname);
79 if (dir->dirname < p && *(p - 1) != '/')
87 dir->handle = opendir(dirname);
156 isc_dir_chdir(const char *dirname) {
158 * \brief Change the current directory to 'dirname'.
161 REQUIRE(dirname != NULL);
163 if (chdir(dirname) < 0)
170 isc_dir_chroot(const char *dirname) {
172 REQUIRE(dirname != NULL);
175 if (chroot(dirname) < 0 || chdir("/") < 0)