Searched defs:master_fd (Results 1 - 7 of 7) sorted by relevance
/external/ltp/testcases/cve/ |
H A D | cve-2014-0196.c | 54 static volatile int master_fd, slave_fd; variable 106 create_pty((int *)&master_fd, (int *)&slave_fd); 116 tcgetattr(master_fd, &t); 119 tcsetattr(master_fd, TCSANOW, &t); 125 SAFE_WRITE(0, master_fd, "A", 1); 139 ioctl(master_fd, 0xdeadbeef); 141 SAFE_CLOSE(master_fd); 159 close(master_fd);
|
/external/selinux/restorecond/ |
H A D | restorecond.c | 66 static int master_fd = -1; variable 81 watch_list_free(master_fd); 82 close(master_fd); 121 close(master_fd); 189 master_fd = inotify_init(); 190 if (master_fd < 0) 201 return server(master_fd, user_watch_file); 203 return server(master_fd, user_watch_file); 208 read_config(master_fd, watch_file); 217 while (watch(master_fd, watch_fil [all...] |
H A D | user.c | 237 int server(int master_fd, const char *watch_file) { argument 248 read_config(master_fd, watch_file); 254 GIOChannel *c = g_io_channel_unix_new(master_fd);
|
/external/toybox/toys/pending/ |
H A D | telnetd.c | 310 int pty_fd, new_fd, c = 0, w, master_fd = 0; local 317 master_fd = listen_socket(); 318 fcntl(master_fd, F_SETFD, FD_CLOEXEC); 319 if (master_fd > TT.gmax_fd) TT.gmax_fd = master_fd; 322 pty_fd = new_session(master_fd); //master_fd = 0 344 if (!inetd_m) FD_SET(master_fd, &rd); 363 if (!inetd_m && FD_ISSET(master_fd, &rd)) { //accept new connection 364 new_fd = accept(master_fd, NUL [all...] |
/external/ppp/pppd/ |
H A D | sys-linux.c | 181 static int master_fd = -1; /* pty for old-style demand mode, master */ variable 377 if (master_fd >= 0) 378 close(master_fd); 700 int master_fd; local 705 master_fd = open("/dev/ppp", O_RDWR); 706 if (master_fd < 0) 708 if (ioctl(master_fd, PPPIOCATTACH, &ifnum) < 0) { 710 close(master_fd); 717 modify_flags(master_fd, 0, SC_MULTILINK); 718 close(master_fd); [all...] |
/external/python/cpython2/Modules/ |
H A D | posixmodule.c | 3920 "openpty() -> (master_fd, slave_fd)\n\n\ 3926 int master_fd, slave_fd; local 3938 if (openpty(&master_fd, &slave_fd, NULL, NULL, NULL) != 0) 3941 slave_name = _getpty(&master_fd, O_RDWR, 0666, 0); 3949 master_fd = open(DEV_PTY_FILE, O_RDWR | O_NOCTTY); /* open master */ 3950 if (master_fd < 0) 3954 if (grantpt(master_fd) < 0) { 3959 if (unlockpt(master_fd) < 0) { 3964 slave_name = ptsname(master_fd); /* get name of slave */ 3979 return Py_BuildValue("(ii)", master_fd, slave_f 3994 int master_fd = -1, result = 0; local [all...] |
/external/python/cpython3/Modules/ |
H A D | posixmodule.c | 5774 Return a tuple of (master_fd, slave_fd) containing open file descriptors 5782 int master_fd = -1, slave_fd = -1; local 5794 if (openpty(&master_fd, &slave_fd, NULL, NULL, NULL) != 0) 5797 if (_Py_set_inheritable(master_fd, 0, NULL) < 0) 5803 slave_name = _getpty(&master_fd, O_RDWR, 0666, 0); 5806 if (_Py_set_inheritable(master_fd, 0, NULL) < 0) 5814 master_fd = open(DEV_PTY_FILE, O_RDWR | O_NOCTTY); /* open master */ 5815 if (master_fd < 0) 5821 if (grantpt(master_fd) < 0) { 5827 if (unlockpt(master_fd) < 5884 int master_fd = -1, result = 0; local [all...] |
Completed in 247 milliseconds