Lines Matching refs:f

147 initmaster(int f UNUSED)  in initmaster()
151 tcflush(f, TCIOFLUSH); in initmaster()
154 (void)ioctl(f, TIOCFLUSH, (char *) 0); in initmaster()
158 (void)ioctl(f, TIOCEXCL, (char *) 0); in initmaster()
193 int f; in mch_openpty() local
198 if ((f = posix_openpt(O_RDWR | O_NOCTTY | O_EXTRA)) == -1) in mch_openpty()
204 if ((m = ptsname(f)) == NULL || grantpt(f) || unlockpt(f)) in mch_openpty()
207 close(f); in mch_openpty()
212 initmaster(f); in mch_openpty()
214 return f; in mch_openpty()
223 int f; in mch_openpty() local
226 if ((f = open_controlling_pty(TtyName)) < 0) in mch_openpty()
228 initmaster(f); in mch_openpty()
230 return f; in mch_openpty()
241 int f; in mch_openpty() local
246 if ((f = getpseudotty(&s, &m)) < 0) in mch_openpty()
253 initmaster(f); in mch_openpty()
255 return f; in mch_openpty()
264 int f; in mch_openpty() local
273 name = _getpty(&f, O_RDWR | O_NONBLOCK | O_EXTRA, 0600, 0); in mch_openpty()
278 initmaster(f); in mch_openpty()
280 return f; in mch_openpty()
289 int f; in mch_openpty() local
294 if ((f = open("/dev/ptc", O_RDWR | O_NOCTTY | O_NONBLOCK | O_EXTRA, 0)) < 0) in mch_openpty()
296 if (mch_fstat(f, &buf) < 0) in mch_openpty()
298 close(f); in mch_openpty()
302 initmaster(f); in mch_openpty()
304 return f; in mch_openpty()
317 int f; in mch_openpty() local
323 if ((f = open("/dev/ptmx", O_RDWR | O_NOCTTY | O_EXTRA, 0)) == -1) in mch_openpty()
331 if ((m = ptsname(f)) == NULL || grantpt(f) || unlockpt(f)) in mch_openpty()
334 close(f); in mch_openpty()
339 initmaster(f); in mch_openpty()
341 return f; in mch_openpty()
355 int f; in mch_openpty() local
360 if ((f = open("/dev/ptc", O_RDWR | O_NOCTTY | O_EXTRA)) < 0) in mch_openpty()
362 vim_strncpy((char_u *)TtyName, (char_u *)ttyname(f), sizeof(TtyName) - 1); in mch_openpty()
365 close(f); in mch_openpty()
368 initmaster(f); in mch_openpty()
374 close(f); in mch_openpty()
379 return f; in mch_openpty()
402 int f; in mch_openpty() local
417 if ((f = open(PtyName, O_RDWR | O_NOCTTY | O_EXTRA, 0)) == -1) in mch_openpty()
423 close(f); in mch_openpty()
433 if (ioctl(f, TIOCGPGRP, (char *)&pgrp) != -1 || errno != EIO) in mch_openpty()
435 close(f); in mch_openpty()
440 initmaster(f); in mch_openpty()
442 return f; in mch_openpty()