Searched refs:master_fd (Results 1 – 4 of 4) sorted by relevance
/external/selinux/policycoreutils/restorecond/ |
D | restorecond.c | 66 static int master_fd = -1; variable 81 watch_list_free(master_fd); in done() 82 close(master_fd); in done() 118 close(master_fd); in term_handler() 202 master_fd = inotify_init(); in main() 203 if (master_fd < 0) in main() 214 return server(master_fd, user_watch_file); in main() 216 return server(master_fd, user_watch_file); in main() 221 read_config(master_fd, watch_file); in main() 228 while (watch(master_fd, watch_file) == 0) { in main() [all …]
|
D | user.c | 237 int server(int master_fd, const char *watch_file) { in server() argument 248 read_config(master_fd, watch_file); in server() 254 GIOChannel *c = g_io_channel_unix_new(master_fd); in server()
|
/external/toybox/toys/pending/ |
D | telnetd.c | 310 int pty_fd, new_fd, c = 0, w, master_fd = 0; in telnetd_main() local 317 master_fd = listen_socket(); in telnetd_main() 318 fcntl(master_fd, F_SETFD, FD_CLOEXEC); in telnetd_main() 319 if (master_fd > TT.gmax_fd) TT.gmax_fd = master_fd; in telnetd_main() 322 pty_fd = new_session(master_fd); //master_fd = 0 in telnetd_main() 344 if (!inetd_m) FD_SET(master_fd, &rd); in telnetd_main() 363 if (!inetd_m && FD_ISSET(master_fd, &rd)) { //accept new connection in telnetd_main() 364 new_fd = accept(master_fd, NULL, NULL); in telnetd_main()
|
/external/ppp/pppd/ |
D | sys-linux.c | 181 static int master_fd = -1; /* pty for old-style demand mode, master */ variable 377 if (master_fd >= 0) in sys_close() 378 close(master_fd); in sys_close() 700 int master_fd; in bundle_attach() local 705 master_fd = open("/dev/ppp", O_RDWR); in bundle_attach() 706 if (master_fd < 0) in bundle_attach() 708 if (ioctl(master_fd, PPPIOCATTACH, &ifnum) < 0) { in bundle_attach() 710 close(master_fd); in bundle_attach() 717 modify_flags(master_fd, 0, SC_MULTILINK); in bundle_attach() 718 close(master_fd); in bundle_attach() [all …]
|