Find Jobs
Hire Freelancers

Linux simple task

$10-30 USD

Avslutat
Publicerad över sex år sedan

$10-30 USD

Betalning vid leverans
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

Om projektet

7 anbud
Distansprojekt
Senaste aktivitet sex år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
7 frilansar lägger i genomsnitt anbud på $27 USD för detta uppdrag
Använd 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 Om 1 dag
4,9 (282 omdömen)
6,7
6,7
Använd 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 Om 1 dag
5,0 (25 omdömen)
5,2
5,2
Använd 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 Om 2 dagar
4,9 (8 omdömen)
2,9
2,9
Använd avatar
i can do this work
$30 USD Om 1 dag
0,0 (0 omdömen)
0,0
0,0
Använd 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 Om 1 dag
0,0 (0 omdömen)
0,0
0,0

Om kunden

Flagga för BOSNIA AND HERZEGOVINA
Sarajevo, Bosnia and Herzegovina
4,9
3
Medlem sedan juni 10, 2017

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.