From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8958 invoked from network); 14 Mar 1999 22:51:41 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 14 Mar 1999 22:51:41 -0000 Received: from earth.terran.org (bryan@earth.terran.org [216.39.144.215]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA21048 for ; Sun, 14 Mar 1999 17:42:51 -0500 Received: from localhost (bryan@localhost) by earth.terran.org (8.8.7/8.8.9) with ESMTP id OAA12026; Sun, 14 Mar 1999 14:42:31 -0800 Date: Sun, 14 Mar 1999 14:42:31 -0800 (PST) From: "B. James Phillippe" To: Martin Ostermann cc: Brendan Miller , RedHat AXP list Subject: Re: Newbie to port-IO programming on Alpha In-Reply-To: <43n21gteuw.fsf@comnets.rwth-aachen.de> Message-ID: Organization: terran.org/darkforest.org X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 14 Mar 1999, Martin Ostermann wrote: > On Sun, 14 Mar 1999 01:15:00 -0800 (PST), "B. James Phillippe" said: > > IO functions are defined in . > > Well, those define the kernel io functions. They will only work on the > architecture on which you compile your stuff, if they compile at all. The kernel IO functions are the only IO functions, unless you write your own architecture-dependent version for every CPU you plan to support in your code. There are no IO definitions in the standard library, and it doesn't make sense for there to be any; IO is inherently architecture-dependent. And what do you mean "if they compile at all"? > Rather use the glibc include file, maybe ? Try a > 'find /usr/include -name io.h -print' to find them, Or a > 'grep outb /usr/include/{*,*/*}' All does is #include ; there is no such thing as a non architecture-dependant IO definition. If you only care about compiling on systems after glibc, is the header to use. But there is no for libc5, so YMMV. -bp -- B. James Phillippe . bryan@terran.org Software Engineer, WGT Inc. . http://www.terran.org/~bryan