"Fred Lindberg" <[EMAIL PROTECTED]> wrote:
> It's obviously important or it wouldn't be there. Can anyone explain
> why?

Forgive my speculation--if I'm wrong, somebody correct me! My guess is
that fstat() follows open() because of system-specific open() bugs.

On NFS, for example, open() will sometimes return a descriptor, but
subsequent write() calls will fail with EACCESS. This condition can be
detected through error slippage by calling fstat(), which will also
fail with EACCESS.

Len.


--
The whole point of modern `standards' is to preserve the existing
oligopoly. A few vendors band together to produce a `standard' that
is precisely the disjoint union of their existing implementations,
including all their warts.
                                -- Henry Baker

Reply via email to