open file sizes

 

Write a C program, namely open_file_sizes.c, which uses a system call, open_file_sizes( ) to report the total number of bytes for files currently opened by a particular process identified by its process id. 

 

ex.

shell> Please enter the process id

shell> 128 (input by the user)

shell> The total number of bytes for files opened by the process 128 is XXXX bytes.