OSDN Git Service

(split) LDP: Update POT and ja.po to LDP v3.50.
[linuxjm/LDP_man-pages.git] / po4a / db / 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: 2013-03-22 01:04+0900\n"
10 "PO-Revision-Date: 2012-05-28 12: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/btree.3:36
20 #, no-wrap
21 msgid "BTREE"
22 msgstr "BTREE"
23
24 #. type: TH
25 #: build/C/man3/btree.3:36 build/C/man3/hash.3:36 build/C/man3/recno.3:36
26 #, no-wrap
27 msgid "2012-04-23"
28 msgstr "2012-04-23"
29
30 #. type: TH
31 #: build/C/man3/btree.3:36 build/C/man3/dbopen.3:36 build/C/man3/hash.3:36
32 #: build/C/man3/mpool.3:36 build/C/man3/recno.3:36
33 #, no-wrap
34 msgid "Linux Programmer's Manual"
35 msgstr "Linux Programmer's Manual"
36
37 #. type: SH
38 #: build/C/man3/btree.3:38 build/C/man3/dbopen.3:38 build/C/man3/hash.3:38
39 #: build/C/man3/mpool.3:38 build/C/man3/recno.3:38
40 #, no-wrap
41 msgid "NAME"
42 msgstr "名前"
43
44 #. type: Plain text
45 #: build/C/man3/btree.3:40
46 msgid "btree - btree database access method"
47 msgstr "btree - btree データベースへのアクセスメソッド"
48
49 #. type: SH
50 #: build/C/man3/btree.3:40 build/C/man3/dbopen.3:40 build/C/man3/hash.3:40
51 #: build/C/man3/mpool.3:40 build/C/man3/recno.3:40
52 #, no-wrap
53 msgid "SYNOPSIS"
54 msgstr "書式"
55
56 #. type: Plain text
57 #: build/C/man3/btree.3:45 build/C/man3/hash.3:45 build/C/man3/recno.3:45
58 #, no-wrap
59 msgid ""
60 "B<#include E<lt>sys/types.hE<gt>\n"
61 "#include E<lt>db.hE<gt>>\n"
62 msgstr ""
63 "B<#include E<lt>sys/types.hE<gt>\n"
64 "#include E<lt>db.hE<gt>>\n"
65
66 #. type: SH
67 #: build/C/man3/btree.3:47 build/C/man3/dbopen.3:51 build/C/man3/hash.3:47
68 #: build/C/man3/mpool.3:62 build/C/man3/recno.3:47
69 #, no-wrap
70 msgid "DESCRIPTION"
71 msgstr "説明"
72
73 #. type: Plain text
74 #: build/C/man3/btree.3:54 build/C/man3/dbopen.3:58 build/C/man3/hash.3:54
75 #: build/C/man3/mpool.3:69 build/C/man3/recno.3:54
76 msgid ""
77 "I<Note well>: This page documents interfaces provided in glibc up until "
78 "version 2.1.  Since version 2.2, glibc no longer provides these interfaces.  "
79 "Probably, you are looking for the APIs provided by the I<libdb> library "
80 "instead."
81 msgstr ""
82 "I<大事な注意>:\n"
83 "このページは、バージョン 2.1 までの glibc が提供するインターフェースに\n"
84 "ついて説明している。バージョン 2.2 以降の glibc では、もはやこれらの\n"
85 "インターフェースは提供されていない。おそらく、このページではなく、\n"
86 "I<libdb> ライブラリが提供する API をお探しなのだろう。"
87
88 #. type: Plain text
89 #: build/C/man3/btree.3:62
90 msgid ""
91 "The routine B<dbopen>(3)  is the library interface to database files.  One "
92 "of the supported file formats is btree files.  The general description of "
93 "the database access methods is in B<dbopen>(3), this manual page describes "
94 "only the btree specific information."
95 msgstr ""
96 "ルーチン B<dbopen>(3)  はデータベースファイルに対するライブラリインターフェー"
97 "スである。 サポートされているファイルフォーマットのひとつに btree ファイルが"
98 "ある。 データベースへのアクセスメソッドに関する一般的な記述は B<dbopen>(3)  "
99 "に書かれている。 このマニュアルページでは btree 特有の情報についてのみ記述す"
100 "る。"
101
102 #. type: Plain text
103 #: build/C/man3/btree.3:65
104 msgid ""
105 "The btree data structure is a sorted, balanced tree structure storing "
106 "associated key/data pairs."
107 msgstr ""
108 "btree データ構造では、ソートされたバランスツリー構造に 互いに関連づけられた"
109 "キー/データ対を格納している。"
110
111 #. type: Plain text
112 #: build/C/man3/btree.3:71
113 msgid ""
114 "The btree access method specific data structure provided to B<dbopen>(3)  is "
115 "defined in the I<E<lt>db.hE<gt>> include file as follows:"
116 msgstr ""
117 "B<dbopen>(3)  に渡される btree アクセスメソッドに特有のデータ構造体は、 "
118 "I<E<lt>db.hE<gt>> インクルードファイルで次のように定義されている。"
119
120 #. type: Plain text
121 #: build/C/man3/btree.3:84
122 #, no-wrap
123 msgid ""
124 "typedef struct {\n"
125 "    unsigned long flags;\n"
126 "    unsigned int  cachesize;\n"
127 "    int           maxkeypage;\n"
128 "    int           minkeypage;\n"
129 "    unsigned int  psize;\n"
130 "    int         (*compare)(const DBT *key1, const DBT *key2);\n"
131 "    size_t      (*prefix)(const DBT *key1, const DBT *key2);\n"
132 "    int           lorder;\n"
133 "} BTREEINFO;\n"
134 msgstr ""
135 "typedef struct {\n"
136 "    unsigned long flags;\n"
137 "    unsigned int  cachesize;\n"
138 "    int           maxkeypage;\n"
139 "    int           minkeypage;\n"
140 "    unsigned int  psize;\n"
141 "    int         (*compare)(const DBT *key1, const DBT *key2);\n"
142 "    size_t      (*prefix)(const DBT *key1, const DBT *key2);\n"
143 "    int           lorder;\n"
144 "} BTREEINFO;\n"
145
146 #. type: Plain text
147 #: build/C/man3/btree.3:88 build/C/man3/hash.3:85
148 msgid "The elements of this structure are as follows:"
149 msgstr "この構造体の要素を以下に示す。"
150
151 #. type: TP
152 #: build/C/man3/btree.3:88
153 #, no-wrap
154 msgid "I<flags>"
155 msgstr "I<flags>"
156
157 #. type: Plain text
158 #: build/C/man3/btree.3:91 build/C/man3/recno.3:97
159 msgid "The flag value is specified by ORing any of the following values:"
160 msgstr "I<flags> の値は以下の値の論理和で指定される。"
161
162 #. type: TP
163 #: build/C/man3/btree.3:92
164 #, no-wrap
165 msgid "B<R_DUP>"
166 msgstr "B<R_DUP>"
167
168 #. type: Plain text
169 #: build/C/man3/btree.3:111
170 msgid ""
171 "Permit duplicate keys in the tree, that is, permit insertion if the key to "
172 "be inserted already exists in the tree.  The default behavior, as described "
173 "in B<dbopen>(3), is to overwrite a matching key when inserting a new key or "
174 "to fail if the B<R_NOOVERWRITE> flag is specified.  The B<R_DUP> flag is "
175 "overridden by the B<R_NOOVERWRITE> flag, and if the B<R_NOOVERWRITE> flag is "
176 "specified, attempts to insert duplicate keys into the tree will fail."
177 msgstr ""
178 "ツリーの中にキーの重複を許す。すなわちツリーの中に挿入されようとしている キー"
179 "が既に存在していても、その挿入を許可する。デフォルトの動作は B<dbopen>(3)  に"
180 "記述されているように、新しいキーが挿入されると一致したキーを上書きする。 ある"
181 "いは B<R_NOOVERWRITE> フラグが指定されていると挿入に失敗する。 B<R_DUP> フラ"
182 "グは B<R_NOOVERWRITE> フラグによって上書きされる。つまり B<R_NOOVERWRITE> フ"
183 "ラグが指定された場合、ツリーに複製キーを挿入しようとすると失敗する。"
184
185 #. type: Plain text
186 #: build/C/man3/btree.3:121
187 msgid ""
188 "If the database contains duplicate keys, the order of retrieval of key/data "
189 "pairs is undefined if the I<get> routine is used, however, I<seq> routine "
190 "calls with the B<R_CURSOR> flag set will always return the logical \"first\" "
191 "of any group of duplicate keys."
192 msgstr ""
193 "データベースにキーの重複があると、 I<get> ルーチンを使った場合のキー/データ対"
194 "の取得順は未定義である。それに対し、 B<R_CURSOR> フラグをセットして I<seq> "
195 "ルーチンを使うと、複製キーのグループの中の 論理的に「最初」のキーを必ず返して"
196 "くる。"
197
198 #. type: TP
199 #: build/C/man3/btree.3:122 build/C/man3/hash.3:102 build/C/man3/recno.3:129
200 #, no-wrap
201 msgid "I<cachesize>"
202 msgstr "I<cachesize>"
203
204 #. type: Plain text
205 #: build/C/man3/btree.3:137
206 msgid ""
207 "A suggested maximum size (in bytes) of the memory cache.  This value is "
208 "I<only> advisory, and the access method will allocate more memory rather "
209 "than fail.  Since every search examines the root page of the tree, caching "
210 "the most recently used pages substantially improves access time.  In "
211 "addition, physical writes are delayed as long as possible, so a moderate "
212 "cache can reduce the number of I/O operations significantly.  Obviously, "
213 "using a cache increases (but only increases) the likelihood of corruption or "
214 "lost data if the system crashes while a tree is being modified.  If "
215 "I<cachesize> is 0 (no size is specified) a default cache is used."
216 msgstr ""
217 "想定されるメモリキャッシュの最大サイズ (バイト単位)。 この値は I<あくまで> 参"
218 "考であり、アクセスメソッドはこの値を越えたメモリの 割り当てに成功することもあ"
219 "る。 加えて、物理的な書き込みは可能な限り遅延されるので、 キャッシュの大きさ"
220 "を適度にしておけば I/O 操作の回数をかなり減らすこと ができる。 あきらかに"
221 "キャッシュを使うと、ツリーが変更されている途中で システムがクラッシュした場合"
222 "のデータ破壊やデータロストの可能性は 増える (まあでもそれだけのこと)。 "
223 "I<cachesize> が 0 (サイズが指定されていない) の場合、デフォルトのキャッシュが"
224 "使われる。"
225
226 #. type: TP
227 #: build/C/man3/btree.3:137
228 #, no-wrap
229 msgid "I<maxkeypage>"
230 msgstr "I<maxkeypage>"
231
232 #.  The maximum number of keys which will be stored on any single page.
233 #.  Because of the way the btree data structure works,
234 #.  .I maxkeypage
235 #.  must always be greater than or equal to 2.
236 #.  If
237 #.  .I maxkeypage
238 #.  is 0 (no maximum number of keys is specified) the page fill factor is
239 #.  made as large as possible (which is almost invariably what is wanted).
240 #. type: Plain text
241 #: build/C/man3/btree.3:149
242 msgid ""
243 "The maximum number of keys which will be stored on any single page.  Not "
244 "currently implemented."
245 msgstr "単一ページに納められる最大キー数である。現在実装されていない。"
246
247 #. type: TP
248 #: build/C/man3/btree.3:149
249 #, no-wrap
250 msgid "I<minkeypage>"
251 msgstr "I<minkeypage>"
252
253 #. type: Plain text
254 #: build/C/man3/btree.3:159
255 msgid ""
256 "The minimum number of keys which will be stored on any single page.  This "
257 "value is used to determine which keys will be stored on overflow pages, that "
258 "is, if a key or data item is longer than the pagesize divided by the "
259 "minkeypage value, it will be stored on overflow pages instead of in the page "
260 "itself.  If I<minkeypage> is 0 (no minimum number of keys is specified) a "
261 "value of 2 is used."
262 msgstr ""
263 "単一ページに納められる最小キー数である。この値は、どのキーを オーバーフロー"
264 "ページ に納めるか決めるのに使われる。すなわちキーまたはデータが minkeypage の"
265 "値で分割されたページサイズより大きい時、そのページに納め る代わりにオーバーフ"
266 "ローページに納めるということである。 I<minkeypage> が 0 (キーの最小値が指定さ"
267 "れていない) の場合、値として 2 が使われる。"
268
269 #. type: TP
270 #: build/C/man3/btree.3:159 build/C/man3/recno.3:138
271 #, no-wrap
272 msgid "I<psize>"
273 msgstr "I<psize>"
274
275 #. type: Plain text
276 #: build/C/man3/btree.3:167
277 msgid ""
278 "Page size is the size (in bytes) of the pages used for nodes in the tree.  "
279 "The minimum page size is 512 bytes and the maximum page size is 64K.  If "
280 "I<psize> is 0 (no page size is specified) a page size is chosen based on the "
281 "underlying file system I/O block size."
282 msgstr ""
283 "ツリーの中のノードに使われるページサイズ (バイト単位)。 最小値は 512 バイト"
284 "で、最大値は 64K である。 I<psize> が 0 (ページサイズが指定されていない) の場"
285 "合、 ファイルシステムの I/O ブロックサイズに基づいて決められる。"
286
287 #. type: TP
288 #: build/C/man3/btree.3:167
289 #, no-wrap
290 msgid "I<compare>"
291 msgstr "I<compare>"
292
293 #. type: Plain text
294 #: build/C/man3/btree.3:179
295 msgid ""
296 "Compare is the key comparison function.  It must return an integer less "
297 "than, equal to, or greater than zero if the first key argument is considered "
298 "to be respectively less than, equal to, or greater than the second key "
299 "argument.  The same comparison function must be used on a given tree every "
300 "time it is opened.  If I<compare> is NULL (no comparison function is "
301 "specified), the keys are compared lexically, with shorter keys considered "
302 "less than longer keys."
303 msgstr ""
304 "I<compare> はキーの比較関数である。 最初のキー引数に対し、二番目のキー引数が"
305 "大きい場合には正の整数を、 同じ場合にはゼロを、小さい場合には負の整数を返"
306 "す。 ツリーを開く際には、常に同じ比較関数が使われなければならない。 "
307 "I<compare> が NULL (比較関数が指定されていない) の場合、 辞書的に比較される。"
308 "短いキーは長いキーより小さいことになる。"
309
310 #. type: TP
311 #: build/C/man3/btree.3:179
312 #, no-wrap
313 msgid "I<prefix>"
314 msgstr "I<prefix>"
315
316 #. type: Plain text
317 #: build/C/man3/btree.3:198
318 msgid ""
319 "Prefix is the prefix comparison function.  If specified, this routine must "
320 "return the number of bytes of the second key argument which are necessary to "
321 "determine that it is greater than the first key argument.  If the keys are "
322 "equal, the key length should be returned.  Note, the usefulness of this "
323 "routine is very data-dependent, but, in some data sets can produce "
324 "significantly reduced tree sizes and search times.  If I<prefix> is NULL (no "
325 "prefix function is specified), I<and> no comparison function is specified, a "
326 "default lexical comparison routine is used.  If I<prefix> is NULL and a "
327 "comparison routine is specified, no prefix comparison is done."
328 msgstr ""
329 "I<prefix> は前置比較関数である。 このルーチンは (指定された場合には)、二番目"
330 "のキー引数の バイト数を返さなくてはならない。これは二番目のキー引数が 一番目"
331 "のキー引数より大きいかどうか決めるのに必要である。 キーが同じ場合、キーの長さ"
332 "が返る。このルーチンが有用かどうかは、 データに強く依存する。しかしデータセッ"
333 "トによっては、明らかにツリー のサイズと検索時間を減らしてくれる。 I<prefix> "
334 "が NULL (prefix 関数が指定されていない) で、 I<かつ> 比較関数が指定されていな"
335 "いと、デフォルトの辞書比較ルーチンが使われる。 I<prefix> が NULL で比較関数が"
336 "指定されている場合は、前置比較は行われない。"
337
338 #. type: TP
339 #: build/C/man3/btree.3:198 build/C/man3/hash.3:117 build/C/man3/recno.3:150
340 #, no-wrap
341 msgid "I<lorder>"
342 msgstr "I<lorder>"
343
344 #. type: Plain text
345 #: build/C/man3/btree.3:206 build/C/man3/recno.3:158
346 msgid ""
347 "The byte order for integers in the stored database metadata.  The number "
348 "should represent the order as an integer; for example, big endian order "
349 "would be the number 4,321.  If I<lorder> is 0 (no order is specified) the "
350 "current host order is used."
351 msgstr ""
352 "データベースに格納されているメタデータの整数値のバイトオーダー。 この数字は、"
353 "順序を整数で表したものである。 例えばビッグエンディアンなら、この数値は "
354 "4,321 となる。 I<lorder> が 0 (指定されていない) の場合、現在のホスト で使わ"
355 "れているバイトオーダーが使われる。"
356
357 #. type: Plain text
358 #: build/C/man3/btree.3:217
359 msgid ""
360 "If the file already exists (and the B<O_TRUNC> flag is not specified), the "
361 "values specified for the arguments I<flags>, I<lorder> and I<psize> are "
362 "ignored in favor of the values used when the tree was created."
363 msgstr ""
364 "ファイルが既に存在している (または B<O_TRUCT> フラグが指定されていない) と、 "
365 "引き数 I<flag>, I<lorder>, I<psize> に指定された値は無視され、 ツリーが作られ"
366 "た時に使った値が用いられる。"
367
368 #. type: Plain text
369 #: build/C/man3/btree.3:219
370 msgid ""
371 "Forward sequential scans of a tree are from the least key to the greatest."
372 msgstr "ツリーの前方順検索は、最小キーから最大キーに向かって行われる。"
373
374 #. type: Plain text
375 #: build/C/man3/btree.3:225
376 msgid ""
377 "Space freed up by deleting key/data pairs from the tree is never reclaimed, "
378 "although it is normally made available for reuse.  This means that the btree "
379 "storage structure is grow-only.  The only solutions are to avoid excessive "
380 "deletions, or to create a fresh tree periodically from a scan of an existing "
381 "one."
382 msgstr ""
383 "ツリーからキー/データ対が削除されることによってできたスペースは、 通常再利用"
384 "できる形になっているが再利用されることは無い。 つまり brtee 記憶構造は肥大す"
385 "る一方である。 対策は過度の削除を避けるか、 存在するツリーを調べて定期的に新"
386 "しいツリーを作るか、だけである。"
387
388 #. type: Plain text
389 #: build/C/man3/btree.3:231
390 msgid ""
391 "Searches, insertions, and deletions in a btree will all complete in O lg "
392 "base N where base is the average fill factor.  Often, inserting ordered data "
393 "into btrees results in a low fill factor.  This implementation has been "
394 "modified to make ordered insertion the best case, resulting in a much better "
395 "than normal page fill factor."
396 msgstr ""
397 "Searches, insertions, and deletions in a btree will all complete in O lg "
398 "base N where base is the average fill factor.  Often, inserting ordered data "
399 "into btrees results in a low fill factor.  This implementation has been "
400 "modified to make ordered insertion the best case, resulting in a much better "
401 "than normal page fill factor."
402
403 #. type: SH
404 #: build/C/man3/btree.3:231 build/C/man3/dbopen.3:481 build/C/man3/hash.3:151
405 #: build/C/man3/mpool.3:185 build/C/man3/recno.3:210
406 #, no-wrap
407 msgid "ERRORS"
408 msgstr "エラー"
409
410 #. type: Plain text
411 #: build/C/man3/btree.3:238
412 msgid ""
413 "The I<btree> access method routines may fail and set I<errno> for any of the "
414 "errors specified for the library routine B<dbopen>(3)."
415 msgstr ""
416 "I<btree> アクセスメソッドルーチンは失敗すると、ライブラリルーチン B<dbopen>"
417 "(3)  で定義されているエラーのいずれかを I<errno> として返す。"
418
419 #. type: SH
420 #: build/C/man3/btree.3:238 build/C/man3/dbopen.3:543 build/C/man3/hash.3:158
421 #: build/C/man3/recno.3:222
422 #, no-wrap
423 msgid "BUGS"
424 msgstr "バグ"
425
426 #. type: Plain text
427 #: build/C/man3/btree.3:240 build/C/man3/recno.3:224
428 msgid "Only big and little endian byte order is supported."
429 msgstr ""
430 "バイトオーダーとしてはビッグエンディアンとリトルエンディアンのみが サポートさ"
431 "れている。"
432
433 #. type: SH
434 #: build/C/man3/btree.3:240 build/C/man3/dbopen.3:554 build/C/man3/hash.3:160
435 #: build/C/man3/mpool.3:230 build/C/man3/recno.3:224
436 #, no-wrap
437 msgid "SEE ALSO"
438 msgstr "関連項目"
439
440 #. type: Plain text
441 #: build/C/man3/btree.3:245
442 msgid "B<dbopen>(3), B<hash>(3), B<mpool>(3), B<recno>(3)"
443 msgstr "B<dbopen>(3), B<hash>(3), B<mpool>(3), B<recno>(3)"
444
445 #. type: Plain text
446 #: build/C/man3/btree.3:248
447 msgid ""
448 "I<The Ubiquitous B-tree>, Douglas Comer, ACM Comput. Surv. 11, 2 (June "
449 "1979), 121-138."
450 msgstr ""
451 "I<The Ubiquitous B-tree>, Douglas Comer, ACM Comput. Surv. 11, 2 (June "
452 "1979), 121-138."
453
454 #. type: Plain text
455 #: build/C/man3/btree.3:252
456 msgid ""
457 "I<Prefix B-trees>, Bayer and Unterauer, ACM Transactions on Database "
458 "Systems, Vol. 2, 1 (March 1977), 11-26."
459 msgstr ""
460 "I<Prefix B-trees>, Bayer and Unterauer, ACM Transactions on Database "
461 "Systems, Vol. 2, 1 (March 1977), 11-26."
462
463 #. type: Plain text
464 #: build/C/man3/btree.3:255
465 msgid ""
466 "I<The Art of Computer Programming Vol. 3: Sorting and Searching>, D.E. "
467 "Knuth, 1968, pp 471-480."
468 msgstr ""
469 "I<The Art of Computer Programming Vol. 3: Sorting and Searching>, D.E. "
470 "Knuth, 1968, pp 471-480."
471
472 #. type: SH
473 #: build/C/man3/btree.3:255 build/C/man3/dbopen.3:562 build/C/man3/hash.3:171
474 #: build/C/man3/mpool.3:235 build/C/man3/recno.3:233
475 #, no-wrap
476 msgid "COLOPHON"
477 msgstr "この文書について"
478
479 #. type: Plain text
480 #: build/C/man3/btree.3:262 build/C/man3/dbopen.3:569 build/C/man3/hash.3:178
481 #: build/C/man3/mpool.3:242 build/C/man3/recno.3:240
482 #, fuzzy
483 #| msgid ""
484 #| "This page is part of release 3.41 of the Linux I<man-pages> project.  A "
485 #| "description of the project, and information about reporting bugs, can be "
486 #| "found at http://www.kernel.org/doc/man-pages/."
487 msgid ""
488 "This page is part of release 3.50 of the Linux I<man-pages> project.  A "
489 "description of the project, and information about reporting bugs, can be "
490 "found at http://www.kernel.org/doc/man-pages/."
491 msgstr ""
492 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.41 の一部\n"
493 "である。プロジェクトの説明とバグ報告に関する情報は\n"
494 "http://www.kernel.org/doc/man-pages/ に書かれている。"
495
496 #. type: TH
497 #: build/C/man3/dbopen.3:36
498 #, no-wrap
499 msgid "DBOPEN"
500 msgstr "DBOPEN"
501
502 #. type: TH
503 #: build/C/man3/dbopen.3:36
504 #, no-wrap
505 msgid "2012-05-04"
506 msgstr "2012-05-04"
507
508 #. type: Plain text
509 #: build/C/man3/dbopen.3:40
510 msgid "dbopen - database access methods"
511 msgstr "dbopen - データベースアクセスメソッド"
512
513 #. type: Plain text
514 #: build/C/man3/dbopen.3:46
515 #, no-wrap
516 msgid ""
517 "B<#include E<lt>sys/types.hE<gt>>\n"
518 "B<#include E<lt>limits.hE<gt>>\n"
519 "B<#include E<lt>db.hE<gt>>\n"
520 "B<#include E<lt>fcntl.hE<gt>>\n"
521 msgstr ""
522 "B<#include E<lt>sys/types.hE<gt>>\n"
523 "B<#include E<lt>limits.hE<gt>>\n"
524 "B<#include E<lt>db.hE<gt>>\n"
525 "B<#include E<lt>fcntl.hE<gt>>\n"
526
527 #. type: Plain text
528 #: build/C/man3/dbopen.3:50
529 #, no-wrap
530 msgid ""
531 "B<DB *dbopen(const char *>I<file>B<, int >I<flags>B<, int >I<mode>B<, DBTYPE >I<type>B<,>\n"
532 "B<           const void *>I<openinfo>B<);>\n"
533 msgstr ""
534 "B<DB *dbopen(const char *>I<file>B<, int >I<flags>B<, int >I<mode>B<, DBTYPE >I<type>B<,>\n"
535 "B<           const void *>I<openinfo>B<);>\n"
536
537 #. type: Plain text
538 #: build/C/man3/dbopen.3:72
539 msgid ""
540 "B<dbopen>()  is the library interface to database files.  The supported file "
541 "formats are btree, hashed and UNIX file oriented.  The btree format is a "
542 "representation of a sorted, balanced tree structure.  The hashed format is "
543 "an extensible, dynamic hashing scheme.  The flat-file format is a byte "
544 "stream file with fixed or variable length records.  The formats and file "
545 "format specific information are described in detail in their respective "
546 "manual pages B<btree>(3), B<hash>(3)  and B<recno>(3)."
547 msgstr ""
548 "B<dbopen>()  はデータベースファイルに対するライブラリインターフェースであ"
549 "る。 サポートされているファイルフォーマットは btree, hash, UNIX ファイルに指"
550 "向したフォーマット, の 3 つである。 btree フォーマットは、ソートされたバラン"
551 "スツリー構造である。 hashed フォーマットは、拡張可能な動的 hash スキームであ"
552 "る。 フラットファイル (flat-file) フォーマットは、 固定長/可変長のレコードか"
553 "らなるバイトストリームファイルである。 それぞれのフォーマットと、ファイル"
554 "フォーマットに特有の情報は それぞれ対応するマニュアルページ B<btree>(3), "
555 "B<hash>(3), B<recno>(3)  に詳細に記述されている。"
556
557 #. type: Plain text
558 #: build/C/man3/dbopen.3:81
559 msgid ""
560 "B<dbopen>()  opens I<file> for reading and/or writing.  Files never intended "
561 "to be preserved on disk may be created by setting the I<file> argument to "
562 "NULL."
563 msgstr ""
564 "B<dbopen>()  は I<file> を読み込み (読み書き) するためにオープンする。 "
565 "I<file> 引き数を NULL にすれば、 ディスク上に保存したくないファイルを作ること"
566 "もできる。"
567
568 #. Three additional options may be specified by ORing
569 #. them into the
570 #. .I flags
571 #. argument.
572 #. .TP
573 #. DB_LOCK
574 #. Do the necessary locking in the database to support concurrent access.
575 #. If concurrent access isn't needed or the database is read-only this
576 #. flag should not be set, as it tends to have an associated performance
577 #. penalty.
578 #. .TP
579 #. DB_SHMEM
580 #. Place the underlying memory pool used by the database in shared
581 #. memory.
582 #. Necessary for concurrent access.
583 #. .TP
584 #. DB_TXN
585 #. Support transactions in the database.
586 #. The DB_LOCK and DB_SHMEM flags must be set as well.
587 #. type: Plain text
588 #: build/C/man3/dbopen.3:121
589 msgid ""
590 "The I<flags> and I<mode> arguments are as specified to the B<open>(2)  "
591 "routine, however, only the B<O_CREAT>, B<O_EXCL>, B<O_EXLOCK>, "
592 "B<O_NONBLOCK>, B<O_RDONLY>, B<O_RDWR>, B<O_SHLOCK>, and B<O_TRUNC> flags are "
593 "meaningful.  (Note, opening a database file B<O_WRONLY> is not possible.)"
594 msgstr ""
595 "I<flags> と I<mode> 引き数は B<open>(2)  ルーチンで指定するのと同様である。た"
596 "だし 意味を持つフラグは B<O_CREAT>, B<O_EXCL>, B<O_EXLOCK>, B<O_NONBLOCK>, "
597 "B<O_RDONLY>, B<O_RDWR>, B<O_SHLOCK>, B<O_TRUNC> だけである。 (注意: "
598 "B<O_WRONLY> でデータベースファイルを開く事は出来ない)"
599
600 #. type: Plain text
601 #: build/C/man3/dbopen.3:134
602 msgid ""
603 "The I<type> argument is of type I<DBTYPE> (as defined in the I<E<lt>db."
604 "hE<gt>> include file) and may be set to B<DB_BTREE>, B<DB_HASH>, or "
605 "B<DB_RECNO>."
606 msgstr ""
607 "I<type> 引き数は I<DBTYPE> 型である (インクルードファイル I<E<lt>db.hE<gt>> "
608 "で定義されている)。 B<DB_BTREE>, B<DB_HASH>, B<DB_RECNO> のいずれかをセットで"
609 "きる。"
610
611 #. type: Plain text
612 #: build/C/man3/dbopen.3:143
613 msgid ""
614 "The I<openinfo> argument is a pointer to an access method specific structure "
615 "described in the access method's manual page.  If I<openinfo> is NULL, each "
616 "access method will use defaults appropriate for the system and the access "
617 "method."
618 msgstr ""
619 "I<openinfo> 引き数はアクセスメソッドに固有な構造体へのポインタである。 それぞ"
620 "れの構造体に関しては各アクセスメソッドの マニュアルページに記述されている。 "
621 "I<openinfo> が NULL の場合、それぞれのアクセスメソッドとシステムとに適合した "
622 "デフォルトが用いられる。"
623
624 #. type: Plain text
625 #: build/C/man3/dbopen.3:154
626 msgid ""
627 "B<dbopen>()  returns a pointer to a I<DB> structure on success and NULL on "
628 "error.  The I<DB> structure is defined in the I<E<lt>db.hE<gt>> include "
629 "file, and contains at least the following fields:"
630 msgstr ""
631 "B<dbopen>()  は、成功した場合 I<DB> 構造体へのポインタを、エラーの場合 NULL "
632 "を返す。 I<DB> 構造体は I<E<lt>db.hE<gt>> インクルードファイルの中で定義され"
633 "ており、 少なくとも以下のようなフィールドを持っている。"
634
635 #. type: Plain text
636 #: build/C/man3/dbopen.3:170
637 #, no-wrap
638 msgid ""
639 "typedef struct {\n"
640 "    DBTYPE type;\n"
641 "    int (*close)(const DB *db);\n"
642 "    int (*del)(const DB *db, const DBT *key, unsigned int flags);\n"
643 "    int (*fd)(const DB *db);\n"
644 "    int (*get)(const DB *db, DBT *key, DBT *data,\n"
645 "               unsigned int flags);\n"
646 "    int (*put)(const DB *db, DBT *key, const DBT *data,\n"
647 "               unsigned int flags);\n"
648 "    int (*sync)(const DB *db, unsigned int flags);\n"
649 "    int (*seq)(const DB *db, DBT *key, DBT *data,\n"
650 "               unsigned int flags);\n"
651 "} DB;\n"
652 msgstr ""
653 "typedef struct {\n"
654 "    DBTYPE type;\n"
655 "    int (*close)(const DB *db);\n"
656 "    int (*del)(const DB *db, const DBT *key, unsigned int flags);\n"
657 "    int (*fd)(const DB *db);\n"
658 "    int (*get)(const DB *db, DBT *key, DBT *data,\n"
659 "               unsigned int flags);\n"
660 "    int (*put)(const DB *db, DBT *key, const DBT *data,\n"
661 "               unsigned int flags);\n"
662 "    int (*sync)(const DB *db, unsigned int flags);\n"
663 "    int (*seq)(const DB *db, DBT *key, DBT *data,\n"
664 "               unsigned int flags);\n"
665 "} DB;\n"
666
667 #. type: Plain text
668 #: build/C/man3/dbopen.3:178
669 msgid ""
670 "These elements describe a database type and a set of functions performing "
671 "various actions.  These functions take a pointer to a structure as returned "
672 "by B<dbopen>(), and sometimes one or more pointers to key/data structures "
673 "and a flag value."
674 msgstr ""
675 "各要素には、データベースのタイプと、 様々な動作をする関数のセットが記述されて"
676 "いる。 これらの関数は B<dbopen>()  によって返される構造体へのポインタを引き数"
677 "にとる。 キー/データ構造体へのポインタやフラグ値を取るものもある。"
678
679 #. type: TP
680 #: build/C/man3/dbopen.3:178
681 #, no-wrap
682 msgid "I<type>"
683 msgstr "I<type>"
684
685 #. type: Plain text
686 #: build/C/man3/dbopen.3:181
687 msgid "The type of the underlying access method (and file format)."
688 msgstr "用いられているアクセスメソッド (とファイルフォーマット) の型。"
689
690 #. type: TP
691 #: build/C/man3/dbopen.3:181
692 #, no-wrap
693 msgid "I<close>"
694 msgstr "I<close>"
695
696 #. type: Plain text
697 #: build/C/man3/dbopen.3:195
698 msgid ""
699 "A pointer to a routine to flush any cached information to disk, free any "
700 "allocated resources, and close the underlying file(s).  Since key/data pairs "
701 "may be cached in memory, failing to sync the file with a I<close> or I<sync> "
702 "function may result in inconsistent or lost information.  I<close> routines "
703 "return -1 on error (setting I<errno>)  and 0 on success."
704 msgstr ""
705 "キャッシュされた情報をディスクに掃きだすためのルーチンへのポインタ。 割り当て"
706 "られたリソースを解放し、利用したファイル(群)をクローズする。 キー/データ対が"
707 "メモリにキャッシュされている場合、 I<close> や I<sync> 関数での同期に失敗する"
708 "と、情報に矛盾が生じるか情報を失う可能性がある。 I<close> ルーチンはエラーの"
709 "場合 -1 を返し (I<errno> をセットする)、成功すると 0 を返す。"
710
711 #. type: TP
712 #: build/C/man3/dbopen.3:195
713 #, no-wrap
714 msgid "I<del>"
715 msgstr "I<del>"
716
717 #. type: Plain text
718 #: build/C/man3/dbopen.3:198
719 msgid "A pointer to a routine to remove key/data pairs from the database."
720 msgstr "データベースからキー/データ対を削除するルーチンへのポインタ。"
721
722 #. type: Plain text
723 #: build/C/man3/dbopen.3:202
724 msgid "The argument I<flag> may be set to the following value:"
725 msgstr "I<flag> 引き数は次の値がセットできる。"
726
727 #. type: TP
728 #: build/C/man3/dbopen.3:203 build/C/man3/dbopen.3:259
729 #: build/C/man3/dbopen.3:359
730 #, no-wrap
731 msgid "B<R_CURSOR>"
732 msgstr "B<R_CURSOR>"
733
734 #. type: Plain text
735 #: build/C/man3/dbopen.3:207
736 msgid ""
737 "Delete the record referenced by the cursor.  The cursor must have previously "
738 "been initialized."
739 msgstr ""
740 "カーソル (cursor) が参照しているレコードを削除する。 カーソルは前もって初期化"
741 "されていなくてはならない。"
742
743 #. type: Plain text
744 #: build/C/man3/dbopen.3:215
745 msgid ""
746 "I<delete> routines return -1 on error (setting I<errno>), 0 on success, and "
747 "1 if the specified I<key> was not in the file."
748 msgstr ""
749 "I<delete> ルーチンはエラーの場合 -1 を返し (I<errno> をセットする)、成功する"
750 "と 0 を返す。また指定の I<key> がファイル中に無い場合 1 を返す。"
751
752 #. type: TP
753 #: build/C/man3/dbopen.3:215
754 #, no-wrap
755 msgid "I<fd>"
756 msgstr "I<fd>"
757
758 #. type: Plain text
759 #: build/C/man3/dbopen.3:237
760 msgid ""
761 "A pointer to a routine which returns a file descriptor representative of the "
762 "underlying database.  A file descriptor referencing the same file will be "
763 "returned to all processes which call B<dbopen>()  with the same I<file> "
764 "name.  This file descriptor may be safely used as an argument to the B<fcntl>"
765 "(2)  and B<flock>(2)  locking functions.  The file descriptor is not "
766 "necessarily associated with any of the underlying files used by the access "
767 "method.  No file descriptor is available for in memory databases.  I<fd> "
768 "routines return -1 on error (setting I<errno>), and the file descriptor on "
769 "success."
770 msgstr ""
771 "用いているデータベースのファイルデスクリプタを返すルーチン へのポインタ。 同"
772 "じファイル名 I<file> で B<dbopen>()  を呼び出した全てのプロセスに対して、 そ"
773 "のファイルを示す単一のファイルデスクリプタが返される。 このファイルデスクリプ"
774 "タはロック関数 B<fcntl>(2)  と B<flock>(2)  への引き数として安全に使用でき"
775 "る。 このファイルデスクリプタは、必ずしもアクセスメソッドで 用いられている"
776 "ファイルのいずれかに関連づけられていなくても良い。 メモリ内のデータベースには"
777 "ファイルデスクリプタは無い。 I<fd> ルーチンはエラーの場合 -1 を返し "
778 "(I<errno> をセットする)、成功するとファイルデスクリプタを返す。"
779
780 #. type: TP
781 #: build/C/man3/dbopen.3:237
782 #, no-wrap
783 msgid "I<get>"
784 msgstr "I<get>"
785
786 #. type: Plain text
787 #: build/C/man3/dbopen.3:251
788 msgid ""
789 "A pointer to a routine which is the interface for keyed retrieval from the "
790 "database.  The address and length of the data associated with the specified "
791 "I<key> are returned in the structure referenced by I<data>.  I<get> routines "
792 "return -1 on error (setting I<errno>), 0 on success, and 1 if the I<key> was "
793 "not in the file."
794 msgstr ""
795 "データベースからキーを用いてデータを取り出すための ルーチンへのポインタ。 指"
796 "定した I<key> に関連づけられたデータのアドレスと長さが I<data> が参照する構造"
797 "体に返される。 I<get> ルーチンはエラーの場合 -1 を返し (I<errno> をセットす"
798 "る)、成功すると 0 を返す。また I<key> がファイル中に無い場合 1 を返す。"
799
800 #. type: TP
801 #: build/C/man3/dbopen.3:251
802 #, no-wrap
803 msgid "I<put>"
804 msgstr "I<put>"
805
806 #. type: Plain text
807 #: build/C/man3/dbopen.3:254
808 msgid "A pointer to a routine to store key/data pairs in the database."
809 msgstr "キー/データ対をデータベースに納めるルーチンへのポインタ。"
810
811 #. type: Plain text
812 #: build/C/man3/dbopen.3:258
813 msgid "The argument I<flag> may be set to one of the following values:"
814 msgstr "I<flag> 引き数には次の値のうちのどれか一つがセットできる。"
815
816 #. type: Plain text
817 #: build/C/man3/dbopen.3:263
818 msgid ""
819 "Replace the key/data pair referenced by the cursor.  The cursor must have "
820 "previously been initialized."
821 msgstr ""
822 "カーソルが参照しているキー/データ対を置き換える。 カーソルは前もって初期化さ"
823 "れている必要がある。"
824
825 #. type: TP
826 #: build/C/man3/dbopen.3:263
827 #, no-wrap
828 msgid "B<R_IAFTER>"
829 msgstr "B<R_IAFTER>"
830
831 #. type: Plain text
832 #: build/C/man3/dbopen.3:274
833 msgid ""
834 "Append the data immediately after the data referenced by I<key>, creating a "
835 "new key/data pair.  The record number of the appended key/data pair is "
836 "returned in the I<key> structure.  (Applicable only to the B<DB_RECNO> "
837 "access method.)"
838 msgstr ""
839 "I<key> で参照されるデータの直後に、 新しいキー/データ対を作ってデータを追加す"
840 "る。 追加されたキー/データ対のレコード番号は I<key> 構造体に返される。 "
841 "(B<DB_RECNO> アクセス方法でのみ使える。)"
842
843 #. type: TP
844 #: build/C/man3/dbopen.3:274
845 #, no-wrap
846 msgid "B<R_IBEFORE>"
847 msgstr "B<R_IBEFORE>"
848
849 #. type: Plain text
850 #: build/C/man3/dbopen.3:285
851 msgid ""
852 "Insert the data immediately before the data referenced by I<key>, creating a "
853 "new key/data pair.  The record number of the inserted key/data pair is "
854 "returned in the I<key> structure.  (Applicable only to the B<DB_RECNO> "
855 "access method.)"
856 msgstr ""
857 "I<key> で参照されるデータの直前に、 新しいキー/データ対を作ってデータを挿入す"
858 "る。 追加されたキー/データ対のレコード番号は I<key> 構造体に返される。 "
859 "(B<DB_RECNO> アクセスメソッドでのみ使える。)"
860
861 #. type: TP
862 #: build/C/man3/dbopen.3:285
863 #, no-wrap
864 msgid "B<R_NOOVERWRITE>"
865 msgstr "B<R_NOOVERWRITE>"
866
867 #. type: Plain text
868 #: build/C/man3/dbopen.3:288
869 msgid "Enter the new key/data pair only if the key does not previously exist."
870 msgstr "キーがあらかじめ存在しない場合に限り、新しいキー/データ対をいれる。"
871
872 #. type: TP
873 #: build/C/man3/dbopen.3:288
874 #, no-wrap
875 msgid "B<R_SETCURSOR>"
876 msgstr "B<R_SETCURSOR>"
877
878 #. type: Plain text
879 #: build/C/man3/dbopen.3:297
880 msgid ""
881 "Store the key/data pair, setting or initializing the position of the cursor "
882 "to reference it.  (Applicable only to the B<DB_BTREE> and B<DB_RECNO> access "
883 "methods.)"
884 msgstr ""
885 "キー/データ対を納め、それを指すようにカーソル位置をセットあるいは初期 化す"
886 "る。 (B<DB_BTREE> と B<DB_RECNO> アクセスメソッドでのみ使える。)"
887
888 #. type: Plain text
889 #: build/C/man3/dbopen.3:307
890 msgid ""
891 "B<R_SETCURSOR> is available only for the B<DB_BTREE> and B<DB_RECNO> access "
892 "methods because it implies that the keys have an inherent order which does "
893 "not change."
894 msgstr ""
895 "B<R_SETCURSOR> は B<DB_BTREE> と B<DB_RECNO> アクセスメソッドでしか利用できな"
896 "い。 なぜなら B<R_SETCURSOR> を用いるには、変更される事の無い固有の順序を"
897 "キー が持っていなければならないからである。"
898
899 #. type: Plain text
900 #: build/C/man3/dbopen.3:317
901 msgid ""
902 "B<R_IAFTER> and B<R_IBEFORE> are available only for the B<DB_RECNO> access "
903 "method because they each imply that the access method is able to create new "
904 "keys.  This is only true if the keys are ordered and independent, record "
905 "numbers for example."
906 msgstr ""
907 "B<R_IAFTER> と B<R_IBEFORE> は B<DB_RECNO> アクセスメソッドでしか利用できな"
908 "い。 これらを実現するには、アクセスメソッドが 新しいキーを作れなければならな"
909 "いからである。 これが成立するのは、例えば、順序づけらた独立なレコード番号が "
910 "キーになっているような場合だけである。"
911
912 #. type: Plain text
913 #: build/C/man3/dbopen.3:322
914 msgid ""
915 "The default behavior of the I<put> routines is to enter the new key/data "
916 "pair, replacing any previously existing key."
917 msgstr ""
918 "I<put> ルーチンのデフォルトの動作は、新しいキー/データ対を 既に存在するキーを"
919 "置き換える事て格納する動作である。"
920
921 #. type: Plain text
922 #: build/C/man3/dbopen.3:330
923 msgid ""
924 "I<put> routines return -1 on error (setting I<errno>), 0 on success, and 1 "
925 "if the B<R_NOOVERWRITE> I<flag> was set and the key already exists in the "
926 "file."
927 msgstr ""
928 "I<put> ルーチンはエラーの場合 -1 を返し (I<errno> をセットする)、成功すると "
929 "0 を返す。また I<flag> に B<R_NOOVERWRITE> がセットされていてキーが既に存在す"
930 "る場合 1 を返す。"
931
932 #. type: TP
933 #: build/C/man3/dbopen.3:330
934 #, no-wrap
935 msgid "I<seq>"
936 msgstr "I<seq>"
937
938 #. type: Plain text
939 #: build/C/man3/dbopen.3:341
940 msgid ""
941 "A pointer to a routine which is the interface for sequential retrieval from "
942 "the database.  The address and length of the key are returned in the "
943 "structure referenced by I<key>, and the address and length of the data are "
944 "returned in the structure referenced by I<data>."
945 msgstr ""
946 "データベースからシーケンシャルにデータを取り出すための ルーチンへのポイン"
947 "タ。 キーのアドレスと長さが I<key> が参照する構造体に返される。データのアドレ"
948 "スと長さが I<data> が参照する構造体に返される。"
949
950 #. type: Plain text
951 #: build/C/man3/dbopen.3:354
952 msgid ""
953 "Sequential key/data pair retrieval may begin at any time, and the position "
954 "of the \"cursor\" is not affected by calls to the I<del>, I<get>, I<put>, or "
955 "I<sync> routines.  Modifications to the database during a sequential scan "
956 "will be reflected in the scan, that is, records inserted behind the cursor "
957 "will not be returned while records inserted in front of the cursor will be "
958 "returned."
959 msgstr ""
960 "シーケンシャルなキー/データ対の取得はいつでも行える。また 「カーソル」の位置"
961 "は I<del>, I<get>, I<put>, I<sync> ルーチンの呼び出しには影響されない。 シー"
962 "ケンシャルなスキャンの途中に行われたデータベースへの変更は スキャンに反映され"
963 "る。すなわち、カーソルの後ろに挿入されたレコードは 返されないが、カーソルの前"
964 "に挿入されたレコードは返される。"
965
966 #. type: Plain text
967 #: build/C/man3/dbopen.3:358
968 msgid "The flag value B<must> be set to one of the following values:"
969 msgstr ""
970 "フラグ値にはB<必ず>以下に示すうちの どれか一つをセットしなければならない。"
971
972 #. type: Plain text
973 #: build/C/man3/dbopen.3:372
974 msgid ""
975 "The data associated with the specified key is returned.  This differs from "
976 "the I<get> routines in that it sets or initializes the cursor to the "
977 "location of the key as well.  (Note, for the B<DB_BTREE> access method, the "
978 "returned key is not necessarily an exact match for the specified key.  The "
979 "returned key is the smallest key greater than or equal to the specified key, "
980 "permitting partial key matches and range searches.)"
981 msgstr ""
982 "指定したキーに関連づけられたデータが返される。 I<get> ルーチンとの違いは、"
983 "カーソルがキーの位置にセットあるいは 初期化される点である。 (注意: "
984 "B<DB_BTREE> アクセス方法では、返されたキーが 必ずしも指定したキーに正しくマッ"
985 "チしないかもしれない。 返されたキーは、指定されたキーに等しいかより大きいもの"
986 "のうち 最小のものになる (部分キーマッチか範囲検索が許可されている場合)。)"
987
988 #. type: TP
989 #: build/C/man3/dbopen.3:372
990 #, no-wrap
991 msgid "B<R_FIRST>"
992 msgstr "B<R_FIRST>"
993
994 #. type: Plain text
995 #: build/C/man3/dbopen.3:376
996 msgid ""
997 "The first key/data pair of the database is returned, and the cursor is set "
998 "or initialized to reference it."
999 msgstr ""
1000 "データベースの最初のキー/データ対が返される。 カーソルはそれを参照するように"
1001 "セットまたは初期化される。"
1002
1003 #. type: TP
1004 #: build/C/man3/dbopen.3:376
1005 #, no-wrap
1006 msgid "B<R_LAST>"
1007 msgstr "B<R_LAST>"
1008
1009 #. type: Plain text
1010 #: build/C/man3/dbopen.3:385
1011 msgid ""
1012 "The last key/data pair of the database is returned, and the cursor is set or "
1013 "initialized to reference it.  (Applicable only to the B<DB_BTREE> and "
1014 "B<DB_RECNO> access methods.)"
1015 msgstr ""
1016 "データベースの最後のキー/データ対が返される。カーソルはそれを参照する ように"
1017 "セットまたは初期化される。 (B<DB_BTREE> と B<DB_RECNO> アクセスメソッドだけで"
1018 "使える。)"
1019
1020 #. type: TP
1021 #: build/C/man3/dbopen.3:385
1022 #, no-wrap
1023 msgid "B<R_NEXT>"
1024 msgstr "B<R_NEXT>"
1025
1026 #. type: Plain text
1027 #: build/C/man3/dbopen.3:391
1028 msgid ""
1029 "Retrieve the key/data pair immediately after the cursor.  If the cursor is "
1030 "not yet set, this is the same as the B<R_FIRST> flag."
1031 msgstr ""
1032 "カーソル直後のキー/データ対を取得する。 カーソルがセットされていない場合は "
1033 "B<R_FIRST> フラグと同じ。"
1034
1035 #. type: TP
1036 #: build/C/man3/dbopen.3:391
1037 #, no-wrap
1038 msgid "B<R_PREV>"
1039 msgstr "B<R_PREV>"
1040
1041 #. type: Plain text
1042 #: build/C/man3/dbopen.3:402
1043 msgid ""
1044 "Retrieve the key/data pair immediately before the cursor.  If the cursor is "
1045 "not yet set, this is the same as the B<R_LAST> flag.  (Applicable only to "
1046 "the B<DB_BTREE> and B<DB_RECNO> access methods.)"
1047 msgstr ""
1048 "カーソル直前のキー/データ対を取得する。 カーソルがセットされていない場合は "
1049 "B<R_LAST> フラグと同じ。 (B<DB_BTREE> と B<DB_RECNO> アクセスメソッドだけで使"
1050 "える。)"
1051
1052 #. type: Plain text
1053 #: build/C/man3/dbopen.3:413
1054 msgid ""
1055 "B<R_LAST> and B<R_PREV> are available only for the B<DB_BTREE> and "
1056 "B<DB_RECNO> access methods because they each imply that the keys have an "
1057 "inherent order which does not change."
1058 msgstr ""
1059 "B<R_LAST> と B<R_PREV> は、 B<DB_BTREE> と B<DB_RECNO> アクセス方法でしか使え"
1060 "ない。 なぜなら B<R_SETCURSOR> を用いるには、変更される事の無い固有の順序を"
1061 "キーが持っていなければならないからである。"
1062
1063 #. type: Plain text
1064 #: build/C/man3/dbopen.3:426
1065 msgid ""
1066 "I<seq> routines return -1 on error (setting I<errno>), 0 on success and 1 if "
1067 "there are no key/data pairs less than or greater than the specified or "
1068 "current key.  If the B<DB_RECNO> access method is being used, and if the "
1069 "database file is a character special file and no complete key/data pairs are "
1070 "currently available, the I<seq> routines return 2."
1071 msgstr ""
1072 "I<seq> ルーチンはエラーの場合 -1 を返し (I<errno> をセットする)、 成功の場合 "
1073 "0 を返す。 指定したキーやカレントキーよりも大きい/小さいキー/データ対がない場"
1074 "合は 1 を返す。 B<DB_RECNO> アクセスメソッドを使っていて、 かつデータベース"
1075 "ファイルが文字型のスペシャルファイルで、 完成しているキー/データ対が無い場合"
1076 "には、 I<seq> ルーチンは 2 を返す。"
1077
1078 #. type: TP
1079 #: build/C/man3/dbopen.3:426
1080 #, no-wrap
1081 msgid "I<sync>"
1082 msgstr "I<sync>"
1083
1084 #. type: Plain text
1085 #: build/C/man3/dbopen.3:432
1086 msgid ""
1087 "A pointer to a routine to flush any cached information to disk.  If the "
1088 "database is in memory only, the I<sync> routine has no effect and will "
1089 "always succeed."
1090 msgstr ""
1091 "キャッシュされた情報をディスクに掃き出すルーチンへのポインタ。 データベースが"
1092 "メモリの中だけにある場合、 I<sync> ルーチンは何の効果もなく常に成功する。"
1093
1094 #. type: Plain text
1095 #: build/C/man3/dbopen.3:434
1096 msgid "The flag value may be set to the following value:"
1097 msgstr "flag には以下の値がセットできる。"
1098
1099 #. type: TP
1100 #: build/C/man3/dbopen.3:435
1101 #, no-wrap
1102 msgid "B<R_RECNOSYNC>"
1103 msgstr "B<R_RECNOSYNC>"
1104
1105 #. type: Plain text
1106 #: build/C/man3/dbopen.3:447
1107 msgid ""
1108 "If the B<DB_RECNO> access method is being used, this flag causes the sync "
1109 "routine to apply to the btree file which underlies the recno file, not the "
1110 "recno file itself.  (See the I<bfname> field of the B<recno>(3)  manual page "
1111 "for more information.)"
1112 msgstr ""
1113 "B<DB_RECNO> アクセスメソッドを使っている場合に このフラグをセットすると、 "
1114 "recno ファイルそのものにではなく、 そのベースになっている btree ファイルに "
1115 "sync が行われる。 (詳細は B<recno>(3)  マニュアルページで I<bfname> フィール"
1116 "ドを説明している部分を参照のこと。)"
1117
1118 #. type: Plain text
1119 #: build/C/man3/dbopen.3:453
1120 msgid ""
1121 "I<sync> routines return -1 on error (setting I<errno>)  and 0 on success."
1122 msgstr ""
1123 "I<sync> ルーチンはエラーの場合 -1 を返し (I<errno> をセットする)、成功すると "
1124 "0 を返す。"
1125
1126 #. type: SS
1127 #: build/C/man3/dbopen.3:453
1128 #, fuzzy, no-wrap
1129 #| msgid "Key/Data Pairs"
1130 msgid "Key/data pairs"
1131 msgstr "キー/データ対"
1132
1133 #. type: Plain text
1134 #: build/C/man3/dbopen.3:456
1135 msgid ""
1136 "Access to all file types is based on key/data pairs.  Both keys and data are "
1137 "represented by the following data structure:"
1138 msgstr ""
1139 "全てのファイルタイプにおいて、 キー/データ対をベースにしてアクセスが行われ"
1140 "る。 キーとデータのいずれも、次のデータ構造で記述される。"
1141
1142 #. type: Plain text
1143 #: build/C/man3/dbopen.3:463
1144 #, no-wrap
1145 msgid ""
1146 "typedef struct {\n"
1147 "    void  *data;\n"
1148 "    size_t size;\n"
1149 "} DBT;\n"
1150 msgstr ""
1151 "typedef struct {\n"
1152 "    void  *data;\n"
1153 "    size_t size;\n"
1154 "} DBT;\n"
1155
1156 #. type: Plain text
1157 #: build/C/man3/dbopen.3:469
1158 msgid "The elements of the I<DBT> structure are defined as follows:"
1159 msgstr "I<DBT> 構造体の各要素は次のように定義されている。"
1160
1161 #. type: TP
1162 #: build/C/man3/dbopen.3:469
1163 #, no-wrap
1164 msgid "I<data>"
1165 msgstr "I<data>"
1166
1167 #. type: Plain text
1168 #: build/C/man3/dbopen.3:472
1169 msgid "A pointer to a byte string."
1170 msgstr "バイト文字列へのポインタ。"
1171
1172 #. type: TP
1173 #: build/C/man3/dbopen.3:472
1174 #, no-wrap
1175 msgid "I<size>"
1176 msgstr "I<size>"
1177
1178 #. type: Plain text
1179 #: build/C/man3/dbopen.3:475
1180 msgid "The length of the byte string."
1181 msgstr "バイト文字列の長さ。"
1182
1183 #. type: Plain text
1184 #: build/C/man3/dbopen.3:481
1185 msgid ""
1186 "Key and data byte strings may reference strings of essentially unlimited "
1187 "length although any two of them must fit into available memory at the same "
1188 "time.  It should be noted that the access methods provide no guarantees "
1189 "about byte string alignment."
1190 msgstr ""
1191 "キーとデータのバイト文字列は、 基本的には無制限の長さの文字列を参照できる"
1192 "が、 しかしいずれも使用可能なメモリに収まっていなくてはならない。 アクセスメ"
1193 "ソッドはバイト文字列のアラインメントについては 何も保証していない事に注意する"
1194 "こと。"
1195
1196 #. type: Plain text
1197 #: build/C/man3/dbopen.3:491
1198 msgid ""
1199 "The B<dbopen>()  routine may fail and set I<errno> for any of the errors "
1200 "specified for the library routines B<open>(2)  and B<malloc>(3)  or the "
1201 "following:"
1202 msgstr ""
1203 "B<dbopen>()  ルーチンは失敗するとライブラリルーチン B<open>(2)  と B<malloc>"
1204 "(3)  で指定されているエラーに応じた I<errno> をセットする。あるいは以下をセッ"
1205 "トする。"
1206
1207 #. type: TP
1208 #: build/C/man3/dbopen.3:491
1209 #, no-wrap
1210 msgid "B<EFTYPE>"
1211 msgstr "B<[EFTYPE]>"
1212
1213 #. type: Plain text
1214 #: build/C/man3/dbopen.3:494
1215 msgid "A file is incorrectly formatted."
1216 msgstr "ファイルが正しくフォーマットされていない。"
1217
1218 #. type: TP
1219 #: build/C/man3/dbopen.3:494 build/C/man3/mpool.3:198 build/C/man3/recno.3:218
1220 #, no-wrap
1221 msgid "B<EINVAL>"
1222 msgstr "B<EINVAL>"
1223
1224 #. type: Plain text
1225 #: build/C/man3/dbopen.3:501
1226 msgid ""
1227 "A parameter has been specified (hash function, pad byte, etc.) that is "
1228 "incompatible with the current file specification or which is not meaningful "
1229 "for the function (for example, use of the cursor without prior "
1230 "initialization) or there is a mismatch between the version number of file "
1231 "and the software."
1232 msgstr ""
1233 "指定したパラメータ (ハッシュ関数、バイト埋めなど) が現在のファイル仕様\n"
1234 "に合っていない、パラメータが関数にとって無意味 (例えば、あらかじめ初期\n"
1235 "化しないでカーソルを使うとか)、ファイルとソフトウェアのバージョンが\n"
1236 "合っていない。"
1237
1238 #. type: Plain text
1239 #: build/C/man3/dbopen.3:513
1240 msgid ""
1241 "The I<close> routines may fail and set I<errno> for any of the errors "
1242 "specified for the library routines B<close>(2), B<read>(2), B<write>(2), "
1243 "B<free>(3), or B<fsync>(2)."
1244 msgstr ""
1245 "I<close> ルーチンは失敗するとライブラリルーチン B<close>(2), B<read>(2), "
1246 "B<write>(2), B<free>(3), B<fsync>(2)  で指定されているエラーに応じた "
1247 "I<errno> をセットする。"
1248
1249 #. type: Plain text
1250 #: build/C/man3/dbopen.3:528
1251 msgid ""
1252 "The I<del>, I<get>, I<put> and I<seq> routines may fail and set I<errno> for "
1253 "any of the errors specified for the library routines B<read>(2), B<write>"
1254 "(2), B<free>(3)  or B<malloc>(3)."
1255 msgstr ""
1256 "I<del>, I<get>, I<put> と I<seq> ルーチンは失敗するとライブラリルーチン "
1257 "B<read>(2), B<write>(2), B<free>(3), B<malloc>(3)  で指定されているエラーに応"
1258 "じた I<errno> をセットする。"
1259
1260 #. type: Plain text
1261 #: build/C/man3/dbopen.3:536
1262 msgid ""
1263 "The I<fd> routines will fail and set I<errno> to B<ENOENT> for in memory "
1264 "databases."
1265 msgstr ""
1266 "I<fd> ルーチンはメモリ内データベースに対し失敗すると I<errno> に B<ENOENT> を"
1267 "セットする。"
1268
1269 #. type: Plain text
1270 #: build/C/man3/dbopen.3:543
1271 msgid ""
1272 "The I<sync> routines may fail and set I<errno> for any of the errors "
1273 "specified for the library routine B<fsync>(2)."
1274 msgstr ""
1275 "I<sync> ルーチンは失敗するとライブラリルーチン B<fsync>(2)  で指定されている"
1276 "エラーに応じた I<errno> をセットする。"
1277
1278 #. type: Plain text
1279 #: build/C/man3/dbopen.3:548
1280 msgid ""
1281 "The typedef I<DBT> is a mnemonic for \"data base thang\", and was used "
1282 "because no-one could think of a reasonable name that wasn't already used."
1283 msgstr ""
1284 "typedef I<DBT> は ``data base thang''の略語であるが、これが使われているの"
1285 "は、 まだ使われていない妥当な名前が思い付かなかったためである。"
1286
1287 #. type: Plain text
1288 #: build/C/man3/dbopen.3:551
1289 msgid ""
1290 "The file descriptor interface is a kludge and will be deleted in a future "
1291 "version of the interface."
1292 msgstr ""
1293 "ファイルデスクリプタを使ったやりとりはひどい代物であり、 将来のバージョンでは"
1294 "削除されるだろう。"
1295
1296 #. type: Plain text
1297 #: build/C/man3/dbopen.3:554
1298 msgid ""
1299 "None of the access methods provide any form of concurrent access, locking, "
1300 "or transactions."
1301 msgstr ""
1302 "どのアクセスメソッドも、同時アクセス、ロック、トランザクション の仕組みは備え"
1303 "ていない。"
1304
1305 #. type: Plain text
1306 #: build/C/man3/dbopen.3:559
1307 msgid "B<btree>(3), B<hash>(3), B<mpool>(3), B<recno>(3)"
1308 msgstr "B<btree>(3), B<hash>(3), B<mpool>(3), B<recno>(3)"
1309
1310 #. type: Plain text
1311 #: build/C/man3/dbopen.3:562
1312 msgid ""
1313 "I<LIBTP: Portable, Modular Transactions for UNIX>, Margo Seltzer, Michael "
1314 "Olson, USENIX proceedings, Winter 1992."
1315 msgstr ""
1316 "I<LIBTP: Portable, Modular Transactions for UNIX>, Margo Seltzer, Michael "
1317 "Olson, USENIX proceedings, Winter 1992."
1318
1319 #. type: TH
1320 #: build/C/man3/hash.3:36
1321 #, no-wrap
1322 msgid "HASH"
1323 msgstr "HASH"
1324
1325 #. type: Plain text
1326 #: build/C/man3/hash.3:40
1327 msgid "hash - hash database access method"
1328 msgstr "hash - hash データベースへのアクセスメソッド"
1329
1330 #. type: Plain text
1331 #: build/C/man3/hash.3:62
1332 msgid ""
1333 "The routine B<dbopen>(3)  is the library interface to database files.  One "
1334 "of the supported file formats is hash files.  The general description of the "
1335 "database access methods is in B<dbopen>(3), this manual page describes only "
1336 "the hash specific information."
1337 msgstr ""
1338 "ルーチン B<dbopen>(3)  はデータベースファイルに対するライブラリインターフェー"
1339 "スである。 サポートされているファイルフォーマットのひとつに hash ファイルがあ"
1340 "る。 データベースへのアクセスメソッドに関する一般的な記述は B<dbopen>(3)  に"
1341 "書かれている。 このマニュアルページでは hash 特有の情報についてのみ記述する。"
1342
1343 #. type: Plain text
1344 #: build/C/man3/hash.3:64
1345 msgid "The hash data structure is an extensible, dynamic hashing scheme."
1346 msgstr "hash データ構造は、拡張可能な動的ハッシュスキームである。"
1347
1348 #. type: Plain text
1349 #: build/C/man3/hash.3:70
1350 msgid ""
1351 "The access method specific data structure provided to B<dbopen>(3)  is "
1352 "defined in the I<E<lt>db.hE<gt>> include file as follows:"
1353 msgstr ""
1354 "B<dbopen>(3)  に渡される hash アクセスメソッドに特有のデータ構造体は、 "
1355 "I<E<lt>db.hE<gt>> インクルードファイルで以下のように定義されている。"
1356
1357 #. type: Plain text
1358 #: build/C/man3/hash.3:81
1359 #, no-wrap
1360 msgid ""
1361 "typedef struct {\n"
1362 "    unsigned int       bsize;\n"
1363 "    unsigned int       ffactor;\n"
1364 "    unsigned int       nelem;\n"
1365 "    unsigned int       cachesize;\n"
1366 "    uint32_t         (*hash)(const void *, size_t);\n"
1367 "    int         lorder;\n"
1368 "} HASHINFO;\n"
1369 msgstr ""
1370 "typedef struct {\n"
1371 "    unsigned int       bsize;\n"
1372 "    unsigned int       ffactor;\n"
1373 "    unsigned int       nelem;\n"
1374 "    unsigned int       cachesize;\n"
1375 "    uint32_t         (*hash)(const void *, size_t);\n"
1376 "    int         lorder;\n"
1377 "} HASHINFO;\n"
1378
1379 #. type: TP
1380 #: build/C/man3/hash.3:85
1381 #, no-wrap
1382 msgid "I<bsize>"
1383 msgstr "I<bsize>"
1384
1385 #. type: Plain text
1386 #: build/C/man3/hash.3:90
1387 msgid ""
1388 "defines the hash table bucket size, and is, by default, 256 bytes.  It may "
1389 "be preferable to increase the page size for disk-resident tables and tables "
1390 "with large data items."
1391 msgstr ""
1392 "hash テーブルバケット (table bucket) のサイズを定義する。 デフォルトは 256 バ"
1393 "イトである。 ディスクに置かれるテーブルやデータアイテムが大きいテーブルでは "
1394 "ページサイズを大きくするほうが良いだろう。"
1395
1396 #. type: TP
1397 #: build/C/man3/hash.3:90
1398 #, no-wrap
1399 msgid "I<ffactor>"
1400 msgstr "I<ffactor>"
1401
1402 #. type: Plain text
1403 #: build/C/man3/hash.3:96
1404 msgid ""
1405 "indicates a desired density within the hash table.  It is an approximation "
1406 "of the number of keys allowed to accumulate in any one bucket, determining "
1407 "when the hash table grows or shrinks.  The default value is 8."
1408 msgstr ""
1409 "ユーザが望む hash テーブル中の密度である。 これはそれぞれのバケットに格納でき"
1410 "るキーの概数であり、 hash テーブルを拡大・縮小を作用する。 デフォルトは 8 で"
1411 "ある。"
1412
1413 #. type: TP
1414 #: build/C/man3/hash.3:96
1415 #, no-wrap
1416 msgid "I<nelem>"
1417 msgstr "I<nelem>"
1418
1419 #. type: Plain text
1420 #: build/C/man3/hash.3:102
1421 msgid ""
1422 "is an estimate of the final size of the hash table.  If not set or set too "
1423 "low, hash tables will expand gracefully as keys are entered, although a "
1424 "slight performance degradation may be noticed.  The default value is 1."
1425 msgstr ""
1426 "hash テーブルの最終サイズを大まかに見積もった値である。 この値がセットされて"
1427 "いなかったり、あまりに低くセットされていると、 hash テーブルはキーが入ってく"
1428 "るに応じて拡張される。 しかし少しパフォーマンスが (おそらく気付く程度に) 落ち"
1429 "る。 デフォルト値は 1 である。"
1430
1431 #. type: Plain text
1432 #: build/C/man3/hash.3:108
1433 msgid ""
1434 "is the suggested maximum size, in bytes, of the memory cache.  This value is "
1435 "I<only advisory>, and the access method will allocate more memory rather "
1436 "than fail."
1437 msgstr ""
1438 "メモリキャッシュの最大値 (バイト単位) の参考値。 この値は B<あくまで参考であ"
1439 "り>、 アクセスメソッドはこの値を越えたメモリの割り当てに成功することもある。"
1440
1441 #. type: TP
1442 #: build/C/man3/hash.3:108
1443 #, no-wrap
1444 msgid "I<hash>"
1445 msgstr "I<hash>"
1446
1447 #. type: Plain text
1448 #: build/C/man3/hash.3:117
1449 msgid ""
1450 "is a user-defined hash function.  Since no hash function performs equally "
1451 "well on all possible data, the user may find that the built-in hash function "
1452 "does poorly on a particular data set.  A user-specified hash functions must "
1453 "take two arguments (a pointer to a byte string and a length) and return a 32-"
1454 "bit quantity to be used as the hash value."
1455 msgstr ""
1456 "はユーザー定義の hash 関数である。 全てのデータに対してうまく作用する hash 関"
1457 "数と言うのはないから、 特定のデータセットに対しては組み込みの hash 関数では "
1458 "パフォーマンスが低いこともあるかもしれない。 ユーザー定義の hash 関数は二つの"
1459 "引数をとらなくてはならない (バイト文字 列へのポインタと、長さ)。 そして hash "
1460 "値として使われる 32ビットの値を返さなくてはならない。"
1461
1462 #. type: Plain text
1463 #: build/C/man3/hash.3:127
1464 msgid ""
1465 "is the byte order for integers in the stored database metadata.  The number "
1466 "should represent the order as an integer; for example, big endian order "
1467 "would be the number 4,321.  If I<lorder> is 0 (no order is specified) the "
1468 "current host order is used.  If the file already exists, the specified value "
1469 "is ignored and the value specified when the tree was created is used."
1470 msgstr ""
1471 "データベースに格納されているメタデータの整数値のバイトオーダー。 この数字は、"
1472 "順序を整数で表したものである。 例えばビッグエンディアンなら、この数値は "
1473 "4,321 となる。 I<lorder> が 0 (指定されていない)場合、現在のホスト で使われて"
1474 "いる並び順が使われる。 ファイルが既に存在する場合、指定した値は無視されツリー"
1475 "が作られ た時に指定されていた値が使われる。"
1476
1477 #. type: Plain text
1478 #: build/C/man3/hash.3:139
1479 msgid ""
1480 "If the file already exists (and the B<O_TRUNC> flag is not specified), the "
1481 "values specified for I<bsize>, I<ffactor>, I<lorder>, and I<nelem> are "
1482 "ignored and the values specified when the tree was created are used."
1483 msgstr ""
1484 "ファイルが既に存在している (または B<O_TRUNC> フラグが指定されていない) と、 "
1485 "I<bsize>, I<ffactor>, I<lorder>, I<nelem> に指定された値は無視され、 ハッシュ"
1486 "が作られた時に使った値が使われる。"
1487
1488 #. type: Plain text
1489 #: build/C/man3/hash.3:144
1490 msgid ""
1491 "If a hash function is specified, I<hash_open> will attempt to determine if "
1492 "the hash function specified is the same as the one with which the database "
1493 "was created, and will fail if it is not."
1494 msgstr ""
1495 "hash 関数が指定されると、 I<hash_open> はデータベースが作られた時に指定されて"
1496 "いた hash 関数と今回指定された hash 関数が同じかどうかを調べ、 同じでない場合"
1497 "には失敗する。"
1498
1499 #. type: Plain text
1500 #: build/C/man3/hash.3:151
1501 msgid ""
1502 "Backward-compatible interfaces to the routines described in B<dbm>(3), and "
1503 "B<ndbm>(3)  are provided, however these interfaces are not compatible with "
1504 "previous file formats."
1505 msgstr ""
1506 "B<dbm>(3), と B<ndbm>(3)  に記述されているルーチンへの過去互換を取るためのイ"
1507 "ンターフェイスが 存在する。しかしこれらのインターフェイスは以前のファイル"
1508 "フォー マットとは互換性がない。"
1509
1510 #. type: Plain text
1511 #: build/C/man3/hash.3:158
1512 msgid ""
1513 "The I<hash> access method routines may fail and set I<errno> for any of the "
1514 "errors specified for the library routine B<dbopen>(3)."
1515 msgstr ""
1516 "I<hash> アクセスメソッドルーチンは、失敗するとライブラリルーチン B<dbopen>"
1517 "(3)  で指定されているエラーに応じた I<errno> をセットする。"
1518
1519 #. type: Plain text
1520 #: build/C/man3/hash.3:160
1521 msgid "Only big and little endian byte order are supported."
1522 msgstr ""
1523 "バイトオーダーとしてはビッグエンディアンとリトルエンディアンのみが サポートさ"
1524 "れている。"
1525
1526 #. type: Plain text
1527 #: build/C/man3/hash.3:165
1528 msgid "B<btree>(3), B<dbopen>(3), B<mpool>(3), B<recno>(3)"
1529 msgstr "B<btree>(3), B<dbopen>(3), B<mpool>(3), B<recno>(3)"
1530
1531 #. type: Plain text
1532 #: build/C/man3/hash.3:168
1533 msgid ""
1534 "I<Dynamic Hash Tables>, Per-Ake Larson, Communications of the ACM, April "
1535 "1988."
1536 msgstr ""
1537 "I<Dynamic Hash Tables>, Per-Ake Larson, Communications of the ACM, April "
1538 "1988."
1539
1540 #. type: Plain text
1541 #: build/C/man3/hash.3:171
1542 msgid ""
1543 "I<A New Hash Package for UNIX>, Margo Seltzer, USENIX Proceedings, Winter "
1544 "1991."
1545 msgstr ""
1546 "I<A New Hash Package for UNIX>, Margo Seltzer, USENIX Proceedings, Winter "
1547 "1991."
1548
1549 #. type: TH
1550 #: build/C/man3/mpool.3:36
1551 #, no-wrap
1552 msgid "MPOOL"
1553 msgstr "MPOOL"
1554
1555 #. type: TH
1556 #: build/C/man3/mpool.3:36
1557 #, no-wrap
1558 msgid "2012-04-26"
1559 msgstr "2012-04-26"
1560
1561 #. type: Plain text
1562 #: build/C/man3/mpool.3:40
1563 msgid "mpool - shared memory buffer pool"
1564 msgstr "mpool - 共有メモリバッファプール"
1565
1566 #. type: Plain text
1567 #: build/C/man3/mpool.3:44
1568 #, no-wrap
1569 msgid ""
1570 "B<#include E<lt>db.hE<gt>>\n"
1571 "B<#include E<lt>mpool.hE<gt>>\n"
1572 msgstr ""
1573 "B<#include E<lt>db.hE<gt>>\n"
1574 "B<#include E<lt>mpool.hE<gt>>\n"
1575
1576 #. type: Plain text
1577 #: build/C/man3/mpool.3:47
1578 #, no-wrap
1579 msgid "B<MPOOL *mpool_open(DBT *>I<key>B<, int >I<fd>B<, pgno_t >I<pagesize>B<, pgno_t >I<maxcache>B<);>\n"
1580 msgstr "B<MPOOL *mpool_open(DBT *>I<key>B<, int >I<fd>B<, pgno_t >I<pagesize>B<, pgno_t >I<maxcache>B<);>\n"
1581
1582 #. type: Plain text
1583 #: build/C/man3/mpool.3:51
1584 #, no-wrap
1585 msgid ""
1586 "B<void mpool_filter(MPOOL *>I<mp>B<, void (*pgin)(void *, pgno_t, void *),>\n"
1587 "B<                  void (*>I<pgout>B<)(void *, pgno_t, void *),>\n"
1588 "B<                  void *>I<pgcookie>B<);>\n"
1589 msgstr ""
1590 "B<void mpool_filter(MPOOL *>I<mp>B<, void (*pgin)(void *, pgno_t, void *),>\n"
1591 "B<                  void (*>I<pgout>B<)(void *, pgno_t, void *),>\n"
1592 "B<                  void *>I<pgcookie>B<);>\n"
1593
1594 #. type: Plain text
1595 #: build/C/man3/mpool.3:53
1596 #, no-wrap
1597 msgid "B<void *mpool_new(MPOOL *>I<mp>B<, pgno_t *>I<pgnoaddr>B<);>\n"
1598 msgstr "B<void *mpool_new(MPOOL *>I<mp>B<, pgno_t *>I<pgnoaddr>B<);>\n"
1599
1600 #. type: Plain text
1601 #: build/C/man3/mpool.3:55
1602 #, no-wrap
1603 msgid "B<void *mpool_get(MPOOL *>I<mp>B<, pgno_t >I<pgno>B<, unsigned int >I<flags>B<);>\n"
1604 msgstr "B<void *mpool_get(MPOOL *>I<mp>B<, pgno_t >I<pgno>B<, unsigned int >I<flags>B<);>\n"
1605
1606 #. type: Plain text
1607 #: build/C/man3/mpool.3:57
1608 #, no-wrap
1609 msgid "B<int mpool_put(MPOOL *>I<mp>B<, void *>I<pgaddr>B<, unsigned int >I<flags>B<);>\n"
1610 msgstr "B<int mpool_put(MPOOL *>I<mp>B<, void *>I<pgaddr>B<, unsigned int >I<flags>B<);>\n"
1611
1612 #. type: Plain text
1613 #: build/C/man3/mpool.3:59
1614 #, no-wrap
1615 msgid "B<int mpool_sync(MPOOL *>I<mp>B<);>\n"
1616 msgstr "B<int mpool_sync(MPOOL *>I<mp>B<);>\n"
1617
1618 #. type: Plain text
1619 #: build/C/man3/mpool.3:61
1620 #, no-wrap
1621 msgid "B<int mpool_close(MPOOL *>I<mp>B<);>\n"
1622 msgstr "B<int mpool_close(MPOOL *>I<mp>B<);>\n"
1623
1624 #. type: Plain text
1625 #: build/C/man3/mpool.3:74
1626 msgid ""
1627 "I<Mpool> is the library interface intended to provide page oriented buffer "
1628 "management of files.  The buffers may be shared between processes."
1629 msgstr ""
1630 "I<mpool> は、ファイルに対するページ指向のバッファ管理を実装した ライブラリイ"
1631 "ンターフェイスである。"
1632
1633 #. type: Plain text
1634 #: build/C/man3/mpool.3:95
1635 msgid ""
1636 "The function B<mpool_open>()  initializes a memory pool.  The I<key> "
1637 "argument is the byte string used to negotiate between multiple processes "
1638 "wishing to share buffers.  If the file buffers are mapped in shared memory, "
1639 "all processes using the same key will share the buffers.  If I<key> is NULL, "
1640 "the buffers are mapped into private memory.  The I<fd> argument is a file "
1641 "descriptor for the underlying file, which must be seekable.  If I<key> is "
1642 "non-NULL and matches a file already being mapped, the I<fd> argument is "
1643 "ignored."
1644 msgstr ""
1645 "関数 B<mpool_open>()  はメモリプールを初期化する。 I<key> 引数はバイト文字列"
1646 "であり、バッファを共有したい複数プロセス間 でのネゴシエーションに使われる。 "
1647 "ファイルバッファが共有メモリにマップされると、 同じキーを使うプロセスは全て"
1648 "バッファを共有する。 I<key> が NULL だと、バッファはプライベートなメモリに割"
1649 "り付けられる。 I<fd> 引数はもとになるファイルのファイルデスクリプタである。 "
1650 "このファイルデスクリプタはシーク可能でなくてはならない。 I<key> が NULL でな"
1651 "く、かつ既にマップされているファイルにマッチした場合、 I<fd> 引数は無視され"
1652 "る。"
1653
1654 #. type: Plain text
1655 #: build/C/man3/mpool.3:106
1656 msgid ""
1657 "The I<pagesize> argument is the size, in bytes, of the pages into which the "
1658 "file is broken up.  The I<maxcache> argument is the maximum number of pages "
1659 "from the underlying file to cache at any one time.  This value is not "
1660 "relative to the number of processes which share a file's buffers, but will "
1661 "be the largest value specified by any of the processes sharing the file."
1662 msgstr ""
1663 "I<pagesize> 引数はバイト単位でのページサイズであり、ファイルはこのサイズに分"
1664 "割される。 I<maxcache> 引数は基ファイルをキャッシュするときに用いる最大ページ"
1665 "数である。 この値はファイルバッファを共有しているプロセスの数には関係ない"
1666 "が、 ファイルを共有するプロセスが指定したうちの最大値が実際に用いられる。"
1667
1668 #. type: Plain text
1669 #: build/C/man3/mpool.3:122
1670 msgid ""
1671 "The B<mpool_filter>()  function is intended to make transparent input and "
1672 "output processing of the pages possible.  If the I<pgin> function is "
1673 "specified, it is called each time a buffer is read into the memory pool from "
1674 "the backing file.  If the I<pgout> function is specified, it is called each "
1675 "time a buffer is written into the backing file.  Both functions are called "
1676 "with the I<pgcookie> pointer, the page number and a pointer to the page to "
1677 "being read or written."
1678 msgstr ""
1679 "関数 B<mpool_filter>()  は透過的なページ入出力処理を可能にする。 関数 "
1680 "I<pgin> が指定されていると、 ファイルからメモリプールに読み込まれる度にこの関"
1681 "数が呼び出される。 関数 I<pgout> が指定されていと、 バッファからファイルに書"
1682 "き出される度にこの関数が呼び出される。 どちらの関数も、 I<pgcookie> ポイン"
1683 "タ、ページ数、読み書きされるページへのポインタを引数にとる。"
1684
1685 #. type: Plain text
1686 #: build/C/man3/mpool.3:135
1687 msgid ""
1688 "The function B<mpool_new>()  takes an I<MPOOL> pointer and an address as "
1689 "arguments.  If a new page can be allocated, a pointer to the page is "
1690 "returned and the page number is stored into the I<pgnoaddr> address.  "
1691 "Otherwise, NULL is returned and I<errno> is set."
1692 msgstr ""
1693 "関数 B<mpool_new>()  は I<MPOOL> ポインタとアドレスを引数にとる。 新しいペー"
1694 "ジが割り当て可能な場合、ページへのポインタが返され、 ページ数が I<pgnoaddr> "
1695 "アドレスに納められる。 割り当てが不可能な場合は NULL が返され、 I<errno> が"
1696 "セットされる。"
1697
1698 #. type: Plain text
1699 #: build/C/man3/mpool.3:148
1700 msgid ""
1701 "The function B<mpool_get>()  takes an I<MPOOL> pointer and a page number as "
1702 "arguments.  If the page exists, a pointer to the page is returned.  "
1703 "Otherwise, NULL is returned and I<errno> is set.  The I<flags> argument is "
1704 "not currently used."
1705 msgstr ""
1706 "関数 B<mpool_get>()  は I<MPOOL> ポインタとページ数を引数にとる。ページが存在"
1707 "していると、 ページへのポインタが返される。 存在していないと NULL が返され、 "
1708 "I<errno> がセットされる。 I<flags> 引き数は現在使用されていない。"
1709
1710 #. type: Plain text
1711 #: build/C/man3/mpool.3:160
1712 msgid ""
1713 "The function B<mpool_put>()  unpins the page referenced by I<pgaddr>.  "
1714 "I<pgaddr> must be an address previously returned by B<mpool_get>()  or "
1715 "B<mpool_new>().  The flag value is specified by ORing any of the following "
1716 "values:"
1717 msgstr ""
1718 "関数 B<mpool_put>()  は I<pgaddr> が参照するページを解放する。 I<pgaddr> は以"
1719 "前に B<mpool_get>()  か B<mpool_new>()  が返したアドレスでなければならない。 "
1720 "flag の値は以下の値の論理和で指定する。"
1721
1722 #. type: TP
1723 #: build/C/man3/mpool.3:160
1724 #, no-wrap
1725 msgid "B<MPOOL_DIRTY>"
1726 msgstr "B<MPOOL_DIRTY>"
1727
1728 #. type: Plain text
1729 #: build/C/man3/mpool.3:163
1730 msgid "The page has been modified and needs to be written to the backing file."
1731 msgstr "ページは変更されており、ファイルに書き出す必要がある。"
1732
1733 #. type: Plain text
1734 #: build/C/man3/mpool.3:166
1735 msgid "B<mpool_put>()  returns 0 on success and -1 if an error occurs."
1736 msgstr "B<mpool_put>()  は成功すると 0 を、エラーがあると -1 を返す。"
1737
1738 #. type: Plain text
1739 #: build/C/man3/mpool.3:175
1740 msgid ""
1741 "The function B<mpool_sync>()  writes all modified pages associated with the "
1742 "I<MPOOL> pointer to the backing file.  B<mpool_sync>()  returns 0 on success "
1743 "and -1 if an error occurs."
1744 msgstr ""
1745 "関数 B<mpool_sync>()  は I<MPOOL> ポインタの示すページのうち、 変更されたもの"
1746 "を全てファイルに書き出す。 B<mpool_sync>()  は成功すると 0 を、エラーがある"
1747 "と -1 を返す。"
1748
1749 #. type: Plain text
1750 #: build/C/man3/mpool.3:185
1751 msgid ""
1752 "The B<mpool_close>()  function free's up any allocated memory associated "
1753 "with the memory pool cookie.  Modified pages are B<not> written to the "
1754 "backing file.  B<mpool_close>()  returns 0 on success and -1 if an error "
1755 "occurs."
1756 msgstr ""
1757 "関数 B<mpool_close>()  はメモリプールクッキーの示す割り当て済みのメモリを解放"
1758 "する。 変更されたページはファイルにB<書き出されない>。 I<mpool_close ()> は成"
1759 "功すると 0 を、エラーがあると -1 を返す。"
1760
1761 #. type: Plain text
1762 #: build/C/man3/mpool.3:192
1763 msgid ""
1764 "The B<mpool_open>()  function may fail and set I<errno> for any of the "
1765 "errors specified for the library routine B<malloc>(3)."
1766 msgstr ""
1767 "関数 B<mpool_open>()  は失敗するとライブラリルーチン B<malloc>(3)  で指定され"
1768 "ているエラーに応じた I<errno> をセットする。"
1769
1770 #. type: Plain text
1771 #: build/C/man3/mpool.3:198
1772 msgid ""
1773 "The B<mpool_get>()  function may fail and set I<errno> for the following:"
1774 msgstr "関数 B<mpool_get>()  は失敗すると次のような I<errno> をセットする。"
1775
1776 #. type: Plain text
1777 #: build/C/man3/mpool.3:201
1778 msgid "The requested record doesn't exist."
1779 msgstr "要求のあったレコードは存在しない。"
1780
1781 #. type: Plain text
1782 #: build/C/man3/mpool.3:213
1783 msgid ""
1784 "The B<mpool_new>()  and B<mpool_get>()  functions may fail and set I<errno> "
1785 "for any of the errors specified for the library routines B<read>(2), B<write>"
1786 "(2), and B<malloc>(3)."
1787 msgstr ""
1788 "関数 B<mpool_new>()  と B<mpool_get>()  は失敗するとライブラリルーチン "
1789 "B<read>(2), B<write>(2), B<malloc>(3)  で指定されているエラーに応じた "
1790 "I<errno> をセットする。"
1791
1792 #. type: Plain text
1793 #: build/C/man3/mpool.3:220
1794 msgid ""
1795 "The B<mpool_sync>()  function may fail and set I<errno> for any of the "
1796 "errors specified for the library routine B<write>(2)."
1797 msgstr ""
1798 "関数 B<mpool_sync>()  は失敗するとライブラリルーチン B<write>(2)  で指定され"
1799 "ているエラーに応じた I<errno> をセットする。"
1800
1801 #. type: Plain text
1802 #: build/C/man3/mpool.3:227
1803 msgid ""
1804 "The B<mpool_close>()  function may fail and set I<errno> for any of the "
1805 "errors specified for the library routine B<free>(3)."
1806 msgstr ""
1807 "関数 B<mpool_close>()  は失敗するとライブラリルーチン B<free>(3)  で指定され"
1808 "ているエラーに応じた I<errno> をセットする。"
1809
1810 #. type: SH
1811 #: build/C/man3/mpool.3:227
1812 #, no-wrap
1813 msgid "CONFORMING TO"
1814 msgstr "準拠"
1815
1816 #. type: Plain text
1817 #: build/C/man3/mpool.3:230
1818 msgid "Not in POSIX.1-2001.  Present on the BSDs."
1819 msgstr "POSIX.1-2001 にはない。 BSD 系に存在する。"
1820
1821 #. type: Plain text
1822 #: build/C/man3/mpool.3:235
1823 msgid "B<btree>(3), B<dbopen>(3), B<hash>(3), B<recno>(3)"
1824 msgstr "B<btree>(3), B<dbopen>(3), B<hash>(3), B<recno>(3)"
1825
1826 #. type: TH
1827 #: build/C/man3/recno.3:36
1828 #, no-wrap
1829 msgid "RECNO"
1830 msgstr "RECNO"
1831
1832 #. type: Plain text
1833 #: build/C/man3/recno.3:40
1834 msgid "recno - record number database access method"
1835 msgstr "recno - レコード番号データベースへのアクセスメソッド"
1836
1837 #. type: Plain text
1838 #: build/C/man3/recno.3:62
1839 msgid ""
1840 "The routine B<dbopen>(3)  is the library interface to database files.  One "
1841 "of the supported file formats is record number files.  The general "
1842 "description of the database access methods is in B<dbopen>(3), this manual "
1843 "page describes only the recno specific information."
1844 msgstr ""
1845 "ルーチン B<dbopen>(3)  はデータベースファイルに対するライブラリインターフェー"
1846 "スである。 サポートされているファイルフォーマットの一つに、 レコード番号ファ"
1847 "イル (record number file: recno file) がある。 データベースへのアクセスメソッ"
1848 "ドに関する一般的な記述は B<dbopen>(3), に書かれている。 このマニュアルページ"
1849 "では recno 特有の情報についてのみ記述する。"
1850
1851 #. type: Plain text
1852 #: build/C/man3/recno.3:71
1853 msgid ""
1854 "The record number data structure is either variable or fixed-length records "
1855 "stored in a flat-file format, accessed by the logical record number.  The "
1856 "existence of record number five implies the existence of records one through "
1857 "four, and the deletion of record number one causes record number five to be "
1858 "renumbered to record number four, as well as the cursor, if positioned after "
1859 "record number one, to shift down one record."
1860 msgstr ""
1861 "レコード番号データ構造は、フラットなファイル形式に格納された 可変長/固定長レ"
1862 "コードからなり、論理レコード番号でアクセスされる。 レコード番号 5 があれば、"
1863 "レコード番号 1 から 4 も存在する。 レコード番号 1 を削除すると、レコード番号 "
1864 "5 は 4 に付け替えられ、 カーソルも移動する。レコード番号 1 以降のものは一つ繰"
1865 "り上がるわけである。"
1866
1867 #. type: Plain text
1868 #: build/C/man3/recno.3:77
1869 msgid ""
1870 "The recno access method specific data structure provided to B<dbopen>(3)  is "
1871 "defined in the I<E<lt>db.hE<gt>> include file as follows:"
1872 msgstr ""
1873 "B<dbopen>(3)  で使う recno アクセスメソッドに特有のデータ構造体は、 "
1874 "I<E<lt>db.hE<gt>> インクルードファイルで次のように定義されている。"
1875
1876 #. type: Plain text
1877 #: build/C/man3/recno.3:89
1878 #, no-wrap
1879 msgid ""
1880 "typedef struct {\n"
1881 "    unsigned long flags;\n"
1882 "    unsigned int  cachesize;\n"
1883 "    unsigned int  psize;\n"
1884 "    int           lorder;\n"
1885 "    size_t        reclen;\n"
1886 "    unsigned char bval;\n"
1887 "    char         *bfname;\n"
1888 "} RECNOINFO;\n"
1889 msgstr ""
1890 "typedef struct {\n"
1891 "    unsigned long flags;\n"
1892 "    unsigned int  cachesize;\n"
1893 "    unsigned int  psize;\n"
1894 "    int           lorder;\n"
1895 "    size_t        reclen;\n"
1896 "    unsigned char bval;\n"
1897 "    char         *bfname;\n"
1898 "} RECNOINFO;\n"
1899
1900 #. type: Plain text
1901 #: build/C/man3/recno.3:93
1902 msgid "The elements of this structure are defined as follows:"
1903 msgstr "この構造体の要素を以下に示す。"
1904
1905 #. type: TP
1906 #: build/C/man3/recno.3:93
1907 #, no-wrap
1908 msgid "flags"
1909 msgstr "flags"
1910
1911 #. type: TP
1912 #: build/C/man3/recno.3:98
1913 #, no-wrap
1914 msgid "B<R_FIXEDLEN>"
1915 msgstr "B<R_FIXEDLEN>"
1916
1917 #. type: Plain text
1918 #: build/C/man3/recno.3:109
1919 msgid ""
1920 "The records are fixed-length, not byte delimited.  The structure element "
1921 "I<reclen> specifies the length of the record, and the structure element "
1922 "I<bval> is used as the pad character.  Any records, inserted into the "
1923 "database, that are less than I<reclen> bytes long are automatically padded."
1924 msgstr ""
1925 "レコード長が固定であり、バイト区切りではない。 構造体の要素 I<reclen> はレ"
1926 "コードの長さを指定する。また、要素 I<bval> は埋め文字 (pad character) を指定"
1927 "する。 データベースに入れられたレコードの内 I<reclen> バイトに満たないもので"
1928 "は、残りの部分に埋め文字が自動的に入る。"
1929
1930 #. type: TP
1931 #: build/C/man3/recno.3:109
1932 #, no-wrap
1933 msgid "B<R_NOKEY>"
1934 msgstr "B<R_NOKEY>"
1935
1936 #. type: Plain text
1937 #: build/C/man3/recno.3:122
1938 msgid ""
1939 "In the interface specified by B<dbopen>(3), the sequential record retrieval "
1940 "fills in both the caller's key and data structures.  If the B<R_NOKEY> flag "
1941 "is specified, the I<cursor> routines are not required to fill in the key "
1942 "structure.  This permits applications to retrieve records at the end of "
1943 "files without reading all of the intervening records."
1944 msgstr ""
1945 "B<dbopen>(3)  で指定されたインターフェイスでは、シーケンシャルなレコード取得"
1946 "は 呼び出しキーとデータ構造体の両方を埋めていく。 B<R_NOKEY> フラグが指定され"
1947 "ていると、キー構造体を埋めるのに I<cursor> ルーチンを必要としない。 これを用"
1948 "いれば、アプリケーションがファイルの終りの方を取得する際に、 その途中のレコー"
1949 "ドを読まなくても済む事になる。"
1950
1951 #. type: TP
1952 #: build/C/man3/recno.3:122
1953 #, no-wrap
1954 msgid "B<R_SNAPSHOT>"
1955 msgstr "B<R_SNAPSHOT>"
1956
1957 #. type: Plain text
1958 #: build/C/man3/recno.3:128
1959 msgid ""
1960 "This flag requires that a snapshot of the file be taken when B<dbopen>(3)  "
1961 "is called, instead of permitting any unmodified records to be read from the "
1962 "original file."
1963 msgstr ""
1964 "このフラグを指定すると、 B<dbopen>(3)  の呼び出しの際、 オリジナルファイルか"
1965 "ら変更されていないレコードを読む代わりに、 ファイルの snapshot を用いる。"
1966
1967 #. type: Plain text
1968 #: build/C/man3/recno.3:138
1969 msgid ""
1970 "A suggested maximum size, in bytes, of the memory cache.  This value is "
1971 "B<only> advisory, and the access method will allocate more memory rather "
1972 "than fail.  If I<cachesize> is 0 (no size is specified) a default cache is "
1973 "used."
1974 msgstr ""
1975 "想定されるメモリキャッシュの最大サイズ (バイト単位)。 この値は B<あくまで> 参"
1976 "考であり、アクセスメソッドはこの値を越えたメモリの 割り当てに成功することもあ"
1977 "る。 I<cachesize> が 0 (あるいは指定されていない) の場合、デフォルトのキャッ"
1978 "シュが使われる。"
1979
1980 #. type: Plain text
1981 #: build/C/man3/recno.3:150
1982 msgid ""
1983 "The recno access method stores the in-memory copies of its records in a "
1984 "btree.  This value is the size (in bytes) of the pages used for nodes in "
1985 "that tree.  If I<psize> is 0 (no page size is specified) a page size is "
1986 "chosen based on the underlying file system I/O block size.  See B<btree>(3)  "
1987 "for more information."
1988 msgstr ""
1989 "recno アクセスメソッドは、自身のレコードのコピーをメモリ内部に btree で保存し"
1990 "ている。 この値は、その btree 中のノードに対して用いられる ページサイズ (バイ"
1991 "ト単位) である。 I<psize> が 0 (あるいは指定されていない) の場合、 ファイルシ"
1992 "ステムの I/O ブロックサイズを基にして ページサイズが決められる。 詳細は "
1993 "B<btree>(3)  を参照。"
1994
1995 #. type: TP
1996 #: build/C/man3/recno.3:158
1997 #, no-wrap
1998 msgid "I<reclen>"
1999 msgstr "I<reclen>"
2000
2001 #. type: Plain text
2002 #: build/C/man3/recno.3:161
2003 msgid "The length of a fixed-length record."
2004 msgstr "固定レコード長の長さ。"
2005
2006 #. type: TP
2007 #: build/C/man3/recno.3:161
2008 #, no-wrap
2009 msgid "I<bval>"
2010 msgstr "I<bval>"
2011
2012 #. type: Plain text
2013 #: build/C/man3/recno.3:169
2014 msgid ""
2015 "The delimiting byte to be used to mark the end of a record for variable-"
2016 "length records, and the pad character for fixed-length records.  If no value "
2017 "is specified, newlines (\"\\en\") are used to mark the end of variable-"
2018 "length records and fixed-length records are padded with spaces."
2019 msgstr ""
2020 "可変レコード長において、 レコードの終りを示す区切りバイト (区切り文字) であ"
2021 "る。 固定レコード長では埋め文字として使われる。 値が指定されていないと、 可変"
2022 "レコード長のレコードの終りには改行 (\"\\en\") が使われる。 固定レコード長のレ"
2023 "コードは空白 (space) で埋められる。"
2024
2025 #. type: TP
2026 #: build/C/man3/recno.3:169
2027 #, no-wrap
2028 msgid "I<bfname>"
2029 msgstr "I<bfname>"
2030
2031 #. type: Plain text
2032 #: build/C/man3/recno.3:179
2033 msgid ""
2034 "The recno access method stores the in-memory copies of its records in a "
2035 "btree.  If I<bfname> is non-NULL, it specifies the name of the btree file, "
2036 "as if specified as the filename for a B<dbopen>(3)  of a btree file."
2037 msgstr ""
2038 "recno アクセスメソッドは、 自身のレコードのコピーをメモリ内部で btree に保存"
2039 "している。 I<bfname> が NULL でない場合、これは btree ファイル名 (btree ファ"
2040 "イルを B<dbopen>(3)  する時に指定するファイル名) を指定する。"
2041
2042 #. type: Plain text
2043 #: build/C/man3/recno.3:197
2044 msgid ""
2045 "The data part of the key/data pair used by the I<recno> access method is the "
2046 "same as other access methods.  The key is different.  The I<data> field of "
2047 "the key should be a pointer to a memory location of type I<recno_t>, as "
2048 "defined in th I<E<lt>db.hE<gt>> include file.  This type is normally the "
2049 "largest unsigned integral type available to the implementation.  The I<size> "
2050 "field of the key should be the size of that type."
2051 msgstr ""
2052 "I<recno> アクセスメソッドで使われるキー/データ対のデータ部分は、 他のアクセス"
2053 "メソッドと同じである。 しかしキーは異なっている。 キーの I<data> フィールド"
2054 "は I<recno_t> 型の、メモリ位置へのポインタでなければならない。 I<recno_t> は "
2055 "I<E<lt>db.hE<gt>> インクルードファイルで定義されている。 この型は通常、その実"
2056 "装で利用可能な最大の符号無し整数である。 キーの I<size> フィールドはその型の"
2057 "サイズとなる。"
2058
2059 #. type: Plain text
2060 #: build/C/man3/recno.3:202
2061 msgid ""
2062 "Because there can be no metadata associated with the underlying recno access "
2063 "method files, any changes made to the default values (e.g., fixed record "
2064 "length or byte separator value) must be explicitly specified each time the "
2065 "file is opened."
2066 msgstr ""
2067 "recno アクセスメソッドのファイルに関連づけられる メタデータは存在できないか"
2068 "ら、 デフォルト値 (固定レコード長やセパレータ文字など)  に対する変更はファイ"
2069 "ルを開く毎に明示的に指定しなければならない。"
2070
2071 #. type: Plain text
2072 #: build/C/man3/recno.3:210
2073 msgid ""
2074 "In the interface specified by B<dbopen>(3), using the I<put> interface to "
2075 "create a new record will cause the creation of multiple, empty records if "
2076 "the record number is more than one greater than the largest record currently "
2077 "in the database."
2078 msgstr ""
2079 "B<dbopen>(3)  で指定されたインターフェイスでは、 I<put> インターフェイスを"
2080 "使って新しいレコードを作成するときに、 指定したレコード番号がデータベース中に"
2081 "存在している最大レコード番号より 一つ以上大きいと、 空のレコードが同時にでき"
2082 "てしまう。"
2083
2084 #. type: Plain text
2085 #: build/C/man3/recno.3:218
2086 msgid ""
2087 "The I<recno> access method routines may fail and set I<errno> for any of the "
2088 "errors specified for the library routine B<dbopen>(3)  or the following:"
2089 msgstr ""
2090 "I<recno> アクセスメソッドルーチンは失敗すると B<dbopen>(3)  で指定されている"
2091 "エラーに応じた I<errno> か、 あるいは以下に示す I<errno> をセットする。"
2092
2093 #. type: Plain text
2094 #: build/C/man3/recno.3:222
2095 msgid ""
2096 "An attempt was made to add a record to a fixed-length database that was too "
2097 "large to fit."
2098 msgstr "固定長データベースにレコードを追加するとき、データが長すぎた。"
2099
2100 #. type: Plain text
2101 #: build/C/man3/recno.3:229
2102 msgid "B<btree>(3), B<dbopen>(3), B<hash>(3), B<mpool>(3)"
2103 msgstr "B<btree>(3), B<dbopen>(3), B<hash>(3), B<mpool>(3)"
2104
2105 #. type: Plain text
2106 #: build/C/man3/recno.3:233
2107 msgid ""
2108 "I<Document Processing in a Relational Database System>, Michael Stonebraker, "
2109 "Heidi Stettner, Joseph Kalash, Antonin Guttman, Nadene Lynn, Memorandum No. "
2110 "UCB/ERL M82/32, May 1982."
2111 msgstr ""
2112 "I<Document Processing in a Relational Database System>, Michael Stonebraker, "
2113 "Heidi Stettner, Joseph Kalash, Antonin Guttman, Nadene Lynn, Memorandum No. "
2114 "UCB/ERL M82/32, May 1982."
2115
2116 #~ msgid "1994-08-18"
2117 #~ msgstr "1994-08-18"
2118
2119 #~ msgid "1994-01-02"
2120 #~ msgstr "1994-01-02"
2121
2122 #~ msgid "1993-06-04"
2123 #~ msgstr "1993-06-04"