Consider the following invocation of the fstatcheck program from Problem 10.8:
You might expect that this invocation of fstatcheck would fetch and display metadata for file foo.txt. However, when we run it on our system, it fails with a “bad file descriptor.” Given this behavior, fill in the pseudo-code that the shell must be executing between the fork and execve calls:
REF PRB:
Write a version of the statcheck program in Figure 10.10, called fstatcheck, that takes a descriptor number on the command line rather than a file name.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.