pr_access.rst (764B)
1 PR_Access 2 ========= 3 4 Determines the accessibility of a file. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <prio.h> 13 14 PRStatus PR_Access( 15 const char *name, 16 PRAccessHow how); 17 18 19 Parameters 20 ~~~~~~~~~~ 21 22 The function has the following parameters: 23 24 ``name`` 25 The pathname of the file whose accessibility is to be determined. 26 ``how`` 27 Specifies which access permission to check for. Use one of the 28 following values: 29 30 - :ref:`PR_ACCESS_READ_OK`. Test for read permission. 31 - :ref:`PR_ACCESS_WRITE_OK`. Test for write permission. 32 - :ref:`PR_ACCESS_EXISTS`. Check existence of file. 33 34 35 Returns 36 ~~~~~~~ 37 38 One of the following values: 39 40 - If the requested access is permitted, ``PR_SUCCESS``. 41 - If the requested access is not permitted, ``PR_FAILURE``.