/* Change Logs: Date Author Notes  Bernard The first version  */
int tcgetattr(int fd, struct termios *tio)
/* Change Logs: Date Author Notes  Bernard The first version  */
int tcgetattr(int fd, struct termios *tio)
{
    if (ioctl(fd, TCGETA, tio))
        return -1;
    return 0;
}