Lines Matching defs:entry
44 struct dirent *entry;
74 FOREACH_DIRENT(entry, dir, return 0) {
78 if (!dirent_is_file(entry))
81 fd = openat(dfd, entry->d_name, O_RDONLY|O_CLOEXEC);
85 log_warning_errno(errno, "Failed to open '%s': %m", entry->d_name);
94 log_error_errno(errno, "Failed to open '%s': %m", entry->d_name);
101 entry->d_name)) {
111 log_error_errno(errno, "Failed to parse rule '%s' in '%s', ignoring.", buf, entry->d_name);
119 buf, isempty(acc2) ? "/sys/fs/smackfs/load2" : "/sys/fs/smackfs/change-rule", entry->d_name);
130 struct dirent *entry;
153 FOREACH_DIRENT(entry, dir, return 0) {
157 if (!dirent_is_file(entry))
160 fd = openat(dfd, entry->d_name, O_RDONLY|O_CLOEXEC);
164 log_error_errno(errno, "Failed to open '%s': %m", entry->d_name);
173 log_error_errno(errno, "Failed to open '%s': %m", entry->d_name);
180 entry->d_name)) {
189 buf, entry->d_name);
201 struct dirent *entry;
224 FOREACH_DIRENT(entry, dir, return 0) {
228 fd = openat(dfd, entry->d_name, O_RDONLY|O_CLOEXEC);
232 log_warning_errno(errno, "Failed to open %s: %m", entry->d_name);
241 log_error_errno(errno, "Failed to open %s: %m", entry->d_name);
248 entry->d_name)) {