Searched defs:dirp (Results 1 - 10 of 10) sorted by relevance

/dovecot/src/lib/
H A Dunlink-old-files.c17 DIR *dirp; local
23 dirp = opendir(dir);
24 if (dirp == NULL) {
40 while ((d = readdir(dirp)) != NULL) {
60 if (closedir(dirp) < 0)
H A Dunlink-directory.c68 DIR *dirp; local
128 dirp = opendir(".");
129 if (dirp == NULL) {
138 d = readdir(dirp);
221 if (closedir(dirp) < 0)
H A Dmodule-dir.c379 DIR *dirp; local
398 dirp = opendir(dir);
399 if (dirp == NULL) {
413 for (errno = 0; (d = readdir(dirp)) != NULL; errno = 0) {
432 if (closedir(dirp) < 0 && *error_r == NULL)
/dovecot/src/plugins/quota/
H A Dquota-dirsize.c51 DIR *dirp; local
58 dirp = opendir(dir);
59 if (dirp == NULL) {
73 while ((d = readdir(dirp)) != NULL) {
101 (void)closedir(dirp);
H A Dquota-maildir.c59 DIR *dirp; local
67 dirp = opendir(dir);
68 if (dirp == NULL) {
80 while ((dp = readdir(dirp)) != NULL) {
117 if (closedir(dirp) < 0) {
/dovecot/src/lib-storage/list/
H A Dmailbox-list-maildir-iter.c373 DIR *dirp; local
378 dirp = opendir(ctx->dir);
379 if (dirp == NULL) {
391 while ((d = readdir(dirp)) != NULL) {
400 if (closedir(dirp) < 0) {
/dovecot/src/master/
H A Dmaster-settings.c691 DIR *dirp; local
697 dirp = opendir(path);
698 if (dirp == NULL) {
705 while ((dp = readdir(dirp)) != NULL) {
738 (void)closedir(dirp);
/dovecot/src/lib-storage/index/maildir/
H A Dmaildir-sync.c405 DIR *dirp; local
417 dirp = opendir(path);
418 if (dirp != NULL)
438 if (fstat(dirfd(dirp), &st) < 0) {
441 (void)closedir(dirp);
446 (void)closedir(dirp);
470 for (; (dp = readdir(dirp)) != NULL; errno = 0) {
557 if (closedir(dirp) < 0) {
/dovecot/src/lib-smtp/
H A Dtest-smtp-payload.c49 DIR *dirp; local
52 if ((dirp = opendir(path)) == NULL) {
69 if ((dp=readdir(dirp)) == NULL)
91 if (closedir(dirp) < 0)
/dovecot/src/lib-http/
H A Dtest-http-payload.c68 DIR *dirp; local
71 if ((dirp = opendir(path)) == NULL) {
85 if ((dp=readdir(dirp)) == NULL)
107 if (closedir(dirp) < 0)

Completed in 37 milliseconds