2 * \file dietlibc/lib/backends/minimal_io/lseek.c
6 * \author Martin Pohlack <mp26@os.inf.tu-dresden.de>
9 * (c) 2004-2009 Technische Universität Dresden
10 * This file is part of TUD:OS and distributed under the terms of the
11 * GNU Lesser General Public License 2.1.
12 * Please see the COPYING-LGPL-2.1 file for details.
18 /* Just a dummy seek function, to make it compile
21 off_t lseek(int fd, off_t offset, int whence)
23 // just accept lseek to stdin, stdout and stderr
24 if ((fd != STDIN_FILENO) &&
25 (fd != STDOUT_FILENO) &&
26 (fd != STDERR_FILENO))
50 off64_t lseek64(int fd, off64_t offset, int whence)
55 return lseek(fd, offset, whence);