Question: 1 . Task Description Write a simple version of the UNIX find program: find all the files in a directory tree with a specific name.

1. Task Description
Write a simple version of the UNIX find program: find all the files in a directory tree with a specific name. Your
solution should be in the file user/find.c.
Look at user/ls.c to see how to read directories.
Use recursion to allow find to descend into sub-directories.
Don't recurse into "." and "..".
Changes to the file system persist across runs of qemu; to get a clean file system run make clean and then
make qemu.
You'll need to use C strings.
Note that == does not compare strings like in Python. Use strcmp() instead.
Add the program to UPROGS in Makefile.
2. Output
Your solution is correct if produces the following output (when the file system contains the files b, a/b and a/aa/b):
./b
./a/b
./a/aa/b
I want you to provide two files:
1. User/find.c
2. Makefile with UPROGS includes find.c to be able to run it using make clean, and then make qemu.
3. After running the file please use make tarball-pref to create a tarball file.
4. After finishing all the above, please provide me with the solution in tarball file as requested in the homework.
Please provide me the file in tarball form.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!