number of files opened


Write a system call, number_of_files_opened(int pid),  which a C program can invoke to report the number of files currently opened by a particular process identified by the user from the command line.


shell> Please enter the process id

shell> 128 (input by the user)

shell>  There are xxxx files currently opened by the process id 128.