/* this function is a POSIX compliant version, which shall perform a variety of control functions on devices. */
int ioctl(int fildes, int cmd,...)
/* this function is a POSIX compliant version, which shall perform a variety of control functions on devices. */
int ioctl(int fildes, int cmd,...)
{
    void *arg;
    va_list ap;
    va_start(ap, cmd);
    arg = va_arg(ap, void *);
    va_end(ap);
    return fcntl(fildes, cmd, arg);
}