Lines Matching defs:eq

1398         const char *eq, *field;
1404 eq = strchr(assignment, '=');
1405 if (!eq) {
1414 field = strndupa(assignment, eq - assignment);
1415 eq ++;
1419 if (isempty(eq))
1421 else if (endswith(eq, "%")) {
1424 if (sscanf(eq, "%lf%%", &percent) != 1 || percent <= 0) {
1425 log_error("CPU quota '%s' invalid.", eq);
1440 eq[0] == '-' ? eq + 1 : eq,
1441 eq[0] == '-');
1448 r = parse_sec(eq, &t);
1450 return log_error_errno(r, "Failed to parse %s= parameter: %s", field, eq);
1472 r = rlimit_parse(rl, eq, &l);
1474 return log_error_errno(r, "Failed to parse resource limit: %s", eq);
1498 r = parse_boolean(eq);
1507 if (isempty(eq) || streq(eq, "infinity"))
1510 r = parse_size(eq, 1024, &bytes);
1522 if (isempty(eq) || streq(eq, "infinity"))
1525 r = safe_atou64(eq, &n);
1537 r = cg_cpu_shares_parse(eq, &u);
1539 log_error("Failed to parse %s value %s.", field, eq);
1548 r = cg_cpu_shares_parse(eq, &u);
1550 log_error("Failed to parse %s value %s.", field, eq);
1563 r = sd_bus_message_append(m, "v", "s", eq);
1568 level = log_level_from_string(eq);
1570 log_error("Failed to parse %s value %s.", field, eq);
1579 facility = log_facility_unshifted_from_string(eq);
1581 log_error("Failed to parse %s value %s.", field, eq);
1589 if (isempty(eq))
1594 e = strchr(eq, ' ');
1596 path = strndupa(eq, e - eq);
1599 path = eq;
1613 if (isempty(eq))
1619 e = strchr(eq, ' ');
1621 path = strndupa(eq, e - eq);
1624 log_error("Failed to parse %s value %s.", field, eq);
1644 if (isempty(eq))
1650 e = strchr(eq, ' ');
1652 path = strndupa(eq, e - eq);
1655 log_error("Failed to parse %s value %s.", field, eq);
1675 r = safe_atoi32(eq, &i);
1677 log_error("Failed to parse %s value %s.", field, eq);
1694 p = eq;
1701 log_error("Failed to parse Environment value %s", eq);
1733 sig = signal_from_string_try_harder(eq);
1735 log_error("Failed to parse %s value %s.", field, eq);
1744 r = parse_nsec(eq, &n);
1746 log_error("Failed to parse %s value %s", field, eq);
1754 r = safe_atoi(eq, &oa);
1756 log_error("Failed to parse %s value %s", field, eq);
1777 p = eq;
1785 log_error("Failed to parse %s value %s", field, eq);
1792 log_error("Failed to parse %s value %s", field, eq);
1798 log_error("Failed to parse %s value %s", field, eq);
1826 p = eq;
1833 return log_error_errno(r, "Failed to parse %s value %s", field, eq);