Question: Help Computer Science System Programming code CS 214: Systems Programming, Spring 2017 Assignment 3: Wherefore Art Thou, File? In this project you will write a

Help Computer Science System Programming code  Help Computer Science System Programming code CS 214: Systems Programming, Spring
2017 Assignment 3: Wherefore Art Thou, File? In this project you will
write a remote file server that is mostly transparent to the user.
You must first complete the base program'segment below, butyou arethen free to
choose which other extensions you implement, with one proviso you cannot implement
extension Dunless you also implement extension C. If you complete all parts,
you will receive 160 credit. Base Program: (+80%) You will be providing

CS 214: Systems Programming, Spring 2017 Assignment 3: Wherefore Art Thou, File? In this project you will write a remote file server that is mostly transparent to the user. You must first complete the base program'segment below, butyou arethen free to choose which other extensions you implement, with one proviso you cannot implement extension Dunless you also implement extension C. If you complete all parts, you will receive 160 credit. Base Program: (+80%) You will be providing an interface much like the standard file system calls to allow easy use of files across the network. You should write netopen. Yetread. Yetwrite and netclose.All of these calls should use the same syntax and have the same overall functionality astheir local counterparts (except where expressly exempted), but they will ship theirparameters your file server where the actual file operations will happen. To your client code, it will look like open and netopen, read and netread, write and netwrite and close and netclose work almost identically, cucept your net commands are working on files on another machine. netopen(const char pathname, int flags) The argument flags must include one of the following access modes: O RDONLY. o WRONL. or o RDWR. These request opening the file read only, write-only, or read write, respectively RETURN VALUE netopen0 returns the new file descriptor. or -1 in the caller's contenxtifan error occurred (in which case, enmo is set appropriately). In order to avoid error and disambiguate your file descriptors from the system's, make your file descriptors negative but not-I ERRORS check open manpage for definition) reqiured: EACCES EINTR EISDIR EROFS optional (you may wantineod) ENFILE EWOULDBLocK EPERM

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!