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 didin Assignmentl Part3, with various functions (in APUE ch03-ch04). Task #1. Write

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, openat, creat, open, lseek, read, write APUE ch4 - stat, fstat, fstatat, lstat, 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 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, openat, creat, open, lseek, read, write APUE ch4 - stat, fstat, fstatat, lstat, 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

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 Databases Questions!