lstat(3)

DESCRIPTION

Obtains metadata for path. In the current libc this function is an alias of stat and has no distinct symlink behavior.

SYNOPSIS

#include <sys/stat.h>

int lstat(const char *path, struct stat *result);

RETURN VALUE

  • Returns zero, or -1 and sets errno.

ERRORS

  • -EFAULT
    • Path or result is null or inaccessible.
  • -EINVAL
    • Path resolution fails.
  • -ENOENT
    • The path does not name an object.

NOTES

Astia currently has no separate lstat implementation; callers must not rely on no-follow semantics.