Home
last modified time | relevance | path

Searched refs:dfd (Results 1 – 6 of 6) sorted by relevance

/lighttpd1.4/src/
H A Dfdevent.c204 int dfd; in fdevent_open_dirname() local
210 dfd = fdevent_open_cloexec(dname, symlinks, flags, 0); in fdevent_open_dirname()
212 return dfd; in fdevent_open_dirname()
420 …ork_execve(const char *name, char *argv[], char *envp[], int fdin, int fdout, int fderr, int dfd) { in fdevent_fork_execve() argument
428 if (-1 != dfd) { in fdevent_fork_execve()
429 if (0 != fchdir(dfd)) in fdevent_fork_execve()
431 close(dfd); in fdevent_fork_execve()
471 UNUSED(dfd); in fdevent_fork_execve()
H A Dmod_dirlisting.c125 int dfd; /*(dirfd() owned by (DIR *))*/ member
1005 hctx->dfd = -1; in http_open_directory()
1008 hctx->dfd = fdevent_open_dirname(hctx->path, r->conf.follow_symlink); in http_open_directory()
1009 hctx->dp = (hctx->dfd >= 0) ? fdopendir(hctx->dfd) : NULL; in http_open_directory()
1013 if (hctx->dfd >= 0) { in http_open_directory()
1014 close(hctx->dfd); in http_open_directory()
1015 hctx->dfd = -1; in http_open_directory()
1083 if (0 != fstatat(p->dfd, d_name, &st, 0)) in http_read_directory()
H A Dmod_cgi.c906 int dfd = fdevent_open_dirname(r->physical.path.ptr,r->conf.follow_symlink); in cgi_create_env() local
907 if (-1 == dfd) { in cgi_create_env()
912 pid_t pid = (dfd >= 0) in cgi_create_env()
914 to_cgi_fds[0], from_cgi_fds[1], serrh_fd, dfd) in cgi_create_env()
925 if (-1 != dfd) close(dfd); in cgi_create_env()
937 if (-1 != dfd) close(dfd); in cgi_create_env()
H A Dmod_webdav.c2466 if (0 == unlinkat(dfd, d_name, 0)) { in webdav_unlinkat()
2505 const int dfd = -1; in webdav_delete_dir() local
2509 DIR * const dir = (dfd >= 0) ? fdopendir(dfd) : NULL; in webdav_delete_dir()
2512 if (dfd >= 0) close(dfd); in webdav_delete_dir()
3098 int dfd; in webdav_copymove_dir() local
3211 dfd = -1; in webdav_copymove_dir()
3215 DIR * const srcdir = (dfd >= 0) ? fdopendir(dfd) : NULL; in webdav_copymove_dir()
3218 if (dfd >= 0) close(dfd); in webdav_copymove_dir()
3745 const int dfd = -1; in webdav_propfind_dir() local
3749 DIR * const dir = (dfd >= 0) ? fdopendir(dfd) : NULL; in webdav_propfind_dir()
[all …]
H A Dfdevent.h101 …fork_execve(const char *name, char *argv[], char *envp[], int fdin, int fdout, int fderr, int dfd);
H A Dgw_backend.c603 int dfd = fdevent_open_dirname(host->args.ptr[0], 1);/*permit symlinks*/ in gw_spawn_connection() local
604 if (-1 == dfd) { in gw_spawn_connection()
610 proc->pid = (dfd >= 0) in gw_spawn_connection()
612 env.ptr, gw_fd, -1, -1, dfd) in gw_spawn_connection()
617 if (-1 != dfd) close(dfd); in gw_spawn_connection()