]> mj.ucw.cz Git - pciutils.git/commitdiff
pread.h: Remove support for libc5
authorFelix Janda <felix.janda@posteo.de>
Sun, 29 Mar 2015 08:59:32 +0000 (09:59 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 9 Apr 2015 14:30:35 +0000 (16:30 +0200)
The support code for libc5 breaks building on linux i386 with
other libcs that don't define __GLIBC__.

lib/pread.h

index 0e64326af5e497511e84f0e0f6f442419bfb7aa7..3db90e3e182a3a82912660905598cd462de35962 100644 (file)
@@ -30,15 +30,6 @@ static int pread(unsigned int fd, void *buf, size_t size, loff_t where)
 static int pwrite(unsigned int fd, void *buf, size_t size, loff_t where)
 { return syscall(SYS_pwrite, fd, buf, size, where); }
 
-#elif defined(i386)
-/* old libc on i386 -> call syscalls directly the old way */
-#include <asm/unistd.h>
-static _syscall5(int, pread, unsigned int, fd, void *, buf, size_t, size, u32, where_lo, u32, where_hi);
-static _syscall5(int, pwrite, unsigned int, fd, void *, buf, size_t, size, u32, where_lo, u32, where_hi);
-static int do_read(struct pci_dev *d UNUSED, int fd, void *buf, size_t size, int where) { return pread(fd, buf, size, where, 0); }
-static int do_write(struct pci_dev *d UNUSED, int fd, void *buf, size_t size, int where) { return pwrite(fd, buf, size, where, 0); }
-#define PCI_HAVE_DO_READ
-
 #else
 /* In all other cases we use lseek/read/write instead to be safe */
 #define make_rw_glue(op) \