Lines Matching refs:namebuf
49 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
67 strlcpy(namebuf, name, namebuflen); /* possible truncation */
83 strlcpy(namebuf, slave, namebuflen);
85 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY);
125 strlcpy(namebuf, pts, namebuflen);
129 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY);
132 "error opening pts %.100s: %.100s", namebuf, strerror(errno));
172 strlcpy(namebuf, name, namebuflen);
196 snprintf(namebuf, namebuflen, "/dev/tty%c%c",
203 snprintf(namebuf, namebuflen, "/dev/ttyp%d", i);
211 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY);
214 "pty_allocate: %.100s: %.100s", namebuf, strerror(errno));