Linux simple task

The files files write example.c and files read example.c were used to

demonstrate the operations with files on UNIX.

Your task is to modify files write example.c so that it writes all the records

using only the last mmap based technique. It should not be too hard to do so.

The other two methods of access, i.e. using write and stdio functions should

not be used anymore. However, much of the logic remains the same.

What’s more, Linux provides the function mremap that can change the size

of the mapping after the file size changes. On the down side, other UNIX

versions including the Mac OS X do not, making it not portable. Your next

task will be to write a function that can extend the size of the mapping using

the ftruncate, msync munmap and mmap functions. On the other hand, this

approach is of course going to be less efficient.

ftruncate truncates the file to a specified size. It will also increase the size of

the file by filling it up with zeros to increase the size of the file if the specified

size is larger than the current size. For our purposes we will simply double the

size of the file each time we run out of space. The file will then be mapped

again to include the newly created free space. Once all the data is entered, you

will have to call ftruncate once more, this time to reduce the size of the file

to the actually used space.

While you are making changes, the code from files read example.c must

always be able to correctly read what your modified code writes. You can

use it to check whether your code is working properly.

Skills: Linux, System Admin, Ubuntu, UNIX

See more: linux admin for beginners, linux admin tasks, linux topics, day to day activities of linux administrator, what is linux administrator, basic system administration, linux exercises labs, ubuntu system administration, simple task creating graphics desingn for 3 quotes, simple task creating graphics desingn for 3 qoutes, i need someone with good web searching skills to look for data for me. it is simple task. my budget is 8$. i will discuss the de, designing a small pcb board for a very simple task regarding power management of another product using Attiny85, designing a small pcb board for a very simple task regarding power management, simple task for, simple task linux, linux simple email list, javascript simple task, linux determine task interactive, linux simple tcp server, sample simple task describe

About the Employer:
( 3 reviews ) Sarajevo, Bosnia and Herzegovina

Project ID: #16102124

8 freelancers are bidding on average $27 for this job

$25 USD in 1 day
(87 Reviews)

Hi I will do the task as per your requirement and have expertise in the field. I have 8 years of experience. Regards

$25 USD in 1 day
(135 Reviews)

I have read job requirement carefully, please share project detail we will done this job on time, Thanks Relevant Skills and Experience Linux expert Proposed Milestones $35 USD - Task cost

$35 USD in 1 day
(20 Reviews)

I have 5+ years of working experience in C and Linux programming. I read the task details and I can do this task. Looking forward for a positive response from you.

$25 USD in 2 days
(8 Reviews)
$25 USD in 1 day
(0 Reviews)

i can do this work

$30 USD in 1 day
(0 Reviews)

Hello I saw your project detail and examples carefully Please contact me Best regards Relevant Skills and Experience Linux, Ubuntu, RedHat Proposed Milestones $25 USD - Finish

$25 USD in 1 day
(1 Review)

I will use all my skills as a computer engineer to satisfy you and within the time specified. Relevant Skills and Experience computer science engineer Proposed Milestones $25 USD - Initial milestone

$25 USD in 1 day
(0 Reviews)