Debian Codegraph @

docs/installation/build_win_notes.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Windows notes</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
10 <link rel="up" href="build_win.html" title="Chapter 5.  Building Berkeley DB for Windows" />
11 <link rel="prev" href="build_win_test.html" title="Running the test suite under Windows" />
12 <link rel="next" href="build_win_faq.html" title="Windows FAQ" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Windows notes</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="build_win_test.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 5. 
26 Building Berkeley DB for Windows
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="build_win_faq.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="build_win_notes"></a>Windows notes</h2>
38 </div>
39 </div>
40 </div>
41 <div class="orderedlist">
42 <p>If a system memory environment is closed by all processes, subsequent
43 attempts to open it will return an error. To successfully open a
44 transactional environment in this state, recovery must be run by the
45 next process to open the environment. For non-transactional
46 environments, applications should remove the existing environment and
47 then create a new database environment.</p>
48 <ol type="1">
49 <li>Berkeley DB does not support the Windows/95, Windows/98 or
50 Windows/ME platforms.</li>
51 <li>On Windows, system paging file memory is freed on last close. For this
52 reason, multiple processes sharing a database environment created using
53 the <a href="../api_reference/C/envopen.html#envopen_DB_SYSTEM_MEM" class="olink">DB_SYSTEM_MEM</a> flag must arrange for at least one process to
54 always have the environment open, or alternatively that any process
55 joining the environment be prepared to re-create it.</li>
56 <li>When using the <a href="../api_reference/C/envopen.html#envopen_DB_SYSTEM_MEM" class="olink">DB_SYSTEM_MEM</a> flag, Berkeley DB shared regions are
57 created without ACLs, which means that the regions are only accessible
58 to a single user. If wider sharing is appropriate (for example, both
59 user applications and Windows/NT service applications need to access
60 the Berkeley DB regions), the Berkeley DB code will need to be modified to create
61 the shared regions with the correct ACLs. Alternatively, by not
62 specifying the <a href="../api_reference/C/envopen.html#envopen_DB_SYSTEM_MEM" class="olink">DB_SYSTEM_MEM</a> flag, filesystem-backed regions
63 will be created instead, and the permissions on those files may be
64 directly specified through the <a href="../api_reference/C/envopen.html" class="olink">DB_ENV-&gt;open()</a> method.</li>
65 <li>Applications that operate on wide character strings can use the
66 Windows function WideCharToMultiByte with the code page CP_UTF8 to
67 convert paths to the form expected by Berkeley DB. Internally, Berkeley DB calls
68 MultiByteToWideChar on paths before calling Windows functions.</li>
69 <li>Various Berkeley DB methods take a <span class="bold"><strong>mode</strong></span> argument, which is intended
70 to specify the underlying file permissions for created files. Berkeley DB
71 currently ignores this argument on Windows systems.
72 <p>It would be possible to construct a set of security attributes to pass to
73 <span class="bold"><strong>CreateFile</strong></span> that accurately represents the mode. In the worst
74 case, this would involve looking up user and all group names, and creating
75 an entry for each. Alternatively, we could call the <span class="bold"><strong>_chmod</strong></span>
76 (partial emulation) function after file creation, although this leaves us
77 with an obvious race.</p><p>Practically speaking, however, these efforts would be largely meaningless
78 on a FAT file system, which only has a "readable" and "writable" flag,
79 applying to all users.</p></li>
80 </ol>
81 </div>
82 </div>
83 <div class="navfooter">
84 <hr />
85 <table width="100%" summary="Navigation footer">
86 <tr>
87 <td width="40%" align="left"><a accesskey="p" href="build_win_test.html">Prev</a> </td>
88 <td width="20%" align="center">
89 <a accesskey="u" href="build_win.html">Up</a>
90 </td>
91 <td width="40%" align="right"> <a accesskey="n" href="build_win_faq.html">Next</a></td>
92 </tr>
93 <tr>
94 <td width="40%" align="left" valign="top">Running the test suite under Windows </td>
95 <td width="20%" align="center">
96 <a accesskey="h" href="index.html">Home</a>
97 </td>
98 <td width="40%" align="right" valign="top"> Windows FAQ</td>
99 </tr>
100 </table>
101 </div>
102 </body>
103 </html>