projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
4.3BSD beta release manual page
[unix-history]
/
usr
/
src
/
lib
/
libc
/
gen
/
getttynam.c
/* @(#)getttynam.c 4.1 (Berkeley) %G% */
#include <ttyent.h>
struct
ttyent
*
getttynam
(
tty
)
char
*
tty
;
{
register
struct
ttyent
*
t
;
setttyent
();
while
(
t
=
getttyent
()) {
if
(
strcmp
(
tty
,
t
->
ty_name
) ==
0
)
break
;
}
endttyent
();
return
(
t
);
}