From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) From: arisawa In-Reply-To: <795C88A6-B6FE-4B29-AD74-50A0E4D80D97@orthanc.ca> Date: Sat, 8 Apr 2017 10:18:17 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <6C339BCD-FF90-4C03-9AC9-D4098E63EDD8@gmail.com> References: <167A2E66-33F8-4909-8FDB-06F92E930D8B@gmail.com> <795C88A6-B6FE-4B29-AD74-50A0E4D80D97@orthanc.ca> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] p9p: 9 ls /dev Topicbox-Message-UUID: b9653fe2-ead9-11e9-9d60-3106f5b1d025 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 deprecated, and it is = recommended that applications use readdir(3) rather than using getdirentries() = directly. Due to limitations with the system call, getdirentries() will not work = with 64-bit inodes; in order to use getdirentries(), _DARWIN_NO_64_BIT_INODE = must be defined. See stat(2) for more information on = _DARWIN_NO_64_BIT_INODE and its other effects. > 2017/04/07 10:18=E3=80=81Lyndon Nerenberg = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=EF=BC=9A >=20 >=20 >> On Apr 6, 2017, at 5:49 AM, arisawa wrote: >>=20 >> 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. >=20 > It also hangs on my 10.12.4 system. Mind you, I haven't = updated/rebuilt P9P on this machine is a long time ... >=20 >=20