/* getttyent, getttynam, setttyent, endttyent for linux by qpliu@phoenix.princeton.edu 1992 $Id$ */ #include #include #include struct ttyent * getttynam (const char *nam) { struct ttyent *ent; setttyent (); while (ent = getttyent ()) if (!strcmp(ent->ty_name, nam)) break; return ent; }