Home | History | Annotate | Download | only in compat

Lines Matching full:tty

157 static int dun_exec(char *tty, char *prog, char **args)
186 static int dun_create_tty(int sk, char *tty, int size)
213 snprintf(tty, size, "/dev/rfcomm%d", id);
214 while (stat(tty, &st) < 0) {
215 snprintf(tty, size, "/dev/bluetooth/rfcomm/%d", id);
216 if (stat(tty, &st) < 0) {
217 snprintf(tty, size, "/dev/rfcomm%d", id);
309 char tty[100];
312 if (dun_create_tty(sk, tty, sizeof(tty) - 1) < 0) {
313 syslog(LOG_ERR, "RFCOMM TTY creation failed. %s(%d)", strerror(errno), errno);
318 args[1] = tty;
321 pid = dun_exec(tty, pppd, args);