Lines Matching defs:line
151 * Search for matching entry by line name before put operation
153 * that the line name is the same. We can not use getutline(3C)
228 char *user, *id, *line, *pid, *type, *term, *time_usec,
237 line = argv[3];
251 (void) strncpy(entryx->ut_line, line, sizeof (entryx->ut_line));
311 char *line = buf;
371 if (bad_line(line) == 1) {
372 dprintf("Bad line = %s\n", line);
416 * Then create a new id that is unique using the last 4 chars in the line.
420 check_id(char *id, char *line)
425 len = strlen(line);
429 id[i] = len - i < 0 ? 0 : line[len-i];
455 bad_line(char *line)
461 * The line field must be a device file that we can write to,
466 if (strstr(line, "../") != 0) {
467 dprintf("Bad line = %s\n", line);
478 * We need to open the line without blocking so that it does not hang
480 if ((fd = open(line, O_WRONLY|O_NOCTTY|O_NONBLOCK)) == -1) {
481 dprintf("Bad line (Can't open/write) = %s\n", line);
499 * Check that the line refers to a character
503 dprintf("Bad line (fstat failed) (Not S_IFCHR) = %s\n", line);
509 * Check that the line refers to a streams device
512 dprintf("Bad line (isastream failed) = %s\n", line);
523 dprintf("Bad line (I_PUSH of \"ptem\" failed) = %s\n", line);
529 dprintf("Bad line (isatty failed) = %s\n", line);
535 dprintf("Bad line (I_POP of \"ptem\" failed) = %s\n", line);