Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/access.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)access.2 8.2 (Berkeley) 4/1/94 | .\" @(#)access.2 8.2 (Berkeley) 4/1/94 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd February 23, 2021 | .Dd March 30, 2021 | ||||
.Dt ACCESS 2 | .Dt ACCESS 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm access , | .Nm access , | ||||
.Nm eaccess , | .Nm eaccess , | ||||
.Nm faccessat | .Nm faccessat | ||||
.Nd check accessibility of a file | .Nd check accessibility of a file | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
Only walk paths below the directory specified by the | Only walk paths below the directory specified by the | ||||
.Ar fd | .Ar fd | ||||
descriptor. | descriptor. | ||||
See the description of the | See the description of the | ||||
.Dv O_RESOLVE_BENEATH | .Dv O_RESOLVE_BENEATH | ||||
flag in the | flag in the | ||||
.Xr open 2 | .Xr open 2 | ||||
manual page. | manual page. | ||||
.It Dv AT_EMPTY_PATH | |||||
If the | |||||
.Fa path | |||||
argument is an empty string, operate on the file or directory | |||||
referenced by the descriptor | |||||
.Fa fd . | |||||
If | |||||
.Fa fd | |||||
is equal to | |||||
.Dv AT_FDCWD , | |||||
operate on the current working directory. | |||||
.El | .El | ||||
.Pp | .Pp | ||||
Even if a process's real or effective user has appropriate privileges | Even if a process's real or effective user has appropriate privileges | ||||
and indicates success for | and indicates success for | ||||
.Dv X_OK , | .Dv X_OK , | ||||
the file may not actually have execute permission bits set. | the file may not actually have execute permission bits set. | ||||
Likewise for | Likewise for | ||||
.Dv R_OK | .Dv R_OK | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |