ioctl_tty
The ioctl(2) system call returns 0 on success. On error, it returns -1 and sets errno to indicate the error.