OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / getttyent.3
1 .\"  Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"  Distributed under GPL
3 .\"
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>
8 .\"
9 .TH GETTTYENT 3 2002-07-18  "GNU" "Linux Programmer's Manual"
10 .\"O .SH NAME
11 .SH Ì¾Á°
12 .\"O getttyent, getttynam, setttyent, endttyent \- get ttys file entry
13 getttyent, getttynam, setttyent, endttyent \- ttys ¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥È¥ê¤ò¼èÆÀ¤¹¤ë
14 .\"O .SH SYNOPSIS
15 .SH ½ñ¼°
16 .B "#include <ttyent.h>"
17 .sp
18 .B "struct ttyent *getttyent(void);"
19 .sp
20 .BI "struct ttyent *getttynam(const char *" name );
21 .sp
22 .B "int setttyent(void);"
23 .sp
24 .B "int endttyent(void);"
25 .\"O .SH DESCRIPTION
26 .SH ÀâÌÀ
27 .\"O These functions provide an interface to the file
28 .\"O .B _PATH_TTYS
29 .\"O (e.g.,
30 .\"O .IR /etc/ttys ).
31 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë
32 .B _PATH_TTYS
33 (Î㤨¤Ð
34 .IR /etc/ttys )
35 ¤Ø¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤¹¤ë¡£
36
37 .\"O The function
38 .\"O .BR setttyent ()
39 .\"O opens the file or rewinds it if already open.
40 ´Ø¿ô
41 .BR setttyent ()
42 ¤Ï¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤¹¤ë¡£
43 ¤Þ¤¿´û¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢´¬¤­Ì᤹¡£
44
45 .\"O The function
46 .\"O .BR endttyent ()
47 .\"O closes the file.
48 ´Ø¿ô
49 .BR endttyent ()
50 ¤Ï¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
51
52 .\"O The function
53 .\"O .BR getttynam ()
54 .\"O searches for a given ttyname in the file.
55 .\"O It returns a pointer to a
56 .\"O .I ttyent
57 .\"O structure (description below).
58 ´Ø¿ô
59 .BR getttynam ()
60 ¤Ï»ØÄꤵ¤ì¤¿Ã¼Ëö̾¤Ë¤Ä¤¤¤Æ¥Õ¥¡¥¤¥ë¤ò¸¡º÷¤¹¤ë¡£
61 ¤³¤Î´Ø¿ô¤Ï (°Ê²¼¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤ë)
62 .I ttyent
63 ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£
64
65 .\"O The function
66 .\"O .BR getttyent ()
67 .\"O opens the file
68 .\"O .B _PATH_TTYS
69 .\"O (if necessary) and returns the first entry.
70 .\"O If the file is already open, the next entry.
71 ´Ø¿ô
72 .BR getttyent ()
73 ¤Ï (¤â¤·É¬ÍפǤ¢¤ì¤Ð) ¥Õ¥¡¥¤¥ë
74 .B _PATH_TTYS
75 ¤ò¥ª¡¼¥×¥ó¤·¡¢ºÇ½é¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£
76 ¥Õ¥¡¥¤¥ë¤¬´û¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¼¡¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£
77 .\"O The
78 .\"O .I ttyent
79 .\"O structure has the form:
80 .I ttyent
81 ¹½Â¤ÂΤϰʲ¼¤ÎÄ̤ê¤Ç¤¢¤ë¡£
82 .in +4n
83 .nf
84
85 struct ttyent {
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;  /* ¥³¥á¥ó¥È¥Õ¥£¡¼¥ë¥É */
98 };
99 .fi
100 .in
101
102 .\"O .I ty_status
103 .\"O can be:
104 .I ty_status
105 ¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«Ãͤò¤È¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
106 .br
107 .nf
108
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 ¤Ç¤Î¥í¥°¥¤¥ó¤òµö²Ä¤¹¤ë */
113 .fi
114 .\"O .SH "CONFORMING TO"
115 .SH ½àµò
116 .\"O Not in POSIX.1-2001.
117 .\"O Present on the BSDs, and perhaps other systems.
118 POSIX.1-2001 ¤Ë¤Ï¤Ê¤¤¡£
119 BSD ·Ï¤Ë¸ºß¤·¡¢¤ª¤½¤é¤¯Â¾¤Î¥·¥¹¥Æ¥à¤Ë¤â¤¢¤ë¤À¤í¤¦¡£
120 .\"O .SH NOTES
121 .SH Ãí°Õ
122 .\"O Under Linux the file
123 .\"O .IR /etc/ttys ,
124 .\"O and the functions described above, are not used.
125 Linux ¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë
126 .I /etc/ttys
127 ¤È¾å¤ÇÀâÌÀ¤·¤¿´Ø¿ô¤Ï»È¤ï¤ì¤Æ¤¤¤Ê¤¤¡£
128 .\"O .SH "SEE ALSO"
129 .SH ´ØÏ¢¹àÌÜ
130 .BR ttyname (3),
131 .BR ttyslot (3)