Find Jobs
Hire Freelancers

Linux simple task

$10-30 USD

Closed
Posted about 6 years ago

$10-30 USD

Paid on delivery
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.
Project ID: 16102124

About the project

7 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average $27 USD for this job
User Avatar
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
4.9 (282 reviews)
6.7
6.7
User Avatar
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
5.0 (25 reviews)
5.2
5.2
User Avatar
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
4.9 (8 reviews)
2.9
2.9
User Avatar
i can do this work
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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.0 (0 reviews)
0.0
0.0

About the client

Flag of BOSNIA AND HERZEGOVINA
Sarajevo, Bosnia and Herzegovina
4.9
3
Member since Jun 10, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.