Vous êtes sur la page 1sur 1

AL AKHAWAYN UNIVERSITY IN IFRANE

CSC3351 – OPERATING SYSTEMS


SPRING 2006

ASSIGNMENT #2

Write a Linux program in C called mylls which mimics basic functions of the standard Unix program ls
with option –l as in:

-rw-r--r-- 1 root root 1494 Oct 23 2001 video_decoder.h


-rw-r--r-- 1 root root 11696 Oct 31 2001 videodev.h
-rw-r--r-- 1 root root 847 Oct 23 2001 video_encoder.h
-rw-r--r-- 1 root root 4531 Oct 23 2001 videotext.h
-rw-r--r-- 1 root root 525 Mar 15 2004 vt_buffer.h
-rw-r--r-- 1 root root 1997 Oct 23 2001 vt.h
-rw-r--r-- 1 root root 345 Oct 31 2001 wait.h

mylls should be used as follows:

Mylls OPTIONS file1 file2 ….

OPTIONS
-v, --verbose
output a diagnostic for every file processed

-R, --recursive
lists files and directories recursively

Deliverables:

2items: Source code files +trace file generated by redirection mylls in verbose mode into an output file

Hint

int stat(const char *file_name, struct stat *buf);

To be turned in:

April 15.
Assignment must be submitted by email to me (T.Rachidi@aui.ma) as zip files <yourname>AS1.zip

Grading policy:

Working program with complete deliverables 88%


Quality of code, input/flag control, side effects etc. 12%

Vous aimerez peut-être aussi