OSDN Git Service

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