215 Commits

Author SHA1 Message Date
Rich Felker
8ae2fa6563 fix non-atomicity of puts 2011-03-24 22:58:21 -04:00
Rich Felker
aa398f56fa global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
Rich Felker
e18b563821 implement [v]swprintf 2011-03-18 09:19:09 -04:00
Rich Felker
c35bb6645f implement wprintf family of functions
this implementation is extremely ugly and inefficient, but it avoids a
good deal of code duplication and bloat. it may be cleaned up later to
eliminate the remaining code duplication and some of the warts, but i
don't really care about its performance.

note that swprintf is not yet implemented.
2011-03-17 22:55:43 -04:00
Rich Felker
4d9cc0b399 optimize file locking: avoid cache-polluting writes to global storage 2011-03-16 10:39:45 -04:00
Rich Felker
9dd7d7e3f6 partially-written draft of fmemopen, still in #if 0 2011-03-14 11:49:55 -04:00
Rich Felker
5eb0d33ec0 implement flockfile api, rework stdio locking 2011-03-12 21:55:45 -05:00
Rich Felker
a6238c30d1 rewind must clear the error indicator in addition to seeking 2011-02-22 17:11:35 -05:00
Rich Felker
4ee039f354 avoid referencing address of extern function from vdprintf
this change is in preparation for upcoming PIC/shared library support.
the intent is to avoid going through the GOT, mainly so that dprintf
is operable immediately, prior to processing of relocations. having
dprintf accessible from the dynamic linker will make writing and
debugging the dynamic linker much easier.
2011-02-20 22:24:28 -05:00
Rich Felker
3075f7e847 cleanup asprintf stuff 2011-02-20 17:19:37 -05:00
Rich Felker
bdc9ed1565 fix %n specifier, again. this time it was storing the wrong value. 2011-02-20 17:10:40 -05:00
Rich Felker
5cbd76c6b0 fix printf %n specifier - missing breaks had it clobbering memory 2011-02-16 18:19:46 -05:00
Rich Felker
a8c17e6587 fix some pointer signedness issues (this was invalid C) 2011-02-14 19:37:01 -05:00
Rich Felker
2cdfb7ca26 cleaning up syscalls in preparation for x86_64 port
- hide all the legacy xxxxxx32 name cruft in syscall.h so the actual
source files can be clean and uniform across all archs.

- cleanup llseek/lseek and mmap2/mmap handling for 32/64 bit systems

- alternate implementation for nice if the target lacks nice syscall
2011-02-13 22:45:42 -05:00
Rich Felker
0b44a0315b initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00