From 7eaca202b9f1f79a3c1d2a56a3879364cfa89e42 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 4 Oct 2011 23:26:10 -0400 Subject: ldso: unify pread syscall definition A few arches want pread() defined, so move it to common code. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer --- ldso/ldso/frv/dl-syscalls.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'ldso/ldso/frv') diff --git a/ldso/ldso/frv/dl-syscalls.h b/ldso/ldso/frv/dl-syscalls.h index ce9435a03..f40c4fd31 100644 --- a/ldso/ldso/frv/dl-syscalls.h +++ b/ldso/ldso/frv/dl-syscalls.h @@ -1,17 +1 @@ -/* Copyright (C) 2003, 2004 Red Hat, Inc. - * Contributed by Alexandre Oliva - * - * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - */ - -#ifdef __NR_pread -#define __NR___syscall_pread __NR_pread -static __always_inline _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf, - size_t, count, off_t, offset_hi, off_t, offset_lo); - -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))); -} -#endif +/* stub for arch-specific syscall issues */ -- cgit v1.2.3