C code has the loop condition (bpos < nread); perl variant hasn't got one. The syscall() does not truncate $buf, you'll have to do it yourself to avoid running into zero records.
In reply to Re: failing to use getdents system call on Linux
by Anonymous Monk
in thread failing to use getdents system call on Linux
by glasswalk3r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |