summaryrefslogtreecommitdiff
path: root/libc/stdio
AgeCommit message (Collapse)Author
2002-03-16Fix a pointer bug in setvbuf reported by Bart Visscher <magick@Linux-Fan.com>.Manuel Novoa III
2002-03-14I vow to rerun _all_ the tests before making commits. :-(Manuel Novoa III
I successfully managed to blow away all the modeflags for the file _except_ the one dealing with buffering...
2002-03-13Modified because of the new str to int funcs.Manuel Novoa III
2002-03-13Fix stdin/stdout initialization of buffering type. I had changed theManuel Novoa III
default static initiailization and forgotten to update _stdio_init().
2002-03-13Apply Miles Bader's missing __va_copy() fix.Manuel Novoa III
2002-03-12Fix another O_LARGEFILE bug. Also, I forget to make floating point optionalManuel Novoa III
in the new printf code.
2002-03-12So much for fcntl flags being resonably consistent across archs... (hopefully)Manuel Novoa III
fix O_APPEND and O_LARGEFILE handling in _stdio_fopen(). Someone else will have to check of course...
2002-03-12Fix fflush(NULL) and tweak _stdio_term() for the unbuffered stdio option.Manuel Novoa III
2002-03-12Deal with cvs "feature"... or is that cvs _user_...Manuel Novoa III
2002-03-12Swap in the new stdio code.Manuel Novoa III
2002-02-26Be consistant and use an unsigned char * throughoutEric Andersen
2002-02-25I shouldn't try to program when sleepy, since I totally botchedEric Andersen
the fcntl interface... -Erik
2002-02-25When messing with fd NONBLOCK status, put things back the way we foundEric Andersen
them afterwards. As was, this hosed things up for fds shared with a parent process. Very bad for shells... Oops. -Erik
2002-02-23IEEE Std 1003.1-2001 says that the "fclose() function shall fail [with]Eric Andersen
EINTR [when] the fclose() function was interrupted by a signal". But looking in the current uClibc stdio.c for some bizarre reason we had a special case where when errno was EINTR, we would keep on trying instead. Doh! Fix that, -Erik
2002-02-23Per discussion with Manuel, when we call __stdio_flush_buffersEric Andersen
from abort() and from _exit(), we need to ensure that flushing will not cause us to block. So use fcntl to set the fd's to non-block mode...
2002-02-21When vfork is not available and we have an MMU, then use fork()Eric Andersen
-Erik
2002-02-18Rename __stdio_close_all to __stdio_flush_buffers. Eliminate anEric Andersen
unnecessary variable
2002-02-02Several little additions and cleanups. Add getw() and putw().Eric Andersen
Add in some missing header files (netipx/ipx.h include/lastlog.h include/sgtty.h include/sys/perm.h) -Erik
2002-01-17Don't waste space warning about tempnam()Eric Andersen
2002-01-06Support tmpfile64 (just a weak for tmpfile)Eric Andersen
-Erik
2001-12-19Update my email address. I am no longer andersen@lineo.comEric Andersen
2001-11-21Add missing ctermid. Also add putc and getc (in case they getEric Andersen
undefined which is a valid thing to do) -Erik
2001-10-17This commit makes large file support actually work (when enabled inEric Andersen
the config file). I've tested this and it works for me. -Erik
2001-09-30Fix nasty behavior difference from glibc -- also fixes getline()Eric Andersen
-Erik
2001-09-27Update to accomodate the header file changesEric Andersen
2001-09-25Fix fseek behavior.Manuel Novoa III
2001-08-28Fix goofy formattingEric Andersen
2001-08-24Use "stdin", "stdout", and "stderr", not "_stdin", "_stdout", andEric Andersen
"_stderr", since this is what gcc and libgcc expect... -Erik
2001-08-24Add the __fopen prototype, since I pulled it from stdio.hEric Andersen
2001-08-09Add in changes from philipc@lineo:David McCullough
Fix three bugs and bring into line with glibc: 1. The first character read using getc() was being ignored if it was EOF. Normally this is okay because the next getc() returns EOF as well, but for sscanf, this was causing us to skip the null terminator and start scanning whatever happened to be next in memory. 2. %s, %c, and %[ formats now return -1 if EOF is reached before any characters are read, instead of 0. This was causing an infinite loop in diald. 3. Default to base 10 for %i fields if not prefix modifier present.
2001-07-28Oops... left in a debugging line.Manuel Novoa III
2001-07-28Back out the changes to _uClibc_fread and loop in fread() if incomplete, toManuel Novoa III
avoid problems with fgets on tty streams. I actually did some testing this time. ;-) Note: there is a difference in behavior between glibc and uClibc here regarding fread() on a tty stream. glibc's fread() seems to return after reading all _available_ data even if not at end-of-file, while uClibc's fread() continues reading until all requested or eof or error. The latter behavior seems correct w.r.t. the standards.
2001-07-26Yes... the previous "fix" was broken too... the result of careless cuttingManuel Novoa III
and pasting while pressed for time. I haven't checked this one either. :-(
2001-07-25Ok... the fix wasn't quite so straightforward. Hopefully this will do it.Manuel Novoa III
2001-07-25Fix fread bug reported by Vodz. The fix is straightforward, but I haven'tManuel Novoa III
tested it (lack of time).
2001-06-13Fix printf so that %p outputs "(nil)" for (void *) 0, to match glibc behavior.Manuel Novoa III
2001-06-13Fix printf handling of %p to prepend "0x" since output is in hex.Manuel Novoa III
Note: glibc output for (void *)0 is "(nil)" while uClibc output is "0". Does anyone have a preference?
2001-06-07Commit _uClibc_fread bug fix (with minor edit) posted by Johan Adolfsson ↵Manuel Novoa III
<johan.adolfsson@axis.com>.
2001-05-31Cleanup some stupid warningsEric Andersen
2001-05-21Add comment about scanf pushback behavior and glibc difference.Manuel Novoa III
2001-05-17Add in tempnam()Eric Andersen
2001-05-12Ok, this should finish off my massive ro-organization. The sourceEric Andersen
tree is less messy now (which helps), all libraries are placed into uClibc/lib when compiling, all libraries now use a consistant mechanism for being built, all libraries use a consistant naming scheme where the lib name includes the uClibc version number, which makes ldconfig happy and willing to work with us. -Erik
2001-05-07Fix fwrite return value bug reported by Matthias Kilian ↵Manuel Novoa III
<kili@outback.escape.de>.
2001-05-07A couple of printf fixes from Johan Adolfsson (johan.adolfsson@axis.com).Manuel Novoa III
2001-04-25Be really sneaky and use GNU ld special stuff so that whenever folksEric Andersen
use the unsafe gets, they will get a warning from the linker. muahahaha. This method will soon be applied to fork() w/o an mmu etc... -Erik
2001-04-18Update temp file handling and use a single function to do allEric Andersen
the heavy lifting (most of the heavy lifting stolen from glibc, but reduced a bit).
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-23Bug fix from Peter Kjellerstedt <Peter.Kjellerstedt@axis.com>.Manuel Novoa III
2001-03-19Since Erik apparently wants def/undef vs def 1/0...Manuel Novoa III
2001-03-18Test for Config features using features.h.Manuel Novoa III