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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a744520307161f16 X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: MMAP in ADA? Date: 1999/11/05 Message-ID: <87so2lfcpy.fsf@antinea.enst.fr>#1/1 X-Deja-AN: 544755979 References: <38223922.7763122E@boeing.com> Mail-Copies-To: sam@ada.eu.org To: Robert Jordan Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@enst.enst.fr X-Trace: enst.enst.fr 941798105 26171 137.194.160.145 (5 Nov 1999 10:35:05 GMT) Organization: TELECOM Paris Mime-Version: 1.0 User-Agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) XEmacs/21.1 (Biscayne) NNTP-Posting-Date: 5 Nov 1999 10:35:05 GMT Newsgroups: comp.lang.ada Date: 1999-11-05T10:35:05+00:00 List-Id: >>>>> "Robert" == Robert Jordan writes: Robert> And yes... I know I could just pragma import the unix mmap Robert> function, but I'm trying to avoid all imports in my ADA code Robert> (Per instruction). How do you do this in C then? You cannot mmap() without leaving the C language as you are using a library function and mmap() does not belong to the C standard. According to my Debian manpage, mmap() belongs to: CONFORMING TO SVr4, POSIX.1b (formerly POSIX.4), 4.4BSD. Svr4 documents additional error codes ENXIO and ENODEV. Sam -- Samuel Tardieu -- sam@ada.eu.org