Changeset 6afc9d7 in mainline for uspace/lib/c/generic/task.c


Ignore:
Timestamp:
2015-10-06T19:01:36Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0328987
Parents:
f1f7584
Message:

UNIX-like I/O functions should use errno to return error code for many reasons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/task.c

    rf1f7584 r6afc9d7  
    112112        int fd_stderr;
    113113       
    114         if ((stdin != NULL) && (fhandle(stdin, &fd_stdin) == EOK))
     114        if ((stdin != NULL) && (vfs_fhandle(stdin, &fd_stdin) == EOK))
    115115                files[0] = &fd_stdin;
    116116        else
    117117                files[0] = NULL;
    118118       
    119         if ((stdout != NULL) && (fhandle(stdout, &fd_stdout) == EOK))
     119        if ((stdout != NULL) && (vfs_fhandle(stdout, &fd_stdout) == EOK))
    120120                files[1] = &fd_stdout;
    121121        else
    122122                files[1] = NULL;
    123123       
    124         if ((stderr != NULL) && (fhandle(stderr, &fd_stderr) == EOK))
     124        if ((stderr != NULL) && (vfs_fhandle(stderr, &fd_stderr) == EOK))
    125125                files[2] = &fd_stderr;
    126126        else
Note: See TracChangeset for help on using the changeset viewer.