Multiple choice technology operating systems

In which system call we have to use file descriptor to identify the file.

  1. fchmode()

  2. fchmod()

  3. chmod()

  4. All the above.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

fchmod() is the Unix system call that changes file permissions using a file descriptor rather than a filename. chmod() uses a filename path instead. Option A 'fchmode()' is a typo - not a real system call. Option D is incorrect because only fchmod() uses file descriptor.