Lines Matching refs:line
126 char *line; in read_lines() local
127 for (line = strtok(buf, "\n"); in read_lines()
128 line != NULL && num < stats_count; in read_lines()
129 line = strtok(NULL, "\n")) { in read_lines()
133 while (isspace(*line)) ++line; in read_lines()
135 while (isgraph(*line)) ++line; in read_lines()
136 while (isspace(*line)) ++line; in read_lines()
139 char *name_end = strchr(line, delimiter); in read_lines()
144 data->name = malloc(filename_len + 1 + (name_end - line) + 1); in read_lines()
147 unspace(data->name + filename_len + 1, line, name_end - line); in read_lines()
148 data->name[filename_len + 1 + (name_end - line)] = '\0'; in read_lines()
175 char *line, *device = NULL; in read_proc_yaffs() local
176 for (line = strtok(buf, "\n"); in read_proc_yaffs()
177 line != NULL && num < stats_count; in read_proc_yaffs()
178 line = strtok(NULL, "\n")) { in read_proc_yaffs()
179 if (strncmp(line, "Device ", 7) == 0) { in read_proc_yaffs()
180 device = strchr(line, '"'); in read_proc_yaffs()
190 char *name_end = line + strcspn(line, " ."); in read_proc_yaffs()
191 if (name_end == line || *name_end == '\0') continue; in read_proc_yaffs()
194 data->name = malloc(12 + device_len + 1 + (name_end - line) + 1); in read_proc_yaffs()
198 unspace(data->name + 12 + device_len + 1, line, name_end - line); in read_proc_yaffs()
199 data->name[12 + device_len + 1 + (name_end - line)] = '\0'; in read_proc_yaffs()