Re: [PATCH] Explain how to access data returned from dir_readdir

2021-04-24 Thread Samuel Thibault
Andrew Eggenberger, le ven. 23 avril 2021 07:12:22 -0500, a ecrit: > I see your point. But this is more about the hurd-specific nature of > dir_readdir than the dirent struct. readdir in glibc returns one dirent at a > time, not something called an array that can’t be reliably treated as one. > Tha

Re: [PATCH] Explain how to access data returned from dir_readdir

2021-04-23 Thread Andrew Eggenberger
Hi Jess, This is a part of POSIX, the only Hurd-specific thing is the use of the > underlying RPC rather than the standard C function. I don’t see why we > should > document things that are universally true rather than Hurd-specific. If you > want to know how to use dirent then go read a POSIX man

Re: [PATCH] Explain how to access data returned from dir_readdir

2021-04-23 Thread Jessica Clarke
On 23 Apr 2021, at 04:13, Andrew Eggenberger wrote: > > 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). This is a part of POSIX, the only Hurd-specific thing is the use of the underl

[PATCH] Explain how to access data returned from dir_readdir

2021-04-22 Thread Andrew Eggenberger
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