Debian Codegraph @

templates/man3/dbopen.3.pot

raw
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 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
21 #: opensuse-tumbleweed
22 #, no-wrap
23 msgid "dbopen"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-05-17"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
41 #: opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
48 #: opensuse-tumbleweed
49 msgid "dbopen - database access methods"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
54 #: opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
61 #: opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
67 #: opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
74 #: opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#include E<lt>sys/types.hE<gt>>\n"
78 "B<#include E<lt>limits.hE<gt>>\n"
79 "B<#include E<lt>db.hE<gt>>\n"
80 "B<#include E<lt>fcntl.hE<gt>>\n"
81 msgstr ""
82
83 #. type: Plain text
84 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<DB *dbopen(const char *>I<path>B<, int >I<flags>B<, int >I<mode>B<, DBTYPE >I<type>B<,>\n"
89 "B< const void *>I<openinfo>B<);>\n"
90 msgstr ""
91
92 #. type: SH
93 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
94 #: opensuse-tumbleweed
95 #, no-wrap
96 msgid "DESCRIPTION"
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
101 #: opensuse-tumbleweed
102 msgid ""
103 "I<Note well>: This page documents interfaces provided up until glibc 2.1. "
104 "Since glibc 2.2, glibc no longer provides these interfaces. Probably, you "
105 "are looking for the APIs provided by the I<libdb> library instead."
106 msgstr ""
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
110 #: opensuse-tumbleweed
111 msgid ""
112 "B<dbopen>() is the library interface to database files. The supported file "
113 "formats are btree, hashed, and UNIX file oriented. The btree format is a "
114 "representation of a sorted, balanced tree structure. The hashed format is "
115 "an extensible, dynamic hashing scheme. The flat-file format is a byte "
116 "stream file with fixed or variable length records. The formats and file-"
117 "format-specific information are described in detail in their respective "
118 "manual pages B<btree>(3), B<hash>(3), and B<recno>(3)."
119 msgstr ""
120
121 #. type: Plain text
122 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
123 #: opensuse-tumbleweed
124 msgid ""
125 "B<dbopen>() opens I<path> for reading and/or writing. Files never intended "
126 "to be preserved on disk may be created by setting the I<path> argument to "
127 "NULL."
128 msgstr ""
129
130 #. Three additional options may be specified by ORing
131 #. them into the
132 #. .I flags
133 #. argument.
134 #. .TP
135 #. DB_LOCK
136 #. Do the necessary locking in the database to support concurrent access.
137 #. If concurrent access isn't needed or the database is read-only this
138 #. flag should not be set, as it tends to have an associated performance
139 #. penalty.
140 #. .TP
141 #. DB_SHMEM
142 #. Place the underlying memory pool used by the database in shared
143 #. memory.
144 #. Necessary for concurrent access.
145 #. .TP
146 #. DB_TXN
147 #. Support transactions in the database.
148 #. The DB_LOCK and DB_SHMEM flags must be set as well.
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
151 #: opensuse-tumbleweed
152 msgid ""
153 "The I<flags> and I<mode> arguments are as specified to the B<open>(2) "
154 "routine, however, only the B<O_CREAT>, B<O_EXCL>, B<O_EXLOCK>, "
155 "B<O_NONBLOCK>, B<O_RDONLY>, B<O_RDWR>, B<O_SHLOCK>, and B<O_TRUNC> flags are "
156 "meaningful. (Note, opening a database file B<O_WRONLY> is not possible.)"
157 msgstr ""
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
161 #: opensuse-tumbleweed
162 msgid ""
163 "The I<type> argument is of type I<DBTYPE> (as defined in the "
164 "I<E<lt>db.hE<gt>> include file) and may be set to B<DB_BTREE>, B<DB_HASH>, "
165 "or B<DB_RECNO>."
166 msgstr ""
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
170 #: opensuse-tumbleweed
171 msgid ""
172 "The I<openinfo> argument is a pointer to an access-method-specific structure "
173 "described in the access method's manual page. If I<openinfo> is NULL, each "
174 "access method will use defaults appropriate for the system and the access "
175 "method."
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
180 #: opensuse-tumbleweed
181 msgid ""
182 "B<dbopen>() returns a pointer to a I<DB> structure on success and NULL on "
183 "error. The I<DB> structure is defined in the I<E<lt>db.hE<gt>> include "
184 "file, and contains at least the following fields:"
185 msgstr ""
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
189 #: opensuse-tumbleweed
190 #, no-wrap
191 msgid ""
192 "typedef struct {\n"
193 " DBTYPE type;\n"
194 " int (*close)(const DB *db);\n"
195 " int (*del)(const DB *db, const DBT *key, unsigned int flags);\n"
196 " int (*fd)(const DB *db);\n"
197 " int (*get)(const DB *db, DBT *key, DBT *data,\n"
198 " unsigned int flags);\n"
199 " int (*put)(const DB *db, DBT *key, const DBT *data,\n"
200 " unsigned int flags);\n"
201 " int (*sync)(const DB *db, unsigned int flags);\n"
202 " int (*seq)(const DB *db, DBT *key, DBT *data,\n"
203 " unsigned int flags);\n"
204 "} DB;\n"
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
209 #: opensuse-tumbleweed
210 msgid ""
211 "These elements describe a database type and a set of functions performing "
212 "various actions. These functions take a pointer to a structure as returned "
213 "by B<dbopen>(), and sometimes one or more pointers to key/data structures "
214 "and a flag value."
215 msgstr ""
216
217 #. type: TP
218 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
219 #: opensuse-tumbleweed
220 #, no-wrap
221 msgid "I<type>"
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
226 #: opensuse-tumbleweed
227 msgid "The type of the underlying access method (and file format)."
228 msgstr ""
229
230 #. type: TP
231 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
232 #: opensuse-tumbleweed
233 #, no-wrap
234 msgid "I<close>"
235 msgstr ""
236
237 #. type: Plain text
238 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
239 #: opensuse-tumbleweed
240 msgid ""
241 "A pointer to a routine to flush any cached information to disk, free any "
242 "allocated resources, and close the underlying file(s). Since key/data pairs "
243 "may be cached in memory, failing to sync the file with a I<close> or I<sync> "
244 "function may result in inconsistent or lost information. I<close> routines "
245 "return -1 on error (setting I<errno>) and 0 on success."
246 msgstr ""
247
248 #. type: TP
249 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
250 #: opensuse-tumbleweed
251 #, no-wrap
252 msgid "I<del>"
253 msgstr ""
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
257 #: opensuse-tumbleweed
258 msgid "A pointer to a routine to remove key/data pairs from the database."
259 msgstr ""
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
263 #: opensuse-tumbleweed
264 msgid "The argument I<flag> may be set to the following value:"
265 msgstr ""
266
267 #. type: TP
268 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
269 #: opensuse-tumbleweed
270 #, no-wrap
271 msgid "B<R_CURSOR>"
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
276 #: opensuse-tumbleweed
277 msgid ""
278 "Delete the record referenced by the cursor. The cursor must have previously "
279 "been initialized."
280 msgstr ""
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
284 #: opensuse-tumbleweed
285 msgid ""
286 "I<delete> routines return -1 on error (setting I<errno>), 0 on success, and "
287 "1 if the specified I<key> was not in the file."
288 msgstr ""
289
290 #. type: TP
291 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
292 #: opensuse-tumbleweed
293 #, no-wrap
294 msgid "I<fd>"
295 msgstr ""
296
297 #. type: Plain text
298 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
299 #: opensuse-tumbleweed
300 msgid ""
301 "A pointer to a routine which returns a file descriptor representative of the "
302 "underlying database. A file descriptor referencing the same file will be "
303 "returned to all processes which call B<dbopen>() with the same I<path> "
304 "name. This file descriptor may be safely used as an argument to the "
305 "B<fcntl>(2) and B<flock>(2) locking functions. The file descriptor is not "
306 "necessarily associated with any of the underlying files used by the access "
307 "method. No file descriptor is available for in memory databases. I<fd> "
308 "routines return -1 on error (setting I<errno>), and the file descriptor on "
309 "success."
310 msgstr ""
311
312 #. type: TP
313 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
314 #: opensuse-tumbleweed
315 #, no-wrap
316 msgid "I<get>"
317 msgstr ""
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
321 #: opensuse-tumbleweed
322 msgid ""
323 "A pointer to a routine which is the interface for keyed retrieval from the "
324 "database. The address and length of the data associated with the specified "
325 "I<key> are returned in the structure referenced by I<data>. I<get> routines "
326 "return -1 on error (setting I<errno>), 0 on success, and 1 if the I<key> was "
327 "not in the file."
328 msgstr ""
329
330 #. type: TP
331 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
332 #: opensuse-tumbleweed
333 #, no-wrap
334 msgid "I<put>"
335 msgstr ""
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
339 #: opensuse-tumbleweed
340 msgid "A pointer to a routine to store key/data pairs in the database."
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
345 #: opensuse-tumbleweed
346 msgid "The argument I<flag> may be set to one of the following values:"
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
351 #: opensuse-tumbleweed
352 msgid ""
353 "Replace the key/data pair referenced by the cursor. The cursor must have "
354 "previously been initialized."
355 msgstr ""
356
357 #. type: TP
358 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
359 #: opensuse-tumbleweed
360 #, no-wrap
361 msgid "B<R_IAFTER>"
362 msgstr ""
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
366 #: opensuse-tumbleweed
367 msgid ""
368 "Append the data immediately after the data referenced by I<key>, creating a "
369 "new key/data pair. The record number of the appended key/data pair is "
370 "returned in the I<key> structure. (Applicable only to the B<DB_RECNO> "
371 "access method.)"
372 msgstr ""
373
374 #. type: TP
375 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
376 #: opensuse-tumbleweed
377 #, no-wrap
378 msgid "B<R_IBEFORE>"
379 msgstr ""
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
383 #: opensuse-tumbleweed
384 msgid ""
385 "Insert the data immediately before the data referenced by I<key>, creating a "
386 "new key/data pair. The record number of the inserted key/data pair is "
387 "returned in the I<key> structure. (Applicable only to the B<DB_RECNO> "
388 "access method.)"
389 msgstr ""
390
391 #. type: TP
392 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
393 #: opensuse-tumbleweed
394 #, no-wrap
395 msgid "B<R_NOOVERWRITE>"
396 msgstr ""
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
400 #: opensuse-tumbleweed
401 msgid "Enter the new key/data pair only if the key does not previously exist."
402 msgstr ""
403
404 #. type: TP
405 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
406 #: opensuse-tumbleweed
407 #, no-wrap
408 msgid "B<R_SETCURSOR>"
409 msgstr ""
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
413 #: opensuse-tumbleweed
414 msgid ""
415 "Store the key/data pair, setting or initializing the position of the cursor "
416 "to reference it. (Applicable only to the B<DB_BTREE> and B<DB_RECNO> access "
417 "methods.)"
418 msgstr ""
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
422 #: opensuse-tumbleweed
423 msgid ""
424 "B<R_SETCURSOR> is available only for the B<DB_BTREE> and B<DB_RECNO> access "
425 "methods because it implies that the keys have an inherent order which does "
426 "not change."
427 msgstr ""
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
431 #: opensuse-tumbleweed
432 msgid ""
433 "B<R_IAFTER> and B<R_IBEFORE> are available only for the B<DB_RECNO> access "
434 "method because they each imply that the access method is able to create new "
435 "keys. This is true only if the keys are ordered and independent, record "
436 "numbers for example."
437 msgstr ""
438
439 #. type: Plain text
440 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
441 #: opensuse-tumbleweed
442 msgid ""
443 "The default behavior of the I<put> routines is to enter the new key/data "
444 "pair, replacing any previously existing key."
445 msgstr ""
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
449 #: opensuse-tumbleweed
450 msgid ""
451 "I<put> routines return -1 on error (setting I<errno>), 0 on success, and 1 "
452 "if the B<R_NOOVERWRITE> I<flag> was set and the key already exists in the "
453 "file."
454 msgstr ""
455
456 #. type: TP
457 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
458 #: opensuse-tumbleweed
459 #, no-wrap
460 msgid "I<seq>"
461 msgstr ""
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
465 #: opensuse-tumbleweed
466 msgid ""
467 "A pointer to a routine which is the interface for sequential retrieval from "
468 "the database. The address and length of the key are returned in the "
469 "structure referenced by I<key>, and the address and length of the data are "
470 "returned in the structure referenced by I<data>."
471 msgstr ""
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
475 #: opensuse-tumbleweed
476 msgid ""
477 "Sequential key/data pair retrieval may begin at any time, and the position "
478 "of the \"cursor\" is not affected by calls to the I<del>, I<get>, I<put>, or "
479 "I<sync> routines. Modifications to the database during a sequential scan "
480 "will be reflected in the scan, that is, records inserted behind the cursor "
481 "will not be returned while records inserted in front of the cursor will be "
482 "returned."
483 msgstr ""
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
487 #: opensuse-tumbleweed
488 msgid "The flag value B<must> be set to one of the following values:"
489 msgstr ""
490
491 #. type: Plain text
492 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
493 #: opensuse-tumbleweed
494 msgid ""
495 "The data associated with the specified key is returned. This differs from "
496 "the I<get> routines in that it sets or initializes the cursor to the "
497 "location of the key as well. (Note, for the B<DB_BTREE> access method, the "
498 "returned key is not necessarily an exact match for the specified key. The "
499 "returned key is the smallest key greater than or equal to the specified key, "
500 "permitting partial key matches and range searches.)"
501 msgstr ""
502
503 #. type: TP
504 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
505 #: opensuse-tumbleweed
506 #, no-wrap
507 msgid "B<R_FIRST>"
508 msgstr ""
509
510 #. type: Plain text
511 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
512 #: opensuse-tumbleweed
513 msgid ""
514 "The first key/data pair of the database is returned, and the cursor is set "
515 "or initialized to reference it."
516 msgstr ""
517
518 #. type: TP
519 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
520 #: opensuse-tumbleweed
521 #, no-wrap
522 msgid "B<R_LAST>"
523 msgstr ""
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
527 #: opensuse-tumbleweed
528 msgid ""
529 "The last key/data pair of the database is returned, and the cursor is set or "
530 "initialized to reference it. (Applicable only to the B<DB_BTREE> and "
531 "B<DB_RECNO> access methods.)"
532 msgstr ""
533
534 #. type: TP
535 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
536 #: opensuse-tumbleweed
537 #, no-wrap
538 msgid "B<R_NEXT>"
539 msgstr ""
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
543 #: opensuse-tumbleweed
544 msgid ""
545 "Retrieve the key/data pair immediately after the cursor. If the cursor is "
546 "not yet set, this is the same as the B<R_FIRST> flag."
547 msgstr ""
548
549 #. type: TP
550 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
551 #: opensuse-tumbleweed
552 #, no-wrap
553 msgid "B<R_PREV>"
554 msgstr ""
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
558 #: opensuse-tumbleweed
559 msgid ""
560 "Retrieve the key/data pair immediately before the cursor. If the cursor is "
561 "not yet set, this is the same as the B<R_LAST> flag. (Applicable only to "
562 "the B<DB_BTREE> and B<DB_RECNO> access methods.)"
563 msgstr ""
564
565 #. type: Plain text
566 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
567 #: opensuse-tumbleweed
568 msgid ""
569 "B<R_LAST> and B<R_PREV> are available only for the B<DB_BTREE> and "
570 "B<DB_RECNO> access methods because they each imply that the keys have an "
571 "inherent order which does not change."
572 msgstr ""
573
574 #. type: Plain text
575 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
576 #: opensuse-tumbleweed
577 msgid ""
578 "I<seq> routines return -1 on error (setting I<errno>), 0 on success and 1 if "
579 "there are no key/data pairs less than or greater than the specified or "
580 "current key. If the B<DB_RECNO> access method is being used, and if the "
581 "database file is a character special file and no complete key/data pairs are "
582 "currently available, the I<seq> routines return 2."
583 msgstr ""
584
585 #. type: TP
586 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
587 #: opensuse-tumbleweed
588 #, no-wrap
589 msgid "I<sync>"
590 msgstr ""
591
592 #. type: Plain text
593 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
594 #: opensuse-tumbleweed
595 msgid ""
596 "A pointer to a routine to flush any cached information to disk. If the "
597 "database is in memory only, the I<sync> routine has no effect and will "
598 "always succeed."
599 msgstr ""
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
603 #: opensuse-tumbleweed
604 msgid "The flag value may be set to the following value:"
605 msgstr ""
606
607 #. type: TP
608 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
609 #: opensuse-tumbleweed
610 #, no-wrap
611 msgid "B<R_RECNOSYNC>"
612 msgstr ""
613
614 #. type: Plain text
615 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
616 #: opensuse-tumbleweed
617 msgid ""
618 "If the B<DB_RECNO> access method is being used, this flag causes the sync "
619 "routine to apply to the btree file which underlies the recno file, not the "
620 "recno file itself. (See the I<bfname> field of the B<recno>(3) manual page "
621 "for more information.)"
622 msgstr ""
623
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
626 #: opensuse-tumbleweed
627 msgid ""
628 "I<sync> routines return -1 on error (setting I<errno>) and 0 on success."
629 msgstr ""
630
631 #. type: SS
632 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
633 #: opensuse-tumbleweed
634 #, no-wrap
635 msgid "Key/data pairs"
636 msgstr ""
637
638 #. type: Plain text
639 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
640 #: opensuse-tumbleweed
641 msgid ""
642 "Access to all file types is based on key/data pairs. Both keys and data are "
643 "represented by the following data structure:"
644 msgstr ""
645
646 #. type: Plain text
647 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
648 #: opensuse-tumbleweed
649 #, no-wrap
650 msgid ""
651 "typedef struct {\n"
652 " void *data;\n"
653 " size_t size;\n"
654 "} DBT;\n"
655 msgstr ""
656
657 #. type: Plain text
658 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
659 #: opensuse-tumbleweed
660 msgid "The elements of the I<DBT> structure are defined as follows:"
661 msgstr ""
662
663 #. type: TP
664 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
665 #: opensuse-tumbleweed
666 #, no-wrap
667 msgid "I<data>"
668 msgstr ""
669
670 #. type: Plain text
671 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
672 #: opensuse-tumbleweed
673 msgid "A pointer to a byte string."
674 msgstr ""
675
676 #. type: TP
677 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
678 #: opensuse-tumbleweed
679 #, no-wrap
680 msgid "I<size>"
681 msgstr ""
682
683 #. type: Plain text
684 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
685 #: opensuse-tumbleweed
686 msgid "The length of the byte string."
687 msgstr ""
688
689 #. type: Plain text
690 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
691 #: opensuse-tumbleweed
692 msgid ""
693 "Key and data byte strings may reference strings of essentially unlimited "
694 "length although any two of them must fit into available memory at the same "
695 "time. It should be noted that the access methods provide no guarantees "
696 "about byte string alignment."
697 msgstr ""
698
699 #. type: SH
700 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
701 #: opensuse-tumbleweed
702 #, no-wrap
703 msgid "ERRORS"
704 msgstr ""
705
706 #. type: Plain text
707 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
708 #: opensuse-tumbleweed
709 msgid ""
710 "The B<dbopen>() routine may fail and set I<errno> for any of the errors "
711 "specified for the library routines B<open>(2) and B<malloc>(3) or the "
712 "following:"
713 msgstr ""
714
715 #. type: TP
716 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
717 #: opensuse-tumbleweed
718 #, no-wrap
719 msgid "B<EFTYPE>"
720 msgstr ""
721
722 #. type: Plain text
723 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
724 #: opensuse-tumbleweed
725 msgid "A file is incorrectly formatted."
726 msgstr ""
727
728 #. type: TP
729 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
730 #: opensuse-tumbleweed
731 #, no-wrap
732 msgid "B<EINVAL>"
733 msgstr ""
734
735 #. type: Plain text
736 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
737 #: opensuse-tumbleweed
738 msgid ""
739 "A parameter has been specified (hash function, pad byte, etc.) that is "
740 "incompatible with the current file specification or which is not meaningful "
741 "for the function (for example, use of the cursor without prior "
742 "initialization) or there is a mismatch between the version number of file "
743 "and the software."
744 msgstr ""
745
746 #. type: Plain text
747 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
748 #: opensuse-tumbleweed
749 msgid ""
750 "The I<close> routines may fail and set I<errno> for any of the errors "
751 "specified for the library routines B<close>(2), B<read>(2), B<write>(2), "
752 "B<free>(3), or B<fsync>(2)."
753 msgstr ""
754
755 #. type: Plain text
756 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
757 #: opensuse-tumbleweed
758 msgid ""
759 "The I<del>, I<get>, I<put>, and I<seq> routines may fail and set I<errno> "
760 "for any of the errors specified for the library routines B<read>(2), "
761 "B<write>(2), B<free>(3), or B<malloc>(3)."
762 msgstr ""
763
764 #. type: Plain text
765 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
766 #: opensuse-tumbleweed
767 msgid ""
768 "The I<fd> routines will fail and set I<errno> to B<ENOENT> for in memory "
769 "databases."
770 msgstr ""
771
772 #. type: Plain text
773 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
774 #: opensuse-tumbleweed
775 msgid ""
776 "The I<sync> routines may fail and set I<errno> for any of the errors "
777 "specified for the library routine B<fsync>(2)."
778 msgstr ""
779
780 #. type: SH
781 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
782 #: opensuse-tumbleweed
783 #, no-wrap
784 msgid "BUGS"
785 msgstr ""
786
787 #. type: Plain text
788 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
789 #: opensuse-tumbleweed
790 msgid ""
791 "The typedef I<DBT> is a mnemonic for \"data base thang\", and was used "
792 "because no one could think of a reasonable name that wasn't already used."
793 msgstr ""
794
795 #. type: Plain text
796 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
797 #: opensuse-tumbleweed
798 msgid ""
799 "The file descriptor interface is a kludge and will be deleted in a future "
800 "version of the interface."
801 msgstr ""
802
803 #. type: Plain text
804 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
805 #: opensuse-tumbleweed
806 msgid ""
807 "None of the access methods provide any form of concurrent access, locking, "
808 "or transactions."
809 msgstr ""
810
811 #. type: SH
812 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
813 #: opensuse-tumbleweed
814 #, no-wrap
815 msgid "SEE ALSO"
816 msgstr ""
817
818 #. type: Plain text
819 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
820 #: opensuse-tumbleweed
821 msgid "B<btree>(3), B<hash>(3), B<mpool>(3), B<recno>(3)"
822 msgstr ""
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
826 #: opensuse-tumbleweed
827 msgid ""
828 "I<LIBTP: Portable, Modular Transactions for UNIX>, Margo Seltzer, Michael "
829 "Olson, USENIX proceedings, Winter 1992."
830 msgstr ""
831
832 #. type: TH
833 #: debian-trixie
834 #, no-wrap
835 msgid "2024-05-02"
836 msgstr ""
837
838 #. type: TH
839 #: debian-trixie
840 #, no-wrap
841 msgid "Linux man-pages 6.9.1"
842 msgstr ""
843
844 #. type: Plain text
845 #: debian-trixie
846 msgid "Standard C library (I<libc>, I<-lc>)"
847 msgstr ""
848
849 #. type: Plain text
850 #: debian-trixie
851 #, no-wrap
852 msgid ""
853 "B<DB *dbopen(const char *>I<file>B<, int >I<flags>B<, int >I<mode>B<, DBTYPE >I<type>B<,>\n"
854 "B< const void *>I<openinfo>B<);>\n"
855 msgstr ""
856
857 #. type: Plain text
858 #: debian-trixie
859 msgid ""
860 "B<dbopen>() opens I<file> for reading and/or writing. Files never intended "
861 "to be preserved on disk may be created by setting the I<file> argument to "
862 "NULL."
863 msgstr ""
864
865 #. type: Plain text
866 #: debian-trixie
867 msgid ""
868 "A pointer to a routine which returns a file descriptor representative of the "
869 "underlying database. A file descriptor referencing the same file will be "
870 "returned to all processes which call B<dbopen>() with the same I<file> "
871 "name. This file descriptor may be safely used as an argument to the "
872 "B<fcntl>(2) and B<flock>(2) locking functions. The file descriptor is not "
873 "necessarily associated with any of the underlying files used by the access "
874 "method. No file descriptor is available for in memory databases. I<fd> "
875 "routines return -1 on error (setting I<errno>), and the file descriptor on "
876 "success."
877 msgstr ""
878
879 #. type: TH
880 #: mageia-cauldron
881 #, no-wrap
882 msgid "Linux man-pages 6.17"
883 msgstr ""
884
885 #. type: TH
886 #: opensuse-leap-16-1 opensuse-tumbleweed
887 #, no-wrap
888 msgid "Linux man-pages (unreleased)"
889 msgstr ""