Lines Matching refs:item
389 Item *item = j->items + n; in find_glob() local
391 if (fnmatch(item->path, match, FNM_PATHNAME|FNM_PERIOD) == 0) in find_glob()
392 return item; in find_glob()
1048 static int parse_acls_from_arg(Item *item) { in parse_acls_from_arg() argument
1052 assert(item); in parse_acls_from_arg()
1057 … r = parse_acl(item->argument, &item->acl_access, &item->acl_default, !item->append_or_force); in parse_acls_from_arg()
1059 log_warning_errno(r, "Failed to parse ACL \"%s\": %m. Ignoring", item->argument); in parse_acls_from_arg()
1117 static int fd_set_acls(Item *item, int fd, const char *path, const struct stat *st) { in fd_set_acls() argument
1122 assert(item); in fd_set_acls()
1142 if (item->acl_access) in fd_set_acls()
1143 …r = path_set_acl(FORMAT_PROC_FD_PATH(fd), path, ACL_TYPE_ACCESS, item->acl_access, item->append_or… in fd_set_acls()
1146 if (r == 0 && item->acl_default && S_ISDIR(st->st_mode)) in fd_set_acls()
1147 … = path_set_acl(FORMAT_PROC_FD_PATH(fd), path, ACL_TYPE_DEFAULT, item->acl_default, item->append_o… in fd_set_acls()
1167 static int path_set_acls(Item *item, const char *path) { in path_set_acls() argument
1172 assert(item); in path_set_acls()
1179 r = fd_set_acls(item, fd, path, NULL); in path_set_acls()
1184 static int parse_attribute_from_arg(Item *item) { in parse_attribute_from_arg() argument
1216 assert(item); in parse_attribute_from_arg()
1218 p = item->argument; in parse_attribute_from_arg()
1235 item->path); in parse_attribute_from_arg()
1247 *p, item->path); in parse_attribute_from_arg()
1261 item->attribute_mask = mask; in parse_attribute_from_arg()
1262 item->attribute_value = value; in parse_attribute_from_arg()
1263 item->attribute_set = true; in parse_attribute_from_arg()
1268 static int fd_set_attribute(Item *item, int fd, const char *path, const struct stat *st) { in fd_set_attribute() argument
1274 assert(item); in fd_set_attribute()
1278 if (!item->attribute_set || item->attribute_mask == 0) in fd_set_attribute()
1295 f = item->attribute_value & item->attribute_mask; in fd_set_attribute()
1306 …r = chattr_full(NULL, procfs_fd, f, item->attribute_mask, &previous, ¤t, CHATTR_FALLBACK_BIT… in fd_set_attribute()
1310 … path, previous, current, (previous & ~item->attribute_mask) | (f & item->attribute_mask)); in fd_set_attribute()
1314 path, item->attribute_value, item->attribute_mask); in fd_set_attribute()
1319 static int path_set_attribute(Item *item, const char *path) { in path_set_attribute() argument
1322 if (!item->attribute_set || item->attribute_mask == 0) in path_set_attribute()
1329 return fd_set_attribute(item, fd, path, NULL); in path_set_attribute()
2847 static int parse_age_by_from_arg(const char *age_by_str, Item *item) { in parse_age_by_from_arg() argument
2861 assert(item); in parse_age_by_from_arg()
2893 item->age_by_file = ab_f > 0 ? ab_f : AGE_BY_DEFAULT_FILE; in parse_age_by_from_arg()
2894 item->age_by_dir = ab_d > 0 ? ab_d : AGE_BY_DEFAULT_DIR; in parse_age_by_from_arg()