User Tools

Site Tools


os:lab02
Return to Home page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
os:lab02 [2019/08/20 00:36]
zioskenz [Exercise 03: Recursive copy of a directory]
os:lab02 [2019/10/21 18:31]
zioskenz [Exercise 02: Compilation and makefile]
Line 27: Line 27:
   * Edit the previous Makefile using variables to specify the compiler, the compilation options, and the file name.   * Edit the previous Makefile using variables to specify the compiler, the compilation options, and the file name.
  
 +Take as reference the example analyzed in classroom: [[https://​www.skenz.it/​listing/​os/​u03-Linux-environment/​u03s02e/​01-compiler/​Makefile4|Makefile4]]
 ==== Exercise 03: Recursive copy of a directory ==== ==== Exercise 03: Recursive copy of a directory ====
 Write a program in C language able to: Write a program in C language able to:
Line 35: Line 35:
 **Suggestions:​** **Suggestions:​**
  
-Modify the recursive visit procedure of a directory tree created in exercise number ​1. During the visit of the source directory, create an identical copy of each "​entry"​+Modify the recursive visit procedure of a directory tree created in Exercise ​01. During the visit of the source directory, create an identical copy of each "​entry"​
   * re-creating the directories (using the system call ''​mkdir''​) in the destination directory   * re-creating the directories (using the system call ''​mkdir''​) in the destination directory
   * re-copying the files (using system call ''​open'',​ ''​read'',​ ''​write''​ and ''​close''​).   * re-copying the files (using system call ''​open'',​ ''​read'',​ ''​write''​ and ''​close''​).

If you found any error, or if you want to partecipate to the editing of this wiki, please contact: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/os/lab02?do=diff&rev2%5B0%5D=1566254217&rev2%5B1%5D=1571675480&difftype=sidebyside
/web/htdocs/www.skenz.it/home/data/pages/os/lab02.txt ยท Last modified: 2019/10/21 18:31 by zioskenz

Privacy Policy