Ignore:
File:
1 edited

Legend:

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

    ra3da2b2 r820104d  
    3535
    3636#define LIBPOSIX_INTERNAL
     37#define __POSIX_DEF__(x) posix_##x
    3738
    3839#include "internal/common.h"
     
    220221{
    221222        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 * @param offset New offset in the file.
     230 * @param whence The position from which the offset argument is specified.
     231 * @return Upon successful completion, returns the resulting offset
     232 *         as measured in bytes from the beginning of the file, -1 otherwise.
     233 */
     234posix_off_t posix_lseek(int fildes, posix_off_t offset, int whence)
     235{
     236        return errnify(lseek, fildes, offset, whence);
    222237}
    223238
     
    374389        // TODO: low priority, just a compile-time dependency of binutils
    375390        not_implemented();
     391        return -1;
    376392}
    377393
     
    384400        // TODO: low priority, just a compile-time dependency of binutils
    385401        not_implemented();
     402        return -1;
    386403}
    387404
     
    396413        // TODO: low priority, just a compile-time dependency of binutils
    397414        not_implemented();
     415        return -1;
    398416}
    399417
     
    408426        // TODO: low priority, just a compile-time dependency of binutils
    409427        not_implemented();
     428        return -1;
    410429}
    411430
     
    419438        // TODO: low priority, just a compile-time dependency of binutils
    420439        not_implemented();
     440        return -1;
     441}
     442
     443unsigned int posix_alarm(unsigned int seconds)
     444{
     445        not_implemented();
     446        return 0;
    421447}
    422448
Note: See TracChangeset for help on using the changeset viewer.