lseek.c 221 B

1234567891011121314
  1. /* See LICENSE of license details. */
  2. #include <errno.h>
  3. #include <unistd.h>
  4. #include <sys/types.h>
  5. #include "stub.h"
  6. off_t _lseek(int fd, off_t ptr, int dir)
  7. {
  8. if (isatty(fd))
  9. return 0;
  10. return _stub(EBADF);
  11. }