On 12/27/2010 05:30 PM, David Kuehling wrote: >> > one question about ioctl(1, TIOCSCTTY, (char *)1); the first "1" means >> > /dev/tty1, right?? what is the meaning of "(char *)1"? > It means stdout (the file descriptor, not the stream). As Alan pointed > out, we could (and should) replace this with constant STDOUT_FILENO as > defined in unistd.h >
then I have another question. :) why you pass "STDOUT" to "ioctl(1, TIOCSCTTY, ...)", I cann't find any document about "ioctl(1, TIOCSCTTY, ...)" . thanks for the your reply. -- Best Regards Xiangfu -- Qi RSS feed, http://en.qi-hardware.com/feed/rss20.xml -- _______________________________________________ Qi Hardware Discussion List Mail to list (members only): [email protected] Subscribe or Unsubscribe: http://lists.en.qi-hardware.com/mailman/listinfo/discussion

