reference/posix/functions/posix-access.xml
8d417bd83842efbde90dbb51c31f99f474437ce4
...
...
@@ -11,8 +11,8 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>bool</type><methodname>posix_access</methodname>
14
-
<methodparam><type>string</type><parameter>file</parameter></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>POSIX_F_OK</initializer></methodparam>
14
+
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
15
+
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
<function>posix_access</function> checks the user's permission of a file.
...
...
@@ -24,7 +24,7 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>file</parameter></term>
27
+
<term><parameter>filename</parameter></term>
28
28
<listitem>
29
29
<para>
30
30
The name of the file to be tested.
...
...
@@ -32,7 +32,7 @@
32
32
</listitem>
33
33
</varlistentry>
34
34
<varlistentry>
35
-
<term><parameter>mode</parameter></term>
35
+
<term><parameter>flags</parameter></term>
36
36
<listitem>
37
37
<para>
38
38
A mask consisting of one or more of <constant>POSIX_F_OK</constant>,
...
...
@@ -90,11 +90,6 @@ if (posix_access($file, POSIX_R_OK | POSIX_W_OK)) {
90
90
</para>
91
91
</refsect1>
92
92

93
-
<refsect1 role="notes">
94
-
&reftitle.notes;
95
-
&note.sm.uidcheck;
96
-
</refsect1>
97
-

98
93
<refsect1 role="seealso">
99
94
&reftitle.seealso;
100
95
<para>
...
...
@@ -106,7 +101,6 @@ if (posix_access($file, POSIX_R_OK | POSIX_W_OK)) {
106
101
</refsect1>
107
102

108
103
</refentry>
109
-

110
104
<!-- Keep this comment at the end of the file
111
105
Local variables:
112
106
mode: sgml
113
107