Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Re: zsh tests (dev-15)



On Mar 11,  8:41pm, Oliver Kiddle wrote:
} Subject: PATCH: Re: zsh tests (dev-15)
}
} After a quick look at some man pages, it seems that Linux maybe doesn't
} have faccessx(). Is this right? Is there an alternative? Does anyone
} know if there are any platforms which don't have faccessx

I found the following on a Google-cached copy of a web page about hacking
into linux systems by exploiting "find ... -exec rm {} \;" as run by cron.
It would appear that faccess() and faccessx() [and by extension probably
accessx() as well] are strictly IBM-isms.

----------------------------------------------------------------

Here is a comparison of some related calls between various OSes:

           Linux*    AIX 3.2   Sunos 4.1.3   Solaris 2.5

chown()      Y          Y          Y            Y                    
fchown()     Y          Y          Y            Y
lchown()     N          N          N            Y

chmod()      Y          Y          Y            Y
fchmod()     Y          Y          Y            Y
lchmod()     N          N          N            N

stat()       Y          Y          Y            Y
lstat()      Y          Y          Y            Y
fstat()      Y          Y          Y            Y
fstatx()     N          Y          N            N
flstat()     N          N          N            N

access()     Y          Y          Y            Y
faccess()    N          Y          N            N
faccessx()   N          Y          N            N

----------------------------------------------------------------


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author