Lines Matching refs:gptr
57 struct Gdef *gptr; in read_ttydefs() local
123 gptr = &def; in read_ttydefs()
124 zero((char *)gptr, sizeof (struct Gdef)); in read_ttydefs()
129 gptr->g_id = d_id; in read_ttydefs()
140 if ((id != NULL) && (strcmp(id, gptr->g_id) != 0)) in read_ttydefs()
159 gptr->g_iflags = d_if; in read_ttydefs()
173 gptr->g_fflags = d_ff; in read_ttydefs()
195 gptr->g_autobaud |= A_FLAG; in read_ttydefs()
216 gptr->g_nextid = d_nextid; in read_ttydefs()
232 log("ttylabel:\t%s", gptr->g_id); in read_ttydefs()
233 log("initial flags:\t%s", gptr->g_iflags); in read_ttydefs()
234 log("final flags:\t%s", gptr->g_fflags); in read_ttydefs()
235 if (gptr->g_autobaud & A_FLAG) in read_ttydefs()
239 log("nextlabel:\t%s", gptr->g_nextid); in read_ttydefs()
242 insert_def(gptr); in read_ttydefs()
338 insert_def(struct Gdef *gptr) in insert_def() argument
342 if (find_def(gptr->g_id) != NULL) { in insert_def()
343 log("Warning -- duplicate entry <%s>, ignored", gptr->g_id); in insert_def()
347 tp->g_id = strsave(gptr->g_id); in insert_def()
348 tp->g_iflags = strsave(gptr->g_iflags); in insert_def()
349 tp->g_fflags = strsave(gptr->g_fflags); in insert_def()
350 tp->g_autobaud = gptr->g_autobaud; in insert_def()
351 tp->g_nextid = strsave(gptr->g_nextid); in insert_def()
412 struct Gdef *gptr; in dump_ttydefs() local
414 gptr = &Gdef[0]; in dump_ttydefs()
418 for (i = 0; i < Ndefs; i++, gptr++) { in dump_ttydefs()
420 log("ttylabel:\t%s", gptr->g_id); in dump_ttydefs()
421 log("initial flags:\t%s", gptr->g_iflags); in dump_ttydefs()
422 log("final flags:\t%s", gptr->g_fflags); in dump_ttydefs()
423 if (gptr->g_autobaud & A_FLAG) in dump_ttydefs()
427 log("nextlabel:\t%s", gptr->g_nextid); in dump_ttydefs()