From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82131 invoked by alias); 29 Feb 2016 17:38:37 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 82113 invoked by uid 89); 29 Feb 2016 17:38:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-yw0-f172.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=U7KCKEeu5vVbpiH/hwbXaypcXedZgo2yTADYBjf27L0=; b=EepBAJ6U3j8bJ4TduTJbfVnvXF7LnNU6vgRKzODzj6WX7CcEn3GxHn3qjaQtvdPezA DKR+o9CBSJp6E+NzDtzgF58fhoJ+bZqkBuVkLlnuLH0EYdQ0///p6YTQLtqGZRKK/wlF 4Ubd1WBXqh2DZduQk203sgzPtqISquOwedsuiQ1P257/iEPS8jaxu0Q8ejLPb29sv5In TMXYXOaHz6K/mno0R5QvidJ0+HKVdHIK+wLisNvuCN4aeYf/oJFXMVPnyd3hFDHw19FW tCLefIDgfpFtwqnyYj69WzDvQPmbVYiYQ39Z7Ip8PgDGsDN0FpWaDmngimXCsFEr453I JslQ== X-Gm-Message-State: AD7BkJKPFCTmznnN1zM/27d4KsKQTMG24hOM4R2cC1O4+sgHj4x9d4NN7aYM+8ZYbG6nixSt X-Received: by 10.13.218.198 with SMTP id c189mr10094403ywe.165.1456767512445; Mon, 29 Feb 2016 09:38:32 -0800 (PST) Subject: Re: [PATCH 2/3] posix: execvpe cleanup To: Paul Eggert , libc-alpha@sourceware.org References: <1456495001-5298-1-git-send-email-adhemerval.zanella@linaro.org> <1456495001-5298-3-git-send-email-adhemerval.zanella@linaro.org> <56D0A9CC.4080608@cs.ucla.edu> <56D0BA5D.5080103@linaro.org> <56D1D737.6050205@linaro.org> <56D22EA2.6030701@cs.ucla.edu> From: Adhemerval Zanella Message-ID: <56D48215.3000507@linaro.org> Date: Mon, 29 Feb 2016 17:45:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56D22EA2.6030701@cs.ucla.edu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-02/txt/msg00881.txt.bz2 On 27-02-2016 20:17, Paul Eggert wrote: > Adhemerval Zanella wrote: >> according to POSIX [1], "argv[0] should point to a filename string that >> is associated with the process being started by one of the exec functions" > > Sure, but in this context the word "should" is talking about (as POSIX puts it) "a feature or behavior that is recommended programming practice for optimum portability." A conforming application is not required to follow the recommendation, and in order to conform to POSIX glibc must support applications that do not follow the recommendation but otherwise conform. > > My source for the above quote: > > http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap01.html#tag_01_05_06 Fair enough. I also noted uglibc also accepts the empty argument list. I will change it.