X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fmyls.c;h=6215665ff7ef5aa355928b29c3adb35108d0eeb4;hp=bd221442ef907049758f00688cdbdf2877ebee3a;hb=04c68576a3be5ccfda8faf2030d4cbc2997c29fa;hpb=e18f3ea57b725bc148f0d3443e384bf5270b2b9f diff --git a/sources/myls.c b/sources/myls.c index bd22144..6215665 100644 --- a/sources/myls.c +++ b/sources/myls.c @@ -22,15 +22,14 @@ * * Author: S. Piccardi Jan. 2003 * - * $Id: myls.c,v 1.1 2003/01/03 23:16:05 piccardi Exp $ - * *****************************************************************************/ -#include -#include -#include /* directory */ -#include /* C standard library */ -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* directory operation constants and functions */ +#include /* C standard library */ +#include /* unix standard library */ +#include "Gapil.h" /* * Program myls * @@ -38,7 +37,7 @@ */ /* Help printing routine */ void usage(void); -/* computation function for DirScan */ +/* computation function for dir_scan */ int do_ls(struct dirent * direntry); int main(int argc, char *argv[]) @@ -77,11 +76,11 @@ int main(int argc, char *argv[]) printf("Wrong number of arguments %d\n", argc - optind); usage(); } - DirScan(argv[1], do_ls); + dir_scan(argv[1], do_ls); exit(0); } /* - * Routine to print file name and size inside DirScan + * Routine to print file name and size inside dir_scan */ int do_ls(struct dirent * direntry) {