OSDN Git Service

66d96abbd165449a3ce11251008dd856e1cc0e6f
[uclinux-h8/uClibc.git] / ldso / ldso / c6x / dl-syscalls.h
1 /* Copyright (C) 2010 Texas Instruments Incorporated
2  * Contributed by Mark Salter <msalter@redhat.com>
3  *
4  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5  */
6
7 #ifdef __NR_pread64
8 #define __NR___syscall_pread __NR_pread64
9 static __always_inline _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf,
10                         size_t, count, off_t, offset_hi, off_t, offset_lo);
11
12 static __always_inline ssize_t
13 _dl_pread(int fd, void *buf, size_t count, off_t offset)
14 {
15   return(__syscall_pread(fd,buf,count, offset, offset >> 31));
16 }
17 #endif