Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <libc/stubs.h>
  3. #include <unistd.h>
  4. #include <io.h>
  5. #include <errno.h>
  6.  
  7. int ftruncate(int fd, off_t where)
  8. {
  9.         int res = dosemu_truncate(fd, where);
  10.         if (res) {errno = res; return -1;}
  11.         return 0;
  12. }
  13.