HomeSort by relevance Sort by last modified time
    Searched refs:masterfd (Results 1 - 4 of 4) sorted by null

  /external/ltp/testcases/kernel/pty/
ptem01.c 57 int masterfd, slavefd; local
62 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR);
64 slavename = ptsname(masterfd);
69 if (grantpt(masterfd) != 0) {
73 if (unlockpt(masterfd) != 0) {
121 if (close(masterfd) != 0) {
135 int masterfd, slavefd; local
141 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR);
143 slavename = ptsname(masterfd);
148 if (grantpt(masterfd) != 0)
216 int masterfd, slavefd; local
264 int masterfd, slavefd, slavefd2, slavefd3; local
320 static int masterfd[NUMOPENS]; local
383 static int masterfd; local
    [all...]
pty01.c 76 int masterfd; /* master pty fd */ local
82 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR);
84 slavename = ptsname(masterfd);
89 if (grantpt(masterfd) != 0) {
112 if (unlockpt(masterfd) != 0) {
121 if (write(masterfd, STRING, strlen(STRING)) != strlen(STRING)) {
147 if (read(masterfd, buf, strlen(STRING)) != strlen(STRING)) {
169 if (ioctl(masterfd, TIOCGWINSZ, NULL) == 0) {
181 if (close(masterfd) != 0) {
194 int masterfd; /* master pty fd * local
254 int masterfd; \/* master pty fd *\/ local
271 int masterfd; \/* master pty fd *\/ local
334 int masterfd; \/* master pty fd *\/ local
    [all...]
hangup01.c 89 void parent(int masterfd, int childpid)
99 pollfds[0].fd = masterfd;
105 if (read(masterfd, buf, len) == -1) {
159 int child(int masterfd)
164 if ((slavename = ptsname(masterfd)) == NULL) {
212 int masterfd; /* master pty fd */ local
217 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR);
219 slavename = ptsname(masterfd);
223 if (grantpt(masterfd) != 0)
226 if (unlockpt(masterfd) != 0
    [all...]
  /external/autotest/client/deps/fakemodem/src/
fakemodem.c 23 int masterfd; variable
290 masterfd = posix_openpt (O_RDWR | O_NOCTTY);
292 if (masterfd == -1
293 || grantpt (masterfd) == -1
294 || unlockpt (masterfd) == -1
295 || (slavedevice = ptsname (masterfd)) == NULL)
302 tcgetattr (masterfd, &t);
304 tcsetattr (masterfd, TCSANOW, &t);
306 ioc = g_io_channel_unix_new (masterfd);
391 rval = write (masterfd, line, term)
    [all...]

Completed in 221 milliseconds