OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / man3 / getttyent.3
index 8b444fc..5b77749 100644 (file)
@@ -1,94 +1,49 @@
 .\"  Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
-.\"  Distributed under GPL
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
+.\" Distributed under GPL
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
 .\"         all rights reserved.
 .\" Translated Fri Aug 20 03:27:22 JST 2004
 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
 .\"
-.TH GETTTYENT 3 2002-07-18  "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
+.TH GETTTYENT 3 2013\-07\-22 GNU "Linux Programmer's Manual"
 .SH 名前
-.\"O getttyent, getttynam, setttyent, endttyent \- get ttys file entry
-getttyent, getttynam, setttyent, endttyent \- ttys ファイルのエントリを取得する
-.\"O .SH SYNOPSIS
+getttyent, getttynam, setttyent, endttyent \- ttys ファイルのエントリーを取得する
 .SH 書式
-.B "#include <ttyent.h>"
+\fB#include <ttyent.h>\fP
 .sp
-.B "struct ttyent *getttyent(void);"
+\fBstruct ttyent *getttyent(void);\fP
 .sp
-.BI "struct ttyent *getttynam(const char *" name );
+\fBstruct ttyent *getttynam(const char *\fP\fIname\fP\fB);\fP
 .sp
-.B "int setttyent(void);"
+\fBint setttyent(void);\fP
 .sp
-.B "int endttyent(void);"
-.\"O .SH DESCRIPTION
+\fBint endttyent(void);\fP
 .SH 説明
-.\"O These functions provide an interface to the file
-.\"O .B _PATH_TTYS
-.\"O (e.g.,
-.\"O .IR /etc/ttys ).
-これらの関数はファイル
-.B _PATH_TTYS
-(例えば
-.IR /etc/ttys )
-へのインタフェースを提供する。
+これらの関数はファイル \fB_PATH_TTYS\fP (例えば \fI/etc/ttys\fP)  へのインターフェースを提供する。
 
-.\"O The function
-.\"O .BR setttyent ()
-.\"O opens the file or rewinds it if already open.
-関数
-.BR setttyent ()
-はファイルをオープンする。
-また既にオープンされている場合は、巻き戻す。
+関数 \fBsetttyent\fP()  はファイルをオープンする。 また既にオープンされている場合は、巻き戻す。
 
-.\"O The function
-.\"O .BR endttyent ()
-.\"O closes the file.
-関数
-.BR endttyent ()
-はファイルをクローズする。
+関数 \fBendttyent\fP()  はファイルをクローズする。
 
-.\"O The function
-.\"O .BR getttynam ()
-.\"O searches for a given ttyname in the file.
-.\"O It returns a pointer to a
-.\"O .I ttyent
-.\"O structure (description below).
-関数
-.BR getttynam ()
-は指定された端末名についてファイルを検索する。
-この関数は (以下で説明されている)
-.I ttyent
-構造体へのポインタを返す。
+関数 \fBgetttynam\fP()  は指定された端末名についてファイルを検索する。 この関数は (以下で説明されている)  \fIttyent\fP
+構造体へのポインターを返す。
 
-.\"O The function
-.\"O .BR getttyent ()
-.\"O opens the file
-.\"O .B _PATH_TTYS
-.\"O (if necessary) and returns the first entry.
-.\"O If the file is already open, the next entry.
-関数
-.BR getttyent ()
-は (もし必要であれば) ファイル
-.B _PATH_TTYS
-をオープンし、最初のエントリを返す。
-ファイルが既にオープンされている場合は、次のエントリを返す。
-.\"O The
-.\"O .I ttyent
-.\"O structure has the form:
-.I ttyent
-構造体は以下の通りである。
+関数 \fBgetttyent\fP()  は (もし必要であれば) ファイル \fB_PATH_TTYS\fP をオープンし、最初のエントリーを返す。
+ファイルが既にオープンされている場合は、次のエントリーを返す。 \fIttyent\fP 構造体は以下の通りである。
 .in +4n
 .nf
 
 struct ttyent {
-.\"O     char *ty_name;     /* terminal device name */
-.\"O     char *ty_getty;    /* command to execute, usually getty */
-.\"O     char *ty_type;     /* terminal type for termcap */
-.\"O     int   ty_status;   /* status flags */
-.\"O     char *ty_window;   /* command to start up window manager */
-.\"O     char *ty_comment;  /* comment field */
     char *ty_name;     /* 端末デバイス名 */
     char *ty_getty;    /* 実行するコマンド。通常は getty */
     char *ty_type;     /* termcap のための端末タイプ */
@@ -99,33 +54,27 @@ struct ttyent {
 .fi
 .in
 
-.\"O .I ty_status
-.\"O can be:
-.I ty_status
-は以下のいずれか値をとることができる。
+\fIty_status\fP は以下のいずれか値をとることができる。
 .br
 .nf
 
-.\"O #define TTY_ON     0x01  /* enable logins (start ty_getty program) */
-.\"O #define TTY_SECURE 0x02  /* allow UID 0 to login */
 #define TTY_ON     0x01  /* ログインを有効にする (ty_getty プログラムを開始する) */
-#define TTY_SECURE 0x02  /* ユーザ ID 0 でのログインを許可する */
+#define TTY_SECURE 0x02  /* ユーザ ID 0 でのログインを許可する */
 .fi
-.\"O .SH "CONFORMING TO"
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+関数 \fBgetttyent\fP() は静的変数へのポインターを返す。そのため、スレッドセーフではない。
+.LP
+関数 \fBsetttyent\fP() と \fBendttyent\fP() は静的変数を使用する。そのため、スレッドセーフではない。
+.LP
+関数 \fBgetttynam\fP() はスレッドセーフではない関数 \fBgetttyent\fP() を呼び出す。そのため、スレッドセーフではない。
 .SH 準拠
-.\"O Not in POSIX.1-2001.
-.\"O Present on the BSDs, and perhaps other systems.
-POSIX.1-2001 にはない。
-BSD 系に存在し、おそらく他のシステムにもあるだろう。
-.\"O .SH NOTES
+POSIX.1\-2001 にはない。 BSD 系に存在し、おそらく他のシステムにもあるだろう。
 .SH 注意
-.\"O Under Linux the file
-.\"O .IR /etc/ttys ,
-.\"O and the functions described above, are not used.
-Linux では、ファイル
-.I /etc/ttys
-と上で説明した関数は使われていない。
-.\"O .SH "SEE ALSO"
+Linux では、ファイル \fI/etc/ttys\fP と上で説明した関数は使われていない。
 .SH 関連項目
-.BR ttyname (3),
-.BR ttyslot (3)
+\fBttyname\fP(3), \fBttyslot\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。