Implemented listing.cpp for Linux.