From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba2f8edf6a585206 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-18 15:00:14 PST Path: archiver1.google.com!news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!nnx.oleane.net!oleane!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: File_Type Date: Sun, 18 Apr 2004 17:02:20 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <61f665c0.0404180417.72855af4@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1082325482 57219 212.85.156.195 (18 Apr 2004 21:58:02 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sun, 18 Apr 2004 21:58:02 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020828 X-Accept-Language: en-us, en X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:7318 Date: 2004-04-18T17:02:20-05:00 > 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 -------------------------------------------------