Searched refs:sHdlcInputFd (Results 1 – 1 of 1) sorted by relevance
/openthread-2.7.6/tools/spi-hdlc-adapter/ |
D | spi-hdlc-adapter.c | 170 static int sHdlcInputFd = -1; variable 936 while ((ret = (int)read(sHdlcInputFd, &byte, 1)) == 1) in pull_hdlc() 1093 ret = (int)read(sHdlcInputFd, &sSpiTxFrameBuffer[HEADER_LEN], (size_t)sMTU); in pull_raw() 1764 sHdlcInputFd = dup(STDIN_FILENO); in main() 1775 sRet = openpty(&sHdlcInputFd, &pty_slave_fd, pty_name, NULL, NULL); in main() 1783 sHdlcOutputFd = dup(sHdlcInputFd); in main() 1803 if ((sHdlcInputFd < 0) || (sHdlcOutputFd < 0)) in main() 1810 if (-1 == (i = fcntl(sHdlcInputFd, F_GETFL, 0))) in main() 1814 IGNORE_RETURN_VALUE(fcntl(sHdlcInputFd, F_SETFL, i | O_NONBLOCK)); in main() 1820 max_fd = sHdlcInputFd; in main() [all …]
|