Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/pty/
Dptem01.c55 char *slavename; in test1() local
61 slavename = ptsname(masterfd); in test1()
62 if (slavename == NULL) { in test1()
74 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test1()
75 tst_brkm(TFAIL, NULL, "Could not open %s", slavename); in test1()
133 char *slavename; in test2() local
140 slavename = ptsname(masterfd); in test2()
141 if (slavename == NULL) { in test2()
153 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test2()
154 tst_brkm(TBROK, NULL, "Could not open %s", slavename); in test2()
[all …]
Dpty01.c75 char *slavename; in test1() local
81 slavename = ptsname(masterfd); in test1()
82 if (slavename == NULL) { in test1()
90 if (stat(slavename, &st) != 0) { in test1()
91 tst_brkm(TBROK | TERRNO, NULL, "stat(%s) failed", slavename); in test1()
104 slavefd = open(slavename, O_RDWR); in test1()
113 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test1()
194 char *slavename; in test2() local
199 slavename = ptsname(masterfd); in test2()
200 if (slavename == NULL) { in test2()
[all …]
Dhangup01.c159 char *slavename; in child() local
161 if ((slavename = ptsname(masterfd)) == NULL) { in child()
165 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
177 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
189 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
210 char *slavename; in main() local
216 slavename = ptsname(masterfd); in main()
217 if (slavename == NULL) in main()