Re: File_Type
From: sk (noname_at_myob.com)
Date: 04/19/04
- Next message: Wes Groleau: "Re: No call for Ada (was Re: Announcing new scripting/prototyping"
- Previous message: Georg Bauhaus: "Re: Unified Ada library"
- In reply to: Jorge Suarez-Solis Rivaya: "File_Type"
- Next in thread: Simon Wright: "Re: File_Type"
- Reply: Simon Wright: "Re: File_Type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 18 Apr 2004 17:02:20 -0500 To: comp.lang.ada@ada-france.org
> Is there anyway to use an Integer Type like a File_Type?,
> Is there anyway to asign a File_Type the value 3?
1) Are you using GNAT ?
2) Are you trying to associate the standard C/Unix integer
file types to Ada file types ?
3) Are you comfortable with Ada ?
If so, look at Gnat.Os_Lib and how the File_Descriptor
is defined; look at Interfaces.C_Streams. I vaguely
remember, AND I COULD BE WRONG, that there are conversion
functions somewhere in the GNAT supplied libraries.
... if you answered yes to #3, then you should be able
to use UC to get what you need.
... if you answered no to #3, I would search for other
solutions.
-- ------------------------------------------------- -- Merge vertically for real address -- -- s n p @ t . o -- k i e k c c m -------------------------------------------------
- Next message: Wes Groleau: "Re: No call for Ada (was Re: Announcing new scripting/prototyping"
- Previous message: Georg Bauhaus: "Re: Unified Ada library"
- In reply to: Jorge Suarez-Solis Rivaya: "File_Type"
- Next in thread: Simon Wright: "Re: File_Type"
- Reply: Simon Wright: "Re: File_Type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|