Changeset 6afc9d7 in mainline for uspace/app/bdsh/exec.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/bdsh/exec.c

    rf1f7584 r6afc9d7  
    6161
    6262        fd = open(f, O_RDONLY);
    63         if (fd > -1) {
     63        if (fd >= 0) {
    6464                close(fd);
    6565                return 0;
     
    113113       
    114114        for (i = 0; i < 3 && files[i] != NULL; i++) {
    115                 if (fhandle(files[i], &file_handles[i]) == EOK) {
     115                if (vfs_fhandle(files[i], &file_handles[i]) == EOK) {
    116116                        file_handles_p[i] = &file_handles[i];
    117117                }
Note: See TracChangeset for help on using the changeset viewer.