FILESTAT(3)

πŸ“¦
version 2022.10.16 Β· 2 versions
, in opensuse-leap 16.0

πŸ’… filestat() β€” FILESTAT(3) πŸ’…

okay so bestie, welcome to Schily´s LIBRARY FUNCTIONS. This page is for filestat(), and it's lowkey iconic: it copies file descriptor information into a buffer. Let's get into it ✨🫢

🌸 NAME 🌸

filestat() β€” copies file descriptor information to buffer πŸ’–

✨ SYNOPSIS ✨

#include <schily/stat.h>

int filestat(f,buf)
FILE *f;
struct stat *buf;

πŸ¦‹ DESCRIPTION πŸ¦‹

filestat() places system dependent information about the file f into the buffer buf. That's the whole main character move, periodt πŸ’…

πŸŽ€ RETURNS πŸŽ€

Returns a value equal to or greater than zero when successful. Otherwise, returns -1 and sets the standard error code. No cap, that's the deal 😭πŸ”₯

πŸ”₯ NOTES πŸ”₯

The size and the interpretation of the buffer is system dependent. So bestie, do not assume it's universal β€” it's literally system dependent πŸ‘‘πŸ’€


xoxo πŸ’‹ β€” from Joerg Schilling, dated 2022/09/09, and this page is FILESTAT(3). Slay πŸ§šπŸ’œ

πŸ“¦ where this page comes from