summaryrefslogtreecommitdiffstats
path: root/libc/stdio/popen.c
Commit message (Collapse)AuthorAgeFilesLines
* 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