in reply to failing to use getdents system call on Linux
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: failing to use getdents system call on Linux
by Corion (Patriarch) on Nov 06, 2016 at 19:45 UTC | |
by Anonymous Monk on Nov 06, 2016 at 19:59 UTC | |
by glasswalk3r (Friar) on Nov 07, 2016 at 19:07 UTC | |
by glasswalk3r (Friar) on Nov 07, 2016 at 18:54 UTC |