From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1339 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 1/10] ioperm & iopl Date: Sun, 22 Jul 2012 18:13:32 -0700 Message-ID: <20120722181332.191d4fa5@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/TxbXsBIlnFBM5OmZ1X5TQZD" X-Trace: dough.gmane.org 1343006031 3098 80.91.229.3 (23 Jul 2012 01:13:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 01:13:51 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1340-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 23 03:13:48 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1St7DY-0004uR-20 for gllmg-musl@plane.gmane.org; Mon, 23 Jul 2012 03:13:48 +0200 Original-Received: (qmail 9817 invoked by uid 550); 23 Jul 2012 01:13:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 9809 invoked from network); 23 Jul 2012 01:13:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=iJnJpy0c39SttTft2SiQTTT/XbBD8+N2NnSDGNgM2ftQ04iF6kfdpfykHe/KnJhnT+PDcxUgUBbLDEx3deucQa4y+ZCL8fBD1obeXAfCjWGw3ONw3ZmLi6jtXu4fz/Kn4hkGI/Gh5+ngfhFlUMEWZMERBEfI1BM7bl/DEzf/+Wc=; h=Date:From:To:Subject:Message-ID:X-Mailer:Mime-Version:Content-Type; X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:1339 Archived-At: --MP_/TxbXsBIlnFBM5OmZ1X5TQZD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This patch series is basically a reworked version of orc's previous patch. =46rom what orc said, the first patch should provide enough to build Xorg; I haven't tested this yet. A few more patches are syscall wrappers (splice) or trivial functions (finite). Finally, there are several aliases. With that, I'm sending the first patch. This adds ioperm & iopl along with io.h, though a full io.h has several more syscalls. Isaac Dunham=20 --MP_/TxbXsBIlnFBM5OmZ1X5TQZD Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=1-ioperm-iopl.diff diff --git a/include/sys/io.h b/include/sys/io.h new file mode 100644 index 0000000..1f4d1a3 --- /dev/null +++ b/include/sys/io.h @@ -0,0 +1,2 @@ +int ioperm(unsigned long, unsigned long, int); +int iopl(int); diff --git a/src/linux/ioperm.c b/src/linux/ioperm.c new file mode 100644 index 0000000..6d6d383 --- /dev/null +++ b/src/linux/ioperm.c @@ -0,0 +1,6 @@ +#include "syscall.h" + +int ioperm(unsigned long from, unsigned long num, int turn_on) +{ + return syscall(SYS_ioperm, from, num, turn_on); +} diff --git a/src/linux/iopl.c b/src/linux/iopl.c new file mode 100644 index 0000000..7fc9102 --- /dev/null +++ b/src/linux/iopl.c @@ -0,0 +1,6 @@ +#include "syscall.h" + +int iopl(int level) +{ + return syscall(SYS_iopl, level); +} --MP_/TxbXsBIlnFBM5OmZ1X5TQZD--