From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1342 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 4/10] pipe2 Date: Sun, 22 Jul 2012 18:24:07 -0700 Message-ID: <20120722182407.4470cd5d@newbook> References: <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_/E=_fQlIE93LHV._uhkr3UO7" X-Trace: dough.gmane.org 1343006663 6798 80.91.229.3 (23 Jul 2012 01:24:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 01:24:23 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1343-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 23 03:24:23 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 1St7Nn-0004cn-4R for gllmg-musl@plane.gmane.org; Mon, 23 Jul 2012 03:24:23 +0200 Original-Received: (qmail 13929 invoked by uid 550); 23 Jul 2012 01:24:22 -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 13918 invoked from network); 23 Jul 2012 01:24:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=h7x4i1Xcthdy08JukGiuDmON07Ua4ThMT1EWR2o1OaJue8T5D4y/S6ZhXeqmTm2p1+RDFOx0g7M01M9MsJk+IDA1VNLlUfmOun9SlyIPr33AbM42dNz/fIQqVn98KtK6oRRe5VyjGMA84w2LGyYXJEQl1raKY1Wj9mLT2ESgZTw=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type; In-Reply-To: <20120722181332.191d4fa5@newbook> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:1342 Archived-At: --MP_/E=_fQlIE93LHV._uhkr3UO7 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, 22 Jul 2012 18:13:32 -0700 Isaac Dunham wrote: > This patch series is basically a reworked version of orc's previous > patch. > From 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) Support for the pipe2 syscall, with respect for namespaces. Isaac Dunham --MP_/E=_fQlIE93LHV._uhkr3UO7 Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=4-pipe2.diff diff --git a/include/unistd.h b/include/unistd.h index 9c737f7..17fe5e7 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -174,6 +174,7 @@ int setresgid(gid_t, gid_t, gid_t); int getresuid(uid_t *, uid_t *, uid_t *); int getresgid(gid_t *, gid_t *, gid_t *); char *get_current_dir_name(void); +int pipe2(int [2], int); #endif #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) diff --git a/src/unistd/pipe2.c b/src/unistd/pipe2.c new file mode 100644 index 0000000..95c8a15 --- /dev/null +++ b/src/unistd/pipe2.c @@ -0,0 +1,8 @@ +#define _GNU_SOURCE +#include +#include "syscall.h" + +int pipe2(int fd[2], int flg) +{ + return syscall(SYS_pipe, fd, flg); +} --MP_/E=_fQlIE93LHV._uhkr3UO7--