]> mj.ucw.cz Git - pciutils.git/commit
Get rid of workarounds for Linux systems without pread/pwrite
authorMartin Mares <mj@ucw.cz>
Fri, 29 Dec 2023 14:23:00 +0000 (15:23 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 29 Dec 2023 14:27:19 +0000 (15:27 +0100)
commit30e9f21eac66bf2c4ee02e37cb54aa54d616fad4
treee0fa65174cc120109cba266bfe3d97f88d1f2223
parent944bb1df9fc9f4280f2c9c8e87b5954e8e700c2c
Get rid of workarounds for Linux systems without pread/pwrite

Many things have changed since we introduced work-arounds for Linux
systems with missing pread/pwrite in 1999 (if you are curious, it was
in commit bc6346df8d89ece4814be7dff951ec1a7d259938).

I believe that it is supported by all reasonably recent Linux systems
now. After all, pread() was already defined by POSIX.1-2001.

This should also fix problems with musl libc mentioned in GitHub
issue #158.
lib/Makefile
lib/pci.h
lib/pread.h [deleted file]
lib/proc.c
lib/sysfs.c