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