[PD] Weird behavior of [moocow/bytes2any], or not?

IOhannes m zmölnig zmoelnig at iem.at
Thu Dec 24 22:52:02 CET 2015


On 12/24/2015 10:03 PM, Simon Iten wrote:
> another moocow question, if you don’t mind…
> 
> why does readdir on linux output filenames not in order? 16.* before 10.* for example?
> on osx and windows i get the expected behaviour.
> 

most likely because readdir(3) does not return the filenames in the
order you expect (the order might not be alphabetically but it might be
sorted by inode number; or creation date; or...).

to cut it short: readdir(3) doesn't guarantee *any* order.
if some filesystems return data in a given order, that is just by accident.

cf. http://stackoverflow.com/questions/8977441


gfamrds
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151224/b3bfdda5/attachment.sig>


More information about the Pd-list mailing list