Home
last modified time | relevance | path

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

/external/ppp/pppd/
Dtty.c478 if (notty && log_to_fd <= 1) in tty_check_options()
479 log_to_fd = -1; in tty_check_options()
503 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0 in tty_check_options()
505 log_to_fd = -1; in tty_check_options()
656 if (log_to_fd == 1) in connect_tty()
657 log_to_fd = -1; in connect_tty()
658 if (log_to_fd != 2) in connect_tty()
927 cpid = safe_fork(ifd, ofd, (log_to_fd >= 0? log_to_fd: 2));
936 log_to_fd = -1;
937 else if (log_to_fd >= 0)
[all …]
Dutils.c697 if (log_to_fd >= 0 && (level != LOG_DEBUG || debug)) {
702 if (write(log_to_fd, buf, n) != n
703 || write(log_to_fd, "\n", 1) != 1)
704 log_to_fd = -1;
Doptions.c105 int log_to_fd = 1; /* send log messages to this fd too */ variable
240 { "logfd", o_int, &log_to_fd,
243 { "nolog", o_int, &log_to_fd,
246 { "nologfd", o_int, &log_to_fd,
859 if (logfile_fd >= 0 && logfile_fd != log_to_fd) in check_options()
1531 log_to_fd = fd;
Dmain.c825 log_to_fd = -1; in detach()
1565 if (log_to_fd > 2) in safe_fork()
1566 close(log_to_fd); in safe_fork()
1603 if (log_to_fd >= 0)
1604 errfd = log_to_fd;
1611 if (pid != 0 && log_to_fd < 0)
Dpppd.h236 extern int log_to_fd; /* logging to this fd as well as syslog */