Man pages



              

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 poepa oooc e. 02 poepa oooc ac. 01 poepa oooc oe (oca). 00 poepa cyecoa aa.

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

[ENOTDIR] Kooe peca e aa e ec aaoo. [ENOENT] ee, ac oee (oc) apoe ycoo e. [ENOENT] aa a e cyecye. [EACCES] He papee a oc ao-o aaoe peca e aa. [EROFS] poepa oooc ac aa aoo cce, peaaeo oo e. [ETXTBSY] poepa oooc ac a, oop ec co poeypo (c paee ceeo cpy) a oe oec. [EACCES] papee ocya oe a aa apea co ocy. [EFAULT] 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.