Lines Matching refs:dir
204 static int clean_posix_shm_internal(DIR *dir, uid_t uid) {
208 assert(dir);
210 FOREACH_DIRENT(de, dir, goto fail) {
216 if (fstatat(dirfd(dir), de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) {
231 kid = xopendirat(dirfd(dir), de->d_name, O_NOFOLLOW|O_NOATIME);
243 if (unlinkat(dirfd(dir), de->d_name, AT_REMOVEDIR) < 0) {
253 if (unlinkat(dirfd(dir), de->d_name, 0) < 0) {
272 _cleanup_closedir_ DIR *dir = NULL;
274 dir = opendir("/dev/shm");
275 if (!dir) {
282 return clean_posix_shm_internal(dir, uid);
286 _cleanup_closedir_ DIR *dir = NULL;
290 dir = opendir("/dev/mqueue");
291 if (!dir) {
298 FOREACH_DIRENT(de, dir, goto fail) {
305 if (fstatat(dirfd(dir), de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) {