Changeset dd0c8a0 in mainline for uspace/app/getterm/getterm.c


Ignore:
Timestamp:
2013-09-29T06:56:33Z (12 years ago)
Author:
Beniamino Galvani <b.galvani@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a9bd960d
Parents:
3deb0155 (diff), 13be2583 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/getterm/getterm.c

    r3deb0155 rdd0c8a0  
    112112        reopen(&stderr, 2, term, O_WRONLY, "w");
    113113       
    114         /*
    115          * FIXME: fdopen() should actually detect that we are opening a console
    116          * and it should set line-buffering mode automatically.
    117          */
    118         setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
    119        
    120114        if (stdin == NULL)
    121115                return -2;
     
    126120        if (stderr == NULL)
    127121                return -4;
     122       
     123        /*
     124         * FIXME: fdopen() should actually detect that we are opening a console
     125         * and it should set line-buffering mode automatically.
     126         */
     127        setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
    128128       
    129129        version_print(term);
Note: See TracChangeset for help on using the changeset viewer.