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