Lines Matching defs:REQUIRE_ERRNO
49 #define REQUIRE_ERRNO(x, v) \
73 REQUIRE_ERRNO(fstat(fdm, &stm), -1);
75 REQUIRE_ERRNO(ioctl(fdm, TIOCPTMGET, &ptm), -1);
86 REQUIRE_ERRNO(fstat(ptm.cfd, &stm), -1);
87 REQUIRE_ERRNO(stat(ptm.cn, &sts), -1);
91 REQUIRE_ERRNO(fstat(ptm.sfd, &stm), -1);
92 REQUIRE_ERRNO(stat(ptm.sn, &sts), -1);
139 REQUIRE_ERRNO(fstat(fdm, &stm), -1);
142 REQUIRE_ERRNO(stat("/dev/ptyp0", &sts), -1);
148 REQUIRE_ERRNO(grantpt(fdm), -1);
149 REQUIRE_ERRNO(unlockpt(fdm), -1);
150 REQUIRE_ERRNO((pty = ptsname(fdm)), NULL);
152 REQUIRE_ERRNO((fds = open(pty, O_RDWR|O_NOCTTY)), -1);
153 REQUIRE_ERRNO(fstat(fds, &sts), -1);