From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4916 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: Fri, 18 Apr 2014 22:40:28 -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 1397878849 17740 80.91.229.3 (19 Apr 2014 03:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2014 03:40:49 +0000 (UTC) To: musl Original-X-From: musl-return-4920-gllmg-musl=m.gmane.org@lists.openwall.com Sat Apr 19 05:40:42 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 1WbM8v-0007nB-L8 for gllmg-musl@plane.gmane.org; Sat, 19 Apr 2014 05:40:41 +0200 Original-Received: (qmail 20115 invoked by uid 550); 19 Apr 2014 03:40:40 -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 20107 invoked from network); 19 Apr 2014 03:40:40 -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=WpazCN7V77h8Ihuv+JrMdasYxyolpYMCc/b6eruSQvI=; b=oyqKLmhAYnYSGNZnuNySlzVXVyoG76VU/p2zPZBI2A9dZqNaK8HQPqSKq7xKoSq0Rl tugqEuYtxB3D/Sc/3f1Cf/3Ao67Wp1JPM6RvxWOPmFYSu12Ul09KlRBn/OdfOT/JEhv/ jCsx/MNHehpTgpXt1yN0rf+OPdGbDEeyC4XHgqk6/kc+8h/GfLlYCHo/Qdz+K7t21IOC bOC2QqcIbRY2azrvOoEFabVc2kTFNVPdBF08WwmofuJ7Fa9AFJ/SzZLZU54me6rJ6Fn2 2RbzXYvpxb0VeTe4qiDNbrPD3KWXCw6PDc0osD1vn/+yEio6G3eYO1ygUbv5jT8LuBsm wq8Q== X-Received: by 10.180.75.45 with SMTP id z13mr4873052wiv.41.1397878828979; Fri, 18 Apr 2014 20:40:28 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:4916 Archived-At: 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