OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:ttyfd
(Results
1 - 5
of
5
) sorted by null
/external/openssh/
readpass.c
122
int rppflags, use_askpass = 0,
ttyfd
;
local
134
ttyfd
= open(_PATH_TTY, O_RDWR);
135
if (
ttyfd
>= 0)
136
close(
ttyfd
);
session.h
41
int ptyfd,
ttyfd
, ptymaster;
member in struct:Session
session.c
645
int fdout, ptyfd,
ttyfd
, ptymaster;
local
651
ttyfd
= s->
ttyfd
;
662
close(
ttyfd
);
669
close(
ttyfd
);
681
close(
ttyfd
);
697
pty_make_controlling_tty(&
ttyfd
, s->tty);
700
if (dup2(
ttyfd
, 0) < 0)
702
if (dup2(
ttyfd
, 1) < 0)
704
if (dup2(
ttyfd
, 2) < 0
[
all
...]
/external/ppp/pppd/
tty.c
126
static int
ttyfd
; /* Serial port file descriptor */
variable
582
ttyfd
= real_ttyfd;
583
if ((fdflags = fcntl(
ttyfd
, F_GETFL)) == -1
584
|| fcntl(
ttyfd
, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
595
if (fstat(
ttyfd
, &statbuf) < 0
596
|| fchmod(
ttyfd
, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) {
612
set_up_tty(
ttyfd
, ((connector != NULL && connector[0] != 0)
661
int fd = dup(
ttyfd
);
667
ttyfd
= pty_slave;
684
if (device_script(initializer,
ttyfd
, ttyfd, 0) < 0)
[
all
...]
/system/core/sh/
jobs.c
97
static int
ttyfd
= -1;
variable
153
if (
ttyfd
!= -1)
154
close(
ttyfd
);
155
if ((
ttyfd
= open("/dev/tty", O_RDWR)) == -1) {
157
if (isatty(i) && (
ttyfd
= dup(i)) != -1)
165
if ((err = fcntl(
ttyfd
, F_DUPFD, (1 << i) - 1)) != -1)
169
close(
ttyfd
);
170
ttyfd
= err;
173
err = ioctl(
ttyfd
, FIOCLEX, 0);
175
err = fcntl(
ttyfd
, F_SETFD
[
all
...]
Completed in 59 milliseconds