The getsldname(2) system call gets the SLD name for path_name at the specified slabel. Refer to the getsldname(2) man page. The fgetsldname(2) system call uses a file descriptor.
int getsldname(const char *path_name, const bslabel_t *slabel, char *name_buf, const int len); int fgetsldname(const int fd, const bslabel_t *slabel_p, char *name_buf, const int len);