write a program called examps that has a man page shown in [url removed, login to view] examps as follows: you can modify the original program in the attachment. 1-Write a first version of examps that parses the command [url removed, login to view] the -s option given,examps sends a SIGSTOP to the process,prints a message to standard output ,and then sends a [url removed, login to view] -s is not given ,examps just print a message to standard output with process ID. 2-Implement the get_prstatus function 3-Implement the full examps program described in the man page in figure 5.1 NAME examps - examin a process SYNOPSIS examps [-s] pid DESCRIPTION the examps utility examines the /proc/pid file and outputs the following information to standard output. process ID, parent process ID, process group ID, session ID, process user cpu time, process system cpu time, scheduling class name, current instruction, names of the pending signals, current signal stsart of the heap size of the process heap in bytes start of stack size of process stack in bytes system call number (if in syscall) number of parametersto system call. the process must be owned by the user executing the [url removed, login to view] the - s option is given,the process is stopped and [url removed, login to view] the -s option is not given the process is not stopped and the values maybe modified while the read is taking place. OPTIONS -s send the SIDSTOP signal to the process before obtaining the trace information ,send SIGCONT when tracing information has been obtained. examples. the following examines the status of process 3421: examps 3421 process 3421 is not stopped by [url removed, login to view] may have been stopped by another source. FILES /proc see also proc(4)
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 3) Complete ownership and distribution copyrights to all work purchased.