explain_fstatat_or_die(3)

πŸ“¦
version 1.4.D001 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute

✨ NAME ✨

okay so bestie, this is the explain_fstatat_or_die(3) page from the Library Functions Manual πŸ’–

  • explain_fstatat_or_die β€” get file status relative to a dir fd and report errors ✨

🌸 SYNOPSIS 🌸

#include <libexplain/fstatat.h>
void explain_fstatat_or_die(int fildes, const char *pathname, struct
stat *data, int flags);
int explain_fstatat_on_error(int fildes, const char *pathname, struct
stat *data, int flags);

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜•οΈ:

  • explain_fstatat_or_die is used to call the fstatat(2) system call. On failure, an explanation will be printed to stderr, obtained from the explain_fstatat(3) function, and then the process terminates by calling exit(EXIT_FAILURE). πŸ’€
  • explain_fstatat_on_error is used to call the fstatat(2) system call. On failure, an explanation will be printed to stderr, obtained from the explain_fstatat(3) function, but still returns to the caller. 🫢
  • fildes β€” The fildes, exactly as to be passed to the fstatat(2) system call.
  • pathname β€” The pathname, exactly as to be passed to the fstatat(2) system call.
  • data β€” The data, exactly as to be passed to the fstatat(2) system call.
  • flags β€” The flags, exactly as to be passed to the fstatat(2) system call.

πŸ‘‘ RETURN VALUE πŸ‘‘

  • explain_fstatat_or_die only returns on success, see fstatat(2) for more information. On failure, it prints an explanation and exits, it does not return. 😭
  • explain_fstatat_on_error always returns the value return by the wrapped fstatat(2) system call. πŸ’…

πŸ¦‹ EXAMPLE πŸ¦‹

The explain_fstatat_or_die function is intended to be used in a fashion similar to the following example:

explain_fstatat_or_die(fildes, pathname, data, flags);

🌈 SEE ALSO 🌈

  • libexplain version 1.4
  • Copyright (C) 2013 Peter Miller

k bye bestie! this was explain_fstatat_or_die(3) from libexplain version 1.4, Copyright (C) 2013 Peter Miller πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from