The name of the command invoked by init(8) to initialize tty line characteristics.
The name of the default terminal type connected to this tty line.
A mask of bit fields which indicate various actions allowed on this tty line. The possible flags are as follows:
Enables logins (i.e., init(8) will start the command referenced by ty_getty on this entry).
Allow users with a uid of 0 to login on this terminal.
Identifies a tty as a dialin line. If this flag is set, then isdialuptty will return a non-zero value.
Identifies a tty used for network connections. If this flag is set, then isnettty will return a non-zero value.
The command to execute for a window system associated with the line.
A group name to which the tty belongs. If no group is specified in the ttys description file, then the tty is placed in an anonymous group called "none".
Any trailing comment field, with any leading hash marks (#) or whitespace removed.
If any of the fields pointing to character strings are unspecified, they are returned as null pointers. The field ty_status will be zero if no flag values are specified.
See ttys(5) for a more complete discussion of the meaning and usage of the fields.
The getttyent function reads the next line from the ttys file, opening the file if necessary. The setttyent function rewinds the file if open, or opens the file if it is unopened. The endttyent function closes any open files.
The getttynam function searches from the beginning of the file until a matching name is found (or until EOF is encountered).