diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-24 08:34:31 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-24 08:34:31 +0000 |
commit | 694525ec2e1ba8cd93affc352dfd149ace4fa016 (patch) | |
tree | 522d2b1dd3d1fe84dce467355851bc5794165c0f /ldso/ldso/frv/dl-syscalls.h | |
parent | ae549acff0899cbec32bd2a1353a99ea26d6bc00 (diff) |
- tidy up inline:
ldso and syscalls are __always_inline (the latter would need more cleanup)
Diffstat (limited to 'ldso/ldso/frv/dl-syscalls.h')
-rw-r--r-- | ldso/ldso/frv/dl-syscalls.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ldso/ldso/frv/dl-syscalls.h b/ldso/ldso/frv/dl-syscalls.h index 093d0dca8..a4bff1d47 100644 --- a/ldso/ldso/frv/dl-syscalls.h +++ b/ldso/ldso/frv/dl-syscalls.h @@ -30,8 +30,8 @@ static __inline__ _syscall6(__ptr_t, __syscall_mmap2, __ptr_t, addr, # endif #include <bits/uClibc_page.h> /* for PAGE_SIZE */ -inline static void *_dl_memset(void*,int,size_t); -inline static ssize_t _dl_pread(int fd, void *buf, size_t count, off_t offset); +static __always_inline void *_dl_memset(void*,int,size_t); +static __always_inline ssize_t _dl_pread(int fd, void *buf, size_t count, off_t offset); static __ptr_t _dl_mmap(__ptr_t addr, size_t len, int prot, int flags, int fd, __off_t offset) @@ -138,11 +138,11 @@ _dl_mmap(__ptr_t addr, size_t len, int prot, int flags, int fd, __off_t offset) #include <unistd.h> #define __NR___syscall_lseek __NR_lseek -inline static unsigned long _dl_read(int fd, const void *buf, unsigned long count); +static __always_inline unsigned long _dl_read(int fd, const void *buf, unsigned long count); -inline static _syscall3(__off_t, __syscall_lseek, int, fd, __off_t, offset, +static __always_inline _syscall3(__off_t, __syscall_lseek, int, fd, __off_t, offset, int, whence); -inline static ssize_t +static __always_inline ssize_t _dl_pread(int fd, void *buf, size_t count, off_t offset) { __off_t orig = __syscall_lseek (fd, 0, SEEK_CUR); @@ -163,10 +163,10 @@ _dl_pread(int fd, void *buf, size_t count, off_t offset) } #else #define __NR___syscall_pread __NR_pread -inline static _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf, +static __always_inline _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf, size_t, count, off_t, offset_hi, off_t, offset_lo); -inline static ssize_t +static __always_inline ssize_t _dl_pread(int fd, void *buf, size_t count, off_t offset) { return(__syscall_pread(fd,buf,count,__LONG_LONG_PAIR (offset >> 31, offset))); |