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,3cfb384718eb4f7a X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: question re Ada equivalent of C function Date: 1998/02/22 Message-ID: #1/1 X-Deja-AN: 327530791 References: <34EEFF9C.1D01FA5D@stellar1.com> <01bd3f1d$44728800$582c5c8b@aptiva> <34EF6CC6.28EF2D4A@stellar1.com> <01bd3f7d$43882660$4a2c5c8b@aptiva> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 888162930 7369 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-02-22T00:00:00+00:00 List-Id: <> Although this may be a valid description of restrictions in NT and Linux, it is by no means a necessary restriction. In OS/2, you can use inp and outp from a protected mode program if you use a .DEF file to declare the IOSEG segment that the run-time library uses to perform input/output to the port. The code for the segment must be marked with the IOPL keyword in the .DEF file. FOr more details, have a look at the OS/2 documentation, or look in the Microsoft C Run-Time Library Reference document (an excellent source for all sorts of information on C-callable routines and their compatibility across systems). I am not suggesting that everyone move to OS/2, just pointing out that the chain of reasoning that X is a "real operating system", therefore X cannot allow you to directly access an IO port is misleading.