Ignore:
Timestamp:
2009-06-03T19:26:28Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d00ae4c
Parents:
ca3ba3a
Message:

I/O subsystem overhaul:

  • add more POSIX-like file and stream functions (with real functionality of stdin, stdout, stderr)
  • cleanup console access methods (now generic to any console-like device)
  • remove unsafe stream functions
  • add special open_node(), fd_node(), fd_phone() (file) and fopen_node(), fnode(), fphone() (stream) functions for HelenOS-specific I/O operations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/io/printf_core.c

    rca3ba3a r2595dab  
    174174static int print_char(const char ch, int width, uint32_t flags, printf_spec_t *ps)
    175175{
    176         count_t counter = 0;
     176        size_t counter = 0;
    177177        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
    178178                while (--width > 0) {
     
    212212static int print_wchar(const wchar_t ch, int width, uint32_t flags, printf_spec_t *ps)
    213213{
    214         count_t counter = 0;
     214        size_t counter = 0;
    215215        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
    216216                while (--width > 0) {
     
    255255
    256256        /* Print leading spaces. */
    257         count_t strw = str_length(str);
     257        size_t strw = str_length(str);
    258258        if (precision == 0)
    259259                precision = strw;
    260260
    261261        /* Left padding */
    262         count_t counter = 0;
     262        size_t counter = 0;
    263263        width -= precision;
    264264        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
     
    311311       
    312312        /* Left padding */
    313         count_t counter = 0;
     313        size_t counter = 0;
    314314        width -= precision;
    315315        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
     
    433433       
    434434        width -= precision + size - number_size;
    435         count_t counter = 0;
     435        size_t counter = 0;
    436436       
    437437        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
     
    596596        size_t j = 0;    /* Index to the first not printed nonformating character */
    597597       
    598         count_t counter = 0;  /* Number of characters printed */
     598        size_t counter = 0;   /* Number of characters printed */
    599599        int retval;           /* Return values from nested functions */
    600600       
Note: See TracChangeset for help on using the changeset viewer.