public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10221] New: Please provide execvpe as a GNU extension
@ 2009-05-30 19:49 martinrb at google dot com
  2009-06-02 14:04 ` [Bug libc/10221] " drepper at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: martinrb at google dot com @ 2009-05-30 19:49 UTC (permalink / raw)
  To: glibc-bugs

The Unix standards do not provide an execvpe,
which is obvious "missing" functionality.
Java's subprocess implementation is one example of
software projects implementing their own execvpe.
For glibc, the implementation seems particularly easy
- copy posix/execvp.c to posix/execvpe.c, replacing references to 
__environ with a reference to a user-provided envp.

It is hard for users to implement execvpe completely faithfully themselves,
because it is not so easy to find the default value of PATH,
or the right shell to use to run scripts in case of ENOEXEC,
in accordance with the standard practice on the platform.

If agreed, I would be willing to help work on implementation,
although I am not a glibc hacker.

Hopefully, execvpe would be added to a future revision of the Unix standards.

-- 
           Summary: Please provide execvpe as a GNU extension
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: martinrb at google dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10221

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/10221] Please provide execvpe as a GNU extension
  2009-05-30 19:49 [Bug libc/10221] New: Please provide execvpe as a GNU extension martinrb at google dot com
@ 2009-06-02 14:04 ` drepper at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2009-06-02 14:04 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-06-02 14:04 -------
Add in git master.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=10221

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-02 14:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-30 19:49 [Bug libc/10221] New: Please provide execvpe as a GNU extension martinrb at google dot com
2009-06-02 14:04 ` [Bug libc/10221] " drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).