Lines Matching defs:de
286 struct dirent *de;
303 FOREACH_DIRENT(de, d, return -errno) {
307 if (!dirent_is_file(de))
310 s = hashmap_get(m->seats, de->d_name);
312 unlinkat(dirfd(d), de->d_name, 0);
326 struct dirent *de;
339 FOREACH_DIRENT(de, d, return -errno) {
342 if (!dirent_is_file(de))
345 k = manager_add_user_by_name(m, de->d_name, NULL);
347 log_notice_errno(k, "Couldn't add lingering user %s: %m", de->d_name);
357 struct dirent *de;
374 FOREACH_DIRENT(de, d, return -errno) {
377 if (!dirent_is_file(de))
380 k = manager_add_user_by_name(m, de->d_name, &u);
382 log_error_errno(k, "Failed to add user by file name %s: %m", de->d_name);
400 struct dirent *de;
414 FOREACH_DIRENT(de, d, return -errno) {
418 if (!dirent_is_file(de))
421 if (!session_id_valid(de->d_name)) {
422 log_warning("Invalid session file name '%s', ignoring.", de->d_name);
427 k = manager_add_session(m, de->d_name, &s);
429 log_error_errno(k, "Failed to add session by file name %s: %m", de->d_name);
447 struct dirent *de;
460 FOREACH_DIRENT(de, d, return -errno) {
464 if (!dirent_is_file(de))
467 k = manager_add_inhibitor(m, de->d_name, &i);
469 log_notice_errno(k, "Couldn't add inhibitor %s: %m", de->d_name);