Lines Matching defs:pmtab

77 	struct	pmtab	*pmtab;
97 if ((pmtab = ALLOC_PMTAB) == PNULL) {
102 if (parse_args(argc, argv, pmtab) != 0) {
109 if ((pmtab->p_device != NULL) && (*(pmtab->p_device) != '\0'))
110 while (checkut_line(pmtab->p_device))
113 if ((pmtab->p_device == NULL) || (*(pmtab->p_device) == '\0')) {
119 pmtab->p_device = devname;
130 revokedevaccess(pmtab->p_device, 0, 0, 0);
131 if (open(pmtab->p_device, O_RDWR) < 0) {
132 log("open %s failed: %s", pmtab->p_device,
136 if ((pmtab->p_modules != NULL) &&
137 (*(pmtab->p_modules) != '\0')) {
138 if (push_linedisc(0, pmtab->p_modules,
139 pmtab->p_device) == -1)
142 if (initial_termio(0, pmtab) == -1)
144 di_devperm_logout((const char *)pmtab->p_device);
149 open_device(pmtab);
153 tmchild(pmtab);
161 parse_args(int argc, char **argv, struct pmtab *pmtab)
170 pmtab->p_tag = "";
171 pmtab->p_flags = 0;
172 pmtab->p_identity = "root";
173 pmtab->p_res1 = "reserved";
174 pmtab->p_res2 = "reserved";
175 pmtab->p_res3 = "reserved";
176 pmtab->p_uid = 0;
177 pmtab->p_gid = 0;
178 pmtab->p_dir = "/";
179 pmtab->p_ttyflags = 0;
180 pmtab->p_count = 0;
181 pmtab->p_server = p_server;
182 pmtab->p_timeout = 0;
183 pmtab->p_modules = "";
184 pmtab->p_prompt = "login: ";
185 pmtab->p_dmsg = "";
186 pmtab->p_termtype = "";
187 pmtab->p_device = "";
188 pmtab->p_status = GETTY;
190 pmtab->p_ttylabel = "300";
191 getty_options(argc, argv, pmtab);
195 pmtab->p_ttylabel = "9600";
196 ttymon_options(argc, argv, pmtab);
207 * then pmtab->p_termtype retains its default value
211 if ((strlen(pmtab->p_termtype) == 0) &&
212 (strcmp(pmtab->p_device, "/dev/console") == 0) &&
216 pmtab->p_termtype = cnterm.cn_term_type;
221 if ((pmtab->p_device != NULL) && (*(pmtab->p_device) != '\0'))
222 getty_account(pmtab->p_device); /* utmp accounting */
232 ttymon_options(int argc, char **argv, struct pmtab *pmtab)
252 pmtab->p_device = optarg;
255 pmtab->p_ttyflags &= ~H_FLAG;
259 pmtab->p_termtype = optarg;
263 * pmtab->p_ttyflags |= B_FLAG;
264 * pmtab->p_ttyflags |= R_FLAG;
276 pmtab->p_timeout = atoi(timeout);
280 pmtab->p_prompt = strsave(getword(tbuf, &size, TRUE));
283 pmtab->p_modules = optarg;
284 if (vml(pmtab->p_modules) != 0)
288 pmtab->p_ttylabel = optarg;
322 * - modification is made to stuff args in pmtab
325 getty_options(argc, argv, pmtab)
328 struct pmtab *pmtab;
336 pmtab->p_ttyflags &= ~(H_FLAG);
345 (void) sscanf(ptr, "%d", &(pmtab->p_timeout));
351 &(pmtab->p_timeout));
374 pmtab->p_device = devbuf;
378 pmtab->p_ttylabel = *++argv;