mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-10 20:52:11 +01:00
98 lines
2.8 KiB
HTML
98 lines
2.8 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|||
|
<html lang="ja">
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
|
|||
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|||
|
<link rel="up" title="FatFs" href="../00index_j.html">
|
|||
|
<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
|
|||
|
<title>FatFs - f_chmod</title>
|
|||
|
</head>
|
|||
|
|
|||
|
<body>
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h2>f_chmod</h2>
|
|||
|
<p><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>̑<EFBFBD><CC91><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ύX<CF8D><58><EFBFBD>܂<EFBFBD><DC82>B</p>
|
|||
|
<pre>
|
|||
|
FRESULT f_chmod (
|
|||
|
const XCHAR* <em>FileName</em>, /* <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>ւ̃|<7C>C<EFBFBD><43><EFBFBD>^ */
|
|||
|
BYTE <em>Attribute</em>, /* <20>ݒ<EFBFBD><DD92>l */
|
|||
|
BYTE <em>AttributeMask</em> /* <20>ύX<CF8D>}<7D>X<EFBFBD>N */
|
|||
|
);
|
|||
|
</pre>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|||
|
<dl class="par">
|
|||
|
<dt>FileName</dt>
|
|||
|
<dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ύX<EFBFBD>Ώۂ̃t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><a href="filename.html"><EFBFBD>p<EFBFBD>X<EFBFBD><EFBFBD></a><EFBFBD>̓<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><tt>'\0'</tt><EFBFBD>ŏI<EFBFBD><EFBFBD><EFBFBD>镶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><EFBFBD>B</dd>
|
|||
|
<dt>Attribute</dt>
|
|||
|
<dd><EFBFBD>ݒ肷<EFBFBD>鑮<EFBFBD><EFBFBD><EFBFBD>B<EFBFBD>w<EFBFBD><EFBFBD><EFBFBD>\<5C>ȑ<EFBFBD><C891><EFBFBD><EFBFBD>͎<EFBFBD><CD8E>̒ʂ<CC92><CA82>ŁA<C581><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̑g<CC91>ݍ<EFBFBD><DD8D>킹<EFBFBD>Ŏw<C58E>肵<EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>w<EFBFBD>肳<EFBFBD><E882B3><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͉<EFBFBD><CD89><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<br>
|
|||
|
<table class="lst">
|
|||
|
<tr><th><EFBFBD>l</th><th><EFBFBD>Ӗ<EFBFBD></th></tr>
|
|||
|
<tr><td>AM_RDO</td><td><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD>E<EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>[</td></tr>
|
|||
|
<tr><td>AM_ARC</td><td><EFBFBD>A<EFBFBD>[<5B>J<EFBFBD>C<EFBFBD>u</td></tr>
|
|||
|
<tr><td>AM_SYS</td><td><EFBFBD>V<EFBFBD>X<EFBFBD>e<EFBFBD><EFBFBD></td></tr>
|
|||
|
<tr><td>AM_HID</td><td><EFBFBD>q<EFBFBD>h<EFBFBD>D<EFBFBD><EFBFBD></td></tr>
|
|||
|
</table>
|
|||
|
</dd>
|
|||
|
<dt>AttributeMask</dt>
|
|||
|
<dd><EFBFBD>ύX<EFBFBD><EFBFBD><EFBFBD>鑮<EFBFBD><EFBFBD><EFBFBD>̃}<7D>X<EFBFBD>N<EFBFBD>B<EFBFBD>w<EFBFBD>肵<EFBFBD><E882B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݒ<EFBFBD><DD92>܂<EFBFBD><DC82>͉<EFBFBD><CD89><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>w<EFBFBD>肳<EFBFBD><E882B3><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͏<EFBFBD><CD8F>Ԃ<EFBFBD><D482>ێ<EFBFBD><DB8E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<tt>Attribute</tt><EFBFBD>Ɠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B</dd>
|
|||
|
</dl>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD>߂<EFBFBD><EFBFBD>l</h4>
|
|||
|
<dl class="ret">
|
|||
|
<dt>FR_OK (0)</dt>
|
|||
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EFBFBD><C882>B</dd>
|
|||
|
</dl>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|||
|
<p><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>̑<EFBFBD><CC91><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ύX<CF8D><58><EFBFBD>܂<EFBFBD><DC82>B</p>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD>Ή<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|||
|
<p><tt>_FS_READONLY == 0</tt><EFBFBD>ŁA<EFBFBD><EFBFBD><EFBFBD><EFBFBD><tt>_FS_MINIMIZE == 0</tt><EFBFBD>̂Ƃ<EFBFBD><EFBFBD>g<EFBFBD>p<EFBFBD>\<5C>ł<EFBFBD><C582>B</p>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD>g<EFBFBD>p<EFBFBD><EFBFBD></h4>
|
|||
|
<pre>
|
|||
|
// Set read-only flag , clear archive flag and others are left unchanged.
|
|||
|
f_chmod("file.txt", AM_RDO, AM_RDO | AM_ARC);
|
|||
|
</pre>
|
|||
|
</div>
|
|||
|
|
|||
|
<p class="foot"><a href="../00index_j.html"><EFBFBD>߂<EFBFBD></a></p>
|
|||
|
</body>
|
|||
|
</html>
|