Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS214 System Programming, Please help, to create the C code CS 214: Systems Programming, Spring 2017 Assignment 3: Wherefore Art Thou, File? In this project

CS214 System Programming, Please help, to create the C code image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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, but you are then free to choose which other extensions you implement, one proviso; you can not implement extension Dunless you also with 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'. metread. netwrite and All of these calls should use the same symtax and have the same overall functionality as their local counterparts (except where expressly exempted. but they will ship their parameters 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, except 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 WRONLY. or O RDWR These request opening the file read-only, write-only, or read write, respectively. RETURN VALUE netopen0 retums the new file descriptor, or-1in the callers contenxt if error occurred (in an which case, crmo is set appropriately) In order to avoid error and disambiguate your file descriptors from the system's make your file descriptors negative (but not-19. ERRORS (check open manpage for definition) reqiured: EINTR. EISDIR. ENOENT EROFS optional (you may wantinced) ENFILE EWOULDBLOCK. EPERM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago