These system calls get information on file system security attributes using a path name or file descriptor. Refer to the getfsattr(2) man page.
int getfsattr(char *path, u_long type, void *buf_P, int len); int fgetfsattr(int fd, u_long type, void *buf_P);