1 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
5 .\" all rights reserved.
6 .\" Translated Fri Aug 20 03:27:22 JST 2004
7 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
9 .TH GETTTYENT 3 2002-07-18 "GNU" "Linux Programmer's Manual"
12 .\"O getttyent, getttynam, setttyent, endttyent \- get ttys file entry
13 getttyent, getttynam, setttyent, endttyent \- ttys ファイルのエントリを取得する
16 .B "#include <ttyent.h>"
18 .B "struct ttyent *getttyent(void);"
20 .BI "struct ttyent *getttynam(const char *" name );
22 .B "int setttyent(void);"
24 .B "int endttyent(void);"
27 .\"O These functions provide an interface to the file
39 .\"O opens the file or rewinds it if already open.
43 また既にオープンされている場合は、巻き戻す。
54 .\"O searches for a given ttyname in the file.
55 .\"O It returns a pointer to a
57 .\"O structure (description below).
60 は指定された端末名についてファイルを検索する。
69 .\"O (if necessary) and returns the first entry.
70 .\"O If the file is already open, the next entry.
76 ファイルが既にオープンされている場合は、次のエントリを返す。
79 .\"O structure has the form:
86 .\"O char *ty_name; /* terminal device name */
87 .\"O char *ty_getty; /* command to execute, usually getty */
88 .\"O char *ty_type; /* terminal type for termcap */
89 .\"O int ty_status; /* status flags */
90 .\"O char *ty_window; /* command to start up window manager */
91 .\"O char *ty_comment; /* comment field */
92 char *ty_name; /* 端末デバイス名 */
93 char *ty_getty; /* 実行するコマンド。通常は getty */
94 char *ty_type; /* termcap のための端末タイプ */
95 int ty_status; /* 状態フラグ */
96 char *ty_window; /* ウィンドウマネージャを起動するコマンド */
97 char *ty_comment; /* コメントフィールド */
109 .\"O #define TTY_ON 0x01 /* enable logins (start ty_getty program) */
110 .\"O #define TTY_SECURE 0x02 /* allow UID 0 to login */
111 #define TTY_ON 0x01 /* ログインを有効にする (ty_getty プログラムを開始する) */
112 #define TTY_SECURE 0x02 /* ユーザ ID 0 でのログインを許可する */
114 .\"O .SH "CONFORMING TO"
116 .\"O Not in POSIX.1-2001.
117 .\"O Present on the BSDs, and perhaps other systems.
119 BSD 系に存在し、おそらく他のシステムにもあるだろう。
122 .\"O Under Linux the file
124 .\"O and the functions described above, are not used.