Lines Matching defs:units
60 /* All-inclusive valid size units */
228 * <value><units>, where valid <units> are specified by
229 * the units argument and <value> is the (floating-point)
230 * multiplier of the units
247 units_t units[])
265 /* Convert to bytes based on <units> */
266 for (i = 0; units[i].unit_str != NULL; i++) {
267 if (strcasecmp(unit_str, units[i].unit_str) == 0) {
268 d *= units[i].bytes_per_unit;
274 if (units[i].unit_str == NULL) {
276 gettext("missing or invalid units indicator in size: %s"),
301 * <value><units>, where valid <units> are specified by
302 * the units argument and <value> is the (floating-point)
303 * multiplier of the units. This string must be freed.
316 units_t units[],
322 units_t use_units = units[0];
324 /* Determine the units to use */
325 for (i = 0; units[i].unit_str != NULL; i++) {
326 if (bytes >= units[i].bytes_per_unit) {
327 use_units = units[i];
343 /* Append units to string */