OSDN Git Service

(split) LDP: Remove untranslated pages from release/ and draft/.
[linuxjm/LDP_man-pages.git] / po4a / utmp / po / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2012-05-01 04:22+0900\n"
10 "PO-Revision-Date: 2012-05-04 05:16+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
13 "Language: \n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #. type: TH
19 #: build/C/man3/getutent.3:30
20 #, no-wrap
21 msgid "GETUTENT"
22 msgstr "GETUTENT"
23
24 #. type: TH
25 #: build/C/man3/getutent.3:30
26 #, no-wrap
27 msgid "2008-06-29"
28 msgstr "2008-06-29"
29
30 #. type: TH
31 #: build/C/man3/getutent.3:30 build/C/man3/getutmp.3:24
32 #: build/C/man3/login.3:24 build/C/man3/updwtmp.3:23 build/C/man5/utmp.5:29
33 #, no-wrap
34 msgid "Linux Programmer's Manual"
35 msgstr "Linux Programmer's Manual"
36
37 #. type: SH
38 #: build/C/man3/getutent.3:31 build/C/man3/getutmp.3:25
39 #: build/C/man3/login.3:25 build/C/man3/updwtmp.3:24 build/C/man5/utmp.5:30
40 #, no-wrap
41 msgid "NAME"
42 msgstr "名前"
43
44 #. type: Plain text
45 #: build/C/man3/getutent.3:34
46 msgid ""
47 "getutent, getutid, getutline, pututline, setutent, endutent, utmpname - "
48 "access utmp file entries"
49 msgstr ""
50 "getutent, getutid, getutline, pututline, setutent, endutent, utmpname - utmp "
51 "ファイルのエントリにアクセスする"
52
53 #. type: SH
54 #: build/C/man3/getutent.3:34 build/C/man3/getutmp.3:27
55 #: build/C/man3/login.3:27 build/C/man3/updwtmp.3:26 build/C/man5/utmp.5:32
56 #, no-wrap
57 msgid "SYNOPSIS"
58 msgstr "書式"
59
60 #. type: Plain text
61 #: build/C/man3/getutent.3:36 build/C/man3/login.3:29 build/C/man5/utmp.5:34
62 msgid "B<#include E<lt>utmp.hE<gt>>"
63 msgstr "B<#include E<lt>utmp.hE<gt>>"
64
65 #. type: Plain text
66 #: build/C/man3/getutent.3:38
67 msgid "B<struct utmp *getutent(void);>"
68 msgstr "B<struct utmp *getutent(void);>"
69
70 #. type: Plain text
71 #: build/C/man3/getutent.3:40
72 msgid "B<struct utmp *getutid(struct utmp *>I<ut>B<);>"
73 msgstr "B<struct utmp *getutid(struct utmp *>I<ut>B<);>"
74
75 #. type: Plain text
76 #: build/C/man3/getutent.3:42
77 msgid "B<struct utmp *getutline(struct utmp *>I<ut>B<);>"
78 msgstr "B<struct utmp *getutline(struct utmp *>I<ut>B<);>"
79
80 #. type: Plain text
81 #: build/C/man3/getutent.3:44
82 msgid "B<struct utmp *pututline(struct utmp *>I<ut>B<);>"
83 msgstr "B<struct utmp *pututline(struct utmp *>I<ut>B<);>"
84
85 #. type: Plain text
86 #: build/C/man3/getutent.3:46
87 msgid "B<void setutent(void);>"
88 msgstr "B<void setutent(void);>"
89
90 #. type: Plain text
91 #: build/C/man3/getutent.3:48
92 msgid "B<void endutent(void);>"
93 msgstr "B<void endutent(void);>"
94
95 #. type: Plain text
96 #: build/C/man3/getutent.3:50
97 msgid "B<int utmpname(const char *>I<file>B<);>"
98 msgstr "B<int utmpname(const char *>I<file>B<);>"
99
100 #. type: SH
101 #: build/C/man3/getutent.3:50 build/C/man3/getutmp.3:35
102 #: build/C/man3/login.3:35 build/C/man3/updwtmp.3:35 build/C/man5/utmp.5:34
103 #, no-wrap
104 msgid "DESCRIPTION"
105 msgstr "説明"
106
107 #. type: Plain text
108 #: build/C/man3/getutent.3:53
109 msgid ""
110 "New applications should use the POSIX.1-specified \"utmpx\" versions of "
111 "these functions; see CONFORMING TO."
112 msgstr ""
113 "新しいアプリケーションでは、これらの関数の \"utmpx\" 版を使用すべきである。 "
114 "これらは POSIX.1 で規定されている。「準拠」の節を参照。"
115
116 #. type: Plain text
117 #: build/C/man3/getutent.3:62
118 msgid ""
119 "B<utmpname>()  sets the name of the utmp-format file for the other utmp "
120 "functions to access.  If B<utmpname>()  is not used to set the filename "
121 "before the other functions are used, they assume B<_PATH_UTMP>, as defined "
122 "in I<E<lt>paths.hE<gt>>."
123 msgstr ""
124 "B<utmpname>()  は、他の utmp 関数がアクセスする (utmp フォーマットの)  ファイ"
125 "ルの名前を指定する。他の関数を使う前に B<utmpname>()  を使って ファイル名の指"
126 "定を行わなかった場合は、 I<E<lt>path.hE<gt>> で 定義されている B<_PATH_UTMP> "
127 "がファイル名とみなされる。"
128
129 #. type: Plain text
130 #: build/C/man3/getutent.3:67
131 msgid ""
132 "B<setutent>()  rewinds the file pointer to the beginning of the utmp file.  "
133 "It is generally a good idea to call it before any of the other functions."
134 msgstr ""
135 "B<setutent>()  は、ファイルポインタを utmp ファイルの先頭に移動する。 一般的"
136 "には、他の関数を使う前にこの関数を呼び出しておくと良いだろう。"
137
138 #. type: Plain text
139 #: build/C/man3/getutent.3:72
140 msgid ""
141 "B<endutent>()  closes the utmp file.  It should be called when the user code "
142 "is done accessing the file with the other functions."
143 msgstr ""
144 "B<endutent>()  は utmp ファイルをクローズする。ユーザーコードで 他の関数を"
145 "使ってこのファイルにアクセスを行った時は、最後にこの関数を 呼び出すべきであ"
146 "る。"
147
148 #. type: Plain text
149 #: build/C/man3/getutent.3:79
150 msgid ""
151 "B<getutent>()  reads a line from the current file position in the utmp "
152 "file.  It returns a pointer to a structure containing the fields of the "
153 "line.  The definition of this structure is shown in B<utmp>(5)."
154 msgstr ""
155 "B<getutent>()  は utmp ファイルの現在のファイル位置から一行読み込み、 行の各"
156 "フィールドの内容を収めた構造体へのポインタを返す。 この構造体の定義は B<utmp>"
157 "(5)  に書かれている。"
158
159 #. type: Plain text
160 #: build/C/man3/getutent.3:95
161 msgid ""
162 "B<getutid>()  searches forward from the current file position in the utmp "
163 "file based upon I<ut>.  If I<ut-E<gt>ut_type> is one of B<RUN_LVL>, "
164 "B<BOOT_TIME>, B<NEW_TIME>, or B<OLD_TIME>, B<getutid>()  will find the first "
165 "entry whose I<ut_type> field matches I<ut-E<gt>ut_type>.  If I<ut-"
166 "E<gt>ut_type> is one of B<INIT_PROCESS>, B<LOGIN_PROCESS>, B<USER_PROCESS>, "
167 "or B<DEAD_PROCESS>, B<getutid>()  will find the first entry whose I<ut_id> "
168 "field matches I<ut-E<gt>ut_id>."
169 msgstr ""
170 "B<getutid>()  は、 utmp ファイル中の現在の位置から順方向 (末尾に向かう方向) "
171 "へ I<ut> に基く検索を行う。 I<ut>-E<gt>ut_type が B<RUN_LVL>, B<BOOT_TIME>, "
172 "B<NEW_TIME>, B<OLD_TIME> の いずれかなら、 B<getutid>()  は B<ut_type> フィー"
173 "ルドが I<ut>-E<gt>ut_type に一致する最初のエントリを探す。 I<ut>-"
174 "E<gt>ut_type が B<INIT_PROCESS>, B<LOGIN_PROCESS>, B<USER_PROCESS>, "
175 "B<DEAD_PROCESS> のいずれかなら、 B<getutid>()  は I<ut_id> フィールドが "
176 "I<ut>-E<gt>ut_id に 一致する最初のエントリを探す。"
177
178 #. type: Plain text
179 #: build/C/man3/getutent.3:105
180 msgid ""
181 "B<getutline>()  searches forward from the current file position in the utmp "
182 "file.  It scans entries whose I<ut_type> is B<USER_PROCESS> or "
183 "B<LOGIN_PROCESS> and returns the first one whose I<ut_line> field matches "
184 "I<ut-E<gt>ut_line>."
185 msgstr ""
186 "B<getutline>()  は、 utmp ファイルの現在の位置から末尾に向かって検索を行う。 "
187 "I<ut_type> が B<USER_PROCESS> または B<LOGIN_PROCESS> で、 I<ut_line> フィー"
188 "ルドが I<ut>-E<gt>ut_line にマッチする最初の行を返す。"
189
190 #. type: Plain text
191 #: build/C/man3/getutent.3:117
192 msgid ""
193 "B<pututline>()  writes the I<utmp> structure I<ut> into the utmp file.  It "
194 "uses B<getutid>()  to search for the proper place in the file to insert the "
195 "new entry.  If it cannot find an appropriate slot for I<ut>, B<pututline>()  "
196 "will append the new entry to the end of the file."
197 msgstr ""
198 "B<pututline>()  は I<utmp> 構造体 I<ut> の内容を utmp ファイルに書き出す。 "
199 "B<pututline>()  は B<getutid>()  を用いて、新たなエントリを 挿入するのにふさ"
200 "わしい場所を探す。 I<ut> を挿入するふさわしい場所が 見つからない場合は、新た"
201 "なエントリをファイルの末尾に追加する。"
202
203 #. type: SH
204 #: build/C/man3/getutent.3:117 build/C/man3/getutmp.3:49
205 #: build/C/man3/login.3:87
206 #, no-wrap
207 msgid "RETURN VALUE"
208 msgstr "返り値"
209
210 #. type: Plain text
211 #: build/C/man3/getutent.3:126
212 msgid ""
213 "B<getutent>(), B<getutid>(), and B<getutline>()  return a pointer to a "
214 "I<struct utmp> on success, and NULL on failure (which includes the \"record "
215 "not found\" case).  This I<struct utmp> is allocated in static storage, and "
216 "may be overwritten by subsequent calls."
217 msgstr ""
218 "B<getutent>(), B<getutid>(), B<getutline>()  は、成功すると I<struct utmp> へ"
219 "のポインタを返す。 失敗すると NULL を返す (レコードが見つからなかった場合も失"
220 "敗となる)。 この I<struct utmp> は静的な記憶領域に確保され、次にこれらの関数"
221 "を 呼び出した際に上書きされるかもしれない。"
222
223 #. type: Plain text
224 #: build/C/man3/getutent.3:132
225 msgid "On success B<pututline>()  returns I<ut>; on failure, it returns NULL."
226 msgstr "B<pututline>()  は成功すると I<ut> を返す。失敗すると NULL を返す。"
227
228 #. type: Plain text
229 #: build/C/man3/getutent.3:135
230 msgid ""
231 "B<utmpname>()  returns 0 if the new name was successfully stored, or -1 on "
232 "failure."
233 msgstr ""
234 "B<utmpname>()  は、新しい名前の格納に成功すると 0 を返し、失敗すると -1 を返"
235 "す。"
236
237 #. type: SH
238 #: build/C/man3/getutent.3:135
239 #, no-wrap
240 msgid "ERRORS"
241 msgstr "エラー"
242
243 #. type: TP
244 #: build/C/man3/getutent.3:136
245 #, no-wrap
246 msgid "B<ENOMEM>"
247 msgstr "B<ENOMEM>"
248
249 #. type: Plain text
250 #: build/C/man3/getutent.3:139
251 msgid "Out of memory."
252 msgstr "メモリ不足。"
253
254 #. type: TP
255 #: build/C/man3/getutent.3:139
256 #, no-wrap
257 msgid "B<ESRCH>"
258 msgstr "B<ESRCH>"
259
260 #. type: Plain text
261 #: build/C/man3/getutent.3:142
262 msgid "Record not found."
263 msgstr "レコードが見つからなかった。"
264
265 #. type: Plain text
266 #: build/C/man3/getutent.3:149
267 msgid ""
268 "B<setutent>(), B<pututline>(), and the B<getut* ()> functions can also fail "
269 "for the reasons described in B<open>(2)."
270 msgstr ""
271 "関数 B<setutent>(), B<pututline>(), B<getut*>()  は B<open>(2)  に書かれてい"
272 "る理由でも失敗することがある。"
273
274 #. type: SH
275 #: build/C/man3/getutent.3:149 build/C/man3/login.3:92
276 #: build/C/man3/updwtmp.3:48 build/C/man5/utmp.5:223
277 #, no-wrap
278 msgid "FILES"
279 msgstr "ファイル"
280
281 #. type: Plain text
282 #: build/C/man3/getutent.3:151
283 msgid "/var/run/utmp\tdatabase of currently logged-in users"
284 msgstr "/var/run/utmp 現在ログイン中のユーザーのデータベース"
285
286 #. type: Plain text
287 #: build/C/man3/getutent.3:153
288 msgid "/var/log/wtmp\tdatabase of past user logins"
289 msgstr "/var/log/wtmp 過去のユーザーログインのデータベース"
290
291 #. type: SH
292 #: build/C/man3/getutent.3:153 build/C/man3/getutmp.3:53
293 #: build/C/man3/login.3:105 build/C/man3/updwtmp.3:52 build/C/man5/utmp.5:227
294 #, no-wrap
295 msgid "CONFORMING TO"
296 msgstr "準拠"
297
298 #. type: Plain text
299 #: build/C/man3/getutent.3:155
300 msgid "XPG2, SVr4."
301 msgstr "XPG2, SVr4."
302
303 #. type: Plain text
304 #: build/C/man3/getutent.3:165
305 msgid ""
306 "In XPG2 and SVID 2 the function B<pututline>()  is documented to return "
307 "void, and that is what it does on many systems (AIX, HP-UX, Linux libc5).  "
308 "HP-UX introduces a new function B<_pututline>()  with the prototype given "
309 "above for B<pututline>()  (also found in Linux libc5)."
310 msgstr ""
311 "XPG2 と SVID 2 では、 B<pututline>()  関数は値を返さないとされており、 (AIX, "
312 "HP-UX, Linux libc5 などの) 多くのシステムではそうなっている。 HP-UX では、上"
313 "述の B<pututline>()  と同じプロトタイプを持つ 新しい関数 B<_pututline>()  が"
314 "導入されている (この関数は Linux libc5 にもある)。"
315
316 #. type: Plain text
317 #: build/C/man3/getutent.3:169
318 msgid ""
319 "All these functions are obsolete now on non-Linux systems.  POSIX.1-2001, "
320 "following SUSv1, does not have any of these functions, but instead uses"
321 msgstr ""
322 "現在では、Linux 以外のシステムでは、これらの関数は全て廃止されている。 SUSv1 "
323 "の後に出てきた POSIX.1-2001 では、もはやこれらの関数はなく、 代わりに以下のも"
324 "のを使う。"
325
326 #. type: Plain text
327 #: build/C/man3/getutent.3:171
328 msgid "B<#include E<lt>utmpx.hE<gt>>"
329 msgstr "B<#include E<lt>utmpx.hE<gt>>"
330
331 #. type: Plain text
332 #: build/C/man3/getutent.3:173
333 msgid "B<struct utmpx *getutxent(void);>"
334 msgstr "B<struct utmpx *getutxent(void);>"
335
336 #. type: Plain text
337 #: build/C/man3/getutent.3:175
338 msgid "B<struct utmpx *getutxid(const struct utmpx *);>"
339 msgstr "B<struct utmpx *getutxid(const struct utmpx *);>"
340
341 #. type: Plain text
342 #: build/C/man3/getutent.3:177
343 msgid "B<struct utmpx *getutxline(const struct utmpx *);>"
344 msgstr "B<struct utmpx *getutxline(const struct utmpx *);>"
345
346 #. type: Plain text
347 #: build/C/man3/getutent.3:179
348 msgid "B<struct utmpx *pututxline(const struct utmpx *);>"
349 msgstr "B<struct utmpx *pututxline(const struct utmpx *);>"
350
351 #. type: Plain text
352 #: build/C/man3/getutent.3:181
353 msgid "B<void setutxent(void);>"
354 msgstr "B<void setutxent(void);>"
355
356 #. type: Plain text
357 #: build/C/man3/getutent.3:183
358 msgid "B<void endutxent(void);>"
359 msgstr "B<void endutxent(void);>"
360
361 #. type: Plain text
362 #: build/C/man3/getutent.3:192
363 msgid ""
364 "These functions are provided by glibc, and perform the same task as their "
365 "equivalents without the \"x\", but use I<struct utmpx>, defined on Linux to "
366 "be the same as I<struct utmp>.  For completeness, glibc also provides "
367 "B<utmpxname>(), although this function is not specified by POSIX.1."
368 msgstr ""
369 "これらの関数は glibc により提供されており、 \"x\" がない関数と同じ処理を行う"
370 "が、 I<struct utmpx> を使用する。 Linux では、この構造体の定義は I<struct "
371 "utmp> と同じになっている。 完全を期すために、glibc では B<utmpxname>()  も提"
372 "供している。この関数は POSIX.1 では規定されていない。"
373
374 #. type: Plain text
375 #: build/C/man3/getutent.3:200
376 msgid ""
377 "On some other systems, the I<utmpx> structure is a superset of the I<utmp> "
378 "structure, with additional fields, and larger versions of the existing "
379 "fields, and parallel files are maintained, often I</var/*/utmpx> and I</var/"
380 "*/wtmpx>."
381 msgstr ""
382 "Linux 以外のシステムでは、 I<utmpx> 構造体は I<utmp> 構造体の上位集合 "
383 "(superset) になっていて、 追加のフィールドがあったり、既存のフィールドのサイ"
384 "ズが大きくなっていたり するものもある。複数のファイルが使用されている場合もあ"
385 "り、多くの場合 I</var/*/utmpx> と I</var/*/wtmpx> というファイルが使われる。"
386
387 #. type: Plain text
388 #: build/C/man3/getutent.3:205
389 msgid ""
390 "Linux glibc on the other hand does not use a parallel I<utmpx> file since "
391 "its I<utmp> structure is already large enough.  The functions B<getutxent>"
392 "()  etc. are aliases for B<getutent>() etc."
393 msgstr ""
394 "一方、 Linux glibc では複数の I<utmpx> ファイル は使われていない。 I<utmp> 構"
395 "造体が十分に大きいからである。 I<getutxent>() などの関数は I<getutent>() など"
396 "の別名となっている。"
397
398 #. type: SH
399 #: build/C/man3/getutent.3:205 build/C/man3/getutmp.3:56
400 #: build/C/man3/login.3:108 build/C/man3/updwtmp.3:65 build/C/man5/utmp.5:279
401 #, no-wrap
402 msgid "NOTES"
403 msgstr "注意"
404
405 #. type: SS
406 #: build/C/man3/getutent.3:206
407 #, no-wrap
408 msgid "Glibc Notes"
409 msgstr "glibc での注意"
410
411 #. type: Plain text
412 #: build/C/man3/getutent.3:209
413 msgid "The above functions are not thread-safe.  Glibc adds reentrant versions"
414 msgstr ""
415 "上記の関数群はスレッド・セーフではない。 glibc にはリエントラント版 "
416 "(reentrant) が追加されている。"
417
418 #. type: Plain text
419 #: build/C/man3/getutent.3:214
420 #, no-wrap
421 msgid ""
422 "B<#define _GNU_SOURCE>    /* or _SVID_SOURCE or _BSD_SOURCE;\n"
423 "\\&                          see B<feature_test_macros(7)> */\n"
424 "B<#include E<lt>utmp.hE<gt>>\n"
425 msgstr ""
426 "B<#define _GNU_SOURCE>    /* or _SVID_SOURCE or _BSD_SOURCE;\n"
427 "\\&                          B<feature_test_macros(7)> 参照 */\n"
428 "B<#include E<lt>utmp.hE<gt>>\n"
429
430 #. type: Plain text
431 #: build/C/man3/getutent.3:216
432 #, no-wrap
433 msgid "B<int getutent_r(struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
434 msgstr "B<int getutent_r(struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
435
436 #. type: Plain text
437 #: build/C/man3/getutent.3:219
438 #, no-wrap
439 msgid ""
440 "B<int getutid_r(struct utmp *>I<ut>B<,>\n"
441 "B<              struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
442 msgstr ""
443 "B<int getutid_r(struct utmp *>I<ut>B<,>\n"
444 "B<              struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
445
446 #. type: Plain text
447 #: build/C/man3/getutent.3:222
448 #, no-wrap
449 msgid ""
450 "B<int getutline_r(struct utmp *>I<ut>B<,>\n"
451 "B<                struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
452 msgstr ""
453 "B<int getutline_r(struct utmp *>I<ut>B<,>\n"
454 "B<                struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
455
456 #. type: Plain text
457 #: build/C/man3/getutent.3:234
458 msgid ""
459 "These functions are GNU extensions, analogs of the functions of the same "
460 "name without the _r suffix.  The I<ubuf> argument gives these functions a "
461 "place to store their result.  On success they return 0, and a pointer to the "
462 "result is written in I<*ubufp>.  On error these functions return -1.  There "
463 "are no utmpx equivalents of the above functions.  (POSIX.1 does not specify "
464 "such functions.)"
465 msgstr ""
466 "これらの関数は GNU での拡張であり、末尾の _r をとった名前の関数と 同様の機能"
467 "を持つ。 I<ubuf> パラメータは結果を格納する場所を指定する。 成功すると 0 を返"
468 "し、結果へのポインタを I<*ubufp> に書き込む。エラーの場合 -1 を返す。 上記の"
469 "関数に対応する utmpx 版は存在しない (POSIX.1 ではこれらの関数を規定されていな"
470 "い)。"
471
472 #. type: SH
473 #: build/C/man3/getutent.3:234
474 #, no-wrap
475 msgid "EXAMPLE"
476 msgstr "例"
477
478 #. type: Plain text
479 #: build/C/man3/getutent.3:242
480 msgid ""
481 "The following example adds and removes a utmp record, assuming it is run "
482 "from within a pseudo terminal.  For usage in a real application, you should "
483 "check the return values of B<getpwuid>(3)  and B<ttyname>(3)."
484 msgstr ""
485 "以下の例では、 utmp のレコードの追加・削除を行っている。このコードは、 擬似端"
486 "末 (pseudo terminal) から実行されることを想定している。 実際のアプリケーショ"
487 "ンでは B<getpwuid>(3)  と B<ttyname>(3)  の戻り値を検査するべきである。"
488
489 #. type: Plain text
490 #: build/C/man3/getutent.3:249
491 #, no-wrap
492 msgid ""
493 "#include E<lt>string.hE<gt>\n"
494 "#include E<lt>stdlib.hE<gt>\n"
495 "#include E<lt>pwd.hE<gt>\n"
496 "#include E<lt>unistd.hE<gt>\n"
497 "#include E<lt>utmp.hE<gt>\n"
498 msgstr ""
499 "#include E<lt>string.hE<gt>\n"
500 "#include E<lt>stdlib.hE<gt>\n"
501 "#include E<lt>pwd.hE<gt>\n"
502 "#include E<lt>unistd.hE<gt>\n"
503 "#include E<lt>utmp.hE<gt>\n"
504
505 #. type: Plain text
506 #: build/C/man3/getutent.3:254
507 #, no-wrap
508 msgid ""
509 "int\n"
510 "main(int argc, char *argv[])\n"
511 "{\n"
512 "    struct utmp entry;\n"
513 msgstr ""
514 "int\n"
515 "main(int argc, char *argv[])\n"
516 "{\n"
517 "    struct utmp entry;\n"
518
519 #. type: Plain text
520 #: build/C/man3/getutent.3:256
521 #, no-wrap
522 msgid "    system(\"echo before adding entry:;who\");\n"
523 msgstr "    system(\"echo before adding entry:;who\");\n"
524
525 #. type: Plain text
526 #: build/C/man3/getutent.3:268
527 #, no-wrap
528 msgid ""
529 "    entry.ut_type = USER_PROCESS;\n"
530 "    entry.ut_pid = getpid();\n"
531 "    strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
532 "    /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
533 "    strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
534 "    time(&entry.ut_time);\n"
535 "    strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
536 "    memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
537 "    entry.ut_addr = 0;\n"
538 "    setutent();\n"
539 "    pututline(&entry);\n"
540 msgstr ""
541 "    entry.ut_type = USER_PROCESS;\n"
542 "    entry.ut_pid = getpid();\n"
543 "    strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
544 "    /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
545 "    strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
546 "    time(&entry.ut_time);\n"
547 "    strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
548 "    memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
549 "    entry.ut_addr = 0;\n"
550 "    setutent();\n"
551 "    pututline(&entry);\n"
552
553 #. type: Plain text
554 #: build/C/man3/getutent.3:270
555 #, no-wrap
556 msgid "    system(\"echo after adding entry:;who\");\n"
557 msgstr "    system(\"echo after adding entry:;who\");\n"
558
559 #. type: Plain text
560 #: build/C/man3/getutent.3:277
561 #, no-wrap
562 msgid ""
563 "    entry.ut_type = DEAD_PROCESS;\n"
564 "    memset(entry.ut_line, 0, UT_LINESIZE);\n"
565 "    entry.ut_time = 0;\n"
566 "    memset(entry.ut_user, 0, UT_NAMESIZE);\n"
567 "    setutent();\n"
568 "    pututline(&entry);\n"
569 msgstr ""
570 "    entry.ut_type = DEAD_PROCESS;\n"
571 "    memset(entry.ut_line, 0, UT_LINESIZE);\n"
572 "    entry.ut_time = 0;\n"
573 "    memset(entry.ut_user, 0, UT_NAMESIZE);\n"
574 "    setutent();\n"
575 "    pututline(&entry);\n"
576
577 #. type: Plain text
578 #: build/C/man3/getutent.3:279
579 #, no-wrap
580 msgid "    system(\"echo after removing entry:;who\");\n"
581 msgstr "    system(\"echo after removing entry:;who\");\n"
582
583 #. type: Plain text
584 #: build/C/man3/getutent.3:283
585 #, no-wrap
586 msgid ""
587 "    endutent();\n"
588 "    exit(EXIT_SUCCESS);\n"
589 "}\n"
590 msgstr ""
591 "    endutent();\n"
592 "    exit(EXIT_SUCCESS);\n"
593 "}\n"
594
595 #. type: SH
596 #: build/C/man3/getutent.3:284 build/C/man3/getutmp.3:67
597 #: build/C/man3/login.3:123 build/C/man3/updwtmp.3:81 build/C/man5/utmp.5:337
598 #, no-wrap
599 msgid "SEE ALSO"
600 msgstr "関連項目"
601
602 #. type: Plain text
603 #: build/C/man3/getutent.3:287
604 msgid "B<getutmp>(3), B<utmp>(5)"
605 msgstr "B<getutmp>(3), B<utmp>(5)"
606
607 #. type: SH
608 #: build/C/man3/getutent.3:287 build/C/man3/getutmp.3:70
609 #: build/C/man3/login.3:126 build/C/man3/updwtmp.3:84 build/C/man5/utmp.5:350
610 #, no-wrap
611 msgid "COLOPHON"
612 msgstr "この文書について"
613
614 #. type: Plain text
615 #: build/C/man3/getutent.3:294 build/C/man3/getutmp.3:77
616 #: build/C/man3/login.3:133 build/C/man3/updwtmp.3:91 build/C/man5/utmp.5:357
617 msgid ""
618 "This page is part of release 3.40 of the Linux I<man-pages> project.  A "
619 "description of the project, and information about reporting bugs, can be "
620 "found at http://www.kernel.org/doc/man-pages/."
621 msgstr ""
622 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.40 の一部\n"
623 "である。プロジェクトの説明とバグ報告に関する情報は\n"
624 "http://www.kernel.org/doc/man-pages/ に書かれている。"
625
626 #. type: TH
627 #: build/C/man3/getutmp.3:24
628 #, no-wrap
629 msgid "GETUTMP"
630 msgstr "GETUTMP"
631
632 #. type: TH
633 #: build/C/man3/getutmp.3:24
634 #, no-wrap
635 msgid "2010-09-10"
636 msgstr "2010-09-10"
637
638 #. type: TH
639 #: build/C/man3/getutmp.3:24 build/C/man5/utmp.5:29
640 #, no-wrap
641 msgid "Linux"
642 msgstr "Linux"
643
644 #. type: Plain text
645 #: build/C/man3/getutmp.3:27
646 msgid "getutmp, getutmpx - copy utmp structure to utmpx, and vice versa"
647 msgstr ""
648
649 #. type: Plain text
650 #: build/C/man3/getutmp.3:31
651 #, no-wrap
652 msgid ""
653 "B<#define _GNU_SOURCE>             /* See feature_test_macros(7) */\n"
654 "B<#include E<lt>utmpx.hE<gt>>\n"
655 msgstr ""
656
657 #. type: Plain text
658 #: build/C/man3/getutmp.3:34
659 #, no-wrap
660 msgid ""
661 "B< void getutmp(const struct utmpx *>I<ux>B<, struct utmp *>I<u>B<);>\n"
662 "B< void getutmpx(const struct utmp *>I<u>B<, struct utmpx *>I<ux>B<);>\n"
663 msgstr ""
664 "B< void getutmp(const struct utmpx *>I<ux>B<, struct utmp *>I<u>B<);>\n"
665 "B< void getutmpx(const struct utmp *>I<u>B<, struct utmpx *>I<ux>B<);>\n"
666
667 #. type: Plain text
668 #: build/C/man3/getutmp.3:49
669 msgid ""
670 "The B<getutmp>()  function copies the fields of the I<utmpx> structure "
671 "pointed to by I<ux> to the corresponding fields of the I<utmp> structure "
672 "pointed to by I<u>.  The B<getutmpx>()  function performs the converse "
673 "operation."
674 msgstr ""
675
676 #. type: Plain text
677 #: build/C/man3/getutmp.3:51
678 msgid "These functions do not return a value."
679 msgstr ""
680
681 #. type: SH
682 #: build/C/man3/getutmp.3:51
683 #, no-wrap
684 msgid "VERSIONS"
685 msgstr ""
686
687 #. type: Plain text
688 #: build/C/man3/getutmp.3:53
689 msgid "These functions first appeared in glibc in version 2.1.1."
690 msgstr ""
691
692 #. type: Plain text
693 #: build/C/man3/getutmp.3:56
694 msgid ""
695 "These functions are nonstandard, but appear on a few other systems, such as "
696 "Solaris and NetBSD."
697 msgstr ""
698
699 #.  e.g., on Solaris, the utmpx structure is rather larger than utmp.
700 #. type: Plain text
701 #: build/C/man3/getutmp.3:67
702 msgid ""
703 "These functions exist primarily for compatibility with other systems where "
704 "the I<utmp> and I<utmpx> structures contain different fields, or the size of "
705 "corresponding fields differs.  On Linux, the two structures contain the same "
706 "fields, and the fields have the same sizes."
707 msgstr ""
708
709 #. type: Plain text
710 #: build/C/man3/getutmp.3:70 build/C/man3/login.3:126
711 msgid "B<getutent>(3), B<utmp>(5)"
712 msgstr "B<getutent>(3), B<utmp>(5)"
713
714 #. type: TH
715 #: build/C/man3/login.3:24
716 #, no-wrap
717 msgid "LOGIN"
718 msgstr "LOGIN"
719
720 #. type: TH
721 #: build/C/man3/login.3:24
722 #, no-wrap
723 msgid "2004-05-06"
724 msgstr "2004-05-06"
725
726 #. type: TH
727 #: build/C/man3/login.3:24 build/C/man3/updwtmp.3:23
728 #, no-wrap
729 msgid "GNU"
730 msgstr "GNU"
731
732 #. type: Plain text
733 #: build/C/man3/login.3:27
734 msgid "login, logout - write utmp and wtmp entries"
735 msgstr "login, logout - utmp と wtmp エントリを書き込む"
736
737 #. type: Plain text
738 #: build/C/man3/login.3:31
739 msgid "B<void login(const struct utmp *>I<ut>B<);>"
740 msgstr "B<void login(const struct utmp *>I<ut>B<);>"
741
742 #. type: Plain text
743 #: build/C/man3/login.3:33
744 msgid "B<int logout(const char *>I<ut_line>B<);>"
745 msgstr "B<int logout(const char *>I<ut_line>B<);>"
746
747 #. type: Plain text
748 #: build/C/man3/login.3:35
749 msgid "Link with I<-lutil>."
750 msgstr "I<-lutil> でリンクする。"
751
752 #. type: Plain text
753 #: build/C/man3/login.3:40
754 msgid ""
755 "The utmp file records who is currently using the system.  The wtmp file "
756 "records all logins and logouts.  See B<utmp>(5)."
757 msgstr ""
758 "utmp ファイルは現在システムを使用しているユーザを記録する。 wtmp ファイルはす"
759 "べてのログインとログアウトを記録する。 B<utmp>(5)  を参照すること。"
760
761 #. type: Plain text
762 #: build/C/man3/login.3:46
763 msgid ""
764 "The function B<login>()  takes the supplied I<struct utmp>, I<ut>, and "
765 "writes it to both the utmp and the wtmp file."
766 msgstr ""
767 "関数 B<login>()  は与えられた I<struct utmp> I<ut> を utmp と wtmp ファイルの"
768 "両方に書き込む。"
769
770 #. type: Plain text
771 #: build/C/man3/login.3:50
772 msgid "The function B<logout>()  clears the entry in the utmp file again."
773 msgstr "関数 B<logout>()  は utmp ファイルにあるエントリをクリアする。"
774
775 #. type: SS
776 #: build/C/man3/login.3:50
777 #, no-wrap
778 msgid "GNU Details"
779 msgstr "GNU 版の詳細"
780
781 #. type: Plain text
782 #: build/C/man3/login.3:71
783 msgid ""
784 "More precisely, B<login>()  takes the argument I<ut> struct, fills the field "
785 "I<ut-E<gt>ut_type> (if there is such a field) with the value "
786 "B<USER_PROCESS>, and fills the field I<ut-E<gt>ut_pid> (if there is such a "
787 "field) with the process ID of the calling process.  Then it tries to fill "
788 "the field I<ut-E<gt>ut_line>.  It takes the first of I<stdin>, I<stdout>, "
789 "I<stderr> that is a tty, and stores the corresponding pathname minus a "
790 "possible leading I</dev/> into this field, and then writes the struct to the "
791 "utmp file.  On the other hand, if no tty name was found, this field is "
792 "filled with \"???\" and the struct is not written to the utmp file.  After "
793 "this, the struct is written to the wtmp file."
794 msgstr ""
795 "より正確には、 B<login>()  は引き数 I<ut> 構造体をとり、(もし存在するならば) "
796 "フィールド I<ut-E<gt>ut_type> を B<USER_PROCESS> という値にし、(もし存在する"
797 "ならば) フィールド I<ut-E<gt>ut_pid> を呼び出し元プロセスのプロセス ID の値に"
798 "する。 次にフィールド I<ut-E<gt>ut_line> の値を設定しようとする。 この関数"
799 "は、標準入力・標準出力・標準エラー出力の中から 端末 (tty) である最初のものを"
800 "とり、 対応するパス名から先頭の I</dev/> を引いたものを このフィールドに格納"
801 "して、この構造体を utmp ファイルに書き込む。 一方、端末名が見つからない場合"
802 "は、このフィールドは \"???\" とされて、 この構造体は utmp ファイルに書き込ま"
803 "れない。 その後にこの構造体は wtmp ファイルに書き込まれる。"
804
805 #. type: Plain text
806 #: build/C/man3/login.3:87
807 msgid ""
808 "The B<logout>()  function searches the utmp file for an entry matching the "
809 "I<ut_line> argument.  If a record is found, it is updated by zeroing out the "
810 "I<ut_name> and I<ut_host> fields, updating the I<ut_tv> timestamp field and "
811 "setting I<ut_type> (if there is such a field) to B<DEAD_PROCESS>."
812 msgstr ""
813 "B<logout>()  関数は utmp ファイルから I<ut_line> 引き数にマッチするエントリを"
814 "探す。 レコードが見つかった場合、 I<ut_name> と I<ut_host> フィールドをクリア"
815 "して、 I<ut_tv> タイムスタンプフィールドを更新し、 (もし存在するならば)  "
816 "I<ut_type> フィールドを B<DEAD_PROCESS> に更新する。"
817
818 #. type: Plain text
819 #: build/C/man3/login.3:92
820 msgid ""
821 "The B<logout>()  function returns 1 if the entry was successfully written to "
822 "the database, or 0 if an error occurred."
823 msgstr ""
824 "エントリをデータベースに書き込むのに成功した場合、 B<logout>()  関数は 1 を返"
825 "す。 またエラーが起こった場合、0 を返す。"
826
827 #. type: TP
828 #: build/C/man3/login.3:93
829 #, no-wrap
830 msgid "I</var/run/utmp>"
831 msgstr "I</var/run/utmp>"
832
833 #. type: Plain text
834 #: build/C/man3/login.3:99
835 msgid ""
836 "user accounting database, configured through B<_PATH_UTMP> in I<E<lt>paths."
837 "hE<gt>>"
838 msgstr ""
839 "ユーザアカウントデータベース。 I<E<lt>paths.hE<gt>> における B<_PATH_UTMP> で"
840 "設定されている。"
841
842 #. type: TP
843 #: build/C/man3/login.3:99 build/C/man3/updwtmp.3:49
844 #, no-wrap
845 msgid "I</var/log/wtmp>"
846 msgstr "I</var/log/wtmp>"
847
848 #. type: Plain text
849 #: build/C/man3/login.3:105
850 msgid ""
851 "user accounting log file, configured through B<_PATH_WTMP> in I<E<lt>paths."
852 "hE<gt>>"
853 msgstr ""
854 "ユーザアカウントログファイル。 I<E<lt>paths.hE<gt>> における B<_PATH_WTMP> で"
855 "設定されている。"
856
857 #. type: Plain text
858 #: build/C/man3/login.3:108
859 msgid "Not in POSIX.1-2001.  Present on the BSDs."
860 msgstr "POSIX.1-2001 にはない。 BSD 系に存在する。"
861
862 #. type: Plain text
863 #: build/C/man3/login.3:123
864 msgid ""
865 "Note that the member I<ut_user> of I<struct utmp> is called I<ut_name> in "
866 "BSD.  Therefore, I<ut_name> is defined as an alias for I<ut_user> in "
867 "I<E<lt>utmp.hE<gt>>."
868 msgstr ""
869 "I<struct utmp> のメンバ I<ut_user> は、BSD では I<ut_name> という名前である点"
870 "に注意すること。 そのため I<ut_name> は I<E<lt>utmp.hE<gt>> において "
871 "I<ut_user> のエイリアスとして定義されている。"
872
873 #. type: TH
874 #: build/C/man3/updwtmp.3:23
875 #, no-wrap
876 msgid "UPDWTMP"
877 msgstr "UPDWTMP"
878
879 #. type: TH
880 #: build/C/man3/updwtmp.3:23
881 #, no-wrap
882 msgid "2008-07-02"
883 msgstr "2008-07-02"
884
885 #. type: Plain text
886 #: build/C/man3/updwtmp.3:26
887 msgid "updwtmp, logwtmp - append an entry to the wtmp file"
888 msgstr "updwtmp, logwtmp - wtmp ファイルにエントリを追加する"
889
890 #. type: Plain text
891 #: build/C/man3/updwtmp.3:29
892 #, no-wrap
893 msgid "B<#include E<lt>utmp.hE<gt>>\n"
894 msgstr "B<#include E<lt>utmp.hE<gt>>\n"
895
896 #. type: Plain text
897 #: build/C/man3/updwtmp.3:31
898 #, no-wrap
899 msgid "B<void updwtmp(const char *>I<wtmp_file>B<, const struct utmp *>I<ut>B<);>\n"
900 msgstr "B<void updwtmp(const char *>I<wtmp_file>B<, const struct utmp *>I<ut>B<);>\n"
901
902 #. type: Plain text
903 #: build/C/man3/updwtmp.3:34
904 #, no-wrap
905 msgid "B<void logwtmp(const char *>I<line>B<, const char *>I<name>B<, const char *>I<host>B<);>\n"
906 msgstr "B<void logwtmp(const char *>I<line>B<, const char *>I<name>B<, const char *>I<host>B<);>\n"
907
908 #. type: Plain text
909 #: build/C/man3/updwtmp.3:40
910 msgid "B<updwtmp>()  appends the utmp structure I<ut> to the wtmp file."
911 msgstr "B<updwtmp>()  は、utmp 構造体 I<ut> を wtmp ファイルに追加する。"
912
913 #. type: Plain text
914 #: build/C/man3/updwtmp.3:48
915 msgid ""
916 "B<logwtmp>()  constructs a utmp structure using I<line>, I<name>, I<host>, "
917 "current time and current process ID.  Then it calls B<updwtmp>()  to append "
918 "the structure to the wtmp file."
919 msgstr ""
920 "B<logwtmp>()  は、 I<line>, I<name>, I<host>, 現在時刻、現プロセスID から "
921 "utmp 構造体を作り、 B<updwtmp>()  を呼び出してその構造体を wtmp ファイルに追"
922 "加する。"
923
924 #. type: Plain text
925 #: build/C/man3/updwtmp.3:52
926 msgid "database of past user logins"
927 msgstr "ユーザログインの履歴データベース"
928
929 #. type: Plain text
930 #: build/C/man3/updwtmp.3:55
931 msgid ""
932 "Not in POSIX.1-2001.  Present on Solaris, NetBSD, and perhaps other systems."
933 msgstr ""
934 "POSIX.1-2001 にはない。 Solaris, NetBSD に存在し、おそらく他のシステムにもあ"
935 "るだろう。"
936
937 #. type: SH
938 #: build/C/man3/updwtmp.3:55
939 #, no-wrap
940 msgid "AVAILABILITY"
941 msgstr "利用可能な環境"
942
943 #. type: Plain text
944 #: build/C/man3/updwtmp.3:65
945 msgid ""
946 "Both functions are available under glibc2, but not under libc5.  However, "
947 "B<logwtmp>()  used to occur in the old libbsd.  These days, the B<logwtmp>"
948 "()  function is included in libutil.  (Hence you'll need to add I<-lutil> to "
949 "your compiler command line to get it.)"
950 msgstr ""
951 "glibc2 の下ではどちらの関数も利用可能である。 libc5 の下ではどちらも使えない"
952 "が、 B<logwtmp>()  は古い libbsd にあった。 最近では、 B<logwtmp>()  関数は "
953 "libutil に含まれている (したがって、この関数を使うためにはコンパイラのコマン"
954 "ドラインに I<-lutil> を追加する必要がある)。"
955
956 #. type: Plain text
957 #: build/C/man3/updwtmp.3:69
958 msgid ""
959 "For consistency with the other \"utmpx\" functions (see B<getutxent>(3)), "
960 "glibc provides (since version 2.1):"
961 msgstr ""
962 "他の \"utmpx\" 関数群 (B<getutxent>(3)  参照) との一貫性のために、glibc (バー"
963 "ジョン 2.1 以降) は以下の関数を 提供している:"
964
965 #. type: Plain text
966 #: build/C/man3/updwtmp.3:72
967 #, no-wrap
968 msgid "B<#include E<lt>utmpx.hE<gt>>\n"
969 msgstr "B<#include E<lt>utmpx.hE<gt>>\n"
970
971 #. type: Plain text
972 #: build/C/man3/updwtmp.3:74
973 #, no-wrap
974 msgid "B<void updwtmpx (const char *>I<wtmpx_file>B<, const struct utmpx *>I<utx>B<);>\n"
975 msgstr "B<void updwtmpx (const char *>I<wtmpx_file>B<, const struct utmpx *>I<utx>B<);>\n"
976
977 #. type: Plain text
978 #: build/C/man3/updwtmp.3:81
979 msgid ""
980 "This function performs the same task as B<updwtmp>(), but differs in that it "
981 "takes a I<utmpx> structure as its last argument."
982 msgstr ""
983 "この関数は B<updwtmp>()  と同じ作業を行うが、最後の引き数として I<utmpx> 構造"
984 "体を取るところが異なる。"
985
986 #. type: Plain text
987 #: build/C/man3/updwtmp.3:84
988 msgid "B<getutxent>(3), B<wtmp>(5)"
989 msgstr "B<getutxent>(3), B<wtmp>(5)"
990
991 #. type: TH
992 #: build/C/man5/utmp.5:29
993 #, no-wrap
994 msgid "UTMP"
995 msgstr "UTMP"
996
997 #. type: TH
998 #: build/C/man5/utmp.5:29
999 #, no-wrap
1000 msgid "2011-09-28"
1001 msgstr "2011-09-28"
1002
1003 #. type: Plain text
1004 #: build/C/man5/utmp.5:32
1005 msgid "utmp, wtmp - login records"
1006 msgstr "utmp, wtmp - ログイン記録"
1007
1008 #. type: Plain text
1009 #: build/C/man5/utmp.5:41
1010 msgid ""
1011 "The I<utmp> file allows one to discover information about who is currently "
1012 "using the system.  There may be more users currently using the system, "
1013 "because not all programs use utmp logging."
1014 msgstr ""
1015 "I<utmp> ファイルを見ることで、現在誰がシステムを使っているかという情報 が得ら"
1016 "れる。ただすべてのプログラムが utmp ファイルを 更新しているわけではないので、"
1017 "実際にはそれ以上のユーザーが システムを使っている可能性がある。"
1018
1019 #. type: Plain text
1020 #: build/C/man5/utmp.5:51
1021 msgid ""
1022 "B<Warning:> I<utmp> must not be writable by the user class \"other\", "
1023 "because many system programs (foolishly)  depend on its integrity.  You risk "
1024 "faked system logfiles and modifications of system files if you leave I<utmp> "
1025 "writable to any user other than the owner and group owner of the file."
1026 msgstr ""
1027 "B<警告:> (愚かにも) 多くのシステムプログラムがその整合性に依存しているので、 "
1028 "I<utmp> ファイルは \"other\" に分類されるユーザに対して 書き込み可能にしては"
1029 "ならない。 ファイルの所有者とグループオーナー以外のユーザに対して I<utmp> "
1030 "ファイルを書き込み可能な状態にしておくと、 システムのログファイルを偽造された"
1031 "り、システムファイルの 改ざんを受けるといったリスクを犯すことになる。"
1032
1033 #. type: Plain text
1034 #: build/C/man5/utmp.5:59
1035 msgid ""
1036 "The file is a sequence of I<utmp> structures, declared as follows in "
1037 "I<E<lt>utmp.hE<gt>> (note that this is only one of several definitions "
1038 "around; details depend on the version of libc):"
1039 msgstr ""
1040 "このファイルは I<utmp> 構造体の繰り返しで構成される。 この構造体は "
1041 "I<E<lt>utmp.hE<gt>> で以下のように定義されている (ここに記述してあるのは幾つ"
1042 "かの大まかな定義のみで、 詳細は libc のバージョンにより変わることに注意が必要"
1043 "である)。"
1044
1045 #. type: Plain text
1046 #: build/C/man5/utmp.5:63
1047 #, no-wrap
1048 msgid "/* Values for ut_type field, below */\n"
1049 msgstr "/* Values for ut_type field, below */\n"
1050
1051 #. type: Plain text
1052 #: build/C/man5/utmp.5:78
1053 #, no-wrap
1054 msgid ""
1055 "#define EMPTY         0 /* Record does not contain valid info\n"
1056 "                           (formerly known as UT_UNKNOWN on Linux) */\n"
1057 "#define RUN_LVL       1 /* Change in system run-level (see\n"
1058 "                           B<init>(8)) */\n"
1059 "#define BOOT_TIME     2 /* Time of system boot (in I<ut_tv>) */\n"
1060 "#define NEW_TIME      3 /* Time after system clock change\n"
1061 "                           (in I<ut_tv>) */\n"
1062 "#define OLD_TIME      4 /* Time before system clock change\n"
1063 "                           (in I<ut_tv>) */\n"
1064 "#define INIT_PROCESS  5 /* Process spawned by B<init>(8) */\n"
1065 "#define LOGIN_PROCESS 6 /* Session leader process for user login */\n"
1066 "#define USER_PROCESS  7 /* Normal process */\n"
1067 "#define DEAD_PROCESS  8 /* Terminated process */\n"
1068 "#define ACCOUNTING    9 /* Not implemented */\n"
1069 msgstr ""
1070 "#define EMPTY         0 /* Record does not contain valid info\n"
1071 "                           (formerly known as UT_UNKNOWN on Linux) */\n"
1072 "#define RUN_LVL       1 /* Change in system run-level (see\n"
1073 "                           B<init>(8)) */\n"
1074 "#define BOOT_TIME     2 /* Time of system boot (in I<ut_tv>) */\n"
1075 "#define NEW_TIME      3 /* Time after system clock change\n"
1076 "                           (in I<ut_tv>) */\n"
1077 "#define OLD_TIME      4 /* Time before system clock change\n"
1078 "                           (in I<ut_tv>) */\n"
1079 "#define INIT_PROCESS  5 /* Process spawned by B<init>(8) */\n"
1080 "#define LOGIN_PROCESS 6 /* Session leader process for user login */\n"
1081 "#define USER_PROCESS  7 /* Normal process */\n"
1082 "#define DEAD_PROCESS  8 /* Terminated process */\n"
1083 "#define ACCOUNTING    9 /* Not implemented */\n"
1084
1085 #. type: Plain text
1086 #: build/C/man5/utmp.5:82
1087 #, no-wrap
1088 msgid ""
1089 "#define UT_LINESIZE      32\n"
1090 "#define UT_NAMESIZE      32\n"
1091 "#define UT_HOSTSIZE     256\n"
1092 msgstr ""
1093 "#define UT_LINESIZE      32\n"
1094 "#define UT_NAMESIZE      32\n"
1095 "#define UT_HOSTSIZE     256\n"
1096
1097 #. type: Plain text
1098 #: build/C/man5/utmp.5:87
1099 #, no-wrap
1100 msgid ""
1101 "struct exit_status {              /* Type for ut_exit, below */\n"
1102 "    short int e_termination;      /* Process termination status */\n"
1103 "    short int e_exit;             /* Process exit status */\n"
1104 "};\n"
1105 msgstr ""
1106 "struct exit_status {              /* Type for ut_exit, below */\n"
1107 "    short int e_termination;      /* Process termination status */\n"
1108 "    short int e_exit;             /* Process exit status */\n"
1109 "};\n"
1110
1111 #. type: Plain text
1112 #: build/C/man5/utmp.5:115
1113 #, no-wrap
1114 msgid ""
1115 "struct utmp {\n"
1116 "    short   ut_type;              /* Type of record */\n"
1117 "    pid_t   ut_pid;               /* PID of login process */\n"
1118 "    char    ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n"
1119 "    char    ut_id[4];             /* Terminal name suffix,\n"
1120 "                                     or inittab(5) ID */\n"
1121 "    char    ut_user[UT_NAMESIZE]; /* Username */\n"
1122 "    char    ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n"
1123 "                                     kernel version for run-level\n"
1124 "                                     messages */\n"
1125 "    struct  exit_status ut_exit;  /* Exit status of a process\n"
1126 "                                     marked as DEAD_PROCESS; not\n"
1127 "                                     used by Linux init(8) */\n"
1128 "    /* The ut_session and ut_tv fields must be the same size when\n"
1129 "       compiled 32- and 64-bit.  This allows data files and shared\n"
1130 "       memory to be shared between 32- and 64-bit applications. */\n"
1131 "#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n"
1132 "    int32_t ut_session;           /* Session ID (B<getsid>(2)),\n"
1133 "                                     used for windowing */\n"
1134 "    struct {\n"
1135 "        int32_t tv_sec;           /* Seconds */\n"
1136 "        int32_t tv_usec;          /* Microseconds */\n"
1137 "    } ut_tv;                      /* Time entry was made */\n"
1138 "#else\n"
1139 "     long   ut_session;           /* Session ID */\n"
1140 "     struct timeval ut_tv;        /* Time entry was made */\n"
1141 "#endif\n"
1142 msgstr ""
1143 "struct utmp {\n"
1144 "    short   ut_type;              /* Type of record */\n"
1145 "    pid_t   ut_pid;               /* PID of login process */\n"
1146 "    char    ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n"
1147 "    char    ut_id[4];             /* Terminal name suffix,\n"
1148 "                                     or inittab(5) ID */\n"
1149 "    char    ut_user[UT_NAMESIZE]; /* Username */\n"
1150 "    char    ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n"
1151 "                                     kernel version for run-level\n"
1152 "                                     messages */\n"
1153 "    struct  exit_status ut_exit;  /* Exit status of a process\n"
1154 "                                     marked as DEAD_PROCESS; not\n"
1155 "                                     used by Linux init(8) */\n"
1156 "    /* ut_session と ut_tv フィールドは、32ビットでコンパイルされた場合と\n"
1157 "       64ビットでコンパイルされた場合で同じサイズでなければならない。\n"
1158 "       こうすることで、32ビットと64ビットのアプリケーションで、\n"
1159 "       データファイルと共有メモリを共有することができるようになる。 */\n"
1160 "#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n"
1161 "    int32_t ut_session;           /* Session ID (B<getsid>(2)),\n"
1162 "                                     used for windowing */\n"
1163 "    struct {\n"
1164 "        int32_t tv_sec;           /* Seconds */\n"
1165 "        int32_t tv_usec;          /* Microseconds */\n"
1166 "    } ut_tv;                      /* Time entry was made */\n"
1167 "#else\n"
1168 "     long   ut_session;           /* Session ID */\n"
1169 "     struct timeval ut_tv;        /* Time entry was made */\n"
1170 "#endif\n"
1171
1172 #. type: Plain text
1173 #: build/C/man5/utmp.5:121
1174 #, no-wrap
1175 msgid ""
1176 "    int32_t ut_addr_v6[4];        /* Internet address of remote\n"
1177 "                                     host; IPv4 address uses\n"
1178 "                                     just ut_addr_v6[0] */\n"
1179 "    char __unused[20];            /* Reserved for future use */\n"
1180 "};\n"
1181 msgstr ""
1182 "    int32_t ut_addr_v6[4];        /* Internet address of remote\n"
1183 "                                     host; IPv4 address uses\n"
1184 "                                     just ut_addr_v6[0] */\n"
1185 "    char __unused[20];            /* Reserved for future use */\n"
1186 "};\n"
1187
1188 #. type: Plain text
1189 #: build/C/man5/utmp.5:129
1190 #, no-wrap
1191 msgid ""
1192 "/* Backward compatibility hacks */\n"
1193 "#define ut_name ut_user\n"
1194 "#ifndef _NO_UT_TIME\n"
1195 "#define ut_time ut_tv.tv_sec\n"
1196 "#endif\n"
1197 "#define ut_xtime ut_tv.tv_sec\n"
1198 "#define ut_addr ut_addr_v6[0]\n"
1199 msgstr ""
1200 "/* Backward compatibility hacks */\n"
1201 "#define ut_name ut_user\n"
1202 "#ifndef _NO_UT_TIME\n"
1203 "#define ut_time ut_tv.tv_sec\n"
1204 "#endif\n"
1205 "#define ut_xtime ut_tv.tv_sec\n"
1206 "#define ut_addr ut_addr_v6[0]\n"
1207
1208 #. type: Plain text
1209 #: build/C/man5/utmp.5:139
1210 msgid ""
1211 "This structure gives the name of the special file associated with the user's "
1212 "terminal, the user's login name, and the time of login in the form of B<time>"
1213 "(2).  String fields are terminated by a null byte (\\(aq\\e0\\(aq)  if they "
1214 "are shorter than the size of the field."
1215 msgstr ""
1216 "この構造体からユーザーの使っている端末のスペシャルファイル名、 ユーザーのログ"
1217 "イン名、 (B<time>(2)  形式での)ログイン時刻がわかる。文字列フィールドは、 "
1218 "フィールドの長さより文字列が短い場合には、 NULL バイト (\\(aq\\e0\\(aq) に"
1219 "よって終端される。"
1220
1221 #. type: Plain text
1222 #: build/C/man5/utmp.5:156
1223 msgid ""
1224 "The first entries ever created result from B<init>(8)  processing B<inittab>"
1225 "(5).  Before an entry is processed, though, B<init>(8)  cleans up utmp by "
1226 "setting I<ut_type> to B<DEAD_PROCESS>, clearing I<ut_user>, I<ut_host>, and "
1227 "I<ut_time> with null bytes for each record which I<ut_type> is not "
1228 "B<DEAD_PROCESS> or B<RUN_LVL> and where no process with PID I<ut_pid> "
1229 "exists.  If no empty record with the needed I<ut_id> can be found, B<init>"
1230 "(8)  creates a new one.  It sets I<ut_id> from the inittab, I<ut_pid> and "
1231 "I<ut_time> to the current values, and I<ut_type> to B<INIT_PROCESS>."
1232 msgstr ""
1233 "最初のエントリは B<init>(8)  コマンドが B<inittab>(5)  を処理することで作られ"
1234 "る。 あるエントリを処理する前に、 B<init>(8)  は I<ut_type> を "
1235 "B<DEAD_PROCESS> に初期化する。 レコードの I<ut_type> が B<DEAD_PROCESS> と "
1236 "B<RUN_LVL> のいずれでもなく、 かつ PID が I<ut_pid> であるプロセスがいない場"
1237 "合は、I<ut_user>, I<ut_host>, I<ut_time> をヌルバイトでクリアして初期化を行"
1238 "う。 必要な I<ut_id> を持つ空のレコードを見つけられなかった場合、 B<init>"
1239 "(8)  は新しいレコードを作る。inittab から I<ut_id> を設定し、 I<ut_pid> およ"
1240 "び I<ut_time> を現在値に、 I<ut_type> を B<INIT_PROCESS> に設定する。"
1241
1242 #. type: Plain text
1243 #: build/C/man5/utmp.5:175
1244 msgid ""
1245 "B<mingetty>(8)  (or B<agetty>(8))  locates the entry by the PID, changes "
1246 "I<ut_type> to B<LOGIN_PROCESS>, changes I<ut_time>, sets I<ut_line>, and "
1247 "waits for connection to be established.  B<login>(1), after a user has been "
1248 "authenticated, changes I<ut_type> to B<USER_PROCESS>, changes I<ut_time>, "
1249 "and sets I<ut_host> and I<ut_addr>.  Depending on B<mingetty>(8)  (or "
1250 "B<agetty>(8))  and B<login>(1), records may be located by I<ut_line> instead "
1251 "of the preferable I<ut_pid>."
1252 msgstr ""
1253 "B<mingetty>(8)  (または B<agetty>(8))  は pid でエントリを特定し、 "
1254 "I<ut_type> を B<LOGIN_PROCESS> に変更し、 I<ut_time> を更新し、I<ut_line>を設"
1255 "定した後、接続が確立されるのを待つ。 B<login>(1)  はユーザー認証が終了する"
1256 "と、 I<ut_type> を B<USER_PROCESS> に変更し、 I<ut_time> を更新し、"
1257 "I<ut_host> と I<ut_addr>を設定する。 B<mingetty>(8)  (または B<agetty>(8))  "
1258 "と B<login>(1)  により異なるが、 I<ut_pid> の代わりに I<ut_line> を使ってレ"
1259 "コードの特定が行われることもある (I<ut_pid> を使う方が望ましい) 。"
1260
1261 #. type: Plain text
1262 #: build/C/man5/utmp.5:181
1263 msgid ""
1264 "When B<init>(8)  finds that a process has exited, it locates its utmp entry "
1265 "by I<ut_pid>, sets I<ut_type> to B<DEAD_PROCESS>, and clears I<ut_user>, "
1266 "I<ut_host> and I<ut_time> with null bytes."
1267 msgstr ""
1268 "B<init>(8)  はプロセスの終了を検出した場合、 I<ut_pid> をキーとして utmp のエ"
1269 "ントリを特定し、 I<ut_type> を B<DEAD_PROCESS> に設定し、 I<ut_user>, "
1270 "I<ut_host>, I<ut_time> をヌルバイトでクリアする。"
1271
1272 #. type: Plain text
1273 #: build/C/man5/utmp.5:193
1274 msgid ""
1275 "B<xterm>(1)  and other terminal emulators directly create a B<USER_PROCESS> "
1276 "record and generate the I<ut_id> by using the string that suffix part of the "
1277 "terminal name (the characters following I</dev/[pt]ty>).  If they find a "
1278 "B<DEAD_PROCESS> for this ID, they recycle it, otherwise they create a new "
1279 "entry.  If they can, they will mark it as B<DEAD_PROCESS> on exiting and it "
1280 "is advised that they null I<ut_line>, I<ut_time>, I<ut_user>, and I<ut_host> "
1281 "as well."
1282 msgstr ""
1283 "B<xterm>(1)  コマンドや他の端末エミュレータは 直接 B<USER_PROCESS> のレコード"
1284 "を作り、 端末名のサフィックス文字列 (I</dev/[pt]ty> に続く文字列)  を使って "
1285 "I<ut_id> の値を生成する。 この id を持つエントリが B<DEAD_PROCESS> であった場"
1286 "合には再利用し、 それ以外の場合には新しいエントリが作られる。 可能な場合には"
1287 "プロセス終了時に B<DEAD_PROCESS> と設定し、 さらに I<ut_line>, I<ut_time>, "
1288 "I<ut_user>, I<ut_host> をヌルバイトでクリアすることが奨励されている。"
1289
1290 #. type: Plain text
1291 #: build/C/man5/utmp.5:201
1292 msgid ""
1293 "B<telnetd>(8)  sets up a B<LOGIN_PROCESS> entry and leaves the rest to "
1294 "B<login>(1)  as usual.  After the telnet session ends, B<telnetd>(8)  cleans "
1295 "up utmp in the described way."
1296 msgstr ""
1297 "B<telnetd>(8)  は B<LOGIN_PROCESS> を設定するだけでよく、 残りの処理は通常通"
1298 "り B<login>(1)  に任せればよい。 telnet のセッションが終了した後、前述のよう"
1299 "に B<telnetd>(8)  が utmp のエントリを初期化する。"
1300
1301 #. type: Plain text
1302 #: build/C/man5/utmp.5:223
1303 msgid ""
1304 "The I<wtmp> file records all logins and logouts.  Its format is exactly like "
1305 "I<utmp> except that a null username indicates a logout on the associated "
1306 "terminal.  Furthermore, the terminal name B<~> with username B<shutdown> or "
1307 "B<reboot> indicates a system shutdown or reboot and the pair of terminal "
1308 "names B<|>/B<}> logs the old/new system time when B<date>(1)  changes it.  "
1309 "I<wtmp> is maintained by B<login>(1), B<init>(8), and some versions of "
1310 "B<getty>(8)  (e.g., B<mingetty>(8)  or B<agetty>(8)).  None of these "
1311 "programs creates the file, so if it is removed, record-keeping is turned off."
1312 msgstr ""
1313 "I<wtmp> ファイルには、すべてのログインとログアウトが記録される。 そのフォー"
1314 "マットは、ログアウト済の端末でユーザー名がヌルとなること以外は I<utmp> とまっ"
1315 "たく同じである。 ユーザー名が B<shutdown> もしくは B<reboot> である 端末名 "
1316 "B<~> はシステムの停止 (shutdown) または再起動 (reboot)  を意味する。またその"
1317 "端末名が B<|> と B<}> の対は B<date>(1)  コマンドで変更した新/旧のシステム時"
1318 "刻を記録している。 I<wtmp> ファイルは B<login>(1), B<init>(8)  やいくつかの"
1319 "バージョンの B<getty>(8)  (B<mingetty>(8)  または B<agetty>(8))  により管理さ"
1320 "れている。 これらのプログラムはどれもファイルを新たに作成しないので、 ファイ"
1321 "ルを削除することで情報の記録 (record-keeping) を止めることができる。"
1322
1323 #. type: Plain text
1324 #: build/C/man5/utmp.5:225
1325 msgid "/var/run/utmp"
1326 msgstr "/var/run/utmp"
1327
1328 #. type: Plain text
1329 #: build/C/man5/utmp.5:227
1330 msgid "/var/log/wtmp"
1331 msgstr "/var/log/wtmp"
1332
1333 #. type: Plain text
1334 #: build/C/man5/utmp.5:246
1335 msgid ""
1336 "POSIX.1 does not specify a I<utmp> structure, but rather one named I<utmpx>, "
1337 "with specifications for the fields I<ut_type>, I<ut_pid>, I<ut_line>, "
1338 "I<ut_id>, I<ut_user>, and I<ut_tv>.  POSIX.1 does not specify the lengths of "
1339 "the I<ut_line> and I<ut_user> fields."
1340 msgstr ""
1341 "POSIX.1 では、 I<utmp> 構造体ではなく、 I<utmpx> 構造体を規定している。 "
1342 "I<utmpx> 構造体で規定されているのは、フィールド I<ut_type>, I<ut_pid>, "
1343 "I<ut_line>, I<ut_id>, I<ut_user>, I<ut_tv> である。 POSIX.1 では、フィールド "
1344 "I<ut_line> と I<ut_user> の長さは規定されていない。"
1345
1346 #. type: Plain text
1347 #: build/C/man5/utmp.5:252
1348 msgid ""
1349 "Linux defines the I<utmpx> structure to be the same as the I<utmp> structure."
1350 msgstr "Linux では、 I<utmpx> 構造体の定義は I<utmp> 構造体と同じである。"
1351
1352 #. type: SS
1353 #: build/C/man5/utmp.5:252
1354 #, no-wrap
1355 msgid "Comparison with Historical Systems"
1356 msgstr "過去のシステムとの比較"
1357
1358 #. type: Plain text
1359 #: build/C/man5/utmp.5:255
1360 msgid ""
1361 "Linux utmp entries conform neither to v7/BSD nor to System V; they are a mix "
1362 "of the two."
1363 msgstr ""
1364 "Linux での utmp のエントリは v7/BSD や System V のいずれにも準拠しておらず、 "
1365 "その両方が混在したものである。"
1366
1367 #. type: Plain text
1368 #: build/C/man5/utmp.5:262
1369 msgid ""
1370 "v7/BSD has fewer fields; most importantly it lacks I<ut_type>, which causes "
1371 "native v7/BSD-like programs to display (for example) dead or login entries.  "
1372 "Further, there is no configuration file which allocates slots to sessions.  "
1373 "BSD does so because it lacks I<ut_id> fields."
1374 msgstr ""
1375 "v7/BSD ではより少しの項目しかない; もっとも重要なことは、I<ut_type> が無いこ"
1376 "とである。 そのため v7/BSD 系のプログラムでは (たとえば) 死んだ状態のエントリ"
1377 "や ログイン状態のエントリまで表示されてしまうことになった。 さらにセッション"
1378 "用のスロットを割り当てるための設定ファイルがない。 BSD に設定ファイルがあるの"
1379 "は I<ut_id> がないからである。"
1380
1381 #. type: Plain text
1382 #: build/C/man5/utmp.5:274
1383 msgid ""
1384 "In Linux (as in System V), the I<ut_id> field of a record will never change "
1385 "once it has been set, which reserves that slot without needing a "
1386 "configuration file.  Clearing I<ut_id> may result in race conditions leading "
1387 "to corrupted utmp entries and potential security holes.  Clearing the "
1388 "abovementioned fields by filling them with null bytes is not required by "
1389 "System V semantics, but makes it possible to run many programs which assume "
1390 "BSD semantics and which do not modify utmp.  Linux uses the BSD conventions "
1391 "for line contents, as documented above."
1392 msgstr ""
1393 "Linux (System V 系)では、設定ファイルを必要とせず セッション用のスロットを割"
1394 "り当てるので、一旦設定 されてしまうとレコードの I<ut_id> は決して変更されな"
1395 "い。 I<ut_id> をクリアすると競合状態におちいり、 utmp のエントリを壊したり、"
1396 "潜在的なセキュリティホールになる可能性がある。 上述のフィールドを NULL バイト"
1397 "で埋めてクリアしておくのは、 System V での取り決めでは必要とはされていない"
1398 "が、 BSD での取り決めを前提としていて、かつ utmp を更新しない多くのプログラム"
1399 "が 動作するようにするためである。 Linux ではここまで記述してきたように、行内"
1400 "容の表示は BSD の慣例に従っている。"
1401
1402 #.  mtk: What is the referrent of "them" in the following sentence?
1403 #.  System V only uses the type field to mark them and logs
1404 #.  informative messages such as \fB"new time"\fP in the line field.
1405 #. type: Plain text
1406 #: build/C/man5/utmp.5:279
1407 msgid "System V has no I<ut_host> or I<ut_addr_v6> fields."
1408 msgstr ""
1409 "B<UT_UNKNOWN> は Linux で作られたもののようである。 System V には I<ut_host> "
1410 "も I<ut_addr_v6> も存在しない。"
1411
1412 #. type: Plain text
1413 #: build/C/man5/utmp.5:287
1414 msgid ""
1415 "Unlike various other systems, where utmp logging can be disabled by removing "
1416 "the file, utmp must always exist on Linux.  If you want to disable B<who>"
1417 "(1)  then do not make utmp world readable."
1418 msgstr ""
1419 "ファイルを削除することで utmp への記録を止められる 他の様々なシステムとは違"
1420 "い、Linux では utmp ファイルを必ずおいて おく必要がある。 B<who>(1)  コマンド"
1421 "が機能しないようにしたい場合には、 utmp ファイルの全ユーザーに対する読み取り"
1422 "許可を設定しないようにする。"
1423
1424 #. type: Plain text
1425 #: build/C/man5/utmp.5:290
1426 msgid ""
1427 "The file format is machine-dependent, so it is recommended that it be "
1428 "processed only on the machine architecture where it was created."
1429 msgstr ""
1430 "ファイルのフォーマットはマシンに依存するので、ファイルが作られた マシンもしく"
1431 "は同一アーキテクチャのマシン上でのみ処理することを推奨する。"
1432
1433 #. type: Plain text
1434 #: build/C/man5/utmp.5:311
1435 msgid ""
1436 "Note that on I<biarch> platforms, that is, systems which can run both 32-bit "
1437 "and 64-bit applications (x86-64, ppc64, s390x, etc.), I<ut_tv> is the same "
1438 "size in 32-bit mode as in 64-bit mode.  The same goes for I<ut_session> and "
1439 "I<ut_time> if they are present.  This allows data files and shared memory to "
1440 "be shared between 32-bit and 64-bit applications.  This is achieved by "
1441 "changing the type of I<ut_session> to I<int32_t>, and that of I<ut_tv> to a "
1442 "struct with two I<int32_t> fields I<tv_sec> and I<tv_usec>.  Since I<ut_tv> "
1443 "may not be the same as I<struct timeval>, then instead of the call:"
1444 msgstr ""
1445 "注意すべき点としては、 I<biarch> なプラットフォーム、つまり 32ビットと 64ビッ"
1446 "トの両方の アプリケーションを実行できるシステム (x86-64, ppc64, s390x など) "
1447 "では、 I<ut_tv> のサイズは 32ビットモードと 64ビットモードで同じである。 "
1448 "I<ut_session> と I<ut_time> も、存在する場合には同様に同じサイズ である。これ"
1449 "により、32ビットアプリケーションと 64ビットアプリケーション の間でデータファ"
1450 "イルと共有メモリを共有することが可能になる。 そのためには、 I<ut_session> を "
1451 "I<int32_t> 型に、 I<ut_tv> を 2つの I<int32_t> 型のフィールド I<tv_sec>, "
1452 "I<tv_usec> を持つ構造体に変更すればよい I<ut_tv> は I<struct timeval> と同じ"
1453 "サイズとは限らないので、"
1454
1455 #. type: Plain text
1456 #: build/C/man5/utmp.5:315
1457 #, no-wrap
1458 msgid "gettimeofday((struct timeval *) &ut.ut_tv, NULL);\n"
1459 msgstr "gettimeofday((struct timeval *) &ut.ut_tv, NULL);\n"
1460
1461 #. type: Plain text
1462 #: build/C/man5/utmp.5:319
1463 msgid "the following method of setting this field is recommended:"
1464 msgstr ""
1465 "のような呼び出しをするのではなく、 以下のように各フィールドを設定する方法が推"
1466 "奨される:"
1467
1468 #. type: Plain text
1469 #: build/C/man5/utmp.5:324
1470 #, no-wrap
1471 msgid ""
1472 "struct utmp ut;\n"
1473 "struct timeval tv;\n"
1474 msgstr ""
1475 "struct utmp ut;\n"
1476 "struct timeval tv;\n"
1477
1478 #. type: Plain text
1479 #: build/C/man5/utmp.5:328
1480 #, no-wrap
1481 msgid ""
1482 "gettimeofday(&tv, NULL);\n"
1483 "ut.ut_tv.tv_sec = tv.tv_sec;\n"
1484 "ut.ut_tv.tv_usec = tv.tv_usec;\n"
1485 msgstr ""
1486 "gettimeofday(&tv, NULL);\n"
1487 "ut.ut_tv.tv_sec = tv.tv_sec;\n"
1488 "ut.ut_tv.tv_usec = tv.tv_usec;\n"
1489
1490 #. type: Plain text
1491 #: build/C/man5/utmp.5:335
1492 msgid ""
1493 "Note that the I<utmp> struct from libc5 has changed in libc6.  Because of "
1494 "this, binaries using the old libc5 struct will corrupt I</var/run/utmp> and/"
1495 "or I</var/log/wtmp>."
1496 msgstr ""
1497 "utmp 構造体は libc5 から libc6 で変更された。そのため昔の libc5 の構造体 を"
1498 "使ったプログラムは I</var/run/utmp> や I</var/log/wtmp> ファイルを壊してしま"
1499 "う。"
1500
1501 #. type: SH
1502 #: build/C/man5/utmp.5:335
1503 #, no-wrap
1504 msgid "BUGS"
1505 msgstr "バグ"
1506
1507 #. type: Plain text
1508 #: build/C/man5/utmp.5:337
1509 msgid ""
1510 "This man page is based on the libc5 one, things may work differently now."
1511 msgstr ""
1512 "この man ページは libc5 に基づいて作られていて、 最新のものでは違っているかも"
1513 "しれない。"
1514
1515 #. type: Plain text
1516 #: build/C/man5/utmp.5:350
1517 msgid ""
1518 "B<ac>(1), B<date>(1), B<last>(1), B<login>(1), B<who>(1), B<getutent>(3), "
1519 "B<getutmp>(3), B<login>(3), B<logout>(3), B<logwtmp>(3), B<updwtmp>(3), "
1520 "B<init>(8)"
1521 msgstr ""
1522 "B<ac>(1), B<date>(1), B<last>(1), B<login>(1), B<who>(1), B<getutent>(3), "
1523 "B<getutmp>(3), B<login>(3), B<logout>(3), B<logwtmp>(3), B<updwtmp>(3), "
1524 "B<init>(8)"