Searched refs:fdm (Results 1 - 3 of 3) sorted by relevance

/netbsd-current/tests/lib/libc/ttyio/
H A Dt_ptm.c64 int fdm; local
67 if ((fdm = open("/dev/ptm", O_RDWR)) == -1) {
73 REQUIRE_ERRNO(fstat(fdm, &stm), -1);
75 REQUIRE_ERRNO(ioctl(fdm, TIOCPTMGET, &ptm), -1);
103 (void)close(fdm);
129 int fdm, fds; local
132 if ((fdm = posix_openpt(O_RDWR|O_NOCTTY)) == -1) {
139 REQUIRE_ERRNO(fstat(fdm, &stm), -1);
148 REQUIRE_ERRNO(grantpt(fdm), -1);
149 REQUIRE_ERRNO(unlockpt(fdm),
178 int fdm; local
[all...]
/netbsd-current/external/bsd/nvi/dist/ex/
H A Dex_script.c632 int fdm; local
636 if ((fdm = open(pts_name, O_RDWR)) < 0 )
639 if (grantpt(fdm) < 0) {
640 close(fdm);
644 if (unlockpt(fdm) < 0) {
645 close(fdm);
649 if (unlockpt(fdm) < 0) {
650 close(fdm);
655 if ((ptr = ptsname(fdm)) == NULL) {
656 close(fdm);
668 ptys_open(int fdm, char *pts_name) argument
[all...]
/netbsd-current/crypto/dist/ipsec-tools/src/racoon/
H A Dsession.c178 struct fd_monitor *fdm; local
316 TAILQ_FOREACH(fdm, &fd_monitor_tree[i], chain) {
317 if (!FD_ISSET(fdm->fd, &active_mask))
320 FD_CLR(fdm->fd, &active_mask);
321 if (fdm->callback != NULL) {
322 fdm->callback(fdm->ctx, fdm->fd);

Completed in 148 milliseconds