Question: Part 1 (C/C++ Programming) You will do here what you did in Assignmentl Part3, with various functions (in APUE ch03-ch04) Task #1. Write a C/C++

Part 1 (C/C++ Programming) You will do here what you did in Assignmentl Part3, with various functions (in APUE ch03-ch04) Task #1. Write a C/C++ program to create a few directories as shown below in your current directory (dir1, dir2), a few files (filel in current directory, file10 in dirl, file20 in dir2, and a symbolic-link linkl (to link to file20) You should use one of the following system functions (listed in APUE ch3 and ch4 to do this part. APUE ch3- open, ppenat, creat, open, lseek, read, write APUE ch4 - stat, fstat, fstatat, Istat, access, faccessat, umask, chmod, fchmod, fchmodat, chown, fchown, fchownat, lchown, link, linkat, unlink, unlinkat, remove, rename, renameat, symlink, symlinkat, mkdir, mkdirat, rmdir, chdir, fchdir, getcwd For example, to change current directory, you should use chdir() function to change the directory (APUE 4.23 pages 135-137). You should use creat0 function to create each file. You are going to create the files and directories in depth-first order (and left to right). That is, dirl will be created first, then file10, and so on. You should create linkl (a softlink to file20) after file20 is created. From your current directory dir1 dir2 filel linkl file10 file20 Copy and paste your program listing (assign3partl.c or cpp) here Copy and paste Makefile here Copy and paste the output of the program run. Submit two files for your upload: (1) this word document with your answer and (2) a separate zip file (including each shell script and its log of the run) together with (1). Note: no word document no grade
Step by Step Solution
There are 3 Steps involved in it
To address the requirements well use the specified system functions from APUE chapters 3 and 4 ensur... View full answer
Get step-by-step solutions from verified subject matter experts
