예제 #1
0
off_t __lseek (int fd, off_t offset, int whence)
{
  nacl_abi_off_t nacl_offset = offset;
  int result = __nacl_irt_seek (fd, nacl_offset, whence, &nacl_offset);
  if (result != 0) {
    errno = result;
    return -1;
  }
  return nacl_offset;
}
예제 #2
0
파일: lseek64.c 프로젝트: NaiveTorch/ARC
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;
}