Đã Đóng

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.

Kĩ năng: Linux, Quản trị hệ thống, Ubuntu, UNIX

Xem nhiều hơn: 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, linux interactive task, linux simple control panel godaddy, linux java task manager, php linux simple, linux simple crawler, develop simple task, linux example script delete owner files, simple task list php

Về Bên Thuê:
( 3 nhận xét ) Sarajevo, Bosnia and Herzegovina

ID dự án: #16102124

9 freelancer đang chào giá trung bình $30 cho công việc này

tanujchugh

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 trong 1 ngày
(119 Nhận xét)
6.0
$25 USD trong 1 ngày
(69 Nhận xét)
5.4
ambientinfotech

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 trong 1 ngày
(12 Nhận xét)
3.7
Bhawandtu

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 trong 2 ngày
(5 Nhận xét)
2.6
jpStar

I am a C/C++ developer on Windows/Linux/MacOS Relevant Skills and Experience C/C++, Linux, MacOS Proposed Milestones $55 USD - Init

$55 USD trong 1 ngày
(1 Nhận xét)
2.0
$25 USD trong 1 ngày
(0 Nhận xét)
0.0
sandeepsambyal17

i can do this work

$30 USD trong 1 ngày
(0 Nhận xét)
0.0
itwonder1

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 trong 1 ngày
(1 Nhận xét)
0.0
Akoula

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 trong 1 ngày
(0 Nhận xét)
0.0