Home
last modified time | relevance | path

Searched refs:masterfd (Results 1 – 1 of 1) sorted by relevance

/external/autotest/client/deps/fakemodem/src/
Dfakemodem.c23 int masterfd; variable
290 masterfd = posix_openpt (O_RDWR | O_NOCTTY); in main()
292 if (masterfd == -1 in main()
293 || grantpt (masterfd) == -1 in main()
294 || unlockpt (masterfd) == -1 in main()
295 || (slavedevice = ptsname (masterfd)) == NULL) in main()
302 tcgetattr (masterfd, &t); in main()
304 tcsetattr (masterfd, TCSANOW, &t); in main()
306 ioc = g_io_channel_unix_new (masterfd); in main()
391 rval = write (masterfd, line, term); in master_read()
[all …]