I think you can portably detect the failure case with the errno=0 method,
rather than relying on #ifdef.
Is Solaris eaccess the same as euidaccess? Should glibc provide eaccess as
an alias for euidaccess?
Except on the Hurd, euidaccess actually either just uses access (when r==e)
or uses stat and the usual st_mode rules assuming those are what the
filesystem will actually use, which you can do yours
It's a natural, obvious, and useful addition, no matter what Solaris does
or doesn't have. I've put it in. If there are any more *at additions that
might be useful, right now is the time to bring them up. So rack your brain.
Thanks,
Roland
___
Bug-
> Alfred M. Szmidt wrote:
> >> + if (trans_stat.st_mode & S_IPTRANS)
> >> +{
> >> + char buf[1024], *trans = buf;
> >Is this 1024-byte buffer guaranteed to be large enough?
Code like this is using a mig stub feature whereby a larger buffer is
alloc