Gavin Yu
22-09-2005, 09:09 PM
Hi,
During porting one application from Solaris to Linux, we encountered one
problem about the function iotcl.
Our codes are as below:
================================================== =============
if (ioctl(4, I_PUSH, "ptem") < 0) {
printf(" Error\n");
}
================================================== =============
we found the return value of ioctl is always <0.
Could anyone tell us how to deal with this issue? Is there any replacement
on Linux?
Thanks in advance!
Yu
During porting one application from Solaris to Linux, we encountered one
problem about the function iotcl.
Our codes are as below:
================================================== =============
if (ioctl(4, I_PUSH, "ptem") < 0) {
printf(" Error\n");
}
================================================== =============
we found the return value of ioctl is always <0.
Could anyone tell us how to deal with this issue? Is there any replacement
on Linux?
Thanks in advance!
Yu