Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/pty/
Dptem01.c58 char *slavename; in test1() local
64 slavename = ptsname(masterfd); in test1()
65 if (slavename == NULL) { in test1()
77 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test1()
78 tst_brkm(TFAIL, NULL, "Could not open %s", slavename); in test1()
136 char *slavename; in test2() local
143 slavename = ptsname(masterfd); in test2()
144 if (slavename == NULL) { in test2()
156 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test2()
157 tst_brkm(TBROK, NULL, "Could not open %s", slavename); in test2()
[all …]
Dpty01.c78 char *slavename; in test1() local
84 slavename = ptsname(masterfd); in test1()
85 if (slavename == NULL) { in test1()
93 if (stat(slavename, &st) != 0) { in test1()
94 tst_brkm(TBROK | TERRNO, NULL, "stat(%s) failed", slavename); in test1()
107 slavefd = open(slavename, O_RDWR); in test1()
116 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test1()
197 char *slavename; in test2() local
202 slavename = ptsname(masterfd); in test2()
203 if (slavename == NULL) { in test2()
[all …]
Dhangup01.c162 char *slavename; in child() local
164 if ((slavename = ptsname(masterfd)) == NULL) { in child()
168 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
180 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
192 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
213 char *slavename; in main() local
219 slavename = ptsname(masterfd); in main()
220 if (slavename == NULL) in main()
/external/python/cpython2/Tools/scripts/
Dtreesync.py91 slavename = os.path.join(slave, name)
96 subdirs.append((slavename, mastername))