Changeset 6afc9d7 in mainline for uspace/app/trace/trace.c


Ignore:
Timestamp:
2015-10-06T19:01:36Z (9 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/app/trace/trace.c

    rf1f7584 r6afc9d7  
    5757#include "proto.h"
    5858#include <ipc/services.h>
    59 #include "../../srv/vfs/vfs.h"
     59#include <ipc/vfs.h>
    6060#include <ipc/console.h>
    6161
     
    528528        int fd_stderr;
    529529       
    530         if ((stdin != NULL) && (fhandle(stdin, &fd_stdin) == EOK))
     530        if ((stdin != NULL) && (vfs_fhandle(stdin, &fd_stdin) == EOK))
    531531                files[0] = &fd_stdin;
    532532        else
    533533                files[0] = NULL;
    534534       
    535         if ((stdout != NULL) && (fhandle(stdout, &fd_stdout) == EOK))
     535        if ((stdout != NULL) && (vfs_fhandle(stdout, &fd_stdout) == EOK))
    536536                files[1] = &fd_stdout;
    537537        else
    538538                files[1] = NULL;
    539539       
    540         if ((stderr != NULL) && (fhandle(stderr, &fd_stderr) == EOK))
     540        if ((stderr != NULL) && (vfs_fhandle(stderr, &fd_stderr) == EOK))
    541541                files[2] = &fd_stderr;
    542542        else
Note: See TracChangeset for help on using the changeset viewer.