Lines Matching defs:timeout
75 * non-blocking drop-in replacement for read with timeout using select
82 * @param timeout (r) number of seconds to try reading
84 * @returns number of bytes actually read or -1 on timeout or error
86 ssize_t readt(int socket, void *data, const size_t length, int setnonblocking, int timeout)
104 end.tv_sec += timeout;
115 tv.tv_sec = timeout;
120 LOG(log_debug, logtype_afpd, "select timeout %d s", timeout);
131 LOG(log_debug, logtype_afpd, "select timeout %d s", timeout);
180 * non-blocking drop-in replacement for read with timeout using select
187 * @param timeout (r) number of seconds to try reading
191 ssize_t writet(int socket, void *data, const size_t length, int setnonblocking, int timeout)
207 end.tv_sec += timeout;
219 tv.tv_sec = timeout;
224 LOG(log_warning, logtype_afpd, "select timeout %d s", timeout);
231 LOG(log_warning, logtype_afpd, "select timeout %d s", timeout);