STAT(3POSIX)
π stat(3POSIX) β POSIX Programmer's Manual π
okay bestie, buckle up, this one's short and sweet but it's coming to you straight from the POSIX Programmer's Manual β¨ (yes, that POSIX, the one that runs the whole girlboss operating-system universe).
πΈ PROLOG πΈ
So like, real talk first. This manual page is part of the POSIX Programmer's Manual. But β and this is important, don't skip it β the Linux implementation of this interface may differ π (so go consult the corresponding Linux manual page for the deets on Linux behavior), or honestly? The interface may not be implemented on Linux at all. It's giving "it depends" energy, and we respect the mystery. π¦
β¨ NAME β¨
stat β get file status π
Like. That's the whole vibe. You wanna know what's up with a file? This is the girl who tells you.
π SYNOPSIS π
#include <sys/stat.h>
int stat(const char *restrict path, struct stat *restrict buf);
Look at her. So clean. So simple. Two restrict qualifiers doing absolutely the most (in a good way). π«Ά
π DESCRIPTION π
And the description is... literally just this:
Refer to fstatat().
That's it. That's the whole thing. No cap. π The POSIX girlies really said "we're not repeating ourselves, go read fstatat()," and honestly? Iconic behavior. Go check out fstatat() bestie, that's where the actual tea is. π
π COPYRIGHT π
okay so now the serious part, but I'm still gonna be cute about it because that's just who I am π
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. π
And here's the real one, listen up: in the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. Like, they're the final boss. The main character. The one who decides. β
The original Standard can be obtained online at http://www.opengroup.org/unix/online.html β go get it from the source, bestie. π
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. π (blame the conversion pipeline, not the standard, fr fr)
To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html β do your civic duty and tell them, we love a girl who reports bugs. π
IEEE/The Open Group β 2017 β STAT(3POSIX)
and that's the whole page, babe π«Ά thanks for reading all the way to the bottom, you're literally the best, go touch some files, mwah πβ¨
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms