From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4928 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [patch] expose execvpe under _(GNU|BSD)_SOURCE Date: Sun, 20 Apr 2014 00:29:18 -0400 Message-ID: <20140420042918.GX26358@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1397968178 20960 80.91.229.3 (20 Apr 2014 04:29:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2014 04:29:38 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4932-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 20 06:29:32 2014 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 1WbjNj-0004ii-C3 for gllmg-musl@plane.gmane.org; Sun, 20 Apr 2014 06:29:31 +0200 Original-Received: (qmail 30214 invoked by uid 550); 20 Apr 2014 04:29:30 -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 30206 invoked from network); 20 Apr 2014 04:29:30 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:4928 Archived-At: Committed with minor changes. Thanks. Rich On Fri, Apr 18, 2014 at 10:40:28PM -0500, M Farkas-Dyck wrote: > Forgot to #include "libc.h" last time. > > >From 9740391c7569bfa694cc0de1282858bad9b7f554 Mon Sep 17 00:00:00 2001 > From: M Farkas-Dyck > Date: Tue, 15 Apr 2014 22:02:29 -0500 > Subject: [PATCH] expose execvpe under _(GNU|BSD)_SOURCE > > --- > include/unistd.h | 3 +++ > src/process/execvp.c | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git a/include/unistd.h b/include/unistd.h > index bf10a6d..342ab68 100644 > --- a/include/unistd.h > +++ b/include/unistd.h > @@ -88,6 +88,9 @@ int execle(const char *, const char *, ...); > int execl(const char *, const char *, ...); > int execvp(const char *, char *const []); > int execlp(const char *, const char *, ...); > +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) > +int execvpe(const char *, char *const [], char *const []); > +#endif > int fexecve(int, char *const [], char *const []); > _Noreturn void _exit(int); > > diff --git a/src/process/execvp.c b/src/process/execvp.c > index 0a33e42..7d32200 100644 > --- a/src/process/execvp.c > +++ b/src/process/execvp.c > @@ -3,6 +3,7 @@ > #include > #include > #include > +#include "libc.h" > > extern char **__environ; > > @@ -47,3 +48,5 @@ int execvp(const char *file, char *const argv[]) > { > return __execvpe(file, argv, __environ); > } > + > +weak_alias(__execvpe, execvpe); > -- > 1.8.5.2