Question: in the linux system modify the given .c file that can run the contents by mmap'ing it into an array. The purpose is change the

in the linux system

modify the given .c file that can run the contents by mmap'ing it into an array. The purpose is change the array pointer into a function pointer. The called function should have the same declaration as write(), call it with (1, "Hello there! ", 13).When your program is given the file .bin as a command-line argument, it should print out "Hello there!"

the original .c is: https://homeostasis.scs.carleton.ca/~soma/os-2017f/code/tut3/3000test.c

the binary file is here:https://homeostasis.scs.carleton.ca/~soma/os-2019w/code/write.bin

you can use "diff -c" to shows the changed part.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!