* @brief Performs control operations on a file descriptor. * * This system call allows a program to manipulate the behavior of a device or file * associated with the file descriptor `fd` by issuing a control command (`cmd`). * The function provides an interface to interact with device drivers, such as modifying * the settings of a device or performing custom operations. * * @param fd The fi
| 794 | * @see sys_open(), sys_read(), sys_write(), ioctl() |
| 795 | */ |
| 796 | sysret_t sys_ioctl(int fd, unsigned long cmd, void* data) |
| 797 | { |
| 798 | int ret = ioctl(fd, cmd, data); |
| 799 | return (ret < 0 ? GET_ERRNO() : ret); |
| 800 | } |
| 801 | |
| 802 | /** |
| 803 | * @brief Retrieves information about a file associated with a file descriptor. |
no test coverage detected