fd = open("/dev/tty0", O_RDWR | O_SYNC); if(fd == -1) printf("this is EACCES error"); else if (fd == -2) printf("this is EPERM error");.
確定! 回上一頁