stat() system call example. The program showfileattr calls stat on a single file (name passed on the command line), and prints out some of the information found in the struct stat. Files: showfileattr.c: the c progam Makefile: Makefile that will build the program.