cleanup: remove readwrite.h, use unistd.h instead. - #43
Conversation
|
Both share a common problem: they touch a lot of files, which easily will break external patches that add their own headers. I would suggest that we split this into 2 PRs, and #44 as well: one that modifies readwrite.h to just |
b9e235a to
c3374c3
Compare
c7d7ebf to
a1e7caa
Compare
I've done this here, and as a consequence set this PR to the 1.9 release. I've submitted PR #80 for the beginning of this series, with the minimal change as you suggest, for the 1.08 release. |
read(2) and write(2) are declared in unistd.h.
a1e7caa to
7a10f65
Compare
The header readwrite.h (re)declares read(2) and write(2). We should use the system-provided header for these declarations, unistd.h.
This patch systematically removes readwrite.h and includes unistd.h instead.