Unix Man ( )


ACCESS(3)


ACCESS(3)
XENIX System V (21 1987)


access - opeee oooc ocya ay

int access (path, amode) char *path; int amode;


path yaae aa. access poepe oooc ocya ay cooec c o aoo, aa amode, coy pea ooaec ID poecca eco eoo ooaecoo ID pea pyoo ID poecca eco eoo pyooo ID. o ao amode cpoc ye coe ceyx ae:

04 02 01 00
poepa oooc e.
poepa oooc ac.
poepa oooc oe (oca).
poepa cyecoa aa.

co ocy ay apee, ec oec xo oo ceyx yco:

[ENOTDIR] [ENOENT] [ENOENT] [EACCES] [EROFS] [ETXTBSY] [EACCES] [EFAULT]
Kooe peca e aa e ec aaoo.
ee, ac oee (oc) apoe ycoo e.
aa a e cyecye.
He papee a oc ao-o aaoe peca e aa.
poepa oooc ac aa aoo cce, peaaeo oo e.
poepa oooc ac a, oop ec co poeypo (c paee ceeo cpy) a oe oec.
papee ocya oe a aa apea co ocy.
Apec, aa path xo a pee apecoo pocpaca poecca.

Ec poecc ec aee aa, access poepe pa aea oe a aa. eo py poepc pa py oe a. ocax poepc pa pox poecco oe a aa.

Bopaaeoe aee


Ec apoe ocy papee, opaaec aee 0. ae opaaec aee -1 errno aocc o o.

.


chmod(3), stat(3)


pepoa ooae (apep c ee root) oe e o ocy ay eaco o oa a aa.