Click to See Complete Forum and Search --> : Linux Standard Base (LSB) - stat and fstat missing


MarcRochkind
08-20-2002, 01:22 PM
Perhaps someone who is familiar with the LSB can fill me in as to the reason why stat and fstat are absent. If they are in the doc, I can't find them!

Stuka
08-22-2002, 02:22 PM
Well, that's curious - I see no mention of them either. However, in the libc data definition section, it does mention the stat structure being in sys/stat.h - perhaps there was a simple oversight?

MarcRochkind
08-22-2002, 06:04 PM
I have since learned that...

1) LSB is a binary (ABI) standard, so there need be no particular correspondence between its names and the names we use in source code. POSIX, on the other hand, is a source-level standard.

2) stat and fstat are macros in some Linux header (or maybe gcc header), and their binary guts are in other functions that are in the LSB.

So, the mystery is solved.

Stuka
08-22-2002, 06:25 PM
Cool - I'll file that away in the "semi-useless knowledge" section! :)