summaryrefslogtreecommitdiff
path: root/libc/stdio/popen.c
AgeCommit message (Collapse)Author
2006-12-07Major cleanup of internal mutex locking. Be more consistant in how we doEric Andersen
things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking.
2006-01-15only declare vfork when needed, else no-mmu build failsMike Frysinger
2006-01-14hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger
missing headers, other jump relocs removed
2005-12-16Get rid of warnings, use internals, create new hidden versionsPeter S. Mazinger
2005-12-10Switch fread/fwrite/fclose/pipe/sigsetmask usersPeter S. Mazinger
2005-12-08Hide some of the f* *printf, use them as wellPeter S. Mazinger
2005-12-07Hide *clnt|pmap|svc* and some rpc. inet/rpc is full of relocs ...Peter S. Mazinger
2005-12-06macro out the thread funcs in libc if threading is disabledMike Frysinger
2005-12-04More hiding, 300 leftPeter S. Mazinger
2005-12-03More hiding, including __mempcpyPeter S. Mazinger
2005-12-01Hide mostly used functionsPeter S. Mazinger
2004-02-11New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III
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.
2004-01-02Oops... temporarily support the old stdio code.Manuel Novoa III
2004-01-02Rewrite popen for SUSv3 compliance.Manuel Novoa III
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().
2002-12-01If the wait failed in pclose it would return a random status codeDavid McCullough
instead of -1 as expected.
2002-07-31Per discussion on the mailing list, simply vfork -> fork mapping to only applyEric Andersen
iff we do not have vfork available, which is simpler and more reasonable. -Erik
2002-06-11A patch from Ted Phelps to fix popen(). Ted writes:Eric Andersen
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!
2002-02-21When vfork is not available and we have an MMU, then use fork()Eric Andersen
-Erik
2001-04-06Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen
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
2001-03-03Fix a couple of bugs: check mode is legal; open file and check success beforeManuel Novoa III
calling vfork.
2000-11-15Add in tmpnam() support from David Whedon <dwhedon@gordian.com>,Eric Andersen
rework include/stdio.h, and fix up the resultant damage.
2000-10-11Finish reorganizing things. At least I think I've finished.Eric Andersen