Use Postgres fd.h rather than C stdlib
Use Postgres fd.h rather than C stdlib

This cleans up all the EINTR handling in particular, which in
turn simplifies buffer management.

Per review by Peter Geoghegan <pg@heroku.com>

fdr/pg_connlimit