FILESTAT(3)
π
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
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- Copyright 1985-2020 J. Schilling
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms