From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lyndon Nerenberg Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Date: Fri, 7 Apr 2017 21:06:57 -0700 References: <167A2E66-33F8-4909-8FDB-06F92E930D8B@gmail.com> <795C88A6-B6FE-4B29-AD74-50A0E4D80D97@orthanc.ca> <6C339BCD-FF90-4C03-9AC9-D4098E63EDD8@gmail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: <6C339BCD-FF90-4C03-9AC9-D4098E63EDD8@gmail.com> Message-Id: <789A602E-FC47-40AE-96F4-64E2D2A5B375@orthanc.ca> Subject: Re: [9fans] p9p: 9 ls /dev Topicbox-Message-UUID: b9696a9a-ead9-11e9-9d60-3106f5b1d025 > On Apr 7, 2017, at 6:18 PM, arisawa wrote: >=20 > the problem comes from getdirentries() used in = $P9P/src/lib9/dirread.c, I think. >=20 > 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. Present on the BSDs, and a few other = systems. > Use opendir(3) and readdir(3) instead. The fix should be simple enough. --lyndon