summaryrefslogtreecommitdiff
path: root/static/v10/man2/access.2
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/v10/man2/access.2
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/v10/man2/access.2')
-rw-r--r--static/v10/man2/access.263
1 files changed, 0 insertions, 63 deletions
diff --git a/static/v10/man2/access.2 b/static/v10/man2/access.2
deleted file mode 100644
index f8f758da..00000000
--- a/static/v10/man2/access.2
+++ /dev/null
@@ -1,63 +0,0 @@
-.TH ACCESS 2
-.CT 2 dirs file_inq_creat secur
-.SH NAME
-access \(mi determine accessibility of file
-.SH SYNOPSIS
-.nf
-.B int access(name, mode)
-.B char *name;
-.fi
-.SH DESCRIPTION
-.I Access
-checks the given
-file
-.I name
-for accessibility.
-If \fImode\fL&4\fR
-is nonzero, read access is checked.
-If \fImode\fL&2\fR
-is nonzero, write access is checked.
-If \fImode\fL&1\fR
-is nonzero, execute access is checked.
-If \fImode\fL==\fR0,
-the file merely need exist.
-In any case
-all directories leading to the file
-must permit searches.
-0 is returned if the access is permitted,,
-\-1 if not.
-.PP
-Permission is checked
-against the real userid and groupid of the process;
-this call is most useful in set-userid and set-groupid programs.
-.PP
-Only access bits are checked.
-A directory may be announced as writable by
-.IR access ,
-but an attempt to open it for writing will fail
-(although files may be created there);
-a file may look executable, but
-.IR exec (2)
-will fail unless it is in proper format.
-.PP
-If the userid of the process is the owner of the file
-access is determined by the three owner bits (0700).
-Otherwise, if the groupid of the process is the group
-of the file access is determined by the three group bits (0070).
-Otherwise access is determined by the three other bits (0007).
-.SH SEE ALSO
-.IR stat (2)
-.SH DIAGNOSTICS
-.BR EACCES ,
-.BR ELAB ,
-.BR EFAULT ,
-.BR EIO ,
-.BR ELOOP ,
-.BR ENOENT ,
-.BR ENOTDIR ,
-.BR EROFS ,
-.BR ETXTBSY
-.SH BUGS
-On symbolic links permissions are irrelevant and
-.IR access
-returns nonsense.