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. pdir prints the entries in a directory (uses opendir and readdir). Files: showfileattr.c: the c progam that calls stat pdir.c: directory handling program Makefile: Makefile that will build the program.