From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HF6pg-0002uv-Jn for garchives@archives.gentoo.org; Thu, 08 Feb 2007 10:48:53 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l18Ak1IH031873; Thu, 8 Feb 2007 10:46:01 GMT Received: from ender.volumehost.net (adsl-69-154-123-202.dsl.fyvlar.swbell.net [69.154.123.202]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l18Ad8XU020777 for ; Thu, 8 Feb 2007 10:39:09 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id 1523616ABD for ; Thu, 8 Feb 2007 10:39:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at volumehost.net Received: from ender.volumehost.net ([127.0.0.1]) by localhost (ender.volumehost.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1PJjQ+0ZoP9x for ; Thu, 8 Feb 2007 10:39:03 +0000 (UTC) Received: from [10.0.0.251] (adsl-69-154-123-206.dsl.fyvlar.swbell.net [69.154.123.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ender.volumehost.net (Postfix) with ESMTP id B50B91676B for ; Thu, 8 Feb 2007 10:39:03 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] _syscallX isn't in linux-headers-2.6.20 ?? Date: Thu, 8 Feb 2007 04:40:49 -0600 User-Agent: KMail/1.9.5 References: <1170895989.14243.49.camel@orpheus> In-Reply-To: <1170895989.14243.49.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-UID: 4 X-Length: 2269 X-Eric-Conspiracy: There is no conspiracy Content-Type: multipart/signed; boundary="nextPart1332828.N3BYscXbuO"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200702080440.49322.bss03@volumehost.net> X-Archives-Salt: 0914561b-b5cb-44bd-9ff7-f7e5e12debac X-Archives-Hash: b18b5511ed500ec60cce6756fbddfa02 --nextPart1332828.N3BYscXbuO Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 07 February 2007 18:53, Iain Buchanan wrote: > Hi all, > > I'm trying to use: > > _syscall3(int, ioprio_set, int, which, int, who, int, ioprio); > _syscall2(int, ioprio_get, int, which, int, who); > > and supposedly I just > > #include > > but I'm getting these error from gcc: > > error: syntax error before "ioprio_set" > warning: data definition has no type or storage class > error: syntax error before "ioprio_get" > warning: data definition has no type or storage class > > so I had a look in /usr/include/linux/unistd.h and it doesn't even have > _syscall in there!! It's in /usr/src/linux though... That means that the kernel devs have decided that API is not userland safe.= =20 In recent kernels, there's a specific 'headers' (or somesuch) make target,= =20 that generates .h files that are appropriate to use in userland. If you need access to APIs that aren't in those headers, you should be=20 writing=20 a kernel module, or convincing the kernel developers to expose these APIs=20 to=20 userland. Your kernel module may need be only a tiny stub, just something= =20 to=20 go between your userland and the non-userland-safe APIs. > Am I doing something wrong? It's possible you just need another header. It also possible that there's= =20 a=20 different entry point now. I seem to remember the location of the syscall=20 table is recently changed to something like randomized per-process at some= =20 point in the 2.6.1x line. That may have changed how you need to be calling= =20 things. =2D-=20 Boyd Stephen Smith Jr. ,=3D ,-_-. =3D.=20 bss03@volumehost.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'=20 http://iguanasuicide.org/ \_/ =20 New GPG Key! Old key expires 2007-03-25. Upgrade NOW! --nextPart1332828.N3BYscXbuO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (GNU/Linux) iD8DBQBFyv4x55pqL7G1QFkRAhuUAJsEr78ztdqQWV92siWEwz7YLjqzmACfeNaU LXjUVf5/NgWEjhfCcVQnDw8= =YF74 -----END PGP SIGNATURE----- --nextPart1332828.N3BYscXbuO-- -- gentoo-user@gentoo.org mailing list