clinuxoperating-systemsystem-callsfcntl

What is full name of fcntl Unix/Linux system call


Man page of fcntl tell its used for manipulating file descriptors. But this name is not easy to remember. Knowing its full name will help in remember this system call name and its use. I tried to find on internet but could not get anything except man pages.

Please someone tell what is full name or origin of name of fcntl.


Solution

  • From POSIX, it is File Control:

    NAME

        fcntl - file control


    There is a related system call, ioctl, i.e. Input-Output Control. The difference between the 2 is that fcntl modifies the file descriptor / file description, whereas ioctl controls behaviour of the input/output device behind the file description.