Home | History | Annotate | Download | only in drm-shim

Lines Matching refs:DIR

64 DIR *fake_dev_dri = (void *)&opendir_set;
311 /* Fool libdrm's probe of whether the /sys dir for this char dev is
345 /* Fool libdrm's probe of whether the /sys dir for this char dev is
413 /* Fool libdrm's probe of whether the /sys dir for this char dev is
446 /* Fool libdrm's probe of whether the /sys dir for this char dev is
503 PUBLIC DIR *
508 DIR *dir = real_opendir(name);
510 if (!dir) {
513 * mkdir("/dev/dri"). Return a fake DIR pointer for that.
515 dir = fake_dev_dri;
519 _mesa_set_add(opendir_set, dir);
523 return dir;
530 readdir(DIR *dir)
536 if (dir != fake_dev_dri)
537 ent = real_readdir(dir);
542 if (_mesa_set_search(opendir_set, dir)) {
546 _mesa_set_remove_key(opendir_set, dir);
558 readdir64(DIR *dir)
563 if (dir != fake_dev_dri)
564 ent = real_readdir64(dir);
569 if (_mesa_set_search(opendir_set, dir)) {
573 _mesa_set_remove_key(opendir_set, dir);
583 closedir(DIR *dir)
588 _mesa_set_remove_key(opendir_set, dir);
591 if (dir != fake_dev_dri)
592 return real_closedir(dir);