summaryrefslogtreecommitdiffstats
path: root/libc/stdio
Commit message (Collapse)AuthorAgeFilesLines
...
* Kill the HAS_LONG_LONG option. It really did not make a lot ofEric Andersen2002-08-251-16/+0
| | | | | | sense to exclude it, gcc always supports long long, and we never fully excluded long long anyways (off64_t for example). -Erik
* Fix two problems with printf that showed up in the python 2.2.1 tests;Manuel Novoa III2002-08-171-1/+10
| | | | One involving %o and one involving %f.
* __fsetlocking() and FILE field user_locking were completely broken. :-(Manuel Novoa III2002-08-133-9/+26
| | | | | | I think they're fixed now (I've run a few tests). Note: __fsetlocking() is not threadsafe... but glibc's doesn't appear to be either.
* Revert commit by davidm to printf.c that initialized conv_numManuel Novoa III2002-08-122-7/+7
| | | | | | | | | needlessly. To do so increases the generated code size with bcc. Eliminate duplicate define warnings in wstring.c. Fix potentially broken preprocessor comparisons. The preprocessor converts integers to maximal signed type, so inequality comparisons involving UINTMAX_MAX, ULLONG_MAX, and (if no long long) ULONG_MAX were potentially broken.
* Fix a number of compile time warnings so that uClibc will build with -Werror ↵David McCullough2002-08-091-1/+1
| | | | | | using a 3.0.4 version of the sh-linux-gcc compiler.
* Changed fflush() behavior to no-op for r/w streams in read-mode.Manuel Novoa III2002-08-061-17/+33
| | | | | | | | | | | | | This falls under undefined behavior wrt ANSI/ISO C99, but SUSv3 seems to treat it as a no-op and it occurs in some apps. Fixed a problem with _stdio_fwrite() not checking for underlying write() failures. Fixed both _stdio_fwrite() and _stdio_fread() to make sure that the putc and getc macros were disabled if the stream was in and error state. The above changes should take care of a problem initially reported by "Steven J. Hill" <sjhill@realitydiluted.com>.
* A couple of little cleanups I forgot to check in.Manuel Novoa III2002-08-031-2/+0
|
* 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
* Attempt to clean up the strerror_r situation.Manuel Novoa III2002-07-073-38/+4
|
* Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III2002-07-035-177/+323
| | | | | | Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
* Fix perror() and printf("%m") to not call strerror(), as required by theManuel Novoa III2002-06-184-8/+51
| | | | | | | | | standards. Temporarily added a utility function to wrap Erik's strerror_r so that "Unknown error xxx" strings can be generated for errno's which cause strerror_r to fail. That utility function will eventually be merged in with the strerror/strerror_r functions when I change over to optionallly mmap'ing the system error strings to provide for lower mem comsumption on non-MMU platforms, as well as locale-specific system error messages.
* Revert Erik's patch to vasprintf and fix the real issue.Manuel Novoa III2002-06-112-1/+1
| | | | | The writer for the stream returned by open_memstream was supposed to keep the buffer nul-terminated. I apparently left out a statement.
* This patch from Rik Faith <faith@alephnull.com> fixes a potentiallyEric Andersen2002-06-111-0/+1
| | | | | | | non-NULL terminated string problem that could result from the use of open_memstream(). Manuel may have a better solution, but this one works for me, since with this plus the popen fix I can now run things like gdb properly. Thanks Rik!
* 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!
* Several bugfixes for problems that showed up on alphaEric Andersen2002-05-121-1/+1
| | | | -Erik
* Adjust preprocessor logic to initialize QUAL_CHARS correctly for Erik's alphaManuel Novoa III2002-05-113-19/+42
| | | | | port. Also, explicitly use the macro versions of isdigit and isspace in the printf and scanf code.
* 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
|