blob: 4552c74544effaae37813d0591db29990f21171d [file] [log] [blame]
// NACL MOD TRACK "third_party/nacl-glibc/sysdeps/nacl/llseek.c"
#include <errno.h>
#include <irt_syscalls.h>
loff_t __llseek (int fd, loff_t offset, int whence)
{
int result = __nacl_irt_seek (fd, offset, whence, &offset);
if (result != 0)
{
errno = result;
return -1;
}
return offset;
}
weak_alias (__llseek, lseek64)