struct termios{ tcflag_t c_iflag; /* input modes */ tcflag_t c_oflag; /* output modes */ tcflag_t c_cflag; /* control modes */ tcflag_t c_lflag; /* local modes */ cc_t c_cc[NCCS]; /* special characters */ }
全部的Devicename获取以后都是须要在头上加入“/dev/”,由于获取的仅仅是“pts/1”,“pts/0”之类的node