comp.lang.ada
 help / color / mirror / Atom feed
From: Richard Beare <Richard.Beare@cmis.csiro.au>
Subject: File descriptor interfacing
Date: 1998/05/05
Date: 1998-05-05T00:00:00+00:00	[thread overview]
Message-ID: <354E9F79.C5E73940@cmis.csiro.au> (raw)


I am producing some bindings to image libraries, like libtiff. Some of
the functions in these libraries take file descriptors as arguments. I
definitely want to retain functions operating at this level (file_type
rather than file names), but I am not sure about the most appropriate
way to interface.

The gnat os_lib package is one option, but that means the library user
would have to start using file descriptors as well. I think it would be
better if the user could pass a "file_type" from which the c file
descriptor could be extracted.

This information is in the system.file_control_block package, but I am
unsure about the best way of extracting the "stream" information. The
file control block is a private time, so I guess I should be using
unchecked conversion. Is this the only way?

-- 
Richard Beare
Richard.Beare@cmis.csiro.au




             reply	other threads:[~1998-05-05  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-05  0:00 Richard Beare [this message]
1998-05-05  0:00 ` File descriptor interfacing Geert Bosch
1998-05-05  0:00 ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox