These routines take the path name supplied in path_name, expand all symbolic links, resolve dot references to the current directory and dot-dot references to the parent directory, remove extra slash characters, add the correct MLD and SLD adornments, and store the final result in resolved_path. The result is for the SLD at which the process is running, or at the specified SLD. Refer to the mldrealpath(3TSOL) man page.
char* mldrealpath(const char *path_name, char *resolved_path); char *mldrealpathl(const char *path_name, char *resolved_path, const bslabel_t *senslabel);