OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [llseek.c] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#include <syscall.h>
2
#include <unistd.h>
3
#include <errno.h>
4
 
5
inline static
6
_syscall5(int,_llseek,int,fd,off_t,hoff,off_t,loff,loff_t*,res,int,whence);
7
 
8
loff_t llseek (int fd, loff_t offset, int whence)
9
{
10
  int ret;
11
  loff_t result;
12
 
13
  ret = _llseek (fd, (off_t) (offset >> 32),
14
        (off_t) (offset & 0xffffffff), &result, whence);
15
 
16
  return ret ? (loff_t) ret : result;
17
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.