Hi,

IOCTL fails for retrieval/setting of tty/console mode. Below is the code
snippet:

fd = open("/dev/tty",O_NOCTTY);
if(fd == -1)
{
      printf("Could not open /dev/tty.\n");
}

vt_mode.mode   = VT_PROCESS;
vt_mode.waitv  = 0;
vt_mode.relsig = SIGUSR1;
vt_mode.acqsig = SIGUSR2;

if (-1 == ioctl(fd,VT_GETMODE, &vt_omode))
{
      printf("Could not get VT mode");
}

the above code provides "Could not get VT mode" message. Similar message
comes for /dev/console too.

Same code works perfectly on Linux Desktop. so I would like to know whether
VT_GETMODE is supported in the MVL for DM6446.


regards/Amaresh


______________________________________________________________________
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to