Page 1 of 1
Missing function implementations: fstatat, openat, readlinkat, fdopendir, getpwuid_r, getgrgid_r
Posted: Fri Sep 28, 2018 1:38 am
by marjonz
Is there a way to get the actual implementations of these function into the ESP library? I'm stumped.
Re: Missing function implementations: fstatat, openat, readlinkat, fdopendir, getpwuid_r, getgrgid_r
Posted: Fri Sep 28, 2018 1:55 am
by ESP_Sprite
A fair amount of these things don't make sense in esp-idf context: we don't have PID/UIDs and as far as I am aware no filesystem we support handles symlinks. For the rest: as far as I can see, they're convenience functions and you should be able to write wrappers for them.
Re: Missing function implementations: fstatat, openat, readlinkat, fdopendir, getpwuid_r, getgrgid_r
Posted: Fri Sep 28, 2018 3:02 am
by marjonz
Add getpwuid() to that list. pwd.h says it has an implementation, but during compile, it cannot like to the function implementation.
Re: Missing function implementations: fstatat, openat, readlinkat, fdopendir, getpwuid_r, getgrgid_r
Posted: Fri Sep 28, 2018 3:04 am
by marjonz
@ESP_Sprite thanks for the reply. That's exactly what I am doing at the moment. I am trying to write the wrappers for some of the missing functions.