diff options
Diffstat (limited to 'lib/libc/gen/getttyent.3')
-rw-r--r-- | lib/libc/gen/getttyent.3 | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/lib/libc/gen/getttyent.3 b/lib/libc/gen/getttyent.3 index 4d82c5026d0..da9355eab6c 100644 --- a/lib/libc/gen/getttyent.3 +++ b/lib/libc/gen/getttyent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getttyent.3,v 1.7 1999/06/04 01:30:11 aaron Exp $ +.\" $OpenBSD: getttyent.3,v 1.8 2000/12/24 00:30:49 aaron Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -55,10 +55,8 @@ The .Fn getttyent and .Fn getttynam -functions -each return a pointer to an object, with the following structure, -containing the broken-out fields of a line from the tty description -file. +functions each return a pointer to an object, with the following structure, +containing the broken-out fields of a line from the tty description file. .Bd -literal struct ttyent { char *ty_name; /* terminal device name */ @@ -100,16 +98,14 @@ on this entry). .It Dv TTY_SECURE Allow users with a UID of 0 to login on this terminal. .It Dv TTY_LOCAL -If the terminal port's driver supports it, cause the line -to be treated as +If the terminal port's driver supports it, cause the line to be treated as .Dq local . .It Dv TTY_MDMBUF If the terminal port's driver supports it, use DTR/DCD hardware flow control on the line by default. .It Dv TTY_RTSCTS If the terminal port's driver supports it, use -full-duplex RTS/CTS hardware flow control on the line -by default. +full-duplex RTS/CTS hardware flow control on the line by default. .It Dv TTY_SOFTCAR If the terminal port's driver supports it, ignore hardware carrier on the line. @@ -135,8 +131,7 @@ fields. .Pp The .Fn getttyent -function -reads the next line from the ttys file, opening the file if necessary. +function reads the next line from the ttys file, opening the file if necessary. .Fn setttyent rewinds the file if open, or opens the file if it is unopened. .Fn endttyent @@ -145,8 +140,7 @@ closes any open files. .Fn getttynam searches from the beginning of the file until a matching .Fa name -is found -(or until +is found (or until .Dv EOF is encountered). .Sh RETURN VALUES @@ -159,8 +153,7 @@ return a null pointer on or error. The .Fn setttyent -function -and +function and .Fn endttyent return 0 on failure or 1 on success. .Sh FILES @@ -186,6 +179,5 @@ and functions appeared in .Bx 4.3 . .Sh BUGS -These functions use static data storage; -if the data is needed for future use, it should be -copied before any subsequent calls overwrite it. +These functions use static data storage; if the data is needed for future use, +it should be copied before any subsequent calls overwrite it. |