Lines Matching refs:line
12 int FAST_FUNC xgetpty(char *line) in xgetpty() argument
28 safe_strncpy(line, name, GETPTY_BUFSIZE); in xgetpty()
32 if (ptsname_r(p, line, GETPTY_BUFSIZE-1) != 0) { in xgetpty()
35 line[GETPTY_BUFSIZE-1] = '\0'; in xgetpty()
44 strcpy(line, "/dev/ptyXX"); in xgetpty()
47 line[8] = "pqrstuvwxyzabcde"[i]; in xgetpty()
48 line[9] = '0'; in xgetpty()
49 if (stat(line, &stb) < 0) { in xgetpty()
53 line[9] = j < 10 ? j + '0' : j - 10 + 'a'; in xgetpty()
55 fprintf(stderr, "Trying to open device: %s\n", line); in xgetpty()
56 p = open(line, O_RDWR | O_NOCTTY); in xgetpty()
58 line[5] = 't'; in xgetpty()