OSDN Git Service

(split) LDP: Update release pages
[linuxjm/LDP_man-pages.git] / release / man3 / getttyent.3
index 9e9f4c2..ab9096e 100644 (file)
@@ -1,84 +1,74 @@
 .\"  Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
-.\"  Distributed under GPL
 .\"
-.\" 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>
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
+.\" Distributed under GPL
+.\" %%%LICENSE_END
 .\"
-.TH GETTTYENT 3 2002-07-18  "GNU" "Linux Programmer's Manual"
-.SH Ì¾Á°
-getttyent, getttynam, setttyent, endttyent \- ttys ¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥È¥ê¤ò¼èÆÀ¤¹¤ë
-.SH ½ñ¼°
-.B "#include <ttyent.h>"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH GETTTYENT 3 2013\-06\-21 GNU "Linux Programmer's Manual"
+.SH 名前
+getttyent, getttynam, setttyent, endttyent \- ttys ファイルのエントリを取得する
+.SH 書式
+\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);"
-.SH ÀâÌÀ
-¤³¤ì¤é¤Î´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë
-.B _PATH_TTYS
-(Î㤨¤Ð
-.IR /etc/ttys )
-¤Ø¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤¹¤ë¡£
+\fBint endttyent(void);\fP
+.SH 説明
+これらの関数はファイル \fB_PATH_TTYS\fP (例えば \fI/etc/ttys\fP)  へのインタフェースを提供する。
 
-´Ø¿ô
-.BR setttyent ()
-¤Ï¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤¹¤ë¡£
-¤Þ¤¿´û¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢´¬¤­Ì᤹¡£
+関数 \fBsetttyent\fP()  はファイルをオープンする。 また既にオープンされている場合は、巻き戻す。
 
-´Ø¿ô
-.BR endttyent ()
-¤Ï¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
+関数 \fBendttyent\fP()  はファイルをクローズする。
 
-´Ø¿ô
-.BR getttynam ()
-¤Ï»ØÄꤵ¤ì¤¿Ã¼Ëö̾¤Ë¤Ä¤¤¤Æ¥Õ¥¡¥¤¥ë¤ò¸¡º÷¤¹¤ë¡£
-¤³¤Î´Ø¿ô¤Ï (°Ê²¼¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤ë)
-.I ttyent
-¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£
+関数 \fBgetttynam\fP()  は指定された端末名についてファイルを検索する。 この関数は (以下で説明されている)  \fIttyent\fP
+構造体へのポインタを返す。
 
-´Ø¿ô
-.BR getttyent ()
-¤Ï (¤â¤·É¬ÍפǤ¢¤ì¤Ð) ¥Õ¥¡¥¤¥ë
-.B _PATH_TTYS
-¤ò¥ª¡¼¥×¥ó¤·¡¢ºÇ½é¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£
-¥Õ¥¡¥¤¥ë¤¬´û¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¼¡¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£
-.I ttyent
-¹½Â¤ÂΤϰʲ¼¤ÎÄ̤ê¤Ç¤¢¤ë¡£
+関数 \fBgetttyent\fP()  は (もし必要であれば) ファイル \fB_PATH_TTYS\fP をオープンし、最初のエントリを返す。
+ファイルが既にオープンされている場合は、次のエントリを返す。 \fIttyent\fP 構造体は以下の通りである。
 .in +4n
 .nf
 
 struct ttyent {
-    char *ty_name;     /* Ã¼Ëö¥Ç¥Ð¥¤¥¹Ì¾ */
-    char *ty_getty;    /* ¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¡£Ä̾ï¤Ï getty */
-    char *ty_type;     /* termcap ¤Î¤¿¤á¤ÎüËö¥¿¥¤¥× */
-    int   ty_status;   /* ¾õÂ֥ե饰 */
-    char *ty_window;   /* ¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤òµ¯Æ°¤¹¤ë¥³¥Þ¥ó¥É */
-    char *ty_comment;  /* ¥³¥á¥ó¥È¥Õ¥£¡¼¥ë¥É */
+    char *ty_name;     /* 端末デバイス名 */
+    char *ty_getty;    /* 実行するコマンド。通常は getty */
+    char *ty_type;     /* termcap のための端末タイプ */
+    int   ty_status;   /* ç\8a¶æ\85\8bã\83\95ã\83©ã\82° */
+    char *ty_window;   /* ウィンドウマネージャを起動するコマンド */
+    char *ty_comment;  /* コメントフィールド */
 };
 .fi
 .in
 
-.I ty_status
-¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«Ãͤò¤È¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
+\fIty_status\fP は以下のいずれか値をとることができる。
 .br
 .nf
 
-#define TTY_ON     0x01  /* ¥í¥°¥¤¥ó¤òÍ­¸ú¤Ë¤¹¤ë (ty_getty ¥×¥í¥°¥é¥à¤ò³«»Ï¤¹¤ë) */
-#define TTY_SECURE 0x02  /* ¥æ¡¼¥¶ ID 0 ¤Ç¤Î¥í¥°¥¤¥ó¤òµö²Ä¤¹¤ë */
+#define TTY_ON     0x01  /* ログインを有効にする (ty_getty プログラムを開始する) */
+#define TTY_SECURE 0x02  /* ユーザ ID 0 でのログインを許可する */
 .fi
-.SH ½àµò
-POSIX.1-2001 ¤Ë¤Ï¤Ê¤¤¡£
-BSD ·Ï¤Ë¸ºß¤·¡¢¤ª¤½¤é¤¯Â¾¤Î¥·¥¹¥Æ¥à¤Ë¤â¤¢¤ë¤À¤í¤¦¡£
-.SH Ãí°Õ
-Linux ¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë
-.I /etc/ttys
-¤È¾å¤ÇÀâÌÀ¤·¤¿´Ø¿ô¤Ï»È¤ï¤ì¤Æ¤¤¤Ê¤¤¡£
-.SH ´ØÏ¢¹àÌÜ
-.BR ttyname (3),
-.BR ttyslot (3)
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+\fBgetttyent\fP() は静的変数へのポインタを返す。そのため、スレッドセーフではない。
+.LP
+\fBsetttyent\fP() と \fBendttyent\fP() は静的変数を使用する。そのため、スレッドセーフではない。
+.LP
+\fBgetttynam\fP() はスレッドセーフではない関数 \fBgetttyent\fP() を呼び出す。そのため、スレッドセーフではない。
+.SH 準拠
+POSIX.1\-2001 にはない。 BSD 系に存在し、おそらく他のシステムにもあるだろう。
+.SH 注意
+Linux では、ファイル \fI/etc/ttys\fP と上で説明した関数は使われていない。
+.SH 関連項目
+\fBttyname\fP(3), \fBttyslot\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。