02.07.2013 Views

A/UX® Programmer's Reference

A/UX® Programmer's Reference

A/UX® Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

access(2)<br />

[ENOENT]<br />

[ENOENT]<br />

[EACCES]<br />

[EROFS]<br />

[ETXTBSY]<br />

[EACCESS]<br />

[EFAULT]<br />

[EINVAL]<br />

access(2)<br />

Read, write, or execute (search) permission<br />

is requested for a null pathname.<br />

The named file does not exist.<br />

Search permission is denied on a component<br />

of the path prefix.<br />

Write access is requested for a file on a<br />

read-only file system.<br />

Write access is requested for a pure procedure<br />

(shared text) file that is being executed.<br />

Note: If you are running network<br />

file system (NFS) and you are accessing<br />

a shared binary remotely,<br />

it is possible that you will not get<br />

this errno.<br />

Permission bits of the file mode do not<br />

permit the requested access.<br />

The path points outside the allocated address<br />

space for the process.<br />

Value of amode is invalid.<br />

The owner of a file has permission checked with respect to the<br />

"owner" read, write, and execute mode bits. Members of the<br />

file's group, other than the owner, have permissions checked with<br />

respect to the "group" mode bits, and all others have permissions<br />

checked with respect to the "other" mode bits.<br />

The superuser is always granted execute permission even though<br />

execute permission is meaningful only for directories and regular<br />

files and even though exec requires that at least one execute<br />

mode bit is set for the regular file to be executable.<br />

Notice that only access bits are checked. A directory may be announced<br />

as writable by access, but an attempt to open it for<br />

writing will fail because writing into the directory structure itself<br />

is not allowed, even though files may be created there. A file may<br />

look executable, but exec will fail unless it is in the proper format.<br />

February, 1990 2<br />

Revision C

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!