Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with number 1a and 1b. Thank you for helping. Hand in a hard copy at the start of the class (100 points total)

Need help with number 1a and 1b. Thank you for helping.image text in transcribed

Hand in a hard copy at the start of the class (100 points total) 1. (20 points) 'strace' is a Linux utility which monitors a program and prints out the details of the system calls made by the program. Write a "Hello, world!" program in C using C's printf) function and use the 'strace' command to see all system calls made by the program. (See the man page for strace details) (a) (10 points) Produce your result of strace on 'Hello World' program. (attach print out) (b) (10 points) You should see a lot of system calls that are not directly related to printing out the "Hello, world!" string. Figure out (or guess) what these system calls are, what purposes these calls are serving, and who is calling these functions. (Tip: Linux man pages are organized into several sections. Section 2 of the man page is dedicated to system calls. You can specify section 2 by, for example, "$ man 2 write", which should show the man page of write() system call instead of the write command. Hand in a hard copy at the start of the class (100 points total) 1. (20 points) 'strace' is a Linux utility which monitors a program and prints out the details of the system calls made by the program. Write a "Hello, world!" program in C using C's printf) function and use the 'strace' command to see all system calls made by the program. (See the man page for strace details) (a) (10 points) Produce your result of strace on 'Hello World' program. (attach print out) (b) (10 points) You should see a lot of system calls that are not directly related to printing out the "Hello, world!" string. Figure out (or guess) what these system calls are, what purposes these calls are serving, and who is calling these functions. (Tip: Linux man pages are organized into several sections. Section 2 of the man page is dedicated to system calls. You can specify section 2 by, for example, "$ man 2 write", which should show the man page of write() system call instead of the write command

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

How can you defend against SQL injection attacks?

Answered: 1 week ago