Hi Chris,

> +     lseek(engines, 0, SEEK_SET);
> +     while ((len = syscall(SYS_getdents64, engines, buf, sizeof(buf))) > 0) {
> +             void *ptr = buf;
> +
> +             while (len) {
> +                     struct linux_dirent64 {
> +                             ino64_t        d_ino;
> +                             off64_t        d_off;
> +                             unsigned short d_reclen;
> +                             unsigned char  d_type;
> +                             char           d_name[];
> +                     } *de = ptr;

it's unfortunate to be in the situation of doing this, But I
don't see better alternative, it needs to be fixed in the
glibc :(

Reviewed-by: Andi Shyti <andi.sh...@intel.com>

Thanks,
Andi
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to