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