statfstat
Statfstat is a proposed or hypothetical API that consolidates file status retrieval in POSIX-like environments by combining the capabilities of the stat and fstat functions into a single interface. It is not part of the POSIX standard and remains uncommon in mainstream systems as of the current era.
Interface and behavior: In a typical design, statfstat provides two entry points: statfstat_path and statfstat_fd. statfstat_path
Returned data: The struct stat (or a compatible variant) includes file type and permissions (st_mode), size (st_size),
Rationale and use: The unified API simplifies calling code that must handle both path-based and descriptor-based