| Main index | Section 9 | 日本語 | Options |
#include <sys/param.h>
#include <sys/vnode.h>
Its arguments are:
| vp | |
| The vnode of the file to check. | |
| accmode | |
| The type of access required. | |
| cred | |
| The user credentials to check. | |
| td | |
| The thread which is checking. | |
The accmode is a mask which can contain flags described in <sys/vnode.h>, e.g. VREAD, VWRITE or VEXEC. For VOP_ACCESS(), the only flags that may be set in accmode are VEXEC, VWRITE, VREAD, VADMIN and VAPPEND. To check for other flags, one has to use VOP_ACCESSX() instead.
| [EPERM] | |
| An attempt was made to change an immutable file. | |
| [EACCES] | |
| The permission bits the file mode or the ACL do not permit the requested access. | |
| VOP_ACCESS (9) | September 18, 2009 |
| Main index | Section 9 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | This philosophy, in the hands of amateurs, leads to inexplicably mind-numbing botches like the existence of two programs, “head” and “tail,” which print the first part or the last part of a file, depending. Even though their operations are duals of one another, “head” and “tail” are different programs, written by different authors, and take different options! | ” |
| — The Unix Haters' handbook | ||