summaryrefslogtreecommitdiffstats
path: root/libc/stdio
Commit message (Collapse)AuthorAgeFilesLines
...
* Protect against ctype macros.Manuel Novoa III2002-05-101-4/+6
|
* Fix the read/write auto-transition bugs. Note that if we can'tManuel Novoa III2002-04-091-29/+36
| | | | | | | | | | | | auto-transition, we fail the operation. This is different than glibc's apparent behavior for writing of clearing the read buffer and still failing the write without setting the stream's error flag. Also, change a number of "errno = xxx" assignments to use __set_errno(). Also, change setvbuf(file, NULL, _IO{LF}BF, 0) behavior to more closely match glibc's by keeping the current buffer and only changing the buffering mode. Update setlinebuf() in the process to match the man page behavior.
* Fix an arg promotion handling bug in _do_one_spec for %c reportedManuel Novoa III2002-04-021-2/+9
| | | | by Ilguiz Latypov <ilatypov@superbt.com>.
* Forget to initialize thread locks for fake files. Thanks Erik.Manuel Novoa III2002-04-012-0/+16
|
* Remove function declartions from include/features.h, createEric Andersen2002-04-014-0/+4
| | | | | a separate header file for those, and fixup references. -Erik
* Rework __gen_tempname() to better match glibc, and add mkstemp64(),Eric Andersen2002-03-314-23/+6
| | | | | which is needed for busybox ash when using largefile support. -Erik
* Add in a knob to disable %m supportEric Andersen2002-03-221-0/+12
| | | | -Erik
* Compile in flockfile and friends by defaultEric Andersen2002-03-212-1/+9
| | | | -Erik
* Fix a pointer bug in setvbuf reported by Bart Visscher <magick@Linux-Fan.com>.Manuel Novoa III2002-03-161-2/+6
|
* I vow to rerun _all_ the tests before making commits. :-(Manuel Novoa III2002-03-141-2/+2
| | | | | I successfully managed to blow away all the modeflags for the file _except_ the one dealing with buffering...
* Modified because of the new str to int funcs.Manuel Novoa III2002-03-131-7/+8
|
* Fix stdin/stdout initialization of buffering type. I had changed theManuel Novoa III2002-03-131-2/+2
| | | | default static initiailization and forgotten to update _stdio_init().
* Apply Miles Bader's missing __va_copy() fix.Manuel Novoa III2002-03-131-0/+11
|
* Fix another O_LARGEFILE bug. Also, I forget to make floating point optionalManuel Novoa III2002-03-122-11/+42
| | | | in the new printf code.
* So much for fcntl flags being resonably consistent across archs... (hopefully)Manuel Novoa III2002-03-121-10/+14
| | | | | fix O_APPEND and O_LARGEFILE handling in _stdio_fopen(). Someone else will have to check of course...
* Fix fflush(NULL) and tweak _stdio_term() for the unbuffered stdio option.Manuel Novoa III2002-03-121-2/+10
|
* Deal with cvs "feature"... or is that cvs _user_...Manuel Novoa III2002-03-122-0/+5204
|
* Swap in the new stdio code.Manuel Novoa III2002-03-128-1572/+199
|
* Be consistant and use an unsigned char * throughoutEric Andersen2002-02-261-2/+3
|
* I shouldn't try to program when sleepy, since I totally botchedEric Andersen2002-02-251-4/+4
| | | | | the fcntl interface... -Erik
* When messing with fd NONBLOCK status, put things back the way we foundEric Andersen2002-02-251-1/+4
| | | | | | them afterwards. As was, this hosed things up for fds shared with a parent process. Very bad for shells... Oops. -Erik
* IEEE Std 1003.1-2001 says that the "fclose() function shall fail [with]Eric Andersen2002-02-231-7/+1
| | | | | | | | 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
* Per discussion with Manuel, when we call __stdio_flush_buffersEric Andersen2002-02-231-1/+9
| | | | | | 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...
* When vfork is not available and we have an MMU, then use fork()Eric Andersen2002-02-211-0/+6
| | | | -Erik
* Rename __stdio_close_all to __stdio_flush_buffers. Eliminate anEric Andersen2002-02-181-2/+2
| | | | unnecessary variable
* Several little additions and cleanups. Add getw() and putw().Eric Andersen2002-02-023-1/+71
| | | | | | Add in some missing header files (netipx/ipx.h include/lastlog.h include/sgtty.h include/sys/perm.h) -Erik
* Don't waste space warning about tempnam()Eric Andersen2002-01-171-1/+0
|
* Support tmpfile64 (just a weak for tmpfile)Eric Andersen2002-01-061-1/+4
| | | | -Erik
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-193-8/+9
|
* Add missing ctermid. Also add putc and getc (in case they getEric Andersen2001-11-213-2/+58
| | | | | undefined which is a valid thing to do) -Erik
* This commit makes large file support actually work (when enabled inEric Andersen2001-10-172-17/+31
| | | | | the config file). I've tested this and it works for me. -Erik
* Fix nasty behavior difference from glibc -- also fixes getline()Eric Andersen2001-09-301-3/+2
| | | | -Erik
* Update to accomodate the header file changesEric Andersen2001-09-273-0/+3
|
* Fix fseek behavior.Manuel Novoa III2001-09-251-2/+3
|
* Fix goofy formattingEric Andersen2001-08-282-4/+4
|
* Use "stdin", "stdout", and "stderr", not "_stdin", "_stdout", andEric Andersen2001-08-241-10/+10
| | | | | "_stderr", since this is what gcc and libgcc expect... -Erik
* Add the __fopen prototype, since I pulled it from stdio.hEric Andersen2001-08-241-0/+4
|
* Add in changes from philipc@lineo:David McCullough2001-08-091-12/+15
| | | | | | | | | | | | | | | 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.
* Oops... left in a debugging line.Manuel Novoa III2001-07-281-1/+0
|
* Back out the changes to _uClibc_fread and loop in fread() if incomplete, toManuel Novoa III2001-07-281-22/+21
| | | | | | | | | | 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.
* Yes... the previous "fix" was broken too... the result of careless cuttingManuel Novoa III2001-07-261-1/+1
| | | | and pasting while pressed for time. I haven't checked this one either. :-(
* Ok... the fix wasn't quite so straightforward. Hopefully this will do it.Manuel Novoa III2001-07-251-0/+3
|
* Fix fread bug reported by Vodz. The fix is straightforward, but I haven'tManuel Novoa III2001-07-251-11/+13
| | | | tested it (lack of time).
* Fix printf so that %p outputs "(nil)" for (void *) 0, to match glibc behavior.Manuel Novoa III2001-06-131-11/+20
|
* Fix printf handling of %p to prepend "0x" since output is in hex.Manuel Novoa III2001-06-131-0/+1
| | | | | Note: glibc output for (void *)0 is "(nil)" while uClibc output is "0". Does anyone have a preference?
* Commit _uClibc_fread bug fix (with minor edit) posted by Johan Adolfsson ↵Manuel Novoa III2001-06-071-0/+4
| | | | <johan.adolfsson@axis.com>.
* Cleanup some stupid warningsEric Andersen2001-05-311-0/+1
|
* Add comment about scanf pushback behavior and glibc difference.Manuel Novoa III2001-05-211-0/+11
|
* Add in tempnam()Eric Andersen2001-05-172-1/+49
|
* Ok, this should finish off my massive ro-organization. The sourceEric Andersen2001-05-121-2/+1
| | | | | | | | | 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