?
=?ISO-8859-1?Q?Klaus_F=FCller?=
I would like to use the unix,et.al-fstat() system-call on some sort of
stream which is already open and connected to a disk file.
An example: I have an open stream and want to know the numerical
owner-id of the file associated with the stream.
I can write the code myself if someone tells me how to get the
filedescriptor that must be buried as a member attribute somewhere in
the stream-classes. Eventually all io must pass through such a
descriptor - so it _must_ exist somewhere.
I know how to retrieve the information if I have the filename (call
stat()) --- but I want to use fstat() on an already open stream.
Any glue?
Klaus.
stream which is already open and connected to a disk file.
An example: I have an open stream and want to know the numerical
owner-id of the file associated with the stream.
I can write the code myself if someone tells me how to get the
filedescriptor that must be buried as a member attribute somewhere in
the stream-classes. Eventually all io must pass through such a
descriptor - so it _must_ exist somewhere.
I know how to retrieve the information if I have the filename (call
stat()) --- but I want to use fstat() on an already open stream.
Any glue?
Klaus.