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


Ignore:
Timestamp:
2013-07-29T13:16:03Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf963b9
Parents:
ccdc63e
Message:

add lseek() to the posix library, move SEEK_CUR, SEEK_SET and SEEK_END from stdio.h to unistd.h

File:
1 edited

Legend:

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

    rccdc63e re3480d5  
    221221{
    222222        return errnify(write, fildes, buf, nbyte);
     223}
     224
     225/**
     226 * Reposition read/write file offset
     227 *
     228 * @param fildes File descriptor of the opened file.
     229 * @return Upon successful completion, returns the resulting offset
     230 *         as measured in bytes from the beginning of the file, -1 otherwise.
     231 */
     232posix_off_t posix_lseek(int fildes, posix_off_t offset, int whence)
     233{
     234        return errnify(lseek, fildes, offset, whence);
    223235}
    224236
Note: See TracChangeset for help on using the changeset viewer.