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
31 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë
35 ¤Ø¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤¹¤ë¡£
39 .\"O opens the file or rewinds it if already open.
42 ¤Ï¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤¹¤ë¡£
43 ¤Þ¤¿´û¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢´¬¤Ì᤹¡£
50 ¤Ï¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
54 .\"O searches for a given ttyname in the file.
55 .\"O It returns a pointer to a
57 .\"O structure (description below).
60 ¤Ï»ØÄꤵ¤ì¤¿Ã¼Ëö̾¤Ë¤Ä¤¤¤Æ¥Õ¥¡¥¤¥ë¤ò¸¡º÷¤¹¤ë¡£
61 ¤³¤Î´Ø¿ô¤Ï (°Ê²¼¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤ë)
63 ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£
69 .\"O (if necessary) and returns the first entry.
70 .\"O If the file is already open, the next entry.
73 ¤Ï (¤â¤·É¬ÍפǤ¢¤ì¤Ð) ¥Õ¥¡¥¤¥ë
75 ¤ò¥ª¡¼¥×¥ó¤·¡¢ºÇ½é¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£
76 ¥Õ¥¡¥¤¥ë¤¬´û¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¼¡¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£
79 .\"O structure has the form:
81 ¹½Â¤ÂΤϰʲ¼¤ÎÄ̤ê¤Ç¤¢¤ë¡£
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; /* ¥³¥á¥ó¥È¥Õ¥£¡¼¥ë¥É */
105 ¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«Ãͤò¤È¤ë¤³¤È¤¬¤Ç¤¤ë¡£
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.
118 POSIX.1-2001 ¤Ë¤Ï¤Ê¤¤¡£
119 BSD ·Ï¤Ë¸ºß¤·¡¢¤ª¤½¤é¤¯Â¾¤Î¥·¥¹¥Æ¥à¤Ë¤â¤¢¤ë¤À¤í¤¦¡£
122 .\"O Under Linux the file
124 .\"O and the functions described above, are not used.
127 ¤È¾å¤ÇÀâÌÀ¤·¤¿´Ø¿ô¤Ï»È¤ï¤ì¤Æ¤¤¤Ê¤¤¡£