Searched refs:masterfd (Results 1 – 5 of 5) sorted by relevance
/third_party/ltp/testcases/kernel/pty/ |
D | ptem01.c | 54 int masterfd, slavefd; in test1() local 59 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test1() 61 slavename = ptsname(masterfd); in test1() 66 if (grantpt(masterfd) != 0) { in test1() 70 if (unlockpt(masterfd) != 0) { in test1() 118 if (close(masterfd) != 0) { in test1() 132 int masterfd, slavefd; in test2() local 138 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test2() 140 slavename = ptsname(masterfd); in test2() 145 if (grantpt(masterfd) != 0) { in test2() [all …]
|
D | pty01.c | 73 int masterfd; /* master pty fd */ in test1() local 79 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test1() 81 slavename = ptsname(masterfd); in test1() 86 if (grantpt(masterfd) != 0) { in test1() 109 if (unlockpt(masterfd) != 0) { in test1() 118 if (write(masterfd, STRING, strlen(STRING)) != strlen(STRING)) { in test1() 144 if (read(masterfd, buf, strlen(STRING)) != strlen(STRING)) { in test1() 166 if (ioctl(masterfd, TIOCGWINSZ, NULL) == 0) { in test1() 178 if (close(masterfd) != 0) { in test1() 191 int masterfd; /* master pty fd */ in test2() local [all …]
|
D | hangup01.c | 86 void parent(int masterfd, int childpid) in parent() argument 96 pollfds[0].fd = masterfd; in parent() 102 if (read(masterfd, buf, len) == -1) { in parent() 156 int child(int masterfd) in child() argument 161 if ((slavename = ptsname(masterfd)) == NULL) { in child() 209 int masterfd; /* master pty fd */ in main() local 214 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in main() 216 slavename = ptsname(masterfd); in main() 220 if (grantpt(masterfd) != 0) in main() 223 if (unlockpt(masterfd) != 0) in main() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
D | ptsname.c | 34 int masterfd = open(PTMPATH, O_RDONLY); in ptsname_0100() local 35 if (masterfd == -1) { in ptsname_0100() 39 mastername = ptsname(masterfd); in ptsname_0100() 42 close(masterfd); in ptsname_0100()
|
/third_party/libfuse/lib/ |
D | fuse_loop_mt.c | 249 uint32_t masterfd; in fuse_clone_chan() local 264 masterfd = mt->se->fd; in fuse_clone_chan() 265 res = ioctl(clonefd, FUSE_DEV_IOC_CLONE, &masterfd); in fuse_clone_chan()
|