From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4888 Path: news.gmane.org!not-for-mail From: M Farkas-Dyck Newsgroups: gmane.linux.lib.musl.general Subject: [patch] expose execvpe under _(GNU|BSD)_SOURCE Date: Tue, 15 Apr 2014 22:00:08 -0500 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1397617234 14581 80.91.229.3 (16 Apr 2014 03:00:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2014 03:00:34 +0000 (UTC) To: musl Original-X-From: musl-return-4892-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 16 05:00:24 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 1WaG5F-0007o6-Mb for gllmg-musl@plane.gmane.org; Wed, 16 Apr 2014 05:00:21 +0200 Original-Received: (qmail 22202 invoked by uid 550); 16 Apr 2014 03:00:20 -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 22194 invoked from network); 16 Apr 2014 03:00:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=uBT/oiHDxb5RUmqqQllBxbFU/XsGE6CAr22BIe7moLc=; b=gfwDVfcV8kD3w/q02j6rGY7F9IAhiFtg1GuRqCn3WcL4vHRPxoZh3OZpNwA6+eL1Hx CSjxpue3+3z9lt70myqM+1d+3gpXPYtvU+nOAMg9Vh2CbGbWUg+jl4F6dP75jVow6I4m +dwbX7YJGYCHm6xwih2qt+lJZn/Cym8RsNPm+hjuFKBeMMwXW1LFLIzjonyZ8nVcc45W y6CqWu+rGHOHe1q6NCStgoSpfXXz018dAIkpryvG/kuuAikd+BlYpJTLiyFPEdW8L1Hs MugQFVfR7pq93prei5nyrPnDo0n3wgPGjHjKAbivq95Lbg3BWfDUsTfjwJXLhtoIoxZo tZRQ== X-Received: by 10.194.78.77 with SMTP id z13mr1048840wjw.64.1397617208252; Tue, 15 Apr 2014 20:00:08 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:4888 Archived-At: --- include/unistd.h | 3 +++ src/process/execvp.c | 7 +++++++ 2 files changed, 10 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..068c722 100644 --- a/src/process/execvp.c +++ b/src/process/execvp.c @@ -47,3 +47,10 @@ int execvp(const char *file, char *const argv[]) { return __execvpe(file, argv, __environ); } + +#if defined(_GNU_SOURCE) || defined (_BSD_SOURCE) +int execvpe(const char *file, char *const argv[], char *const envp[]) +{ + return __execvpe(file, argv, envp); +} +#endif -- 1.8.5.2