explain_fstatat_or_die(3)
β¨ 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_dieis used to call thefstatat(2)system call. On failure, an explanation will be printed tostderr, obtained from theexplain_fstatat(3)function, and then the process terminates by callingexit(EXIT_FAILURE). πexplain_fstatat_on_erroris used to call thefstatat(2)system call. On failure, an explanation will be printed tostderr, obtained from theexplain_fstatat(3)function, but still returns to the caller. π«Άfildesβ Thefildes, exactly as to be passed to thefstatat(2)system call.pathnameβ Thepathname, exactly as to be passed to thefstatat(2)system call.dataβ Thedata, exactly as to be passed to thefstatat(2)system call.flagsβ Theflags, exactly as to be passed to thefstatat(2)system call.
π RETURN VALUE π
explain_fstatat_or_dieonly returns on success, seefstatat(2)for more information. On failure, it prints an explanation and exits, it does not return. πexplain_fstatat_on_erroralways returns the value return by the wrappedfstatat(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 π
fstatat(2)β get file status relative to a directory file descriptorexplain_fstatat(3)β explainfstatat(2)errorsexit(2)β terminate the calling process
π COPYRIGHT π
- 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
- debian bookworm: libexplain-dev 1.4.D001-12+b1 Β· LGPL-3.0-or-later
- debian trixie: libexplain-dev 1.4.D001-16 Β· LGPL-3.0-or-later
- ubuntu jammy: libexplain-dev 1.4.D001-12 Β· LGPL-3.0-or-later
- ubuntu noble: libexplain-dev 1.4.D001-13 Β· LGPL-3.0-or-later
- ubuntu resolute: libexplain-dev 1.4.D001-16 Β· LGPL-3.0-or-later
- Copyright (C) 2013 Peter Miller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms