C有没有ioctl这个库函数,其作用是什么?
代码中没有ioctl函数的具体定义,是不是ioctl是个套接字?函数是如何实现关闭连接功能的?请教!
#define ioctl sockioctl
定义一个函数:
static int Trans(Tlidisconnect)(Xtransconninfo ciper)//函数这样定义:Trans()()??
{/* Restore the Tli modules so that the connection can be properly shutdown.This avoids the situation where start,and the address remains unavaliable for a while */函数实现的功能.
ioctl(ciper->fd, I_pop,"dirdwr");
ioctl(ciper->fd, I_push,"timod");
t_snddis(ciper,NULL);
return 0;
}
如果ioctl是个库函数,那么它的作用是什么?