Changeset a42d7d8 in mainline for uspace/lib/bithenge/file.c


Ignore:
Timestamp:
2012-08-19T05:28:24Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fae4d30
Parents:
1c79996
Message:

Bithenge: add fake system call errors to test error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/bithenge/file.c

    r1c79996 ra42d7d8  
    7979                return ELIMIT;
    8080        if (lseek(blob->fd, offset, SEEK_SET) < 0)
    81                 return errno;
     81                return errno == EINVAL ? EIO : EINVAL;
    8282
    8383        ssize_t amount_read;
Note: See TracChangeset for help on using the changeset viewer.