The getmldadorn(2) system call gets the fully adorned path name for path_name. The fgetmldadorn(2) system call uses a file descriptor. Refer to the getmldadorn(2) man page.
int getmldadorn(const char *path_name, char *adorn_buf[MLD_ADORN_MAX]); int fgetmldadorn(const int fd, char adorn_buf[MLD_ADORN_MAX]);