Richard said:
This is truly bizarre. Is stat a function with a standard
interface? Of course it is. Is it a function defined in the
various C standards? Not in C89 or C9, though possibly in K&R C
which does not have a standard as such. That does not mean that
it is not defined and does not have a defined interface. What
Falconer said was silly; what you were saying is silly.
Try to pay attention. This is c.l.c. We depend on the various ISO
C standards (and K&R) for the language definition. The fact that
some other organization writes and publishes standards for whatever
purpose does not influence correspondence and topicality on this
news group.
If you really want to discuss a 'stat' function, you have to supply
the prototype and a full description of what it does. Then you can
ask about how to implement it. That may not be possible with
standard C. You can also ask (then) about how to use it. 'stat'
is not a reserved name, it is in the users namespace, and thus
quite available for use in any desired manner.
The same goes for discussion of threads, at least until you can
supply a reference in the standard that defines these items.
For example, I have published various C code, including hashlib,
ggets, nmalloc, and others. I do not claim that these are
standards. I do give references that allow anyone interested to
examine them, and possibly use them. I do not claim that my Pascal
systems are industry standards, nor that they are applicable here.