Eric Gallager wrote:
> I recently ran into a situation where some code tries to use
> lstatat() on a platform where it isn't available (darwin).

lstatat() is not available on _any_ platform.

> I see that
> gnulib has modules for lstat(), fstatat() and statat(), but how about
> lstatat()?

lstatat is defined as an inline function in openat.h:

_GL_ATTRIBUTE_DEPRECATED
STATAT_INLINE int
lstatat (int fd, char const *name, struct stat *st)
{
  return fstatat (fd, name, st, AT_SYMLINK_NOFOLLOW);
}

> Would it make sense for lstatat() to have its own module?

Why not use fstatat() directly?

Bruno




Reply via email to