Home
last modified time | relevance | path

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

/system/core/sh/
Djobs.c97 static int ttyfd = -1; variable
153 if (ttyfd != -1) in setjobctl()
154 close(ttyfd); in setjobctl()
155 if ((ttyfd = open("/dev/tty", O_RDWR)) == -1) { in setjobctl()
157 if (isatty(i) && (ttyfd = dup(i)) != -1) in setjobctl()
165 if ((err = fcntl(ttyfd, F_DUPFD, (1 << i) - 1)) != -1) in setjobctl()
169 close(ttyfd); in setjobctl()
170 ttyfd = err; in setjobctl()
173 err = ioctl(ttyfd, FIOCLEX, 0); in setjobctl()
175 err = fcntl(ttyfd, F_SETFD, in setjobctl()
[all …]