Lines Matching defs:read_int_at
32 static int read_int_at(int dirfd, char *name)
65 if ((cap = read_int_at(dfd, "capacity")) < 0) {
66 if ((max = read_int_at(dfd, "charge_full")) > 0)
67 curr = read_int_at(dfd, "charge_now");
68 else if ((max = read_int_at(dfd, "energy_full")) > 0)
69 curr = read_int_at(dfd, "energy_now");
75 if ((on = read_int_at(dfd, "online")) >= 0)
95 if ((0 < (temp = read_int_at(dfd, "temp"))) || !errno) {
123 cur=read_int_at(dfd, "cur_state");
124 max=read_int_at(dfd, "max_state");