• Home
  • Raw
  • Download

Lines Matching refs:NULL

77         data->value = NULL;  in read_data()
85 data->value = NULL; in read_data()
119 if (terminator != NULL) { in read_lines()
121 if (end != NULL) *end = '\0'; in read_lines()
128 line != NULL && num < stats_count; in read_lines()
129 line = strtok(NULL, "\n")) { in read_lines()
140 if (name_end == NULL) continue; in read_lines()
175 char *line, *device = NULL; in read_proc_yaffs()
177 line != NULL && num < stats_count; in read_proc_yaffs()
178 line = strtok(NULL, "\n")) { in read_proc_yaffs()
181 if (device != NULL) { in read_proc_yaffs()
183 if (end != NULL) *end = '\0'; in read_proc_yaffs()
188 if (device == NULL) continue; in read_proc_yaffs()
226 if (proc_dir == NULL) { in read_stats()
297 next += read_lines("/proc/net/dev", ':', NULL, 0, next, end - next); in read_stats()
298 next += read_lines("/proc/stat", ' ', NULL, 0, next, end - next); in read_stats()
300 next += read_lines("/proc/diskstats", ' ', NULL, 2, next, end - next); in read_stats()
303 ' ', NULL, 0, next, end - next); in read_stats()
306 next->name = NULL; in read_stats()
307 next->value = NULL; in read_stats()
314 while (old_stats->name != NULL || new_stats->name != NULL) { in diff_stats()
316 if (old_stats->name == NULL) { in diff_stats()
318 } else if (new_stats->name == NULL) { in diff_stats()
326 if (old_stats->value != NULL) { in diff_stats()
332 if (new_stats->value != NULL) { in diff_stats()
338 if (new_stats->value == NULL) { in diff_stats()
339 if (old_stats->value != NULL) { in diff_stats()
342 } else if (old_stats->value == NULL) { in diff_stats()
356 for (i = 0; stats[i].name != NULL; ++i) { in free_stats()
386 old_stats->name = NULL; in main()
387 old_stats->value = NULL; in main()
390 gettimeofday(&before, NULL); in main()
397 gettimeofday(&after, NULL); in main()