Changeset 67e881c in mainline for uspace/lib/posix/source/unistd.c


Ignore:
Timestamp:
2017-03-30T20:59:36Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a56cef9
Parents:
79ea5af
Message:

Rename ftruncate() to vfs_resize()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/unistd.c

    r79ea5af r67e881c  
    259259int posix_ftruncate(int fildes, posix_off_t length)
    260260{
    261         return negerrno(ftruncate, fildes, (aoff64_t) length);
     261        if (rcerrno(vfs_resize, fildes, (aoff64_t) length) != EOK)
     262                return -1;
     263        else
     264                return 0;
    262265}
    263266
Note: See TracChangeset for help on using the changeset viewer.