summaryrefslogtreecommitdiffstats
path: root/libc/stdio/popen.c
Commit message (Collapse)AuthorAgeFilesLines
* trim Experimentally off and uncommented hiddenAustin Foxley2009-09-181-10/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Synch with trunk @ 24165Carmelo Amoroso2008-11-271-8/+8
| | | | | Step 17: libc_hidden_proto removal (almost all). and other minor changes (inline keyword, extra character)
* Synch with trunk @ 24087Carmelo Amoroso2008-11-181-2/+2
| | | | Step 10: libc_hidden_removal
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-091-17/+17
| | | | NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix Makefile.in and synch them with trunk. Signed-off-by: Carmelo Amoroso ↵Carmelo Amoroso2007-11-201-0/+1
| | | | <carmelo.amoroso@st.com>
* Merge from trunk."Steven J. Hill"2006-02-261-16/+20
|
* Big fricking merge from trunk."Steven J. Hill"2006-01-071-1/+3
|
* Merge from trunk."Steven J. Hill"2005-12-101-0/+2
|
* Merge from trunk."Steven J. Hill"2005-12-081-0/+1
|
* More merging from trunk."Steven J. Hill"2005-12-061-7/+6
|
* Merge from trunk."Steven J. Hill"2005-12-021-6/+6
|
* New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III2004-02-111-18/+3
| | | | | | | | Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
* Oops... temporarily support the old stdio code.Manuel Novoa III2004-01-021-0/+5
|
* Rewrite popen for SUSv3 compliance.Manuel Novoa III2004-01-021-47/+171
| | | | | | | Added a list of popen()'d to store pids and use waitpid() in pclose(). Loop on waitpid() failure due to EINTR as required. Close parent's popen()'d FILEs in the {v}fork()'d child. Fix failure exit code for failed execve().
* If the wait failed in pclose it would return a random status codeDavid McCullough2002-12-011-1/+2
| | | | instead of -1 as expected.
* Per discussion on the mailing list, simply vfork -> fork mapping to only applyEric Andersen2002-07-311-1/+1
| | | | | iff we do not have vfork available, which is simpler and more reasonable. -Erik
* A patch from Ted Phelps to fix popen(). Ted writes:Eric Andersen2002-06-111-1/+1
| | | | | | | | | There is a minor bug in the implementation of popen(). In the case where the file descriptor returned from its call to pipe() is the same as the file descriptor that it is meant to be (where the dup2() branch is not taken), the end of the pipe is still closed by close(reading) even though it shouldn't be. Thanks Ted!
* When vfork is not available and we have an MMU, then use fork()Eric Andersen2002-02-211-0/+6
| | | | -Erik
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-1/+1
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* Fix a couple of bugs: check mode is legal; open file and check success beforeManuel Novoa III2001-03-031-25/+45
| | | | calling vfork.
* Add in tmpnam() support from David Whedon <dwhedon@gordian.com>,Eric Andersen2000-11-151-7/+4
| | | | rework include/stdio.h, and fix up the resultant damage.
* Finish reorganizing things. At least I think I've finished.Eric Andersen2000-10-111-0/+49