> On Apr 6, 2017, at 5:49 AM, arisawa wrote:
>
> on my system (on osx(10.10 and 10.11) with plan9port-20140306 (latest port
> from russ))
> the next command fails. that is,
> 9 ls /dev
> does not return to shell.
It also hangs on my 10.12.4 system. Mind you, I haven't updated/rebuilt P9P on
thanks for response.
the problem comes from getdirentries() used in $P9P/src/lib9/dirread.c, I think.
man getdirentries(2) of OSX says:
NOTES
getdirentries() should rarely be used directly; instead, opendir(3) and
readdir(3) should be used.
As of Mac OS X 10.6, getdirentries() is
> On Apr 7, 2017, at 6:18 PM, arisawa wrote:
>
> the problem comes from getdirentries() used in $P9P/src/lib9/dirread.c, I
> think.
>
> man getdirentries(2) of OSX says:
And, dare I quote a Linux manpage, but getdirentries(3) there says:
> CONFORMING TO
>Not in POSIX.1-2001. Pres
but how to?
unix doesn’t have something like fdreaddir(int fd).
my guess: russ unwillingly used a low level function such as
int getdirentries(int fd, char *buf, int nbytes, long *basep).
readdirall() might be OK in regular usage.
> 2017/04/08 13:06、Lyndon Nerenberg のメール:
>
>
>> On Apr 7, 20
On Sat, 8 Apr 2017 15:21:47 +0900, arisawa wrote:
> but how to?
>
> unix doesn’t have something like fdreaddir(int fd).
> my guess: russ unwillingly used a low level function such as
> int getdirentries(int fd, char *buf, int nbytes, long *basep).
>
> readdirall() might be OK in regular usage.