Home | History | Annotate | Download | only in util

Lines Matching defs:dent

313 	struct dirent *dent;
324 while ((dent = readdir(dir))) {
325 if (dent->d_type != DT_DIR ||
326 strcmp(dent->d_name, ".") == 0 ||
327 strcmp(dent->d_name, "..") == 0 ||
328 !name_in_tp_list(dent->d_name, tps))
330 format = malloc_or_die(strlen(sys) + strlen(dent->d_name) + 10);
331 sprintf(format, "%s/%s/format", sys, dent->d_name);
342 while ((dent = readdir(dir))) {
343 if (dent->d_type != DT_DIR ||
344 strcmp(dent->d_name, ".") == 0 ||
345 strcmp(dent->d_name, "..") == 0 ||
346 !name_in_tp_list(dent->d_name, tps))
348 format = malloc_or_die(strlen(sys) + strlen(dent->d_name) + 10);
349 sprintf(format, "%s/%s/format", sys, dent->d_name);
390 struct dirent *dent;
404 while ((dent = readdir(dir))) {
405 if (dent->d_type != DT_DIR ||
406 strcmp(dent->d_name, ".") == 0 ||
407 strcmp(dent->d_name, "..") == 0 ||
408 strcmp(dent->d_name, "ftrace") == 0 ||
409 !system_in_tp_list(dent->d_name, tps))
417 while ((dent = readdir(dir))) {
418 if (dent->d_type != DT_DIR ||
419 strcmp(dent->d_name, ".") == 0 ||
420 strcmp(dent->d_name, "..") == 0 ||
421 strcmp(dent->d_name, "ftrace") == 0 ||
422 !system_in_tp_list(dent->d_name, tps))
424 sys = malloc_or_die(strlen(path) + strlen(dent->d_name) + 2);
425 sprintf(sys, "%s/%s", path, dent->d_name);
428 write_or_die(dent->d_name, strlen(dent->d_name) + 1);