You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I need to use hostname_max and the function gethostname for xtensa-esp32s3-espidf but they're not supported for this target.
Can anyone give me any suggestion or help?
Thanks
I'm interested in picking this up. As far as I can tell, libc doesn't currently support that target - support for it in rust was merged as Tier 3 here: rust-lang/rust#126380. Is there a guide/policy for adding target support to the libc crate?
There is no written guide for this target specifically that i am aware off. Though the target ( and all other -espidf targets ) are using a version of newlib that is directly integrated in the underlying esp-idf system. Depending on the version of the esp chip there are parts of this newlib library directly inside the ROM.
Here you can find the in tree version of newlib that is used in ESP_IDF version 5.2.2.
What actually lives inside the ROM's is tracked inside this repository
We have one outstanding PR that does a bit of cleanup inside libc with respect to correct constants. There you see for example how the rust libc site and the esp_idf site can be checked against each other.
If you have any target specific questions all the maintainers are also available in our esp-rs matrix channel found here
Activity
tgross35 commentedon Aug 15, 2024
PRs are welcome here! Take a look at https://github.com/rust-lang/libc/blob/1ffe0bde929a43ce3d25a8f08b9f95bde8d3e5d8/CONTRIBUTING.md, it should be pretty easy to add the API on those platforms.
Laura7089 commentedon Sep 18, 2024
I'm interested in picking this up. As far as I can tell,
libcdoesn't currently support that target - support for it in rust was merged as Tier 3 here: rust-lang/rust#126380. Is there a guide/policy for adding target support to thelibccrate?Vollbrecht commentedon Sep 18, 2024
There is no written guide for this target specifically that i am aware off. Though the target ( and all other
-espidftargets ) are using a version ofnewlibthat is directly integrated in the underlying esp-idf system. Depending on the version of theesp chipthere are parts of this newlib library directly inside the ROM.Here you can find the in tree version of newlib that is used in ESP_IDF version 5.2.2.
What actually lives inside the ROM's is tracked inside this repository
We have one outstanding PR that does a bit of cleanup inside libc with respect to correct constants. There you see for example how the rust libc site and the esp_idf site can be checked against each other.
If you have any target specific questions all the maintainers are also available in our
esp-rsmatrix channel found here