| 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>set_lg_filemode</title> |
| 7 | <link rel="stylesheet" href="apiReference.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 C API Reference" /> |
| 10 | <link rel="up" href="configuration_reference.html" title="Appendix D. DB_CONFIG Parameter Reference" /> |
| 11 | <link rel="prev" href="set_lg_dir_parameter.html" title="set_lg_dir" /> |
| 12 | <link rel="next" href="set_lg_max_parameter.html" title="set_lg_max" /> |
| 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">set_lg_filemode</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="set_lg_dir_parameter.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Appendix D. DB_CONFIG Parameter Reference</th> |
| 26 | <td width="20%" align="right"> <a accesskey="n" href="set_lg_max_parameter.html">Next</a></td> |
| 27 | </tr> |
| 28 | </table> |
| 29 | <hr /> |
| 30 | </div> |
| 31 | <div class="sect1" lang="en" xml:lang="en"> |
| 32 | <div class="titlepage"> |
| 33 | <div> |
| 34 | <div> |
| 35 | <h2 class="title" style="clear: both"><a id="set_lg_filemode_parameter"></a>set_lg_filemode</h2> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <p> |
| 40 | Sets the absolute file mode for created log files. This method is only useful for the rare |
| 41 | Berkeley DB application that does not control its umask value. |
| 42 | </p> |
| 43 | <p> |
| 44 | Normally, if Berkeley DB applications set their umask appropriately, all processes in the |
| 45 | application suite will have read permission on the log files created by any process in the |
| 46 | application suite. However, if the Berkeley DB application is a library, a process using the |
| 47 | library might set its umask to a value preventing other processes in the application suite from |
| 48 | reading the log files it creates. In this rare case, use the set_lg_filemode parameter |
| 49 | to set the mode of created log files to an absolute value. |
| 50 | </p> |
| 51 | <p> |
| 52 | The syntax of this parameter in the <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file is a |
| 53 | single line with the string |
| 54 | <code class="literal">set_lg_filemode</code>, one or more whitespace |
| 55 | characters, and the absolute mode of created log files. |
| 56 | </p> |
| 57 | <p>For more information, see <a class="xref" href="envset_lg_filemode.html" title="DB_ENV->set_lg_filemode()">DB_ENV->set_lg_filemode()</a>. </p> |
| 58 | </div> |
| 59 | <div class="navfooter"> |
| 60 | <hr /> |
| 61 | <table width="100%" summary="Navigation footer"> |
| 62 | <tr> |
| 63 | <td width="40%" align="left"><a accesskey="p" href="set_lg_dir_parameter.html">Prev</a> </td> |
| 64 | <td width="20%" align="center"> |
| 65 | <a accesskey="u" href="configuration_reference.html">Up</a> |
| 66 | </td> |
| 67 | <td width="40%" align="right"> <a accesskey="n" href="set_lg_max_parameter.html">Next</a></td> |
| 68 | </tr> |
| 69 | <tr> |
| 70 | <td width="40%" align="left" valign="top">set_lg_dir </td> |
| 71 | <td width="20%" align="center"> |
| 72 | <a accesskey="h" href="index.html">Home</a> |
| 73 | </td> |
| 74 | <td width="40%" align="right" valign="top"> set_lg_max</td> |
| 75 | </tr> |
| 76 | </table> |
| 77 | </div> |
| 78 | </body> |
| 79 | </html> |