fd: Drop fd_set parameter from read_nonblock() and friends.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 30 Sep 2021 19:46:58 +0000 (21:46 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 25 Aug 2022 13:37:26 +0000 (15:37 +0200)
commit4ddaef74ff8f605a31c499d77fcaaffa7a3708c0
treec3f1dad9ebcdcbdd08001d1d71489d3a119a0421
parent5f04eea3b1c9a41417ed63e5348b2aabca5542fa
fd: Drop fd_set parameter from read_nonblock() and friends.

This parameter is not necessary because its only purpose is to
avoid the readv(2) system call in case it would likely return EAGAIN
because we just called select(2) which reported that there is no data
to read. Since the parameter is an obstacle for the conversion of
the code base from select(2) to poll(2), get rid of it for the time
being. If needed we can add back an equivalent optimization which
checks for POLLIN after the conversion.
14 files changed:
afs.c
audiod.c
client_common.c
dccp_recv.c
fd.c
fd.h
gui.c
http_recv.c
http_send.c
server.c
signal.c
signal.h
stdin.c
udp_recv.c