I wrote this patch for the website after struggling with dir_readdir.
Hopefully this will help the next person who needs it (probably me in a few
months).
*Andrew Eggenberger*
---
hurd/interface/fs/19.mdwn | 26 ++
1 file changed, 26 insertions(+)
diff --git a/hurd/inte
In its example of reading from a file the kurdish way, the hurd hacking
guide mallocs a buffer an passes it to io_read. The program doesn't
call free() on the malloced buffer but when I add it it doesn't complain.
/* Read */
err = io_read (f, &buf, &amount, -1, amount);
if (err)
error (1