no1wudi commented on PR #13556:
URL: https://github.com/apache/nuttx/pull/13556#issuecomment-2370409438

   
   > wrt rust, depending on how serious your port is, you might need to 
consider emulating the inode number by yourself. (not only d_ino, but also 
st_ino.) otoh, maybe the least invasive thing is to patch your rust port to 
provide 0 by itself, rather than modifying nuttx.
   
   Maybe not 0 but panic if user try to use it for now on NuttX, Rust std allow 
some unsupported features if platform don't support it.
   
   > 
   > FYI, wasi-libc tries to emulate d_ino by itself for similar reasons. 
(well, another motivation there is windows support) 
https://github.com/WebAssembly/wasi-libc/blob/7d4d3b83fc66c79b3faa5989e67ed2d1042dacaf/libc-bottom-half/cloudlibc/src/libc/dirent/readdir.c#L87-L110
   
   Thanks for your information, I guess it should be emulated in NuttX side as 
your comments above instead of Rust side.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to